]> sourceware.org Git - lvm2.git/blame - configure
Add RAID metadata devices to considered devices in _add_lv_to_dtree.
[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
54b362f9 611TESTING
ec6a6fbe
AK
612STATIC_LINK
613STATICDIR
614SNAPSHOTS
f7f0854e 615SELINUX_PC
e1b8a236 616SELINUX_LIBS
cac52ca4 617REPLICATORS
539f4a77 618READLINE_LIBS
cac52ca4 619RAID
f30875db 620PTHREAD_LIBS
ec6a6fbe
AK
621POOL
622PKGCONFIG
606d0858 623OCFDIR
37ddf259 624OCF
ec6a6fbe
AK
625MIRRORS
626LVM_RELEASE_DATE
627LVM_RELEASE
628LVM_PATCHLEVEL
629LVM_MINOR
630LVM_MAJOR
bf456146 631LVM_LIBAPI
ec6a6fbe 632LVM_VERSION
ec6a6fbe
AK
633LVM1_FALLBACK
634LVM1
635LOCALEDIR
636LIB_SUFFIX
637LDDEPS
638JOBS
639INTL_PACKAGE
640INTL
ec6a6fbe
AK
641HAVE_REALTIME
642HAVE_LIBDL
ec6a6fbe
AK
643FSADM
644DM_LIB_PATCHLEVEL
645DM_LIB_VERSION
646DM_IOCTLS
647DM_DEVICE_UID
648DM_DEVICE_MODE
649DM_DEVICE_GID
650DM_COMPAT
d1e8046f 651DMEVENTD_PATH
ec6a6fbe 652DMEVENTD
19a2c6e0 653DL_LIBS
ec6a6fbe 654DEVMAPPER
b1f08e51 655DEFAULT_RUN_DIR
3399ae32 656DEFAULT_LOCK_DIR
fea55602 657DEFAULT_DATA_ALIGNMENT
3399ae32
AK
658DEFAULT_CACHE_SUBDIR
659DEFAULT_BACKUP_SUBDIR
660DEFAULT_ARCHIVE_SUBDIR
661DEFAULT_SYS_DIR
ec6a6fbe
AK
662DEBUG
663COPTIMISE_FLAG
e2997b73 664CONFDIR
ec6a6fbe 665CMDLIB
c89bc357 666CLVMD_CMANAGERS
ec6a6fbe
AK
667CLVMD
668CLUSTER
669CLDWHOLEARCHIVE
670CLDNOWHOLEARCHIVE
671CLDFLAGS
13db5983
AK
672CCS_LIBS
673CCS_CFLAGS
ec6a6fbe 674BUILD_DMEVENTD
66fd4529 675BUILD_CMIRRORD
572fefeb 676APPLIB
ec6a6fbe
AK
677MODPROBE_CMD
678MSGFMT
679LVM2CMD_LIB
572fefeb 680LVM2APP_LIB
d93275eb
PR
681UDEV_LIBS
682UDEV_CFLAGS
54b362f9
AK
683VALGRIND
684RUBY19
fd4728e1 685GENPNG
ec6a6fbe
AK
686GENHTML
687LCOV
90c80887
AK
688SACKPT_LIBS
689SACKPT_CFLAGS
a946372e
AK
690DLM_LIBS
691DLM_CFLAGS
e2997b73
AK
692CPG_LIBS
693CPG_CFLAGS
694CONFDB_LIBS
695CONFDB_CFLAGS
a946372e
AK
696SALCK_LIBS
697SALCK_CFLAGS
e2997b73
AK
698QUORUM_LIBS
699QUORUM_CFLAGS
a946372e
AK
700COROSYNC_LIBS
701COROSYNC_CFLAGS
702CMAN_LIBS
703CMAN_CFLAGS
a946372e
AK
704PKGCONFIGINIT_LIBS
705PKGCONFIGINIT_CFLAGS
f11781c5
AK
706PKG_CONFIG_LIBDIR
707PKG_CONFIG_PATH
e2997b73 708PKG_CONFIG
ec6a6fbe
AK
709POW_LIB
710LIBOBJS
711ALLOCA
712CSCOPE_CMD
713CFLOW_CMD
714RANLIB
715MKDIR_P
716SET_MAKE
717LN_S
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
721EGREP
722GREP
723CPP
724OBJEXT
725EXEEXT
726ac_ct_CC
727CPPFLAGS
728LDFLAGS
729CFLAGS
730CC
731AWK
732SED
733target_os
734target_vendor
735target_cpu
736target
737host_os
738host_vendor
739host_cpu
740host
741build_os
742build_vendor
743build_cpu
744build
745target_alias
746host_alias
747build_alias
748LIBS
749ECHO_T
750ECHO_N
751ECHO_C
752DEFS
753mandir
754localedir
755libdir
756psdir
757pdfdir
758dvidir
759htmldir
760infodir
761docdir
762oldincludedir
763includedir
764localstatedir
765sharedstatedir
766sysconfdir
767datadir
768datarootdir
769libexecdir
770sbindir
771bindir
772program_transform_name
773prefix
774exec_prefix
f11781c5 775PACKAGE_URL
ec6a6fbe
AK
776PACKAGE_BUGREPORT
777PACKAGE_STRING
778PACKAGE_VERSION
779PACKAGE_TARNAME
780PACKAGE_NAME
781PATH_SEPARATOR
782SHELL'
ad6254c5 783ac_subst_files=''
ec6a6fbe
AK
784ac_user_opts='
785enable_option_checking
786enable_static_link
787with_user
788with_group
789with_device_uid
790with_device_gid
791with_device_mode
d0df875d 792with_device_nodes_on
ec6a6fbe
AK
793enable_lvm1_fallback
794with_lvm1
795with_pool
796with_cluster
797with_snapshots
798with_mirrors
cac52ca4 799with_raid
8fea97b7 800with_replicators
ec6a6fbe
AK
801enable_readline
802enable_realtime
37ddf259 803enable_ocf
606d0858 804with_ocfdir
ec6a6fbe 805with_clvmd
8c4e8a18 806with_clvmd_pidfile
66fd4529
AK
807enable_cmirrord
808with_cmirrord_pidfile
ec6a6fbe
AK
809enable_debug
810with_optimisation
811enable_profiling
54b362f9 812enable_testing
d1e8046f 813enable_valgrind_pool
ec6a6fbe 814enable_devmapper
a5f46f6a
AK
815enable_udev_sync
816enable_udev_rules
ec6a6fbe 817enable_compat
95eaa683 818enable_units_compat
ec6a6fbe
AK
819enable_ioctl
820enable_o_direct
572fefeb 821enable_applib
ec6a6fbe
AK
822enable_cmdlib
823enable_pkgconfig
23b059e7 824enable_write_install
ec6a6fbe
AK
825enable_fsadm
826enable_dmeventd
827enable_selinux
828enable_nls
829with_localedir
830with_confdir
831with_staticdir
832with_usrlibdir
833with_usrsbindir
a5f46f6a 834with_udev_prefix
78ce7acc 835with_udevdir
ec6a6fbe
AK
836with_dmeventd_pidfile
837with_dmeventd_path
8bae0a1e 838with_default_run_dir
3399ae32
AK
839with_default_system_dir
840with_default_archive_subdir
841with_default_backup_subdir
842with_default_cache_subdir
843with_default_locking_dir
fea55602 844with_default_data_alignment
ec6a6fbe
AK
845with_interface
846'
7a197a62
AK
847 ac_precious_vars='build_alias
848host_alias
849target_alias
850CC
851CFLAGS
852LDFLAGS
25fbec5b 853LIBS
7a197a62 854CPPFLAGS
e2997b73
AK
855CPP
856PKG_CONFIG
f11781c5
AK
857PKG_CONFIG_PATH
858PKG_CONFIG_LIBDIR
a946372e
AK
859PKGCONFIGINIT_CFLAGS
860PKGCONFIGINIT_LIBS
a946372e
AK
861CMAN_CFLAGS
862CMAN_LIBS
863COROSYNC_CFLAGS
864COROSYNC_LIBS
e2997b73
AK
865QUORUM_CFLAGS
866QUORUM_LIBS
a946372e
AK
867SALCK_CFLAGS
868SALCK_LIBS
e2997b73
AK
869CONFDB_CFLAGS
870CONFDB_LIBS
871CPG_CFLAGS
a946372e
AK
872CPG_LIBS
873DLM_CFLAGS
90c80887
AK
874DLM_LIBS
875SACKPT_CFLAGS
d93275eb
PR
876SACKPT_LIBS
877UDEV_CFLAGS
878UDEV_LIBS'
7a197a62 879
795ca3e5
AK
880
881# Initialize some variables set by options.
ad6254c5
AK
882ac_init_help=
883ac_init_version=false
ec6a6fbe
AK
884ac_unrecognized_opts=
885ac_unrecognized_sep=
795ca3e5
AK
886# The variables have the same names as the options, with
887# dashes changed to underlines.
ad6254c5 888cache_file=/dev/null
795ca3e5 889exec_prefix=NONE
795ca3e5 890no_create=
795ca3e5
AK
891no_recursion=
892prefix=NONE
893program_prefix=NONE
894program_suffix=NONE
895program_transform_name=s,x,x,
896silent=
897site=
898srcdir=
795ca3e5
AK
899verbose=
900x_includes=NONE
901x_libraries=NONE
ad6254c5
AK
902
903# Installation directory options.
904# These are left unexpanded so users can "make install exec_prefix=/foo"
905# and all the variables that are supposed to be based on exec_prefix
906# by default will actually change.
907# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 908# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
909bindir='${exec_prefix}/bin'
910sbindir='${exec_prefix}/sbin'
911libexecdir='${exec_prefix}/libexec'
7a197a62
AK
912datarootdir='${prefix}/share'
913datadir='${datarootdir}'
795ca3e5
AK
914sysconfdir='${prefix}/etc'
915sharedstatedir='${prefix}/com'
916localstatedir='${prefix}/var'
795ca3e5
AK
917includedir='${prefix}/include'
918oldincludedir='/usr/include'
7a197a62
AK
919docdir='${datarootdir}/doc/${PACKAGE}'
920infodir='${datarootdir}/info'
921htmldir='${docdir}'
922dvidir='${docdir}'
923pdfdir='${docdir}'
924psdir='${docdir}'
925libdir='${exec_prefix}/lib'
926localedir='${datarootdir}/locale'
927mandir='${datarootdir}/man'
795ca3e5 928
795ca3e5 929ac_prev=
7a197a62 930ac_dashdash=
795ca3e5
AK
931for ac_option
932do
795ca3e5
AK
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
7a197a62 935 eval $ac_prev=\$ac_option
795ca3e5
AK
936 ac_prev=
937 continue
938 fi
939
7a197a62
AK
940 case $ac_option in
941 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *) ac_optarg=yes ;;
943 esac
795ca3e5
AK
944
945 # Accept the important Cygnus configure options, so we can diagnose typos.
946
7a197a62
AK
947 case $ac_dashdash$ac_option in
948 --)
949 ac_dashdash=yes ;;
795ca3e5
AK
950
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 954 bindir=$ac_optarg ;;
795ca3e5
AK
955
956 -build | --build | --buil | --bui | --bu)
ad6254c5 957 ac_prev=build_alias ;;
795ca3e5 958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 959 build_alias=$ac_optarg ;;
795ca3e5
AK
960
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
966 cache_file=$ac_optarg ;;
967
968 --config-cache | -C)
969 cache_file=config.cache ;;
795ca3e5 970
7a197a62 971 -datadir | --datadir | --datadi | --datad)
795ca3e5 972 ac_prev=datadir ;;
7a197a62 973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 974 datadir=$ac_optarg ;;
795ca3e5 975
7a197a62
AK
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
982
795ca3e5 983 -disable-* | --disable-*)
ec6a6fbe 984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 985 # Reject names that are not valid shell variable names.
ec6a6fbe 986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 987 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992"enable_$ac_useropt"
993"*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=no ;;
7a197a62
AK
998
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1003
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
795ca3e5
AK
1008
1009 -enable-* | --enable-*)
ec6a6fbe 1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1011 # Reject names that are not valid shell variable names.
ec6a6fbe 1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1013 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018"enable_$ac_useropt"
1019"*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
ad6254c5 1032 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
ad6254c5
AK
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
795ca3e5
AK
1044
1045 -host | --host | --hos | --ho)
ad6254c5 1046 ac_prev=host_alias ;;
795ca3e5 1047 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1048 host_alias=$ac_optarg ;;
795ca3e5 1049
7a197a62
AK
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
795ca3e5
AK
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1061 includedir=$ac_optarg ;;
795ca3e5
AK
1062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1066 infodir=$ac_optarg ;;
795ca3e5
AK
1067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1071 libdir=$ac_optarg ;;
795ca3e5
AK
1072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1078 libexecdir=$ac_optarg ;;
795ca3e5 1079
7a197a62
AK
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
795ca3e5 1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1086 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1090 localstatedir=$ac_optarg ;;
795ca3e5
AK
1091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1095 mandir=$ac_optarg ;;
795ca3e5
AK
1096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1102 | --no-cr | --no-c | -n)
795ca3e5
AK
1103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1116 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1121 prefix=$ac_optarg ;;
795ca3e5
AK
1122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1128 program_prefix=$ac_optarg ;;
795ca3e5
AK
1129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1135 program_suffix=$ac_optarg ;;
795ca3e5
AK
1136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1152 program_transform_name=$ac_optarg ;;
795ca3e5 1153
7a197a62
AK
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
795ca3e5
AK
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
ad6254c5 1172 sbindir=$ac_optarg ;;
795ca3e5
AK
1173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
ad6254c5 1183 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
ad6254c5 1188 site=$ac_optarg ;;
795ca3e5
AK
1189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1193 srcdir=$ac_optarg ;;
795ca3e5
AK
1194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1200 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1203 ac_prev=target_alias ;;
795ca3e5 1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1205 target_alias=$ac_optarg ;;
795ca3e5
AK
1206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
ad6254c5
AK
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
795ca3e5
AK
1212
1213 -with-* | --with-*)
ec6a6fbe 1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1215 # Reject names that are not valid shell variable names.
ec6a6fbe 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1217 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1228
1229 -without-* | --without-*)
ec6a6fbe 1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1231 # Reject names that are not valid shell variable names.
ec6a6fbe 1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1233 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238"with_$ac_useropt"
1239"*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=no ;;
795ca3e5
AK
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1254 x_includes=$ac_optarg ;;
795ca3e5
AK
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1261 x_libraries=$ac_optarg ;;
795ca3e5 1262
f11781c5
AK
1263 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264Try \`$0 --help' for more information"
795ca3e5
AK
1265 ;;
1266
ad6254c5
AK
1267 *=*)
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
f11781c5
AK
1270 case $ac_envvar in #(
1271 '' | [0-9]* | *[!_$as_cr_alnum]* )
1272 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273 esac
7a197a62 1274 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1275 export $ac_envvar ;;
1276
795ca3e5 1277 *)
ad6254c5 1278 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1283 ;;
1284
1285 esac
1286done
1287
1288if test -n "$ac_prev"; then
ad6254c5 1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1290 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1291fi
795ca3e5 1292
ec6a6fbe
AK
1293if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1295 no) ;;
f11781c5 1296 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 esac
1299fi
1300
1301# Check all directory arguments for consistency.
7a197a62
AK
1302for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
795ca3e5 1306do
7a197a62 1307 eval ac_val=\$$ac_var
ec6a6fbe
AK
1308 # Remove trailing slashes.
1309 case $ac_val in
1310 */ )
1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\$ac_val;;
1313 esac
1314 # Be sure to have absolute directory names.
ad6254c5 1315 case $ac_val in
7a197a62
AK
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1318 esac
f11781c5 1319 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1320done
1321
ad6254c5
AK
1322# There might be people who depend on the old broken behavior: `$host'
1323# used to hold the argument of --host etc.
1324# FIXME: To remove some day.
1325build=$build_alias
1326host=$host_alias
1327target=$target_alias
1328
1329# FIXME: To remove some day.
1330if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
f11781c5
AK
1333 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1334 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1335 elif test "x$build_alias" != "x$host_alias"; then
1336 cross_compiling=yes
1337 fi
1338fi
8106cdd5 1339
ad6254c5
AK
1340ac_tool_prefix=
1341test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343test "$silent" = yes && exec 6>/dev/null
795ca3e5 1344
795ca3e5 1345
7a197a62
AK
1346ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347ac_ls_di=`ls -di .` &&
1348ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1349 as_fn_error $? "working directory cannot be determined"
7a197a62 1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1351 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1352
1353
795ca3e5
AK
1354# Find the source files, if location was not specified.
1355if test -z "$srcdir"; then
1356 ac_srcdir_defaulted=yes
7a197a62 1357 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1358 ac_confdir=`$as_dirname -- "$as_myself" ||
1359$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$as_myself" : 'X\(//\)[^/]' \| \
1361 X"$as_myself" : 'X\(//\)$' \| \
1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363$as_echo X"$as_myself" |
7a197a62
AK
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)[^/].*/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)$/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\).*/{
1377 s//\1/
1378 q
1379 }
1380 s/.*/./; q'`
795ca3e5 1381 srcdir=$ac_confdir
7a197a62 1382 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1383 srcdir=..
1384 fi
1385else
1386 ac_srcdir_defaulted=no
1387fi
7a197a62
AK
1388if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1390 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1391fi
7a197a62
AK
1392ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393ac_abs_confdir=`(
f11781c5 1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1395 pwd)`
1396# When building in place, set srcdir=.
1397if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 srcdir=.
1399fi
1400# Remove unnecessary trailing slashes from srcdir.
1401# Double slashes in file names in object file debugging info
1402# mess up M-x gdb in Emacs.
1403case $srcdir in
1404*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405esac
1406for ac_var in $ac_precious_vars; do
1407 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_env_${ac_var}_value=\$${ac_var}
1409 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411done
ad6254c5
AK
1412
1413#
1414# Report the --help message.
1415#
1416if test "$ac_init_help" = "long"; then
1417 # Omit some internal or obsolete options to make the list less imposing.
1418 # This message is too long to be a string in the A/UX 3.1 sh.
1419 cat <<_ACEOF
1420\`configure' configures this package to adapt to many kinds of systems.
1421
1422Usage: $0 [OPTION]... [VAR=VALUE]...
1423
1424To assign environment variables (e.g., CC, CFLAGS...), specify them as
1425VAR=VALUE. See below for descriptions of some of the useful variables.
1426
1427Defaults for the options are specified in brackets.
1428
1429Configuration:
1430 -h, --help display this help and exit
1431 --help=short display options specific to this package
1432 --help=recursive display the short help of all the included packages
1433 -V, --version display version information and exit
f11781c5 1434 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1435 --cache-file=FILE cache test results in FILE [disabled]
1436 -C, --config-cache alias for \`--cache-file=config.cache'
1437 -n, --no-create do not create output files
1438 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1439
ad6254c5
AK
1440Installation directories:
1441 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1442 [$ac_default_prefix]
ad6254c5 1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1444 [PREFIX]
ad6254c5
AK
1445
1446By default, \`make install' will install all the files in
1447\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1448an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1449for instance \`--prefix=\$HOME'.
1450
1451For better control, use the options below.
1452
1453Fine tuning of the installation directories:
ec6a6fbe
AK
1454 --bindir=DIR user executables [EPREFIX/bin]
1455 --sbindir=DIR system admin executables [EPREFIX/sbin]
1456 --libexecdir=DIR program executables [EPREFIX/libexec]
1457 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1460 --libdir=DIR object code libraries [EPREFIX/lib]
1461 --includedir=DIR C header files [PREFIX/include]
1462 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1465 --infodir=DIR info documentation [DATAROOTDIR/info]
1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1467 --mandir=DIR man documentation [DATAROOTDIR/man]
1468 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1469 --htmldir=DIR html documentation [DOCDIR]
1470 --dvidir=DIR dvi documentation [DOCDIR]
1471 --pdfdir=DIR pdf documentation [DOCDIR]
1472 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1473_ACEOF
1474
1475 cat <<\_ACEOF
1476
1477System types:
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 --target=TARGET configure for building compilers for TARGET [HOST]
1481_ACEOF
1482fi
1483
1484if test -n "$ac_init_help"; then
1485
1486 cat <<\_ACEOF
1487
1488Optional Features:
ec6a6fbe 1489 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1492 --enable-static_link use this to link the tools to their libraries
1493 statically (default is dynamic linking
1494 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1495 device-mapper is missing from the kernel
71082be4
ZK
1496 --disable-readline disable readline support
1497 --enable-realtime enable realtime clock support
37ddf259
AK
1498 --enable-ocf enable Open Cluster Framework (OCF) compliant
1499 resource agents
71082be4
ZK
1500 --enable-cmirrord enable the cluster mirror log daemon
1501 --enable-debug enable debugging
1502 --enable-profiling gather gcov profiling data
54b362f9 1503 --enable-testing enable testing targets in the makefile
d1e8046f 1504 --enable-valgrind-pool enable valgrind awareness of pools
71082be4
ZK
1505 --disable-devmapper disable LVM2 device-mapper interaction
1506 --enable-udev_sync enable synchronisation with udev processing
1507 --enable-udev_rules install rule files needed for udev synchronisation
1508 --enable-compat enable support for old device-mapper versions
1509 --enable-units-compat enable output compatibility with old versions that
1510 that do not use KiB-style unit suffixes
1511 --disable-driver disable calls to device-mapper in the kernel
1512 --disable-o_direct disable O_DIRECT
1513 --enable-applib build application library
1514 --enable-cmdlib build shared command library
1515 --enable-pkgconfig install pkgconfig support
1516 --enable-write_install install user writable files
1517 --disable-fsadm disable fsadm
1518 --enable-dmeventd enable the device-mapper event daemon
1519 --disable-selinux disable selinux support
1520 --enable-nls enable Native Language Support
ad6254c5
AK
1521
1522Optional Packages:
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1525 --with-user=USER set the owner of installed files [[USER=]]
1526 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1527 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1528 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1529 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
d0df875d
ZK
1530 --with-device-nodes-on=ON
1531 create nodes on resume or create [[ON=resume]]
ad6254c5 1532 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1533 [[TYPE=internal]]
ad6254c5 1534 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1535 [[TYPE=internal]]
71082be4 1536 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1537 [[TYPE=internal]]
71082be4 1538 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1539 [[TYPE=internal]]
71082be4 1540 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1541 [[TYPE=internal]]
cac52ca4
JEB
1542 --with-raid=TYPE mirror support: internal/shared/none
1543 [[TYPE=internal]]
71082be4 1544 --with-replicators=TYPE replicator support: internal/shared/none
f11781c5 1545 [[TYPE=none]]
606d0858
AK
1546 --with-ocfdir=DIR install OCF files in DIR
1547 [[PREFIX/lib/ocf/resource.d/lvm2]]
71082be4 1548 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1549 The following cluster manager combinations are valid:
a946372e
AK
1550 * cman (RHEL5 or equivalent)
1551 * cman,corosync,openais (or selection of them)
1091650a 1552 * singlenode (localhost only)
a946372e
AK
1553 * all (autodetect)
1554 * none (disable build)
71082be4 1555 [TYPE=none]
8c4e8a18 1556 --with-clvmd-pidfile=PATH
f11781c5 1557 clvmd pidfile [[/var/run/clvmd.pid]]
71082be4 1558 --with-cmirrord-pidfile=PATH
f11781c5
AK
1559 cmirrord pidfile [[/var/run/cmirrord.pid]]
1560 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1561 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1562 --with-confdir=DIR configuration files in DIR [[/etc]]
1563 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1564 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1565 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1566 --with-udev-prefix=UPREFIX
f11781c5
AK
1567 install udev rule files in UPREFIX [[EPREFIX]]
1568 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
71082be4 1569 --with-dmeventd-pidfile=PATH
f11781c5 1570 dmeventd pidfile [[/var/run/dmeventd.pid]]
71082be4 1571 --with-dmeventd-path=PATH
f11781c5 1572 dmeventd path [[EPREFIX/sbin/dmeventd]]
8bae0a1e 1573 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4 1574 --with-default-system-dir=DIR
f11781c5 1575 default LVM system directory [[/etc/lvm]]
71082be4 1576 --with-default-archive-subdir=SUBDIR
f11781c5 1577 default metadata archive subdir [[archive]]
71082be4 1578 --with-default-backup-subdir=SUBDIR
f11781c5 1579 default metadata backup subdir [[backup]]
71082be4 1580 --with-default-cache-subdir=SUBDIR
f11781c5 1581 default metadata cache subdir [[cache]]
71082be4 1582 --with-default-locking-dir=DIR
f11781c5 1583 default locking directory [[/var/lock/lvm]]
fea55602 1584 --with-default-data-alignment=NUM
f11781c5
AK
1585 set the default data alignment in MiB [[1]]
1586 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1587
1588Some influential environment variables:
1589 CC C compiler command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
25fbec5b 1593 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1594 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1595 you have headers in a nonstandard directory <include dir>
ad6254c5 1596 CPP C preprocessor
e2997b73 1597 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1598 PKG_CONFIG_PATH
1599 directories to add to pkg-config's search path
1600 PKG_CONFIG_LIBDIR
1601 path overriding pkg-config's built-in search path
a946372e
AK
1602 PKGCONFIGINIT_CFLAGS
1603 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1604 PKGCONFIGINIT_LIBS
1605 linker flags for PKGCONFIGINIT, overriding pkg-config
a946372e
AK
1606 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1607 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1608 COROSYNC_CFLAGS
1609 C compiler flags for COROSYNC, overriding pkg-config
1610 COROSYNC_LIBS
1611 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1612 QUORUM_CFLAGS
1613 C compiler flags for QUORUM, overriding pkg-config
1614 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1615 SALCK_CFLAGS
1616 C compiler flags for SALCK, overriding pkg-config
1617 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1618 CONFDB_CFLAGS
1619 C compiler flags for CONFDB, overriding pkg-config
1620 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1621 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1622 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1623 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1624 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1625 SACKPT_CFLAGS
1626 C compiler flags for SACKPT, overriding pkg-config
1627 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
d93275eb
PR
1628 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1629 UDEV_LIBS linker flags for UDEV, overriding pkg-config
ad6254c5
AK
1630
1631Use these variables to override the choices made by `configure' or to help
1632it to find libraries and programs with nonstandard names/locations.
1633
f11781c5 1634Report bugs to the package provider.
ad6254c5 1635_ACEOF
7a197a62 1636ac_status=$?
ad6254c5
AK
1637fi
1638
1639if test "$ac_init_help" = "recursive"; then
1640 # If there are subdirs, report their specific --help.
ad6254c5 1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1642 test -d "$ac_dir" ||
1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1644 continue
ad6254c5
AK
1645 ac_builddir=.
1646
7a197a62
AK
1647case "$ac_dir" in
1648.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649*)
ec6a6fbe 1650 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1651 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1652 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1653 case $ac_top_builddir_sub in
1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656 esac ;;
1657esac
1658ac_abs_top_builddir=$ac_pwd
1659ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660# for backward compatibility:
1661ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1662
1663case $srcdir in
7a197a62 1664 .) # We are building in place.
ad6254c5 1665 ac_srcdir=.
7a197a62
AK
1666 ac_top_srcdir=$ac_top_builddir_sub
1667 ac_abs_top_srcdir=$ac_pwd ;;
1668 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1669 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1670 ac_top_srcdir=$srcdir
1671 ac_abs_top_srcdir=$srcdir ;;
1672 *) # Relative name.
1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674 ac_top_srcdir=$ac_top_build_prefix$srcdir
1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1676esac
7a197a62
AK
1677ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678
1679 cd "$ac_dir" || { ac_status=$?; continue; }
1680 # Check for guested configure.
1681 if test -f "$ac_srcdir/configure.gnu"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684 elif test -f "$ac_srcdir/configure"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1687 else
ec6a6fbe 1688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1689 fi || ac_status=$?
1690 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1691 done
1692fi
1693
7a197a62 1694test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1695if $ac_init_version; then
1696 cat <<\_ACEOF
7a197a62 1697configure
f11781c5 1698generated by GNU Autoconf 2.66
ad6254c5 1699
f11781c5 1700Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1701This configure script is free software; the Free Software Foundation
1702gives unlimited permission to copy, distribute and modify it.
1703_ACEOF
7a197a62 1704 exit
ad6254c5 1705fi
ad6254c5 1706
f11781c5
AK
1707## ------------------------ ##
1708## Autoconf initialization. ##
1709## ------------------------ ##
ad6254c5 1710
f11781c5
AK
1711# ac_fn_c_try_compile LINENO
1712# --------------------------
1713# Try to compile conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_c_try_compile ()
ad6254c5 1715{
f11781c5
AK
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1719case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext; then :
1737 ac_retval=0
1738else
1739 $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1741
f11781c5
AK
1742 ac_retval=1
1743fi
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 as_fn_set_status $ac_retval
ad6254c5 1746
f11781c5 1747} # ac_fn_c_try_compile
ad6254c5 1748
f11781c5
AK
1749# ac_fn_c_try_cpp LINENO
1750# ----------------------
1751# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1752ac_fn_c_try_cpp ()
1753{
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { { ac_try="$ac_cpp conftest.$ac_ext"
1756case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1768 fi
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } >/dev/null && {
1771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1772 test ! -s conftest.err
1773 }; then :
1774 ac_retval=0
1775else
1776 $as_echo "$as_me: failed program was:" >&5
1777sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1778
f11781c5
AK
1779 ac_retval=1
1780fi
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782 as_fn_set_status $ac_retval
ad6254c5 1783
f11781c5 1784} # ac_fn_c_try_cpp
d911ec67 1785
f11781c5
AK
1786# ac_fn_c_try_link LINENO
1787# -----------------------
1788# Try to link conftest.$ac_ext, and return whether this succeeded.
1789ac_fn_c_try_link ()
d911ec67 1790{
f11781c5
AK
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
d911ec67
AK
1794case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797esac
f11781c5
AK
1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799$as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
d911ec67 1801 ac_status=$?
f11781c5
AK
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1806 fi
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 $as_test_x conftest$ac_exeext
1814 }; then :
1815 ac_retval=0
d911ec67 1816else
f11781c5 1817 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1818sed 's/^/| /' conftest.$ac_ext >&5
1819
f11781c5 1820 ac_retval=1
d911ec67 1821fi
f11781c5
AK
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 as_fn_set_status $ac_retval
d911ec67 1829
f11781c5 1830} # ac_fn_c_try_link
d911ec67 1831
f11781c5
AK
1832# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1833# -------------------------------------------------------
1834# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1835# the include files in INCLUDES and setting the cache variable VAR
1836# accordingly.
1837ac_fn_c_check_header_mongrel ()
1838{
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if eval "test \"\${$3+set}\"" = set; then :
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
1843if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1844 $as_echo_n "(cached) " >&6
1845fi
f11781c5
AK
1846eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1848$as_echo "$ac_res" >&6; }
1849else
1850 # Is the header compilable?
f11781c5
AK
1851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1852$as_echo_n "checking $2 usability... " >&6; }
1853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1854/* end confdefs.h. */
f11781c5
AK
1855$4
1856#include <$2>
d911ec67 1857_ACEOF
f11781c5 1858if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1859 ac_header_compiler=yes
1860else
f11781c5 1861 ac_header_compiler=no
d911ec67 1862fi
d911ec67 1863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1865$as_echo "$ac_header_compiler" >&6; }
1866
1867# Is the header present?
f11781c5
AK
1868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1869$as_echo_n "checking $2 presence... " >&6; }
1870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1871/* end confdefs.h. */
f11781c5 1872#include <$2>
d911ec67 1873_ACEOF
f11781c5 1874if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1875 ac_header_preproc=yes
1876else
d911ec67
AK
1877 ac_header_preproc=no
1878fi
d911ec67 1879rm -f conftest.err conftest.$ac_ext
f11781c5 1880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1881$as_echo "$ac_header_preproc" >&6; }
1882
1883# So? What about this header?
f11781c5 1884case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1885 yes:no: )
f11781c5
AK
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1887$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1889$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1890 ;;
1891 no:yes:* )
f11781c5
AK
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1893$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1895$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1897$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1899$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1902 ;;
1903esac
f11781c5
AK
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
1906if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1907 $as_echo_n "(cached) " >&6
1908else
f11781c5 1909 eval "$3=\$ac_header_compiler"
d911ec67 1910fi
f11781c5
AK
1911eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1913$as_echo "$ac_res" >&6; }
ad6254c5 1914fi
f11781c5 1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1916
f11781c5 1917} # ac_fn_c_check_header_mongrel
ad6254c5 1918
f11781c5
AK
1919# ac_fn_c_try_run LINENO
1920# ----------------------
1921# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1922# that executables *can* be run.
1923ac_fn_c_try_run ()
ad6254c5 1924{
f11781c5
AK
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 if { { ac_try="$ac_link"
7a197a62
AK
1927case "(($ac_try" in
1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1930esac
f11781c5
AK
1931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932$as_echo "$ac_try_echo"; } >&5
7a197a62 1933 (eval "$ac_link") 2>&5
ad6254c5 1934 ac_status=$?
f11781c5
AK
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1937 { { case "(($ac_try" in
7a197a62
AK
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940esac
f11781c5
AK
1941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942$as_echo "$ac_try_echo"; } >&5
7a197a62 1943 (eval "$ac_try") 2>&5
ad6254c5 1944 ac_status=$?
f11781c5
AK
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; }; }; then :
1947 ac_retval=0
ad6254c5 1948else
ec6a6fbe 1949 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 1950 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
1951sed 's/^/| /' conftest.$ac_ext >&5
1952
f11781c5 1953 ac_retval=$ac_status
ad6254c5 1954fi
f11781c5
AK
1955 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957 as_fn_set_status $ac_retval
ad6254c5 1958
f11781c5 1959} # ac_fn_c_try_run
ad6254c5 1960
f11781c5
AK
1961# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1962# -------------------------------------------------------
1963# Tests whether HEADER exists and can be compiled using the include files in
1964# INCLUDES, setting the cache variable VAR accordingly.
1965ac_fn_c_check_header_compile ()
1966{
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969$as_echo_n "checking for $2... " >&6; }
1970if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 1971 $as_echo_n "(cached) " >&6
ad6254c5 1972else
f11781c5 1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 1974/* end confdefs.h. */
f11781c5
AK
1975$4
1976#include <$2>
ad6254c5 1977_ACEOF
f11781c5
AK
1978if ac_fn_c_try_compile "$LINENO"; then :
1979 eval "$3=yes"
ad6254c5 1980else
f11781c5 1981 eval "$3=no"
ad6254c5 1982fi
7a197a62 1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 1984fi
f11781c5
AK
1985eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 1987$as_echo "$ac_res" >&6; }
f11781c5 1988 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1989
f11781c5 1990} # ac_fn_c_check_header_compile
ad6254c5 1991
f11781c5
AK
1992# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1993# ----------------------------------------------------
1994# Tries to find if the field MEMBER exists in type AGGR, after including
1995# INCLUDES, setting cache variable VAR accordingly.
1996ac_fn_c_check_member ()
1997{
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2000$as_echo_n "checking for $2.$3... " >&6; }
2001if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2002 $as_echo_n "(cached) " >&6
795ca3e5 2003else
f11781c5
AK
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h. */
2006$5
2007int
2008main ()
2009{
2010static $2 ac_aggr;
2011if (ac_aggr.$3)
2012return 0;
2013 ;
2014 return 0;
2015}
ad6254c5 2016_ACEOF
f11781c5
AK
2017if ac_fn_c_try_compile "$LINENO"; then :
2018 eval "$4=yes"
2019else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2021/* end confdefs.h. */
f11781c5
AK
2022$5
2023int
2024main ()
2025{
2026static $2 ac_aggr;
2027if (sizeof ac_aggr.$3)
2028return 0;
2029 ;
2030 return 0;
2031}
2032_ACEOF
2033if ac_fn_c_try_compile "$LINENO"; then :
2034 eval "$4=yes"
2035else
2036 eval "$4=no"
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041fi
2042eval ac_res=\$$4
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044$as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046
2047} # ac_fn_c_check_member
795ca3e5 2048
f11781c5
AK
2049# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2050# -------------------------------------------
2051# Tests whether TYPE exists after having included INCLUDES, setting cache
2052# variable VAR accordingly.
2053ac_fn_c_check_type ()
2054{
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057$as_echo_n "checking for $2... " >&6; }
2058if eval "test \"\${$3+set}\"" = set; then :
2059 $as_echo_n "(cached) " >&6
2060else
2061 eval "$3=no"
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063/* end confdefs.h. */
2064$4
ad6254c5
AK
2065int
2066main ()
2067{
f11781c5
AK
2068if (sizeof ($2))
2069 return 0;
ad6254c5
AK
2070 ;
2071 return 0;
2072}
2073_ACEOF
f11781c5
AK
2074if ac_fn_c_try_compile "$LINENO"; then :
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076/* end confdefs.h. */
2077$4
2078int
2079main ()
2080{
2081if (sizeof (($2)))
2082 return 0;
2083 ;
2084 return 0;
2085}
2086_ACEOF
2087if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2088
f11781c5
AK
2089else
2090 eval "$3=yes"
795ca3e5 2091fi
f11781c5
AK
2092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093fi
2094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2095fi
f11781c5
AK
2096eval ac_res=\$$3
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2098$as_echo "$ac_res" >&6; }
f11781c5 2099 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2100
f11781c5 2101} # ac_fn_c_check_type
ad6254c5 2102
f11781c5
AK
2103# ac_fn_c_find_intX_t LINENO BITS VAR
2104# -----------------------------------
2105# Finds a signed integer type with width BITS, setting cache variable VAR
2106# accordingly.
2107ac_fn_c_find_intX_t ()
2108{
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2111$as_echo_n "checking for int$2_t... " >&6; }
2112if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2113 $as_echo_n "(cached) " >&6
ad6254c5 2114else
f11781c5
AK
2115 eval "$3=no"
2116 # Order is important - never check a type that is potentially smaller
2117 # than half of the expected target width.
2118 for ac_type in int$2_t 'int' 'long int' \
2119 'long long int' 'short int' 'signed char'; do
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2121/* end confdefs.h. */
2122$ac_includes_default
f11781c5 2123 enum { N = $2 / 2 - 1 };
7a197a62
AK
2124int
2125main ()
2126{
f11781c5
AK
2127static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2128test_array [0] = 0
7a197a62 2129
f11781c5
AK
2130 ;
2131 return 0;
2132}
2133_ACEOF
2134if ac_fn_c_try_compile "$LINENO"; then :
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h. */
2137$ac_includes_default
2138 enum { N = $2 / 2 - 1 };
2139int
2140main ()
2141{
2142static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2143 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2144test_array [0] = 0
7a197a62
AK
2145
2146 ;
2147 return 0;
2148}
ad6254c5 2149_ACEOF
f11781c5 2150if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2151
f11781c5
AK
2152else
2153 case $ac_type in #(
2154 int$2_t) :
2155 eval "$3=yes" ;; #(
2156 *) :
2157 eval "$3=\$ac_type" ;;
2158esac
ad6254c5 2159fi
f11781c5 2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2161fi
f11781c5
AK
2162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2164
2165else
f11781c5 2166 break
ad6254c5 2167fi
f11781c5 2168 done
ad6254c5 2169fi
f11781c5
AK
2170eval ac_res=\$$3
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172$as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174
2175} # ac_fn_c_find_intX_t
2176
2177# ac_fn_c_find_uintX_t LINENO BITS VAR
2178# ------------------------------------
2179# Finds an unsigned integer type with width BITS, setting cache variable VAR
2180# accordingly.
2181ac_fn_c_find_uintX_t ()
2182{
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2185$as_echo_n "checking for uint$2_t... " >&6; }
2186if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2187 $as_echo_n "(cached) " >&6
ad6254c5 2188else
f11781c5
AK
2189 eval "$3=no"
2190 # Order is important - never check a type that is potentially smaller
2191 # than half of the expected target width.
2192 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2193 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2195/* end confdefs.h. */
7a197a62 2196$ac_includes_default
ad6254c5
AK
2197int
2198main ()
2199{
f11781c5
AK
2200static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2201test_array [0] = 0
ad6254c5 2202
f11781c5
AK
2203 ;
2204 return 0;
ad6254c5
AK
2205}
2206_ACEOF
f11781c5
AK
2207if ac_fn_c_try_compile "$LINENO"; then :
2208 case $ac_type in #(
2209 uint$2_t) :
2210 eval "$3=yes" ;; #(
2211 *) :
2212 eval "$3=\$ac_type" ;;
7a197a62 2213esac
ad6254c5 2214fi
f11781c5
AK
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2217
f11781c5
AK
2218else
2219 break
ad6254c5 2220fi
f11781c5 2221 done
ad6254c5 2222fi
f11781c5
AK
2223eval ac_res=\$$3
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225$as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2227
f11781c5 2228} # ac_fn_c_find_uintX_t
ad6254c5 2229
f11781c5
AK
2230# ac_fn_c_check_func LINENO FUNC VAR
2231# ----------------------------------
2232# Tests whether FUNC exists, setting the cache variable VAR accordingly
2233ac_fn_c_check_func ()
2234{
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237$as_echo_n "checking for $2... " >&6; }
2238if eval "test \"\${$3+set}\"" = set; then :
2239 $as_echo_n "(cached) " >&6
ad6254c5 2240else
f11781c5
AK
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242/* end confdefs.h. */
2243/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2245#define $2 innocuous_$2
ad6254c5 2246
f11781c5
AK
2247/* System header to define __stub macros and hopefully few prototypes,
2248 which can conflict with char $2 (); below.
2249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2250 <limits.h> exists even on freestanding compilers. */
ad6254c5 2251
f11781c5
AK
2252#ifdef __STDC__
2253# include <limits.h>
2254#else
2255# include <assert.h>
2256#endif
ad6254c5 2257
f11781c5
AK
2258#undef $2
2259
2260/* Override any GCC internal prototype to avoid an error.
2261 Use char because int might match the return type of a GCC
2262 builtin and then its argument prototype would still apply. */
2263#ifdef __cplusplus
2264extern "C"
2265#endif
2266char $2 ();
2267/* The GNU C library defines this for functions which it implements
2268 to always fail with ENOSYS. Some functions are actually named
2269 something starting with __ and the normal name is an alias. */
2270#if defined __stub_$2 || defined __stub___$2
2271choke me
2272#endif
ad6254c5 2273
ad6254c5
AK
2274int
2275main ()
2276{
f11781c5 2277return $2 ();
ad6254c5
AK
2278 ;
2279 return 0;
2280}
2281_ACEOF
f11781c5
AK
2282if ac_fn_c_try_link "$LINENO"; then :
2283 eval "$3=yes"
ad6254c5 2284else
f11781c5 2285 eval "$3=no"
ad6254c5 2286fi
f11781c5
AK
2287rm -f core conftest.err conftest.$ac_objext \
2288 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2289fi
f11781c5
AK
2290eval ac_res=\$$3
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292$as_echo "$ac_res" >&6; }
2293 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2294
f11781c5
AK
2295} # ac_fn_c_check_func
2296cat >config.log <<_ACEOF
2297This file contains any messages produced by compilers while
2298running configure, to aid debugging if configure makes a mistake.
7a197a62 2299
f11781c5
AK
2300It was created by $as_me, which was
2301generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2302
f11781c5 2303 $ $0 $@
ad6254c5 2304
ad6254c5 2305_ACEOF
f11781c5
AK
2306exec 5>>config.log
2307{
2308cat <<_ASUNAME
2309## --------- ##
2310## Platform. ##
2311## --------- ##
ad6254c5 2312
f11781c5
AK
2313hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2314uname -m = `(uname -m) 2>/dev/null || echo unknown`
2315uname -r = `(uname -r) 2>/dev/null || echo unknown`
2316uname -s = `(uname -s) 2>/dev/null || echo unknown`
2317uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2318
f11781c5
AK
2319/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2320/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2321
f11781c5
AK
2322/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2323/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2324/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2325/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2326/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2327/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2328/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2329
2330_ASUNAME
2331
2332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333for as_dir in $PATH
2334do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 $as_echo "PATH: $as_dir"
2338 done
2339IFS=$as_save_IFS
2340
2341} >&5
2342
2343cat >&5 <<_ACEOF
2344
2345
2346## ----------- ##
2347## Core tests. ##
2348## ----------- ##
ad6254c5 2349
ad6254c5 2350_ACEOF
ad6254c5 2351
7a197a62 2352
f11781c5
AK
2353# Keep a trace of the command line.
2354# Strip out --no-create and --no-recursion so they do not pile up.
2355# Strip out --silent because we don't want to record it for future runs.
2356# Also quote any args containing shell meta-characters.
2357# Make two passes to allow for proper duplicate-argument suppression.
2358ac_configure_args=
2359ac_configure_args0=
2360ac_configure_args1=
2361ac_must_keep_next=false
2362for ac_pass in 1 2
2363do
2364 for ac_arg
2365 do
2366 case $ac_arg in
2367 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2369 | -silent | --silent | --silen | --sile | --sil)
2370 continue ;;
2371 *\'*)
2372 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2373 esac
2374 case $ac_pass in
2375 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2376 2)
2377 as_fn_append ac_configure_args1 " '$ac_arg'"
2378 if test $ac_must_keep_next = true; then
2379 ac_must_keep_next=false # Got value, back to normal.
2380 else
2381 case $ac_arg in
2382 *=* | --config-cache | -C | -disable-* | --disable-* \
2383 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2384 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2385 | -with-* | --with-* | -without-* | --without-* | --x)
2386 case "$ac_configure_args0 " in
2387 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2388 esac
2389 ;;
2390 -* ) ac_must_keep_next=true ;;
2391 esac
2392 fi
2393 as_fn_append ac_configure_args " '$ac_arg'"
2394 ;;
2395 esac
2396 done
2397done
2398{ ac_configure_args0=; unset ac_configure_args0;}
2399{ ac_configure_args1=; unset ac_configure_args1;}
2400
2401# When interrupted or exit'd, cleanup temporary files, and complete
2402# config.log. We remove comments because anyway the quotes in there
2403# would cause problems or look ugly.
2404# WARNING: Use '\'' to represent an apostrophe within the trap.
2405# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2406trap 'exit_status=$?
2407 # Save into config.log some information that might help in debugging.
2408 {
2409 echo
2410
2411 $as_echo "## ---------------- ##
2412## Cache variables. ##
2413## ---------------- ##"
2414 echo
2415 # The following way of writing the cache mishandles newlines in values,
2416(
2417 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2418 eval ac_val=\$$ac_var
2419 case $ac_val in #(
2420 *${as_nl}*)
2421 case $ac_var in #(
2422 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2423$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2424 esac
2425 case $ac_var in #(
2426 _ | IFS | as_nl) ;; #(
2427 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2428 *) { eval $ac_var=; unset $ac_var;} ;;
2429 esac ;;
2430 esac
2431 done
2432 (set) 2>&1 |
2433 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2434 *${as_nl}ac_space=\ *)
2435 sed -n \
2436 "s/'\''/'\''\\\\'\'''\''/g;
2437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2438 ;; #(
2439 *)
2440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2441 ;;
2442 esac |
2443 sort
2444)
2445 echo
2446
2447 $as_echo "## ----------------- ##
2448## Output variables. ##
2449## ----------------- ##"
2450 echo
2451 for ac_var in $ac_subst_vars
2452 do
2453 eval ac_val=\$$ac_var
2454 case $ac_val in
2455 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2456 esac
2457 $as_echo "$ac_var='\''$ac_val'\''"
2458 done | sort
2459 echo
2460
2461 if test -n "$ac_subst_files"; then
2462 $as_echo "## ------------------- ##
2463## File substitutions. ##
2464## ------------------- ##"
2465 echo
2466 for ac_var in $ac_subst_files
2467 do
2468 eval ac_val=\$$ac_var
2469 case $ac_val in
2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471 esac
2472 $as_echo "$ac_var='\''$ac_val'\''"
2473 done | sort
2474 echo
2475 fi
2476
2477 if test -s confdefs.h; then
2478 $as_echo "## ----------- ##
2479## confdefs.h. ##
2480## ----------- ##"
2481 echo
2482 cat confdefs.h
2483 echo
2484 fi
2485 test "$ac_signal" != 0 &&
2486 $as_echo "$as_me: caught signal $ac_signal"
2487 $as_echo "$as_me: exit $exit_status"
2488 } >&5
2489 rm -f core *.core core.conftest.* &&
2490 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2491 exit $exit_status
2492' 0
2493for ac_signal in 1 2 13 15; do
2494 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2495done
2496ac_signal=0
2497
2498# confdefs.h avoids OS command line length limits that DEFS can exceed.
2499rm -f -r conftest* confdefs.h
7a197a62 2500
f11781c5 2501$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2502
f11781c5 2503# Predefined preprocessor variables.
ad6254c5
AK
2504
2505cat >>confdefs.h <<_ACEOF
f11781c5 2506#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2507_ACEOF
2508
f11781c5
AK
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2511_ACEOF
ad6254c5 2512
f11781c5
AK
2513cat >>confdefs.h <<_ACEOF
2514#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2515_ACEOF
f11781c5
AK
2516
2517cat >>confdefs.h <<_ACEOF
2518#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2519_ACEOF
ad6254c5 2520
f11781c5
AK
2521cat >>confdefs.h <<_ACEOF
2522#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2523_ACEOF
7a197a62 2524
f11781c5
AK
2525cat >>confdefs.h <<_ACEOF
2526#define PACKAGE_URL "$PACKAGE_URL"
2527_ACEOF
ad6254c5 2528
7a197a62 2529
f11781c5
AK
2530# Let the site file select an alternate cache file if it wants to.
2531# Prefer an explicitly selected file to automatically selected ones.
2532ac_site_file1=NONE
2533ac_site_file2=NONE
2534if test -n "$CONFIG_SITE"; then
2535 # We do not want a PATH search for config.site.
2536 case $CONFIG_SITE in #((
2537 -*) ac_site_file1=./$CONFIG_SITE;;
2538 */*) ac_site_file1=$CONFIG_SITE;;
2539 *) ac_site_file1=./$CONFIG_SITE;;
2540 esac
2541elif test "x$prefix" != xNONE; then
2542 ac_site_file1=$prefix/share/config.site
2543 ac_site_file2=$prefix/etc/config.site
ad6254c5 2544else
f11781c5
AK
2545 ac_site_file1=$ac_default_prefix/share/config.site
2546 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2547fi
f11781c5
AK
2548for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2549do
2550 test "x$ac_site_file" = xNONE && continue
2551 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2553$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2554 sed 's/^/| /' "$ac_site_file" >&5
2555 . "$ac_site_file" \
2556 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558as_fn_error $? "failed to load site script $ac_site_file
2559See \`config.log' for more details" "$LINENO" 5; }
2560 fi
2561done
ad6254c5 2562
f11781c5
AK
2563if test -r "$cache_file"; then
2564 # Some versions of bash will fail to source /dev/null (special files
2565 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2566 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2568$as_echo "$as_me: loading cache $cache_file" >&6;}
2569 case $cache_file in
2570 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2571 *) . "./$cache_file";;
2572 esac
2573 fi
2574else
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2576$as_echo "$as_me: creating cache $cache_file" >&6;}
2577 >$cache_file
ad6254c5 2578fi
ad6254c5 2579
f11781c5
AK
2580as_fn_append ac_header_list " stdlib.h"
2581as_fn_append ac_header_list " unistd.h"
2582as_fn_append ac_header_list " sys/param.h"
2583# Check that the precious variables saved in the cache have kept the same
2584# value.
2585ac_cache_corrupted=false
2586for ac_var in $ac_precious_vars; do
2587 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2588 eval ac_new_set=\$ac_env_${ac_var}_set
2589 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2590 eval ac_new_val=\$ac_env_${ac_var}_value
2591 case $ac_old_set,$ac_new_set in
2592 set,)
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2594$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2595 ac_cache_corrupted=: ;;
2596 ,set)
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2598$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2599 ac_cache_corrupted=: ;;
2600 ,);;
2601 *)
2602 if test "x$ac_old_val" != "x$ac_new_val"; then
2603 # differences in whitespace do not lead to failure.
2604 ac_old_val_w=`echo x $ac_old_val`
2605 ac_new_val_w=`echo x $ac_new_val`
2606 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2608$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2609 ac_cache_corrupted=:
2610 else
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2612$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2613 eval $ac_var=\$ac_old_val
2614 fi
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2616$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2618$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2619 fi;;
2620 esac
2621 # Pass precious variables to config.status.
2622 if test "$ac_new_set" = set; then
2623 case $ac_new_val in
2624 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2625 *) ac_arg=$ac_var=$ac_new_val ;;
2626 esac
2627 case " $ac_configure_args " in
2628 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2629 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2630 esac
2631 fi
2632done
2633if $ac_cache_corrupted; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2637$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2638 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2639fi
f11781c5
AK
2640## -------------------- ##
2641## Main body of script. ##
2642## -------------------- ##
ad6254c5 2643
f11781c5
AK
2644ac_ext=c
2645ac_cpp='$CPP $CPPFLAGS'
2646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2648ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2649
ad6254c5 2650
ad6254c5 2651
f11781c5 2652ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2653
2654
f11781c5
AK
2655################################################################################
2656ac_aux_dir=
2657for ac_dir in autoconf "$srcdir"/autoconf; do
2658 if test -f "$ac_dir/install-sh"; then
2659 ac_aux_dir=$ac_dir
2660 ac_install_sh="$ac_aux_dir/install-sh -c"
2661 break
2662 elif test -f "$ac_dir/install.sh"; then
2663 ac_aux_dir=$ac_dir
2664 ac_install_sh="$ac_aux_dir/install.sh -c"
2665 break
2666 elif test -f "$ac_dir/shtool"; then
2667 ac_aux_dir=$ac_dir
2668 ac_install_sh="$ac_aux_dir/shtool install -c"
2669 break
2670 fi
2671done
2672if test -z "$ac_aux_dir"; then
2673 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2674fi
ad6254c5 2675
f11781c5
AK
2676# These three variables are undocumented and unsupported,
2677# and are intended to be withdrawn in a future Autoconf release.
2678# They can cause serious problems if a builder's source tree is in a directory
2679# whose full name contains unusual characters.
2680ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2681ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2682ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2683
ad6254c5 2684
8a2fc586 2685
f11781c5
AK
2686################################################################################
2687# Make sure we can run config.sub.
2688$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2689 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2690
f11781c5
AK
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2692$as_echo_n "checking build system type... " >&6; }
2693if test "${ac_cv_build+set}" = set; then :
2694 $as_echo_n "(cached) " >&6
2695else
2696 ac_build_alias=$build_alias
2697test "x$ac_build_alias" = x &&
2698 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2699test "x$ac_build_alias" = x &&
2700 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2701ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2702 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2703
2704fi
f11781c5
AK
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2706$as_echo "$ac_cv_build" >&6; }
2707case $ac_cv_build in
2708*-*-*) ;;
2709*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2710esac
2711build=$ac_cv_build
2712ac_save_IFS=$IFS; IFS='-'
2713set x $ac_cv_build
2714shift
2715build_cpu=$1
2716build_vendor=$2
2717shift; shift
2718# Remember, the first character of IFS is used to create $*,
2719# except with old shells:
2720build_os=$*
2721IFS=$ac_save_IFS
2722case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2723
2724
f11781c5
AK
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2726$as_echo_n "checking host system type... " >&6; }
2727if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2728 $as_echo_n "(cached) " >&6
ad6254c5 2729else
f11781c5
AK
2730 if test "x$host_alias" = x; then
2731 ac_cv_host=$ac_cv_build
ad6254c5 2732else
f11781c5
AK
2733 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2735fi
ad6254c5 2736
f11781c5
AK
2737fi
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2739$as_echo "$ac_cv_host" >&6; }
2740case $ac_cv_host in
2741*-*-*) ;;
2742*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2743esac
2744host=$ac_cv_host
2745ac_save_IFS=$IFS; IFS='-'
2746set x $ac_cv_host
2747shift
2748host_cpu=$1
2749host_vendor=$2
2750shift; shift
2751# Remember, the first character of IFS is used to create $*,
2752# except with old shells:
2753host_os=$*
2754IFS=$ac_save_IFS
2755case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2756
ad6254c5 2757
f11781c5
AK
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2759$as_echo_n "checking target system type... " >&6; }
2760if test "${ac_cv_target+set}" = set; then :
2761 $as_echo_n "(cached) " >&6
ad6254c5 2762else
f11781c5
AK
2763 if test "x$target_alias" = x; then
2764 ac_cv_target=$ac_cv_host
2765else
2766 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2767 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2768fi
7a197a62 2769
ad6254c5 2770fi
f11781c5
AK
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2772$as_echo "$ac_cv_target" >&6; }
2773case $ac_cv_target in
2774*-*-*) ;;
2775*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2776esac
f11781c5
AK
2777target=$ac_cv_target
2778ac_save_IFS=$IFS; IFS='-'
2779set x $ac_cv_target
2780shift
2781target_cpu=$1
2782target_vendor=$2
2783shift; shift
2784# Remember, the first character of IFS is used to create $*,
2785# except with old shells:
2786target_os=$*
2787IFS=$ac_save_IFS
2788case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2789
ad6254c5 2790
f11781c5
AK
2791# The aliases save the names the user supplied, while $host etc.
2792# will get canonicalized.
2793test -n "$target_alias" &&
2794 test "$program_prefix$program_suffix$program_transform_name" = \
2795 NONENONEs,x,x, &&
2796 program_prefix=${target_alias}-
ad6254c5 2797
f11781c5
AK
2798case "$host_os" in
2799 linux*)
2800 CFLAGS="$CFLAGS"
2801 COPTIMISE_FLAG="-O2"
2802 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2803 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2804 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2805 LDDEPS="$LDDEPS .export.sym"
2806 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2807 LIB_SUFFIX=so
2808 DEVMAPPER=yes
2809 ODIRECT=yes
2810 DM_IOCTLS=yes
2811 SELINUX=yes
2812 CLUSTER=internal
2813 FSADM=yes
2814 ;;
2815 darwin*)
2816 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2817 COPTIMISE_FLAG="-O2"
2818 CLDFLAGS="$CLDFLAGS"
2819 CLDWHOLEARCHIVE="-all_load"
2820 CLDNOWHOLEARCHIVE=
2821 LIB_SUFFIX=dylib
2822 DEVMAPPER=yes
2823 ODIRECT=no
2824 DM_IOCTLS=no
2825 SELINUX=no
2826 CLUSTER=none
2827 FSADM=no
2828 ;;
2829esac
ad6254c5 2830
f11781c5
AK
2831################################################################################
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2833$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2834if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2835 $as_echo_n "(cached) " >&6
ad6254c5 2836else
f11781c5
AK
2837 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2838 for ac_i in 1 2 3 4 5 6 7; do
2839 ac_script="$ac_script$as_nl$ac_script"
2840 done
2841 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2842 { ac_script=; unset ac_script;}
2843 if test -z "$SED"; then
2844 ac_path_SED_found=false
2845 # Loop through the user's path and test for each of PROGNAME-LIST
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_prog in sed gsed; do
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2854 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2855# Check for GNU ac_path_SED and select it if it is found.
2856 # Check for GNU $ac_path_SED
2857case `"$ac_path_SED" --version 2>&1` in
2858*GNU*)
2859 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2860*)
2861 ac_count=0
2862 $as_echo_n 0123456789 >"conftest.in"
2863 while :
2864 do
2865 cat "conftest.in" "conftest.in" >"conftest.tmp"
2866 mv "conftest.tmp" "conftest.in"
2867 cp "conftest.in" "conftest.nl"
2868 $as_echo '' >> "conftest.nl"
2869 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2871 as_fn_arith $ac_count + 1 && ac_count=$as_val
2872 if test $ac_count -gt ${ac_path_SED_max-0}; then
2873 # Best one so far, save it but keep looking for a better one
2874 ac_cv_path_SED="$ac_path_SED"
2875 ac_path_SED_max=$ac_count
2876 fi
2877 # 10*(2^10) chars as input seems more than enough
2878 test $ac_count -gt 10 && break
2879 done
2880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2881esac
ad6254c5 2882
f11781c5
AK
2883 $ac_path_SED_found && break 3
2884 done
2885 done
2886 done
2887IFS=$as_save_IFS
2888 if test -z "$ac_cv_path_SED"; then
2889 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2890 fi
2891else
2892 ac_cv_path_SED=$SED
ad6254c5 2893fi
7a197a62 2894
f11781c5
AK
2895fi
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2897$as_echo "$ac_cv_path_SED" >&6; }
2898 SED="$ac_cv_path_SED"
2899 rm -f conftest.sed
ad6254c5 2900
f11781c5
AK
2901for ac_prog in gawk mawk nawk awk
2902do
2903 # Extract the first word of "$ac_prog", so it can be a program name with args.
2904set dummy $ac_prog; ac_word=$2
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906$as_echo_n "checking for $ac_word... " >&6; }
2907if test "${ac_cv_prog_AWK+set}" = set; then :
2908 $as_echo_n "(cached) " >&6
ad6254c5 2909else
f11781c5
AK
2910 if test -n "$AWK"; then
2911 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2912else
2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_AWK="$ac_prog"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924done
2925 done
2926IFS=$as_save_IFS
ad6254c5 2927
ad6254c5 2928fi
ad6254c5 2929fi
f11781c5
AK
2930AWK=$ac_cv_prog_AWK
2931if test -n "$AWK"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2933$as_echo "$AWK" >&6; }
2934else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936$as_echo "no" >&6; }
ad6254c5 2937fi
ad6254c5 2938
ad6254c5 2939
f11781c5 2940 test -n "$AWK" && break
ad6254c5
AK
2941done
2942
f11781c5
AK
2943ac_ext=c
2944ac_cpp='$CPP $CPPFLAGS'
2945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2950set dummy ${ac_tool_prefix}gcc; ac_word=$2
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952$as_echo_n "checking for $ac_word... " >&6; }
2953if test "${ac_cv_prog_CC+set}" = set; then :
ec6a6fbe 2954 $as_echo_n "(cached) " >&6
ad6254c5 2955else
f11781c5
AK
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 2958else
f11781c5
AK
2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960for as_dir in $PATH
2961do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2969 fi
2970done
2971 done
2972IFS=$as_save_IFS
ad6254c5 2973
ad6254c5 2974fi
ad6254c5 2975fi
f11781c5
AK
2976CC=$ac_cv_prog_CC
2977if test -n "$CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979$as_echo "$CC" >&6; }
2980else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; }
ad6254c5 2983fi
ad6254c5 2984
f11781c5
AK
2985
2986fi
2987if test -z "$ac_cv_prog_CC"; then
2988 ac_ct_CC=$CC
2989 # Extract the first word of "gcc", so it can be a program name with args.
2990set dummy gcc; ac_word=$2
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992$as_echo_n "checking for $ac_word... " >&6; }
2993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 2994 $as_echo_n "(cached) " >&6
ad6254c5 2995else
f11781c5
AK
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 2998else
f11781c5
AK
2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH
3001do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_ac_ct_CC="gcc"
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3009 fi
3010done
3011 done
3012IFS=$as_save_IFS
d911ec67 3013
d911ec67 3014fi
d911ec67 3015fi
f11781c5
AK
3016ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017if test -n "$ac_ct_CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3019$as_echo "$ac_ct_CC" >&6; }
3020else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022$as_echo "no" >&6; }
d911ec67 3023fi
d911ec67 3024
f11781c5
AK
3025 if test "x$ac_ct_CC" = x; then
3026 CC=""
3027 else
3028 case $cross_compiling:$ac_tool_warned in
3029yes:)
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3032ac_tool_warned=yes ;;
3033esac
3034 CC=$ac_ct_CC
3035 fi
3036else
3037 CC="$ac_cv_prog_CC"
d911ec67 3038fi
d911ec67 3039
f11781c5
AK
3040if test -z "$CC"; then
3041 if test -n "$ac_tool_prefix"; then
3042 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3043set dummy ${ac_tool_prefix}cc; ac_word=$2
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045$as_echo_n "checking for $ac_word... " >&6; }
3046if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67 3047 $as_echo_n "(cached) " >&6
d911ec67 3048else
f11781c5
AK
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 3051else
f11781c5
AK
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_CC="${ac_tool_prefix}cc"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3062 fi
3063done
3064 done
3065IFS=$as_save_IFS
d911ec67 3066
f11781c5
AK
3067fi
3068fi
3069CC=$ac_cv_prog_CC
3070if test -n "$CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072$as_echo "$CC" >&6; }
3073else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075$as_echo "no" >&6; }
d911ec67
AK
3076fi
3077
d911ec67 3078
f11781c5
AK
3079 fi
3080fi
3081if test -z "$CC"; then
3082 # Extract the first word of "cc", so it can be a program name with args.
3083set dummy cc; ac_word=$2
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085$as_echo_n "checking for $ac_word... " >&6; }
3086if test "${ac_cv_prog_CC+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
d911ec67 3088else
f11781c5
AK
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3091else
3092 ac_prog_rejected=no
3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3101 ac_prog_rejected=yes
3102 continue
3103 fi
3104 ac_cv_prog_CC="cc"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 break 2
3107 fi
3108done
3109 done
3110IFS=$as_save_IFS
d911ec67 3111
f11781c5
AK
3112if test $ac_prog_rejected = yes; then
3113 # We found a bogon in the path, so make sure we never use it.
3114 set dummy $ac_cv_prog_CC
3115 shift
3116 if test $# != 0; then
3117 # We chose a different compiler from the bogus one.
3118 # However, it has the same basename, so the bogon will be chosen
3119 # first if we set CC to just the basename; use the full file name.
3120 shift
3121 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3122 fi
3123fi
3124fi
3125fi
3126CC=$ac_cv_prog_CC
3127if test -n "$CC"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129$as_echo "$CC" >&6; }
3130else
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132$as_echo "no" >&6; }
d911ec67
AK
3133fi
3134
d911ec67 3135
f11781c5
AK
3136fi
3137if test -z "$CC"; then
3138 if test -n "$ac_tool_prefix"; then
3139 for ac_prog in cl.exe
3140 do
3141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3142set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144$as_echo_n "checking for $ac_word... " >&6; }
3145if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3146 $as_echo_n "(cached) " >&6
3147else
f11781c5
AK
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3150else
3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152for as_dir in $PATH
3153do
3154 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 break 2
3161 fi
3162done
3163 done
3164IFS=$as_save_IFS
d911ec67
AK
3165
3166fi
f11781c5
AK
3167fi
3168CC=$ac_cv_prog_CC
3169if test -n "$CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171$as_echo "$CC" >&6; }
3172else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174$as_echo "no" >&6; }
d911ec67
AK
3175fi
3176
d911ec67 3177
f11781c5
AK
3178 test -n "$CC" && break
3179 done
3180fi
3181if test -z "$CC"; then
3182 ac_ct_CC=$CC
3183 for ac_prog in cl.exe
3184do
3185 # Extract the first word of "$ac_prog", so it can be a program name with args.
3186set dummy $ac_prog; ac_word=$2
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188$as_echo_n "checking for $ac_word... " >&6; }
3189if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d911ec67
AK
3190 $as_echo_n "(cached) " >&6
3191else
f11781c5
AK
3192 if test -n "$ac_ct_CC"; then
3193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3194else
f11781c5
AK
3195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196for as_dir in $PATH
3197do
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202 ac_cv_prog_ac_ct_CC="$ac_prog"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 break 2
3205 fi
3206done
3207 done
3208IFS=$as_save_IFS
ad6254c5 3209
ad6254c5 3210fi
ad6254c5 3211fi
f11781c5
AK
3212ac_ct_CC=$ac_cv_prog_ac_ct_CC
3213if test -n "$ac_ct_CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3215$as_echo "$ac_ct_CC" >&6; }
3216else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218$as_echo "no" >&6; }
ad6254c5 3219fi
ad6254c5 3220
d911ec67 3221
f11781c5
AK
3222 test -n "$ac_ct_CC" && break
3223done
d911ec67 3224
f11781c5
AK
3225 if test "x$ac_ct_CC" = x; then
3226 CC=""
3227 else
3228 case $cross_compiling:$ac_tool_warned in
3229yes:)
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232ac_tool_warned=yes ;;
d911ec67 3233esac
f11781c5
AK
3234 CC=$ac_ct_CC
3235 fi
3236fi
ad6254c5
AK
3237
3238fi
d911ec67
AK
3239
3240
f11781c5
AK
3241test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243as_fn_error $? "no acceptable C compiler found in \$PATH
3244See \`config.log' for more details" "$LINENO" 5; }
3245
3246# Provide some information about the compiler.
3247$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3248set X $ac_compile
3249ac_compiler=$2
3250for ac_option in --version -v -V -qversion; do
3251 { { ac_try="$ac_compiler $ac_option >&5"
3252case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255esac
3256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257$as_echo "$ac_try_echo"; } >&5
3258 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3259 ac_status=$?
3260 if test -s conftest.err; then
3261 sed '10a\
3262... rest of stderr output deleted ...
3263 10q' conftest.err >conftest.er1
3264 cat conftest.er1 >&5
3265 fi
3266 rm -f conftest.er1 conftest.err
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }
3269done
ad6254c5 3270
f11781c5 3271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3272/* end confdefs.h. */
f11781c5 3273
ad6254c5
AK
3274int
3275main ()
3276{
f11781c5 3277
ad6254c5
AK
3278 ;
3279 return 0;
3280}
3281_ACEOF
f11781c5
AK
3282ac_clean_files_save=$ac_clean_files
3283ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3284# Try to create an executable without -o first, disregard a.out.
3285# It will help us diagnose broken compilers, and finding out an intuition
3286# of exeext.
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3288$as_echo_n "checking whether the C compiler works... " >&6; }
3289ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3290
3291# The possible output files:
3292ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3293
3294ac_rmfiles=
3295for ac_file in $ac_files
3296do
3297 case $ac_file in
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3300 esac
3301done
3302rm -f $ac_rmfiles
3303
3304if { { ac_try="$ac_link_default"
7a197a62
AK
3305case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308esac
f11781c5
AK
3309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310$as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_link_default") 2>&5
ad6254c5 3312 ac_status=$?
f11781c5
AK
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3316# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3317# in a Makefile. We should not override ac_cv_exeext if it was cached,
3318# so that the user can short-circuit this test for compilers unknown to
3319# Autoconf.
3320for ac_file in $ac_files ''
3321do
3322 test -f "$ac_file" || continue
3323 case $ac_file in
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3325 ;;
3326 [ab].out )
3327 # We found the default executable, but exeext='' is most
3328 # certainly right.
3329 break;;
3330 *.* )
3331 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3332 then :; else
3333 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334 fi
3335 # We set ac_cv_exeext here because the later test for it is not
3336 # safe: cross compilers may not add the suffix if given an `-o'
3337 # argument, so we may need to know it at that point already.
3338 # Even if this section looks crufty: it has the advantage of
3339 # actually working.
3340 break;;
3341 * )
3342 break;;
3343 esac
3344done
3345test "$ac_cv_exeext" = no && ac_cv_exeext=
3346
ad6254c5 3347else
f11781c5
AK
3348 ac_file=''
3349fi
3350if test -z "$ac_file"; then :
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352$as_echo "no" >&6; }
ec6a6fbe 3353$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
f11781c5
AK
3356{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358as_fn_error 77 "C compiler cannot create executables
3359See \`config.log' for more details" "$LINENO" 5; }
3360else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3362$as_echo "yes" >&6; }
ad6254c5 3363fi
f11781c5
AK
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3365$as_echo_n "checking for C compiler default output file name... " >&6; }
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3367$as_echo "$ac_file" >&6; }
3368ac_exeext=$ac_cv_exeext
7a197a62 3369
f11781c5
AK
3370rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3371ac_clean_files=$ac_clean_files_save
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3373$as_echo_n "checking for suffix of executables... " >&6; }
3374if { { ac_try="$ac_link"
3375case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
8a2fc586 3378esac
f11781c5
AK
3379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380$as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_link") 2>&5
3382 ac_status=$?
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }; then :
3385 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3386# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3387# work properly (i.e., refer to `conftest.exe'), while it won't with
3388# `rm'.
3389for ac_file in conftest.exe conftest conftest.*; do
3390 test -f "$ac_file" || continue
3391 case $ac_file in
3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3393 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3394 break;;
3395 * ) break;;
3396 esac
3397done
3398else
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3402See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3403fi
f11781c5
AK
3404rm -f conftest conftest$ac_cv_exeext
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3406$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3407
f11781c5
AK
3408rm -f conftest.$ac_ext
3409EXEEXT=$ac_cv_exeext
3410ac_exeext=$EXEEXT
3411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3412/* end confdefs.h. */
f11781c5 3413#include <stdio.h>
ad6254c5 3414int
f11781c5 3415main ()
ad6254c5 3416{
f11781c5
AK
3417FILE *f = fopen ("conftest.out", "w");
3418 return ferror (f) || fclose (f) != 0;
ad6254c5 3419
f11781c5 3420 ;
7a197a62 3421 return 0;
ad6254c5 3422}
ad6254c5 3423_ACEOF
f11781c5
AK
3424ac_clean_files="$ac_clean_files conftest.out"
3425# Check that the compiler produces executables we can run. If not, either
3426# the compiler is broken, or we cross compile.
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3428$as_echo_n "checking whether we are cross compiling... " >&6; }
3429if test "$cross_compiling" != yes; then
3430 { { ac_try="$ac_link"
7a197a62
AK
3431case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434esac
f11781c5
AK
3435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436$as_echo "$ac_try_echo"; } >&5
7a197a62 3437 (eval "$ac_link") 2>&5
ad6254c5 3438 ac_status=$?
f11781c5
AK
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }
3441 if { ac_try='./conftest$ac_cv_exeext'
3442 { { case "(($ac_try" in
7a197a62
AK
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445esac
f11781c5
AK
3446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447$as_echo "$ac_try_echo"; } >&5
7a197a62 3448 (eval "$ac_try") 2>&5
ad6254c5 3449 ac_status=$?
f11781c5
AK
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }; }; then
3452 cross_compiling=no
3453 else
3454 if test "$cross_compiling" = maybe; then
3455 cross_compiling=yes
3456 else
3457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459as_fn_error $? "cannot run C compiled programs.
3460If you meant to cross compile, use \`--host'.
3461See \`config.log' for more details" "$LINENO" 5; }
3462 fi
3463 fi
3464fi
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3466$as_echo "$cross_compiling" >&6; }
3467
3468rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3469ac_clean_files=$ac_clean_files_save
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3471$as_echo_n "checking for suffix of object files... " >&6; }
3472if test "${ac_cv_objext+set}" = set; then :
3473 $as_echo_n "(cached) " >&6
3474else
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476/* end confdefs.h. */
ad6254c5
AK
3477
3478int
3479main ()
3480{
f11781c5 3481
ad6254c5
AK
3482 ;
3483 return 0;
3484}
3485_ACEOF
f11781c5
AK
3486rm -f conftest.o conftest.obj
3487if { { ac_try="$ac_compile"
7a197a62
AK
3488case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491esac
f11781c5
AK
3492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493$as_echo "$ac_try_echo"; } >&5
3494 (eval "$ac_compile") 2>&5
ad6254c5 3495 ac_status=$?
f11781c5
AK
3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497 test $ac_status = 0; }; then :
3498 for ac_file in conftest.o conftest.obj conftest.*; do
3499 test -f "$ac_file" || continue;
3500 case $ac_file in
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3502 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3503 break;;
3504 esac
3505done
ad6254c5 3506else
ec6a6fbe 3507 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
f11781c5
AK
3510{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512as_fn_error $? "cannot compute suffix of object files: cannot compile
3513See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3514fi
f11781c5 3515rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3516fi
f11781c5
AK
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3518$as_echo "$ac_cv_objext" >&6; }
3519OBJEXT=$ac_cv_objext
3520ac_objext=$OBJEXT
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3522$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3523if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3524 $as_echo_n "(cached) " >&6
ad6254c5 3525else
f11781c5 3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3527/* end confdefs.h. */
3528
ad6254c5
AK
3529int
3530main ()
3531{
f11781c5
AK
3532#ifndef __GNUC__
3533 choke me
3534#endif
3535
ad6254c5
AK
3536 ;
3537 return 0;
3538}
3539_ACEOF
f11781c5
AK
3540if ac_fn_c_try_compile "$LINENO"; then :
3541 ac_compiler_gnu=yes
ad6254c5 3542else
f11781c5 3543 ac_compiler_gnu=no
ad6254c5 3544fi
f11781c5
AK
3545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3547
d0191583 3548fi
f11781c5
AK
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3550$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3551if test $ac_compiler_gnu = yes; then
3552 GCC=yes
d0191583 3553else
f11781c5 3554 GCC=
d0191583 3555fi
f11781c5
AK
3556ac_test_CFLAGS=${CFLAGS+set}
3557ac_save_CFLAGS=$CFLAGS
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3559$as_echo_n "checking whether $CC accepts -g... " >&6; }
3560if test "${ac_cv_prog_cc_g+set}" = set; then :
3561 $as_echo_n "(cached) " >&6
3562else
3563 ac_save_c_werror_flag=$ac_c_werror_flag
3564 ac_c_werror_flag=yes
3565 ac_cv_prog_cc_g=no
3566 CFLAGS="-g"
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h. */
72b2cb61 3569
f11781c5
AK
3570int
3571main ()
3572{
72b2cb61 3573
f11781c5
AK
3574 ;
3575 return 0;
3576}
3577_ACEOF
3578if ac_fn_c_try_compile "$LINENO"; then :
3579 ac_cv_prog_cc_g=yes
3580else
3581 CFLAGS=""
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583/* end confdefs.h. */
ad6254c5 3584
f11781c5
AK
3585int
3586main ()
3587{
ad6254c5 3588
f11781c5
AK
3589 ;
3590 return 0;
3591}
d0191583 3592_ACEOF
f11781c5
AK
3593if ac_fn_c_try_compile "$LINENO"; then :
3594
3595else
3596 ac_c_werror_flag=$ac_save_c_werror_flag
3597 CFLAGS="-g"
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3599/* end confdefs.h. */
7a197a62 3600
f11781c5
AK
3601int
3602main ()
3603{
ad6254c5 3604
f11781c5
AK
3605 ;
3606 return 0;
3607}
3608_ACEOF
3609if ac_fn_c_try_compile "$LINENO"; then :
3610 ac_cv_prog_cc_g=yes
3611fi
3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613fi
3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615fi
3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 ac_c_werror_flag=$ac_save_c_werror_flag
3618fi
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3620$as_echo "$ac_cv_prog_cc_g" >&6; }
3621if test "$ac_test_CFLAGS" = set; then
3622 CFLAGS=$ac_save_CFLAGS
3623elif test $ac_cv_prog_cc_g = yes; then
3624 if test "$GCC" = yes; then
3625 CFLAGS="-g -O2"
3626 else
3627 CFLAGS="-g"
3628 fi
3629else
3630 if test "$GCC" = yes; then
3631 CFLAGS="-O2"
3632 else
3633 CFLAGS=
3634 fi
3635fi
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3637$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3638if test "${ac_cv_prog_cc_c89+set}" = set; then :
3639 $as_echo_n "(cached) " >&6
3640else
3641 ac_cv_prog_cc_c89=no
3642ac_save_CC=$CC
3643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644/* end confdefs.h. */
3645#include <stdarg.h>
3646#include <stdio.h>
3647#include <sys/types.h>
3648#include <sys/stat.h>
3649/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3650struct buf { int x; };
3651FILE * (*rcsopen) (struct buf *, struct stat *, int);
3652static char *e (p, i)
3653 char **p;
3654 int i;
3655{
3656 return p[i];
3657}
3658static char *f (char * (*g) (char **, int), char **p, ...)
3659{
3660 char *s;
3661 va_list v;
3662 va_start (v,p);
3663 s = g (p, va_arg (v,int));
3664 va_end (v);
3665 return s;
3666}
ad6254c5 3667
f11781c5
AK
3668/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3669 function prototypes and stuff, but not '\xHH' hex character constants.
3670 These don't provoke an error unfortunately, instead are silently treated
3671 as 'x'. The following induces an error, until -std is added to get
3672 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3673 array size at least. It's necessary to write '\x00'==0 to get something
3674 that's true only with -std. */
3675int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3676
f11781c5
AK
3677/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3678 inside strings and character constants. */
3679#define FOO(x) 'x'
3680int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3681
f11781c5
AK
3682int test (int i, double x);
3683struct s1 {int (*f) (int a);};
3684struct s2 {int (*f) (double a);};
3685int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3686int argc;
3687char **argv;
d0191583
JM
3688int
3689main ()
3690{
f11781c5 3691return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3692 ;
3693 return 0;
3694}
72b2cb61 3695_ACEOF
f11781c5
AK
3696for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3697 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3698do
3699 CC="$ac_save_CC $ac_arg"
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701 ac_cv_prog_cc_c89=$ac_arg
3702fi
3703rm -f core conftest.err conftest.$ac_objext
3704 test "x$ac_cv_prog_cc_c89" != "xno" && break
3705done
3706rm -f conftest.$ac_ext
3707CC=$ac_save_CC
3708
3709fi
3710# AC_CACHE_VAL
3711case "x$ac_cv_prog_cc_c89" in
3712 x)
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3714$as_echo "none needed" >&6; } ;;
3715 xno)
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3717$as_echo "unsupported" >&6; } ;;
3718 *)
3719 CC="$CC $ac_cv_prog_cc_c89"
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3721$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3722esac
f11781c5
AK
3723if test "x$ac_cv_prog_cc_c89" != xno; then :
3724
3725fi
3726
3727ac_ext=c
3728ac_cpp='$CPP $CPPFLAGS'
3729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3732
ad6254c5 3733
7a197a62 3734
f11781c5
AK
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
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3741$as_echo_n "checking how to run the C preprocessor... " >&6; }
3742# On Suns, sometimes $CPP names a directory.
3743if test -n "$CPP" && test -d "$CPP"; then
3744 CPP=
3745fi
3746if test -z "$CPP"; then
3747 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3748 $as_echo_n "(cached) " >&6
ad6254c5 3749else
f11781c5
AK
3750 # Double quotes because CPP needs to be expanded
3751 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3752 do
3753 ac_preproc_ok=false
3754for ac_c_preproc_warn_flag in '' yes
3755do
3756 # Use a header file that comes with gcc, so configuring glibc
3757 # with a fresh cross-compiler works.
3758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3759 # <limits.h> exists even on freestanding compilers.
3760 # On the NeXT, cc -E runs the code through the compiler's parser,
3761 # not just through cpp. "Syntax error" is here to catch this case.
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3763/* end confdefs.h. */
d0191583
JM
3764#ifdef __STDC__
3765# include <limits.h>
3766#else
3767# include <assert.h>
3768#endif
f11781c5
AK
3769 Syntax error
3770_ACEOF
3771if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3772
f11781c5
AK
3773else
3774 # Broken: fails on valid input.
3775continue
3776fi
3777rm -f conftest.err conftest.$ac_ext
d0191583 3778
f11781c5
AK
3779 # OK, works on sane cases. Now check whether nonexistent headers
3780 # can be detected and how.
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782/* end confdefs.h. */
3783#include <ac_nonexistent.h>
72b2cb61 3784_ACEOF
f11781c5
AK
3785if ac_fn_c_try_cpp "$LINENO"; then :
3786 # Broken: success on invalid input.
3787continue
d0191583 3788else
f11781c5
AK
3789 # Passes both tests.
3790ac_preproc_ok=:
3791break
ad6254c5 3792fi
f11781c5 3793rm -f conftest.err conftest.$ac_ext
ad6254c5 3794
f11781c5
AK
3795done
3796# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3797rm -f conftest.err conftest.$ac_ext
3798if $ac_preproc_ok; then :
3799 break
7a197a62
AK
3800fi
3801
f11781c5
AK
3802 done
3803 ac_cv_prog_CPP=$CPP
ad6254c5 3804
7a197a62 3805fi
f11781c5
AK
3806 CPP=$ac_cv_prog_CPP
3807else
3808 ac_cv_prog_CPP=$CPP
d0191583 3809fi
f11781c5
AK
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3811$as_echo "$CPP" >&6; }
3812ac_preproc_ok=false
3813for ac_c_preproc_warn_flag in '' yes
3814do
3815 # Use a header file that comes with gcc, so configuring glibc
3816 # with a fresh cross-compiler works.
3817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818 # <limits.h> exists even on freestanding compilers.
3819 # On the NeXT, cc -E runs the code through the compiler's parser,
3820 # not just through cpp. "Syntax error" is here to catch this case.
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822/* end confdefs.h. */
3823#ifdef __STDC__
3824# include <limits.h>
3825#else
3826# include <assert.h>
3827#endif
3828 Syntax error
3829_ACEOF
3830if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3831
9c961554 3832else
f11781c5
AK
3833 # Broken: fails on valid input.
3834continue
9c961554 3835fi
f11781c5 3836rm -f conftest.err conftest.$ac_ext
9c961554 3837
f11781c5
AK
3838 # OK, works on sane cases. Now check whether nonexistent headers
3839 # can be detected and how.
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841/* end confdefs.h. */
3842#include <ac_nonexistent.h>
3843_ACEOF
3844if ac_fn_c_try_cpp "$LINENO"; then :
3845 # Broken: success on invalid input.
3846continue
3847else
3848 # Passes both tests.
3849ac_preproc_ok=:
3850break
3851fi
3852rm -f conftest.err conftest.$ac_ext
ad6254c5 3853
f11781c5
AK
3854done
3855# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3856rm -f conftest.err conftest.$ac_ext
3857if $ac_preproc_ok; then :
d0191583 3858
f11781c5
AK
3859else
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3863See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3864fi
3865
f11781c5
AK
3866ac_ext=c
3867ac_cpp='$CPP $CPPFLAGS'
3868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3870ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3871
ad6254c5 3872
f11781c5
AK
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3874$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3875if test "${ac_cv_path_GREP+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3877else
3878 if test -z "$GREP"; then
3879 ac_path_GREP_found=false
3880 # Loop through the user's path and test for each of PROGNAME-LIST
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3883do
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for ac_prog in grep ggrep; do
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3889 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3890# Check for GNU ac_path_GREP and select it if it is found.
3891 # Check for GNU $ac_path_GREP
3892case `"$ac_path_GREP" --version 2>&1` in
3893*GNU*)
3894 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3895*)
3896 ac_count=0
3897 $as_echo_n 0123456789 >"conftest.in"
3898 while :
3899 do
3900 cat "conftest.in" "conftest.in" >"conftest.tmp"
3901 mv "conftest.tmp" "conftest.in"
3902 cp "conftest.in" "conftest.nl"
3903 $as_echo 'GREP' >> "conftest.nl"
3904 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3906 as_fn_arith $ac_count + 1 && ac_count=$as_val
3907 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3908 # Best one so far, save it but keep looking for a better one
3909 ac_cv_path_GREP="$ac_path_GREP"
3910 ac_path_GREP_max=$ac_count
3911 fi
3912 # 10*(2^10) chars as input seems more than enough
3913 test $ac_count -gt 10 && break
3914 done
3915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3916esac
ad6254c5 3917
f11781c5
AK
3918 $ac_path_GREP_found && break 3
3919 done
3920 done
3921 done
3922IFS=$as_save_IFS
3923 if test -z "$ac_cv_path_GREP"; then
3924 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3925 fi
3926else
3927 ac_cv_path_GREP=$GREP
7a197a62
AK
3928fi
3929
d0191583 3930fi
f11781c5
AK
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3932$as_echo "$ac_cv_path_GREP" >&6; }
3933 GREP="$ac_cv_path_GREP"
ad6254c5 3934
24bbc4d7 3935
f11781c5
AK
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3937$as_echo_n "checking for egrep... " >&6; }
3938if test "${ac_cv_path_EGREP+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
3940else
3941 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3942 then ac_cv_path_EGREP="$GREP -E"
3943 else
3944 if test -z "$EGREP"; then
3945 ac_path_EGREP_found=false
3946 # Loop through the user's path and test for each of PROGNAME-LIST
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3949do
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 for ac_prog in egrep; do
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3955 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3956# Check for GNU ac_path_EGREP and select it if it is found.
3957 # Check for GNU $ac_path_EGREP
3958case `"$ac_path_EGREP" --version 2>&1` in
3959*GNU*)
3960 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3961*)
3962 ac_count=0
3963 $as_echo_n 0123456789 >"conftest.in"
3964 while :
3965 do
3966 cat "conftest.in" "conftest.in" >"conftest.tmp"
3967 mv "conftest.tmp" "conftest.in"
3968 cp "conftest.in" "conftest.nl"
3969 $as_echo 'EGREP' >> "conftest.nl"
3970 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3971 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3972 as_fn_arith $ac_count + 1 && ac_count=$as_val
3973 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3974 # Best one so far, save it but keep looking for a better one
3975 ac_cv_path_EGREP="$ac_path_EGREP"
3976 ac_path_EGREP_max=$ac_count
3977 fi
3978 # 10*(2^10) chars as input seems more than enough
3979 test $ac_count -gt 10 && break
3980 done
3981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3982esac
24bbc4d7 3983
f11781c5
AK
3984 $ac_path_EGREP_found && break 3
3985 done
3986 done
3987 done
3988IFS=$as_save_IFS
3989 if test -z "$ac_cv_path_EGREP"; then
3990 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3991 fi
24bbc4d7 3992else
f11781c5 3993 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
3994fi
3995
f11781c5 3996 fi
24bbc4d7 3997fi
f11781c5
AK
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3999$as_echo "$ac_cv_path_EGREP" >&6; }
4000 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
4001
4002
f11781c5
AK
4003if test $ac_cv_c_compiler_gnu = yes; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4005$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4006if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4007 $as_echo_n "(cached) " >&6
93bd259b 4008else
f11781c5
AK
4009 ac_pattern="Autoconf.*'x'"
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011/* end confdefs.h. */
4012#include <sgtty.h>
4013Autoconf TIOCGETP
4014_ACEOF
4015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4016 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4017 ac_cv_prog_gcc_traditional=yes
d0191583 4018else
f11781c5 4019 ac_cv_prog_gcc_traditional=no
7a197a62 4020fi
f11781c5 4021rm -f conftest*
7a197a62 4022
72b2cb61 4023
f11781c5
AK
4024 if test $ac_cv_prog_gcc_traditional = no; then
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026/* end confdefs.h. */
4027#include <termio.h>
4028Autoconf TCGETA
72b2cb61 4029_ACEOF
f11781c5
AK
4030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4031 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4032 ac_cv_prog_gcc_traditional=yes
ad6254c5 4033fi
f11781c5 4034rm -f conftest*
ad6254c5 4035
f11781c5 4036 fi
7a197a62 4037fi
f11781c5
AK
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4039$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4040 if test $ac_cv_prog_gcc_traditional = yes; then
4041 CC="$CC -traditional"
4042 fi
ad6254c5
AK
4043fi
4044
f11781c5
AK
4045# Find a good install program. We prefer a C program (faster),
4046# so one script is as good as another. But avoid the broken or
4047# incompatible versions:
4048# SysV /etc/install, /usr/sbin/install
4049# SunOS /usr/etc/install
4050# IRIX /sbin/install
4051# AIX /bin/install
4052# AmigaOS /C/install, which installs bootblocks on floppy discs
4053# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4054# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4055# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4056# OS/2's system install, which has a completely different semantic
4057# ./install, which can be erroneously created by make from ./install.sh.
4058# Reject install programs that cannot install multiple files.
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4060$as_echo_n "checking for a BSD-compatible install... " >&6; }
4061if test -z "$INSTALL"; then
4062if test "${ac_cv_path_install+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
ad6254c5 4064else
f11781c5
AK
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066for as_dir in $PATH
4067do
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 # Account for people who put trailing slashes in PATH elements.
4071case $as_dir/ in #((
4072 ./ | .// | /[cC]/* | \
4073 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4074 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4075 /usr/ucb/* ) ;;
4076 *)
4077 # OSF1 and SCO ODT 3.0 have their own names for install.
4078 # Don't use installbsd from OSF since it installs stuff as root
4079 # by default.
4080 for ac_prog in ginstall scoinst install; do
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4083 if test $ac_prog = install &&
4084 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4085 # AIX install. It has an incompatible calling convention.
4086 :
4087 elif test $ac_prog = install &&
4088 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4089 # program-specific install script used by HP pwplus--don't use.
4090 :
4091 else
4092 rm -rf conftest.one conftest.two conftest.dir
4093 echo one > conftest.one
4094 echo two > conftest.two
4095 mkdir conftest.dir
4096 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4097 test -s conftest.one && test -s conftest.two &&
4098 test -s conftest.dir/conftest.one &&
4099 test -s conftest.dir/conftest.two
4100 then
4101 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4102 break 3
4103 fi
4104 fi
4105 fi
4106 done
4107 done
4108 ;;
4109esac
7a197a62 4110
f11781c5
AK
4111 done
4112IFS=$as_save_IFS
d0191583 4113
f11781c5 4114rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4115
4116fi
f11781c5
AK
4117 if test "${ac_cv_path_install+set}" = set; then
4118 INSTALL=$ac_cv_path_install
4119 else
4120 # As a last resort, use the slow shell script. Don't cache a
4121 # value for INSTALL within a source directory, because that will
4122 # break other packages using the cache if that directory is
4123 # removed, or if the value is a relative name.
4124 INSTALL=$ac_install_sh
4125 fi
7a197a62 4126fi
f11781c5
AK
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4128$as_echo "$INSTALL" >&6; }
7a197a62 4129
f11781c5
AK
4130# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4131# It thinks the first close brace ends the variable substitution.
4132test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4133
f11781c5 4134test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4135
f11781c5 4136test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4137
f11781c5
AK
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4139$as_echo_n "checking whether ln -s works... " >&6; }
4140LN_S=$as_ln_s
4141if test "$LN_S" = "ln -s"; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4143$as_echo "yes" >&6; }
4144else
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4146$as_echo "no, using $LN_S" >&6; }
15d91f5a 4147fi
ad6254c5 4148
f11781c5
AK
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4150$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4151set x ${MAKE-make}
4152ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4153if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4154 $as_echo_n "(cached) " >&6
d0191583 4155else
f11781c5
AK
4156 cat >conftest.make <<\_ACEOF
4157SHELL = /bin/sh
4158all:
4159 @echo '@@@%%%=$(MAKE)=@@@%%%'
4160_ACEOF
4161# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4162case `${MAKE-make} -f conftest.make 2>/dev/null` in
4163 *@@@%%%=?*=@@@%%%*)
4164 eval ac_cv_prog_make_${ac_make}_set=yes;;
4165 *)
4166 eval ac_cv_prog_make_${ac_make}_set=no;;
4167esac
4168rm -f conftest.make
4169fi
4170if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4172$as_echo "yes" >&6; }
4173 SET_MAKE=
4174else
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176$as_echo "no" >&6; }
4177 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4178fi
4179
f11781c5
AK
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4181$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4182if test -z "$MKDIR_P"; then
4183 if test "${ac_cv_path_mkdir+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
4185else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4188do
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_prog in mkdir gmkdir; do
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4194 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4195 'mkdir (GNU coreutils) '* | \
4196 'mkdir (coreutils) '* | \
4197 'mkdir (fileutils) '4.1*)
4198 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4199 break 3;;
4200 esac
4201 done
4202 done
4203 done
4204IFS=$as_save_IFS
d0191583 4205
f11781c5 4206fi
ad6254c5 4207
f11781c5
AK
4208 test -d ./--version && rmdir ./--version
4209 if test "${ac_cv_path_mkdir+set}" = set; then
4210 MKDIR_P="$ac_cv_path_mkdir -p"
4211 else
4212 # As a last resort, use the slow shell script. Don't cache a
4213 # value for MKDIR_P within a source directory, because that will
4214 # break other packages using the cache if that directory is
4215 # removed, or if the value is a relative name.
4216 MKDIR_P="$ac_install_sh -d"
4217 fi
ad6254c5 4218fi
f11781c5
AK
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4220$as_echo "$MKDIR_P" >&6; }
7a197a62 4221
f11781c5
AK
4222if test -n "$ac_tool_prefix"; then
4223 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4224set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226$as_echo_n "checking for $ac_word... " >&6; }
4227if test "${ac_cv_prog_RANLIB+set}" = set; then :
4228 $as_echo_n "(cached) " >&6
4229else
4230 if test -n "$RANLIB"; then
4231 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4232else
4233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH
4235do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4243 fi
4244done
4245 done
4246IFS=$as_save_IFS
d0191583 4247
f11781c5
AK
4248fi
4249fi
4250RANLIB=$ac_cv_prog_RANLIB
4251if test -n "$RANLIB"; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4253$as_echo "$RANLIB" >&6; }
d0191583 4254else
f11781c5
AK
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256$as_echo "no" >&6; }
ad6254c5 4257fi
ad6254c5 4258
8a2fc586 4259
d0191583 4260fi
f11781c5
AK
4261if test -z "$ac_cv_prog_RANLIB"; then
4262 ac_ct_RANLIB=$RANLIB
4263 # Extract the first word of "ranlib", so it can be a program name with args.
4264set dummy ranlib; ac_word=$2
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266$as_echo_n "checking for $ac_word... " >&6; }
4267if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4268 $as_echo_n "(cached) " >&6
4269else
4270 if test -n "$ac_ct_RANLIB"; then
4271 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4272else
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_ac_ct_RANLIB="ranlib"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4283 fi
4284done
4285 done
4286IFS=$as_save_IFS
8a2fc586 4287
f11781c5
AK
4288fi
4289fi
4290ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4291if test -n "$ac_ct_RANLIB"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4293$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4294else
f11781c5
AK
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296$as_echo "no" >&6; }
8fea97b7
ZK
4297fi
4298
f11781c5
AK
4299 if test "x$ac_ct_RANLIB" = x; then
4300 RANLIB=":"
4301 else
4302 case $cross_compiling:$ac_tool_warned in
4303yes:)
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306ac_tool_warned=yes ;;
8fea97b7 4307esac
f11781c5
AK
4308 RANLIB=$ac_ct_RANLIB
4309 fi
d0191583 4310else
f11781c5 4311 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4312fi
8a2fc586 4313
f11781c5
AK
4314# Extract the first word of "cflow", so it can be a program name with args.
4315set dummy cflow; ac_word=$2
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317$as_echo_n "checking for $ac_word... " >&6; }
4318if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4319 $as_echo_n "(cached) " >&6
4320else
4321 case $CFLOW_CMD in
4322 [\\/]* | ?:[\\/]*)
4323 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4324 ;;
4325 *)
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327for as_dir in $PATH
4328do
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4336 fi
4337done
4338 done
4339IFS=$as_save_IFS
8a2fc586 4340
f11781c5
AK
4341 ;;
4342esac
ad6254c5 4343fi
f11781c5
AK
4344CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4345if test -n "$CFLOW_CMD"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4347$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4348else
f11781c5
AK
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350$as_echo "no" >&6; }
37ddf259
AK
4351fi
4352
e2997b73 4353
f11781c5
AK
4354# Extract the first word of "cscope", so it can be a program name with args.
4355set dummy cscope; ac_word=$2
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4357$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4358if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4359 $as_echo_n "(cached) " >&6
4360else
f11781c5 4361 case $CSCOPE_CMD in
e2997b73 4362 [\\/]* | ?:[\\/]*)
f11781c5 4363 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4364 ;;
4365 *)
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367for as_dir in $PATH
4368do
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
f11781c5 4371 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4373 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4375 break 2
4376 fi
4377done
f11781c5 4378 done
e2997b73
AK
4379IFS=$as_save_IFS
4380
4381 ;;
4382esac
4383fi
f11781c5
AK
4384CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4385if test -n "$CSCOPE_CMD"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4387$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4388else
f11781c5 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4390$as_echo "no" >&6; }
4391fi
f11781c5
AK
4392
4393
4394
4395################################################################################
4396ac_header_dirent=no
4397for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4398 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4400$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4401if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4402 $as_echo_n "(cached) " >&6
4403else
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405/* end confdefs.h. */
4406#include <sys/types.h>
4407#include <$ac_hdr>
4408
4409int
4410main ()
4411{
4412if ((DIR *) 0)
4413return 0;
4414 ;
4415 return 0;
4416}
4417_ACEOF
4418if ac_fn_c_try_compile "$LINENO"; then :
4419 eval "$as_ac_Header=yes"
4420else
4421 eval "$as_ac_Header=no"
4422fi
4423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424fi
4425eval ac_res=\$$as_ac_Header
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4427$as_echo "$ac_res" >&6; }
4428if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4429 cat >>confdefs.h <<_ACEOF
4430#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4431_ACEOF
4432
4433ac_header_dirent=$ac_hdr; break
4434fi
4435
4436done
4437# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4438if test $ac_header_dirent = dirent.h; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4440$as_echo_n "checking for library containing opendir... " >&6; }
4441if test "${ac_cv_search_opendir+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4443else
4444 ac_func_search_save_LIBS=$LIBS
4445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446/* end confdefs.h. */
4447
4448/* Override any GCC internal prototype to avoid an error.
4449 Use char because int might match the return type of a GCC
4450 builtin and then its argument prototype would still apply. */
4451#ifdef __cplusplus
4452extern "C"
4453#endif
4454char opendir ();
4455int
4456main ()
4457{
4458return opendir ();
4459 ;
4460 return 0;
4461}
4462_ACEOF
4463for ac_lib in '' dir; do
4464 if test -z "$ac_lib"; then
4465 ac_res="none required"
4466 else
4467 ac_res=-l$ac_lib
4468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4469 fi
4470 if ac_fn_c_try_link "$LINENO"; then :
4471 ac_cv_search_opendir=$ac_res
4472fi
4473rm -f core conftest.err conftest.$ac_objext \
4474 conftest$ac_exeext
4475 if test "${ac_cv_search_opendir+set}" = set; then :
4476 break
4477fi
4478done
4479if test "${ac_cv_search_opendir+set}" = set; then :
4480
4481else
4482 ac_cv_search_opendir=no
4483fi
4484rm conftest.$ac_ext
4485LIBS=$ac_func_search_save_LIBS
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4488$as_echo "$ac_cv_search_opendir" >&6; }
4489ac_res=$ac_cv_search_opendir
4490if test "$ac_res" != no; then :
4491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4492
4493fi
f11781c5
AK
4494
4495else
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4497$as_echo_n "checking for library containing opendir... " >&6; }
4498if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4499 $as_echo_n "(cached) " >&6
4500else
f11781c5
AK
4501 ac_func_search_save_LIBS=$LIBS
4502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503/* end confdefs.h. */
e2997b73 4504
f11781c5
AK
4505/* Override any GCC internal prototype to avoid an error.
4506 Use char because int might match the return type of a GCC
4507 builtin and then its argument prototype would still apply. */
4508#ifdef __cplusplus
4509extern "C"
4510#endif
4511char opendir ();
4512int
4513main ()
4514{
4515return opendir ();
4516 ;
4517 return 0;
4518}
4519_ACEOF
4520for ac_lib in '' x; do
4521 if test -z "$ac_lib"; then
4522 ac_res="none required"
4523 else
4524 ac_res=-l$ac_lib
4525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4526 fi
4527 if ac_fn_c_try_link "$LINENO"; then :
4528 ac_cv_search_opendir=$ac_res
e2997b73 4529fi
f11781c5
AK
4530rm -f core conftest.err conftest.$ac_objext \
4531 conftest$ac_exeext
4532 if test "${ac_cv_search_opendir+set}" = set; then :
4533 break
e2997b73 4534fi
f11781c5
AK
4535done
4536if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4537
e2997b73 4538else
f11781c5
AK
4539 ac_cv_search_opendir=no
4540fi
4541rm conftest.$ac_ext
4542LIBS=$ac_func_search_save_LIBS
e2997b73 4543fi
f11781c5
AK
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4545$as_echo "$ac_cv_search_opendir" >&6; }
4546ac_res=$ac_cv_search_opendir
4547if test "$ac_res" != no; then :
4548 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4549
4550fi
8c4e8a18 4551
e2997b73
AK
4552fi
4553
f11781c5
AK
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4555$as_echo_n "checking for ANSI C header files... " >&6; }
4556if test "${ac_cv_header_stdc+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4558else
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560/* end confdefs.h. */
4561#include <stdlib.h>
4562#include <stdarg.h>
4563#include <string.h>
4564#include <float.h>
e2997b73 4565
f11781c5
AK
4566int
4567main ()
4568{
4569
4570 ;
4571 return 0;
4572}
4573_ACEOF
4574if ac_fn_c_try_compile "$LINENO"; then :
4575 ac_cv_header_stdc=yes
e2997b73 4576else
f11781c5 4577 ac_cv_header_stdc=no
e2997b73 4578fi
f11781c5
AK
4579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580
4581if test $ac_cv_header_stdc = yes; then
4582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584/* end confdefs.h. */
4585#include <string.h>
4586
4587_ACEOF
4588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4589 $EGREP "memchr" >/dev/null 2>&1; then :
4590
e2997b73 4591else
f11781c5 4592 ac_cv_header_stdc=no
e2997b73 4593fi
f11781c5 4594rm -f conftest*
e2997b73 4595
f11781c5 4596fi
e2997b73 4597
f11781c5
AK
4598if test $ac_cv_header_stdc = yes; then
4599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601/* end confdefs.h. */
4602#include <stdlib.h>
e2997b73 4603
f11781c5
AK
4604_ACEOF
4605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4607
e2997b73 4608else
f11781c5 4609 ac_cv_header_stdc=no
e2997b73 4610fi
f11781c5 4611rm -f conftest*
e2997b73 4612
e2997b73 4613fi
90c80887 4614
f11781c5
AK
4615if test $ac_cv_header_stdc = yes; then
4616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4617 if test "$cross_compiling" = yes; then :
4618 :
4619else
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621/* end confdefs.h. */
4622#include <ctype.h>
4623#include <stdlib.h>
4624#if ((' ' & 0x0FF) == 0x020)
4625# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4626# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4627#else
4628# define ISLOWER(c) \
4629 (('a' <= (c) && (c) <= 'i') \
4630 || ('j' <= (c) && (c) <= 'r') \
4631 || ('s' <= (c) && (c) <= 'z'))
4632# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4633#endif
4634
4635#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4636int
4637main ()
4638{
4639 int i;
4640 for (i = 0; i < 256; i++)
4641 if (XOR (islower (i), ISLOWER (i))
4642 || toupper (i) != TOUPPER (i))
4643 return 2;
4644 return 0;
4645}
4646_ACEOF
4647if ac_fn_c_try_run "$LINENO"; then :
90c80887 4648
90c80887 4649else
f11781c5 4650 ac_cv_header_stdc=no
90c80887 4651fi
f11781c5
AK
4652rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4653 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4654fi
90c80887 4655
90c80887 4656fi
90c80887 4657fi
f11781c5
AK
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4659$as_echo "$ac_cv_header_stdc" >&6; }
4660if test $ac_cv_header_stdc = yes; then
90c80887 4661
f11781c5 4662$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4663
90c80887 4664fi
f11781c5
AK
4665
4666# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4667for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4668 inttypes.h stdint.h unistd.h
4669do :
4670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4671ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4672"
4673if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4674 cat >>confdefs.h <<_ACEOF
4675#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4676_ACEOF
4677
90c80887 4678fi
f11781c5
AK
4679
4680done
4681
4682
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4684$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4685if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4687else
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689/* end confdefs.h. */
4690#include <sys/types.h>
4691int
4692main ()
4693{
4694return makedev(0, 0);
4695 ;
4696 return 0;
4697}
4698_ACEOF
4699if ac_fn_c_try_link "$LINENO"; then :
4700 ac_cv_header_sys_types_h_makedev=yes
4701else
4702 ac_cv_header_sys_types_h_makedev=no
90c80887 4703fi
f11781c5
AK
4704rm -f core conftest.err conftest.$ac_objext \
4705 conftest$ac_exeext conftest.$ac_ext
4706
90c80887 4707fi
f11781c5
AK
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4709$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4710
4711if test $ac_cv_header_sys_types_h_makedev = no; then
4712ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4713if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4714
4715$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4716
a946372e 4717fi
e2997b73 4718
e2997b73 4719
a946372e 4720
f11781c5
AK
4721 if test $ac_cv_header_sys_mkdev_h = no; then
4722 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4723if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4724
4725$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4726
e2997b73 4727fi
a946372e 4728
a946372e 4729
f11781c5
AK
4730 fi
4731fi
4732
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4734$as_echo_n "checking for ANSI C header files... " >&6; }
4735if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4736 $as_echo_n "(cached) " >&6
4737else
f11781c5 4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4739/* end confdefs.h. */
f11781c5
AK
4740#include <stdlib.h>
4741#include <stdarg.h>
4742#include <string.h>
4743#include <float.h>
a946372e 4744
a946372e
AK
4745int
4746main ()
4747{
f11781c5 4748
a946372e
AK
4749 ;
4750 return 0;
4751}
4752_ACEOF
f11781c5
AK
4753if ac_fn_c_try_compile "$LINENO"; then :
4754 ac_cv_header_stdc=yes
e2997b73 4755else
f11781c5
AK
4756 ac_cv_header_stdc=no
4757fi
4758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759
4760if test $ac_cv_header_stdc = yes; then
4761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763/* end confdefs.h. */
4764#include <string.h>
4765
4766_ACEOF
4767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4768 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4769
f11781c5
AK
4770else
4771 ac_cv_header_stdc=no
a946372e 4772fi
f11781c5 4773rm -f conftest*
e2997b73 4774
a946372e 4775fi
e2997b73 4776
f11781c5
AK
4777if test $ac_cv_header_stdc = yes; then
4778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h. */
4781#include <stdlib.h>
4782
4783_ACEOF
4784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4785 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4786
e2997b73 4787else
f11781c5 4788 ac_cv_header_stdc=no
e2997b73 4789fi
f11781c5 4790rm -f conftest*
e2997b73 4791
f11781c5 4792fi
a946372e 4793
f11781c5
AK
4794if test $ac_cv_header_stdc = yes; then
4795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4796 if test "$cross_compiling" = yes; then :
4797 :
4798else
4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800/* end confdefs.h. */
4801#include <ctype.h>
4802#include <stdlib.h>
4803#if ((' ' & 0x0FF) == 0x020)
4804# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4805# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4806#else
4807# define ISLOWER(c) \
4808 (('a' <= (c) && (c) <= 'i') \
4809 || ('j' <= (c) && (c) <= 'r') \
4810 || ('s' <= (c) && (c) <= 'z'))
4811# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4812#endif
e2997b73 4813
f11781c5
AK
4814#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4815int
4816main ()
4817{
4818 int i;
4819 for (i = 0; i < 256; i++)
4820 if (XOR (islower (i), ISLOWER (i))
4821 || toupper (i) != TOUPPER (i))
4822 return 2;
4823 return 0;
4824}
4825_ACEOF
4826if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4827
e2997b73 4828else
f11781c5 4829 ac_cv_header_stdc=no
e2997b73 4830fi
f11781c5
AK
4831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4832 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4833fi
f11781c5 4834
e2997b73 4835fi
e2997b73 4836fi
f11781c5
AK
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4838$as_echo "$ac_cv_header_stdc" >&6; }
4839if test $ac_cv_header_stdc = yes; then
e2997b73 4840
f11781c5 4841$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4842
f11781c5 4843fi
e2997b73 4844
f11781c5
AK
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4846$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4847if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4849else
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851/* end confdefs.h. */
4852#include <sys/types.h>
4853#include <sys/wait.h>
4854#ifndef WEXITSTATUS
4855# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4856#endif
4857#ifndef WIFEXITED
4858# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4859#endif
e2997b73 4860
f11781c5
AK
4861int
4862main ()
4863{
4864 int s;
4865 wait (&s);
4866 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4867 ;
4868 return 0;
4869}
4870_ACEOF
4871if ac_fn_c_try_compile "$LINENO"; then :
4872 ac_cv_header_sys_wait_h=yes
e2997b73 4873else
f11781c5 4874 ac_cv_header_sys_wait_h=no
e2997b73 4875fi
f11781c5
AK
4876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877fi
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4879$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4880if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4881
f11781c5 4882$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4883
d0191583 4884fi
f11781c5
AK
4885
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4887$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4888if test "${ac_cv_header_time+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
fc54be10 4890else
f11781c5 4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4892/* end confdefs.h. */
f11781c5
AK
4893#include <sys/types.h>
4894#include <sys/time.h>
4895#include <time.h>
4896
4897int
4898main ()
4899{
4900if ((struct tm *) 0)
4901return 0;
4902 ;
4903 return 0;
4904}
a946372e 4905_ACEOF
f11781c5
AK
4906if ac_fn_c_try_compile "$LINENO"; then :
4907 ac_cv_header_time=yes
a946372e 4908else
f11781c5
AK
4909 ac_cv_header_time=no
4910fi
4911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912fi
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4914$as_echo "$ac_cv_header_time" >&6; }
4915if test $ac_cv_header_time = yes; then
4916
4917$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4918
4919fi
4920
4921
4922for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4923 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4924 sys/wait.h time.h
4925do :
4926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4927ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4928if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4929 cat >>confdefs.h <<_ACEOF
4930#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4931_ACEOF
d0191583 4932
f11781c5
AK
4933else
4934 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4935fi
4936
f11781c5 4937done
fddafd51 4938
f11781c5
AK
4939
4940case "$host_os" in
4941 linux*)
4942 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4943do :
4944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4945ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4946if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4947 cat >>confdefs.h <<_ACEOF
4948#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a946372e 4949_ACEOF
a946372e 4950
f11781c5
AK
4951else
4952 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
4953fi
4954
f11781c5
AK
4955done
4956 ;;
4957 darwin*)
4958 for ac_header in machine/endian.h sys/disk.h
4959do :
4960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4961ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4962if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4963 cat >>confdefs.h <<_ACEOF
4964#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4965_ACEOF
a946372e 4966
f11781c5
AK
4967else
4968 as_fn_error $? "bailing out" "$LINENO" 5
4969fi
a946372e 4970
f11781c5
AK
4971done
4972 ;;
a946372e 4973esac
f11781c5
AK
4974
4975for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4976 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4977 sys/types.h unistd.h
4978do :
4979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4980ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4981if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4982 cat >>confdefs.h <<_ACEOF
4983#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4984_ACEOF
4985
a946372e 4986else
f11781c5 4987 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 4988fi
a946372e 4989
f11781c5
AK
4990done
4991
4992for ac_header in termios.h sys/statvfs.h
4993do :
4994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4995ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4996if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
4997 cat >>confdefs.h <<_ACEOF
4998#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4999_ACEOF
5000
a946372e
AK
5001fi
5002
5003done
5004
a946372e 5005
f11781c5
AK
5006################################################################################
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5008$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5009if test "${ac_cv_c_const+set}" = set; then :
a946372e 5010 $as_echo_n "(cached) " >&6
a946372e 5011else
f11781c5 5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5013/* end confdefs.h. */
a946372e 5014
f11781c5
AK
5015int
5016main ()
5017{
5018/* FIXME: Include the comments suggested by Paul. */
5019#ifndef __cplusplus
5020 /* Ultrix mips cc rejects this. */
5021 typedef int charset[2];
5022 const charset cs;
5023 /* SunOS 4.1.1 cc rejects this. */
5024 char const *const *pcpcc;
5025 char **ppc;
5026 /* NEC SVR4.0.2 mips cc rejects this. */
5027 struct point {int x, y;};
5028 static struct point const zero = {0,0};
5029 /* AIX XL C 1.02.0.0 rejects this.
5030 It does not let you subtract one const X* pointer from another in
5031 an arm of an if-expression whose if-part is not a constant
5032 expression */
5033 const char *g = "string";
5034 pcpcc = &g + (g ? g-g : 0);
5035 /* HPUX 7.0 cc rejects these. */
5036 ++pcpcc;
5037 ppc = (char**) pcpcc;
5038 pcpcc = (char const *const *) ppc;
5039 { /* SCO 3.2v4 cc rejects this. */
5040 char *t;
5041 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5042
f11781c5
AK
5043 *t++ = 0;
5044 if (s) return 0;
5045 }
5046 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5047 int x[] = {25, 17};
5048 const int *foo = &x[0];
5049 ++foo;
5050 }
5051 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5052 typedef const int *iptr;
5053 iptr p = 0;
5054 ++p;
5055 }
5056 { /* AIX XL C 1.02.0.0 rejects this saying
5057 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5058 struct s { int j; const int *ap[3]; };
5059 struct s *b; b->j = 5;
5060 }
5061 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5062 const int foo = 10;
5063 if (!foo) return 0;
5064 }
5065 return !cs[0] && !zero.x;
5066#endif
a946372e 5067
f11781c5
AK
5068 ;
5069 return 0;
5070}
a946372e 5071_ACEOF
f11781c5
AK
5072if ac_fn_c_try_compile "$LINENO"; then :
5073 ac_cv_c_const=yes
a946372e 5074else
f11781c5
AK
5075 ac_cv_c_const=no
5076fi
5077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5078fi
f11781c5
AK
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5080$as_echo "$ac_cv_c_const" >&6; }
5081if test $ac_cv_c_const = no; then
a946372e 5082
f11781c5 5083$as_echo "#define const /**/" >>confdefs.h
a946372e 5084
f11781c5 5085fi
a946372e 5086
f11781c5
AK
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5088$as_echo_n "checking for inline... " >&6; }
5089if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5090 $as_echo_n "(cached) " >&6
5091else
f11781c5
AK
5092 ac_cv_c_inline=no
5093for ac_kw in inline __inline__ __inline; do
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095/* end confdefs.h. */
5096#ifndef __cplusplus
5097typedef int foo_t;
5098static $ac_kw foo_t static_foo () {return 0; }
5099$ac_kw foo_t foo () {return 0; }
5100#endif
5101
5102_ACEOF
5103if ac_fn_c_try_compile "$LINENO"; then :
5104 ac_cv_c_inline=$ac_kw
a946372e 5105fi
f11781c5
AK
5106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 test "$ac_cv_c_inline" != no && break
5108done
a946372e
AK
5109
5110fi
f11781c5
AK
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5112$as_echo "$ac_cv_c_inline" >&6; }
5113
5114case $ac_cv_c_inline in
5115 inline | yes) ;;
5116 *)
5117 case $ac_cv_c_inline in
5118 no) ac_val=;;
5119 *) ac_val=$ac_cv_c_inline;;
5120 esac
5121 cat >>confdefs.h <<_ACEOF
5122#ifndef __cplusplus
5123#define inline $ac_val
5124#endif
5125_ACEOF
5126 ;;
5127esac
5128
5129ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5130if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5131
5132cat >>confdefs.h <<_ACEOF
5133#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5134_ACEOF
5135
f11781c5 5136
a946372e
AK
5137fi
5138
f11781c5
AK
5139ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5140if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5141
a946372e 5142else
f11781c5
AK
5143
5144cat >>confdefs.h <<_ACEOF
5145#define off_t long int
5146_ACEOF
5147
a946372e
AK
5148fi
5149
f11781c5
AK
5150ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5151if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5152
a946372e 5153else
f11781c5
AK
5154
5155cat >>confdefs.h <<_ACEOF
5156#define pid_t int
5157_ACEOF
5158
5159fi
5160
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5162$as_echo_n "checking return type of signal handlers... " >&6; }
5163if test "${ac_cv_type_signal+set}" = set; then :
5164 $as_echo_n "(cached) " >&6
a946372e 5165else
f11781c5
AK
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167/* end confdefs.h. */
5168#include <sys/types.h>
5169#include <signal.h>
5170
5171int
5172main ()
5173{
5174return *(signal (0, 0)) (0) == 1;
5175 ;
5176 return 0;
5177}
5178_ACEOF
5179if ac_fn_c_try_compile "$LINENO"; then :
5180 ac_cv_type_signal=int
5181else
5182 ac_cv_type_signal=void
a946372e 5183fi
f11781c5 5184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5185fi
f11781c5
AK
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5187$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5188
f11781c5
AK
5189cat >>confdefs.h <<_ACEOF
5190#define RETSIGTYPE $ac_cv_type_signal
5191_ACEOF
a946372e
AK
5192
5193
f11781c5
AK
5194ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5195if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5196
a946372e 5197else
a946372e 5198
f11781c5
AK
5199cat >>confdefs.h <<_ACEOF
5200#define size_t unsigned int
5201_ACEOF
a946372e 5202
a946372e 5203fi
f11781c5
AK
5204
5205ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5206if test "x$ac_cv_type_mode_t" = x""yes; then :
5207
a946372e 5208else
f11781c5
AK
5209
5210cat >>confdefs.h <<_ACEOF
5211#define mode_t int
a946372e 5212_ACEOF
a946372e 5213
a946372e
AK
5214fi
5215
f11781c5
AK
5216ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5217case $ac_cv_c_int8_t in #(
5218 no|yes) ;; #(
5219 *)
a946372e 5220
f11781c5
AK
5221cat >>confdefs.h <<_ACEOF
5222#define int8_t $ac_cv_c_int8_t
a946372e 5223_ACEOF
f11781c5 5224;;
a946372e 5225esac
a946372e 5226
f11781c5
AK
5227ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5228case $ac_cv_c_int16_t in #(
5229 no|yes) ;; #(
5230 *)
a946372e 5231
f11781c5
AK
5232cat >>confdefs.h <<_ACEOF
5233#define int16_t $ac_cv_c_int16_t
5234_ACEOF
5235;;
5236esac
a946372e 5237
f11781c5
AK
5238ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5239case $ac_cv_c_int32_t in #(
5240 no|yes) ;; #(
5241 *)
a946372e 5242
f11781c5
AK
5243cat >>confdefs.h <<_ACEOF
5244#define int32_t $ac_cv_c_int32_t
5245_ACEOF
5246;;
a946372e 5247esac
a946372e 5248
f11781c5
AK
5249ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5250case $ac_cv_c_int64_t in #(
5251 no|yes) ;; #(
5252 *)
5253
5254cat >>confdefs.h <<_ACEOF
5255#define int64_t $ac_cv_c_int64_t
a946372e 5256_ACEOF
f11781c5
AK
5257;;
5258esac
5259
5260ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5261if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5262
5263else
a946372e 5264
f11781c5
AK
5265cat >>confdefs.h <<_ACEOF
5266#define ssize_t int
5267_ACEOF
a946372e 5268
f11781c5 5269fi
a946372e 5270
f11781c5
AK
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5272$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5273if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5274 $as_echo_n "(cached) " >&6
a946372e 5275else
f11781c5 5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5277/* end confdefs.h. */
f11781c5
AK
5278#include <sys/types.h>
5279
a946372e 5280_ACEOF
f11781c5
AK
5281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282 $EGREP "uid_t" >/dev/null 2>&1; then :
5283 ac_cv_type_uid_t=yes
a946372e 5284else
f11781c5
AK
5285 ac_cv_type_uid_t=no
5286fi
5287rm -f conftest*
a946372e 5288
a946372e 5289fi
f11781c5
AK
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5291$as_echo "$ac_cv_type_uid_t" >&6; }
5292if test $ac_cv_type_uid_t = no; then
a946372e 5293
f11781c5 5294$as_echo "#define uid_t int" >>confdefs.h
a946372e 5295
f11781c5
AK
5296
5297$as_echo "#define gid_t int" >>confdefs.h
5298
5299fi
5300
5301ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5302case $ac_cv_c_uint8_t in #(
5303 no|yes) ;; #(
5304 *)
5305
5306$as_echo "#define _UINT8_T 1" >>confdefs.h
5307
5308
5309cat >>confdefs.h <<_ACEOF
5310#define uint8_t $ac_cv_c_uint8_t
a946372e 5311_ACEOF
f11781c5
AK
5312;;
5313 esac
5314
5315ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5316case $ac_cv_c_uint16_t in #(
5317 no|yes) ;; #(
5318 *)
5319
5320
5321cat >>confdefs.h <<_ACEOF
5322#define uint16_t $ac_cv_c_uint16_t
a946372e 5323_ACEOF
f11781c5
AK
5324;;
5325 esac
a946372e 5326
f11781c5
AK
5327ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5328case $ac_cv_c_uint32_t in #(
5329 no|yes) ;; #(
5330 *)
a946372e 5331
f11781c5 5332$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5333
a946372e 5334
f11781c5
AK
5335cat >>confdefs.h <<_ACEOF
5336#define uint32_t $ac_cv_c_uint32_t
5337_ACEOF
5338;;
5339 esac
5340
5341ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5342case $ac_cv_c_uint64_t in #(
5343 no|yes) ;; #(
5344 *)
5345
5346$as_echo "#define _UINT64_T 1" >>confdefs.h
5347
5348
5349cat >>confdefs.h <<_ACEOF
5350#define uint64_t $ac_cv_c_uint64_t
5351_ACEOF
5352;;
5353 esac
5354
5355ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5356if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5357
5358cat >>confdefs.h <<_ACEOF
5359#define HAVE_STRUCT_STAT_ST_RDEV 1
5360_ACEOF
5361
5362
5363fi
5364
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5366$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5367if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5368 $as_echo_n "(cached) " >&6
5369else
f11781c5
AK
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371/* end confdefs.h. */
5372#include <sys/types.h>
5373#include <time.h>
5374
5375int
5376main ()
5377{
5378struct tm tm;
5379 int *p = &tm.tm_sec;
5380 return !p;
5381 ;
5382 return 0;
5383}
5384_ACEOF
5385if ac_fn_c_try_compile "$LINENO"; then :
5386 ac_cv_struct_tm=time.h
5387else
5388 ac_cv_struct_tm=sys/time.h
a946372e 5389fi
f11781c5
AK
5390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391fi
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5393$as_echo "$ac_cv_struct_tm" >&6; }
5394if test $ac_cv_struct_tm = sys/time.h; then
5395
5396$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5397
5398fi
f11781c5
AK
5399
5400
5401################################################################################
5402for ac_func in ftruncate gethostname getpagesize \
5403 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5404 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5405 strstr strtol strtoul uname
5406do :
5407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5408ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5409if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5410 cat >>confdefs.h <<_ACEOF
f11781c5 5411#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5412_ACEOF
5413
5414else
f11781c5 5415 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5416fi
a946372e
AK
5417done
5418
f11781c5
AK
5419for ac_func in siginterrupt
5420do :
5421 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5422if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5423 cat >>confdefs.h <<_ACEOF
5424#define HAVE_SIGINTERRUPT 1
5425_ACEOF
a946372e 5426
f11781c5
AK
5427fi
5428done
a946372e 5429
f11781c5
AK
5430# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5431# for constant arguments. Useless!
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5433$as_echo_n "checking for working alloca.h... " >&6; }
5434if test "${ac_cv_working_alloca_h+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
a946372e 5436else
f11781c5
AK
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h. */
5439#include <alloca.h>
5440int
5441main ()
5442{
5443char *p = (char *) alloca (2 * sizeof (int));
5444 if (p) return 0;
5445 ;
5446 return 0;
5447}
5448_ACEOF
5449if ac_fn_c_try_link "$LINENO"; then :
5450 ac_cv_working_alloca_h=yes
a946372e 5451else
f11781c5 5452 ac_cv_working_alloca_h=no
a946372e 5453fi
f11781c5
AK
5454rm -f core conftest.err conftest.$ac_objext \
5455 conftest$ac_exeext conftest.$ac_ext
a946372e 5456fi
f11781c5
AK
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5458$as_echo "$ac_cv_working_alloca_h" >&6; }
5459if test $ac_cv_working_alloca_h = yes; then
a946372e 5460
f11781c5 5461$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5462
a946372e 5463fi
a946372e 5464
f11781c5
AK
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5466$as_echo_n "checking for alloca... " >&6; }
5467if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5468 $as_echo_n "(cached) " >&6
a946372e 5469else
f11781c5 5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5471/* end confdefs.h. */
f11781c5
AK
5472#ifdef __GNUC__
5473# define alloca __builtin_alloca
5474#else
5475# ifdef _MSC_VER
5476# include <malloc.h>
5477# define alloca _alloca
5478# else
5479# ifdef HAVE_ALLOCA_H
5480# include <alloca.h>
5481# else
5482# ifdef _AIX
5483 #pragma alloca
5484# else
5485# ifndef alloca /* predefined by HP cc +Olibcalls */
5486char *alloca ();
5487# endif
5488# endif
5489# endif
5490# endif
5491#endif
a946372e 5492
f11781c5
AK
5493int
5494main ()
5495{
5496char *p = (char *) alloca (1);
5497 if (p) return 0;
5498 ;
5499 return 0;
5500}
a946372e 5501_ACEOF
f11781c5
AK
5502if ac_fn_c_try_link "$LINENO"; then :
5503 ac_cv_func_alloca_works=yes
a946372e 5504else
f11781c5 5505 ac_cv_func_alloca_works=no
a946372e 5506fi
f11781c5
AK
5507rm -f core conftest.err conftest.$ac_objext \
5508 conftest$ac_exeext conftest.$ac_ext
5509fi
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5511$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5512
f11781c5 5513if test $ac_cv_func_alloca_works = yes; then
a946372e 5514
f11781c5 5515$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5516
a946372e 5517else
f11781c5
AK
5518 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5519# that cause trouble. Some versions do not even contain alloca or
5520# contain a buggy version. If you still want to use their alloca,
5521# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5522
f11781c5 5523ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5524
f11781c5 5525$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5526
a946372e 5527
f11781c5
AK
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5529$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5530if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5531 $as_echo_n "(cached) " >&6
a946372e 5532else
f11781c5 5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5534/* end confdefs.h. */
f11781c5
AK
5535#if defined CRAY && ! defined CRAY2
5536webecray
5537#else
5538wenotbecray
5539#endif
5540
a946372e 5541_ACEOF
f11781c5
AK
5542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5543 $EGREP "webecray" >/dev/null 2>&1; then :
5544 ac_cv_os_cray=yes
a946372e 5545else
f11781c5 5546 ac_cv_os_cray=no
a946372e 5547fi
f11781c5 5548rm -f conftest*
a946372e 5549
f11781c5
AK
5550fi
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5552$as_echo "$ac_cv_os_cray" >&6; }
5553if test $ac_cv_os_cray = yes; then
5554 for ac_func in _getb67 GETB67 getb67; do
5555 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5556ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5557if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5558
f11781c5
AK
5559cat >>confdefs.h <<_ACEOF
5560#define CRAY_STACKSEG_END $ac_func
a946372e 5561_ACEOF
a946372e 5562
f11781c5 5563 break
a946372e
AK
5564fi
5565
f11781c5
AK
5566 done
5567fi
a946372e 5568
f11781c5
AK
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5570$as_echo_n "checking stack direction for C alloca... " >&6; }
5571if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5572 $as_echo_n "(cached) " >&6
5573else
f11781c5
AK
5574 if test "$cross_compiling" = yes; then :
5575 ac_cv_c_stack_direction=0
5576else
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578/* end confdefs.h. */
5579$ac_includes_default
5580int
5581find_stack_direction ()
5582{
5583 static char *addr = 0;
5584 auto char dummy;
5585 if (addr == 0)
5586 {
5587 addr = &dummy;
5588 return find_stack_direction ();
5589 }
5590 else
5591 return (&dummy > addr) ? 1 : -1;
5592}
5593
5594int
5595main ()
5596{
5597 return find_stack_direction () < 0;
5598}
5599_ACEOF
5600if ac_fn_c_try_run "$LINENO"; then :
5601 ac_cv_c_stack_direction=1
5602else
5603 ac_cv_c_stack_direction=-1
5604fi
5605rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5606 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5607fi
a946372e
AK
5608
5609fi
f11781c5
AK
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5611$as_echo "$ac_cv_c_stack_direction" >&6; }
5612cat >>confdefs.h <<_ACEOF
5613#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5614_ACEOF
5615
f11781c5 5616
a946372e
AK
5617fi
5618
f11781c5
AK
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5620$as_echo_n "checking whether closedir returns void... " >&6; }
5621if test "${ac_cv_func_closedir_void+set}" = set; then :
5622 $as_echo_n "(cached) " >&6
5623else
5624 if test "$cross_compiling" = yes; then :
5625 ac_cv_func_closedir_void=yes
5626else
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628/* end confdefs.h. */
5629$ac_includes_default
5630#include <$ac_header_dirent>
5631#ifndef __cplusplus
5632int closedir ();
5633#endif
a946372e 5634
f11781c5
AK
5635int
5636main ()
5637{
5638return closedir (opendir (".")) != 0;
5639 ;
5640 return 0;
5641}
5642_ACEOF
5643if ac_fn_c_try_run "$LINENO"; then :
5644 ac_cv_func_closedir_void=no
a946372e 5645else
f11781c5 5646 ac_cv_func_closedir_void=yes
a946372e 5647fi
f11781c5
AK
5648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5649 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5650fi
5651
f11781c5
AK
5652fi
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5654$as_echo "$ac_cv_func_closedir_void" >&6; }
5655if test $ac_cv_func_closedir_void = yes; then
a946372e 5656
f11781c5 5657$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5658
a946372e
AK
5659fi
5660
f11781c5
AK
5661for ac_header in unistd.h
5662do :
5663 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5664if test "x$ac_cv_header_unistd_h" = x""yes; then :
5665 cat >>confdefs.h <<_ACEOF
5666#define HAVE_UNISTD_H 1
5667_ACEOF
a946372e 5668
f11781c5 5669fi
a946372e 5670
f11781c5 5671done
a946372e 5672
f11781c5
AK
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5674$as_echo_n "checking for working chown... " >&6; }
5675if test "${ac_cv_func_chown_works+set}" = set; then :
5676 $as_echo_n "(cached) " >&6
a946372e 5677else
f11781c5
AK
5678 if test "$cross_compiling" = yes; then :
5679 ac_cv_func_chown_works=no
a946372e 5680else
f11781c5
AK
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682/* end confdefs.h. */
5683$ac_includes_default
5684#include <fcntl.h>
a946372e 5685
f11781c5
AK
5686int
5687main ()
5688{
5689 char *f = "conftest.chown";
5690 struct stat before, after;
a946372e 5691
f11781c5
AK
5692 if (creat (f, 0600) < 0)
5693 return 1;
5694 if (stat (f, &before) < 0)
5695 return 1;
5696 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5697 return 1;
5698 if (stat (f, &after) < 0)
5699 return 1;
5700 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5701
f11781c5
AK
5702 ;
5703 return 0;
5704}
5705_ACEOF
5706if ac_fn_c_try_run "$LINENO"; then :
5707 ac_cv_func_chown_works=yes
a946372e 5708else
f11781c5 5709 ac_cv_func_chown_works=no
a946372e 5710fi
f11781c5
AK
5711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5712 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5713fi
5714
f11781c5 5715rm -f conftest.chown
a946372e 5716
f11781c5
AK
5717fi
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5719$as_echo "$ac_cv_func_chown_works" >&6; }
5720if test $ac_cv_func_chown_works = yes; then
a946372e 5721
f11781c5 5722$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5723
a946372e 5724fi
a946372e 5725
f11781c5
AK
5726for ac_header in vfork.h
5727do :
5728 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5729if test "x$ac_cv_header_vfork_h" = x""yes; then :
5730 cat >>confdefs.h <<_ACEOF
5731#define HAVE_VFORK_H 1
5732_ACEOF
a946372e 5733
f11781c5 5734fi
a946372e 5735
f11781c5 5736done
a946372e 5737
f11781c5
AK
5738for ac_func in fork vfork
5739do :
5740 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5741ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5742if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5743 cat >>confdefs.h <<_ACEOF
5744#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5745_ACEOF
a946372e 5746
f11781c5
AK
5747fi
5748done
a946372e 5749
f11781c5
AK
5750if test "x$ac_cv_func_fork" = xyes; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5752$as_echo_n "checking for working fork... " >&6; }
5753if test "${ac_cv_func_fork_works+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5755else
5756 if test "$cross_compiling" = yes; then :
5757 ac_cv_func_fork_works=cross
5758else
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h. */
5761$ac_includes_default
5762int
5763main ()
5764{
a946372e 5765
f11781c5
AK
5766 /* By Ruediger Kuhlmann. */
5767 return fork () < 0;
a946372e 5768
f11781c5
AK
5769 ;
5770 return 0;
5771}
5772_ACEOF
5773if ac_fn_c_try_run "$LINENO"; then :
5774 ac_cv_func_fork_works=yes
a946372e 5775else
f11781c5
AK
5776 ac_cv_func_fork_works=no
5777fi
5778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5779 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5780fi
a946372e 5781
f11781c5
AK
5782fi
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5784$as_echo "$ac_cv_func_fork_works" >&6; }
5785
a946372e 5786else
f11781c5 5787 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5788fi
f11781c5
AK
5789if test "x$ac_cv_func_fork_works" = xcross; then
5790 case $host in
5791 *-*-amigaos* | *-*-msdosdjgpp*)
5792 # Override, as these systems have only a dummy fork() stub
5793 ac_cv_func_fork_works=no
5794 ;;
5795 *)
5796 ac_cv_func_fork_works=yes
5797 ;;
5798 esac
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5800$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5801fi
f11781c5
AK
5802ac_cv_func_vfork_works=$ac_cv_func_vfork
5803if test "x$ac_cv_func_vfork" = xyes; then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5805$as_echo_n "checking for working vfork... " >&6; }
5806if test "${ac_cv_func_vfork_works+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5808else
5809 if test "$cross_compiling" = yes; then :
5810 ac_cv_func_vfork_works=cross
5811else
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813/* end confdefs.h. */
5814/* Thanks to Paul Eggert for this test. */
5815$ac_includes_default
5816#include <sys/wait.h>
5817#ifdef HAVE_VFORK_H
5818# include <vfork.h>
5819#endif
5820/* On some sparc systems, changes by the child to local and incoming
5821 argument registers are propagated back to the parent. The compiler
5822 is told about this with #include <vfork.h>, but some compilers
5823 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5824 static variable whose address is put into a register that is
5825 clobbered by the vfork. */
5826static void
5827#ifdef __cplusplus
5828sparc_address_test (int arg)
5829# else
5830sparc_address_test (arg) int arg;
5831#endif
5832{
5833 static pid_t child;
5834 if (!child) {
5835 child = vfork ();
5836 if (child < 0) {
5837 perror ("vfork");
5838 _exit(2);
5839 }
5840 if (!child) {
5841 arg = getpid();
5842 write(-1, "", 0);
5843 _exit (arg);
5844 }
5845 }
5846}
a946372e 5847
f11781c5
AK
5848int
5849main ()
5850{
5851 pid_t parent = getpid ();
5852 pid_t child;
a946372e 5853
f11781c5 5854 sparc_address_test (0);
a946372e 5855
f11781c5 5856 child = vfork ();
a946372e 5857
f11781c5
AK
5858 if (child == 0) {
5859 /* Here is another test for sparc vfork register problems. This
5860 test uses lots of local variables, at least as many local
5861 variables as main has allocated so far including compiler
5862 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5863 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5864 reuse the register of parent for one of the local variables,
5865 since it will think that parent can't possibly be used any more
5866 in this routine. Assigning to the local variable will thus
5867 munge parent in the parent process. */
5868 pid_t
5869 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5870 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5871 /* Convince the compiler that p..p7 are live; otherwise, it might
5872 use the same hardware register for all 8 local variables. */
5873 if (p != p1 || p != p2 || p != p3 || p != p4
5874 || p != p5 || p != p6 || p != p7)
5875 _exit(1);
a946372e 5876
f11781c5
AK
5877 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5878 from child file descriptors. If the child closes a descriptor
5879 before it execs or exits, this munges the parent's descriptor
5880 as well. Test for this by closing stdout in the child. */
5881 _exit(close(fileno(stdout)) != 0);
5882 } else {
5883 int status;
5884 struct stat st;
5885
5886 while (wait(&status) != child)
5887 ;
5888 return (
5889 /* Was there some problem with vforking? */
5890 child < 0
5891
5892 /* Did the child fail? (This shouldn't happen.) */
5893 || status
5894
5895 /* Did the vfork/compiler bug occur? */
5896 || parent != getpid()
5897
5898 /* Did the file descriptor bug occur? */
5899 || fstat(fileno(stdout), &st) != 0
5900 );
5901 }
5902}
5903_ACEOF
5904if ac_fn_c_try_run "$LINENO"; then :
5905 ac_cv_func_vfork_works=yes
a946372e 5906else
f11781c5 5907 ac_cv_func_vfork_works=no
a946372e 5908fi
f11781c5
AK
5909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5910 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5911fi
f11781c5 5912
a946372e 5913fi
f11781c5
AK
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5915$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5916
f11781c5
AK
5917fi;
5918if test "x$ac_cv_func_fork_works" = xcross; then
5919 ac_cv_func_vfork_works=$ac_cv_func_vfork
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5921$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5922fi
a946372e 5923
f11781c5 5924if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5925
f11781c5 5926$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5927
a946372e 5928else
a946372e 5929
f11781c5
AK
5930$as_echo "#define vfork fork" >>confdefs.h
5931
a946372e 5932fi
f11781c5 5933if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5934
f11781c5 5935$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5936
a946372e 5937fi
f11781c5
AK
5938
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5940$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5941if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
a946372e 5943else
f11781c5
AK
5944 rm -f conftest.sym conftest.file
5945echo >conftest.file
5946if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5947 if test "$cross_compiling" = yes; then :
5948 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5949else
f11781c5 5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5951/* end confdefs.h. */
f11781c5
AK
5952$ac_includes_default
5953int
5954main ()
5955{
5956struct stat sbuf;
5957 /* Linux will dereference the symlink and fail, as required by POSIX.
5958 That is better in the sense that it means we will not
5959 have to compile and use the lstat wrapper. */
5960 return lstat ("conftest.sym/", &sbuf) == 0;
5961 ;
5962 return 0;
5963}
a946372e 5964_ACEOF
f11781c5
AK
5965if ac_fn_c_try_run "$LINENO"; then :
5966 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 5967else
f11781c5 5968 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5969fi
f11781c5
AK
5970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5971 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5972fi
a946372e 5973
a946372e 5974else
f11781c5
AK
5975 # If the `ln -s' command failed, then we probably don't even
5976 # have an lstat function.
5977 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5978fi
f11781c5 5979rm -f conftest.sym conftest.file
a946372e 5980
f11781c5
AK
5981fi
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5983$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 5984
f11781c5 5985test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 5986
f11781c5
AK
5987cat >>confdefs.h <<_ACEOF
5988#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5989_ACEOF
a946372e 5990
a946372e 5991
f11781c5
AK
5992if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5993 case " $LIBOBJS " in
5994 *" lstat.$ac_objext "* ) ;;
5995 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5996 ;;
5997esac
a946372e 5998
f11781c5 5999fi
a946372e 6000
f11781c5
AK
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6002$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6003if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
a946372e 6005else
f11781c5
AK
6006 if test "$cross_compiling" = yes; then :
6007 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6008else
f11781c5
AK
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010/* end confdefs.h. */
6011$ac_includes_default
6012int
6013main ()
6014{
6015struct stat sbuf;
6016 return lstat ("", &sbuf) == 0;
6017 ;
6018 return 0;
6019}
6020_ACEOF
6021if ac_fn_c_try_run "$LINENO"; then :
6022 ac_cv_func_lstat_empty_string_bug=no
6023else
6024 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6025fi
f11781c5
AK
6026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6027 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6028fi
6029
f11781c5
AK
6030fi
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6032$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6033if test $ac_cv_func_lstat_empty_string_bug = yes; then
6034 case " $LIBOBJS " in
6035 *" lstat.$ac_objext "* ) ;;
6036 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6037 ;;
6038esac
a946372e
AK
6039
6040
f11781c5
AK
6041cat >>confdefs.h <<_ACEOF
6042#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6043_ACEOF
a946372e 6044
a946372e 6045fi
a946372e 6046
f11781c5
AK
6047for ac_header in stdlib.h
6048do :
6049 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6050if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6051 cat >>confdefs.h <<_ACEOF
6052#define HAVE_STDLIB_H 1
6053_ACEOF
6054
a946372e
AK
6055fi
6056
f11781c5 6057done
a946372e 6058
f11781c5
AK
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6060$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6061if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6062 $as_echo_n "(cached) " >&6
6063else
6064 if test "$cross_compiling" = yes; then :
6065 ac_cv_func_malloc_0_nonnull=no
6066else
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068/* end confdefs.h. */
6069#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6070# include <stdlib.h>
6071#else
6072char *malloc ();
6073#endif
a946372e 6074
f11781c5
AK
6075int
6076main ()
6077{
6078return ! malloc (0);
6079 ;
6080 return 0;
6081}
6082_ACEOF
6083if ac_fn_c_try_run "$LINENO"; then :
6084 ac_cv_func_malloc_0_nonnull=yes
a946372e 6085else
f11781c5 6086 ac_cv_func_malloc_0_nonnull=no
a946372e 6087fi
f11781c5
AK
6088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6089 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6090fi
f11781c5 6091
a946372e 6092fi
f11781c5
AK
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6094$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6095if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6096
f11781c5 6097$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6098
f11781c5
AK
6099else
6100 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6101
f11781c5
AK
6102 case " $LIBOBJS " in
6103 *" malloc.$ac_objext "* ) ;;
6104 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6105 ;;
6106esac
6107
6108
6109$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6110
a946372e 6111fi
a946372e 6112
a946372e 6113
f11781c5
AK
6114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6115$as_echo_n "checking for working memcmp... " >&6; }
6116if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6117 $as_echo_n "(cached) " >&6
a946372e 6118else
f11781c5
AK
6119 if test "$cross_compiling" = yes; then :
6120 ac_cv_func_memcmp_working=no
6121else
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6123/* end confdefs.h. */
6124$ac_includes_default
f11781c5
AK
6125int
6126main ()
6127{
a946372e 6128
f11781c5
AK
6129 /* Some versions of memcmp are not 8-bit clean. */
6130 char c0 = '\100', c1 = '\200', c2 = '\201';
6131 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6132 return 1;
a946372e 6133
f11781c5
AK
6134 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6135 or more and with at least one buffer not starting on a 4-byte boundary.
6136 William Lewis provided this test program. */
6137 {
6138 char foo[21];
6139 char bar[21];
6140 int i;
6141 for (i = 0; i < 4; i++)
6142 {
6143 char *a = foo + i;
6144 char *b = bar + i;
6145 strcpy (a, "--------01111111");
6146 strcpy (b, "--------10000000");
6147 if (memcmp (a, b, 16) >= 0)
6148 return 1;
6149 }
6150 return 0;
6151 }
a946372e 6152
f11781c5
AK
6153 ;
6154 return 0;
6155}
a946372e 6156_ACEOF
f11781c5
AK
6157if ac_fn_c_try_run "$LINENO"; then :
6158 ac_cv_func_memcmp_working=yes
a946372e 6159else
f11781c5
AK
6160 ac_cv_func_memcmp_working=no
6161fi
6162rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6163 conftest.$ac_objext conftest.beam conftest.$ac_ext
6164fi
a946372e 6165
a946372e 6166fi
f11781c5
AK
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6168$as_echo "$ac_cv_func_memcmp_working" >&6; }
6169test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6170 *" memcmp.$ac_objext "* ) ;;
6171 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6172 ;;
6173esac
a946372e 6174
a946372e 6175
a946372e 6176
a946372e 6177
f11781c5
AK
6178
6179 for ac_header in $ac_header_list
6180do :
6181 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6182ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6183"
6184if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6185 cat >>confdefs.h <<_ACEOF
6186#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6187_ACEOF
6188
a946372e
AK
6189fi
6190
6191done
6192
a946372e 6193
f11781c5
AK
6194
6195
6196
6197
6198
6199
6200for ac_func in getpagesize
6201do :
6202 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6203if test "x$ac_cv_func_getpagesize" = x""yes; then :
6204 cat >>confdefs.h <<_ACEOF
6205#define HAVE_GETPAGESIZE 1
6206_ACEOF
6207
a946372e 6208fi
f11781c5
AK
6209done
6210
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6212$as_echo_n "checking for working mmap... " >&6; }
6213if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
a946372e 6215else
f11781c5
AK
6216 if test "$cross_compiling" = yes; then :
6217 ac_cv_func_mmap_fixed_mapped=no
6218else
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6220/* end confdefs.h. */
6221$ac_includes_default
f11781c5
AK
6222/* malloc might have been renamed as rpl_malloc. */
6223#undef malloc
6224
6225/* Thanks to Mike Haertel and Jim Avera for this test.
6226 Here is a matrix of mmap possibilities:
6227 mmap private not fixed
6228 mmap private fixed at somewhere currently unmapped
6229 mmap private fixed at somewhere already mapped
6230 mmap shared not fixed
6231 mmap shared fixed at somewhere currently unmapped
6232 mmap shared fixed at somewhere already mapped
6233 For private mappings, we should verify that changes cannot be read()
6234 back from the file, nor mmap's back from the file at a different
6235 address. (There have been systems where private was not correctly
6236 implemented like the infamous i386 svr4.0, and systems where the
6237 VM page cache was not coherent with the file system buffer cache
6238 like early versions of FreeBSD and possibly contemporary NetBSD.)
6239 For shared mappings, we should conversely verify that changes get
6240 propagated back to all the places they're supposed to be.
6241
6242 Grep wants private fixed already mapped.
6243 The main things grep needs to know about mmap are:
6244 * does it exist and is it safe to write into the mmap'd area
6245 * how to use it (BSD variants) */
6246
6247#include <fcntl.h>
6248#include <sys/mman.h>
6249
6250#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6251char *malloc ();
6252#endif
6253
6254/* This mess was copied from the GNU getpagesize.h. */
6255#ifndef HAVE_GETPAGESIZE
6256# ifdef _SC_PAGESIZE
6257# define getpagesize() sysconf(_SC_PAGESIZE)
6258# else /* no _SC_PAGESIZE */
6259# ifdef HAVE_SYS_PARAM_H
6260# include <sys/param.h>
6261# ifdef EXEC_PAGESIZE
6262# define getpagesize() EXEC_PAGESIZE
6263# else /* no EXEC_PAGESIZE */
6264# ifdef NBPG
6265# define getpagesize() NBPG * CLSIZE
6266# ifndef CLSIZE
6267# define CLSIZE 1
6268# endif /* no CLSIZE */
6269# else /* no NBPG */
6270# ifdef NBPC
6271# define getpagesize() NBPC
6272# else /* no NBPC */
6273# ifdef PAGESIZE
6274# define getpagesize() PAGESIZE
6275# endif /* PAGESIZE */
6276# endif /* no NBPC */
6277# endif /* no NBPG */
6278# endif /* no EXEC_PAGESIZE */
6279# else /* no HAVE_SYS_PARAM_H */
6280# define getpagesize() 8192 /* punt totally */
6281# endif /* no HAVE_SYS_PARAM_H */
6282# endif /* no _SC_PAGESIZE */
6283
6284#endif /* no HAVE_GETPAGESIZE */
6285
6286int
6287main ()
6288{
6289 char *data, *data2, *data3;
6290 const char *cdata2;
6291 int i, pagesize;
6292 int fd, fd2;
6293
6294 pagesize = getpagesize ();
6295
6296 /* First, make a file with some known garbage in it. */
6297 data = (char *) malloc (pagesize);
6298 if (!data)
6299 return 1;
6300 for (i = 0; i < pagesize; ++i)
6301 *(data + i) = rand ();
6302 umask (0);
6303 fd = creat ("conftest.mmap", 0600);
6304 if (fd < 0)
6305 return 2;
6306 if (write (fd, data, pagesize) != pagesize)
6307 return 3;
6308 close (fd);
6309
6310 /* Next, check that the tail of a page is zero-filled. File must have
6311 non-zero length, otherwise we risk SIGBUS for entire page. */
6312 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6313 if (fd2 < 0)
6314 return 4;
6315 cdata2 = "";
6316 if (write (fd2, cdata2, 1) != 1)
6317 return 5;
6318 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6319 if (data2 == MAP_FAILED)
6320 return 6;
6321 for (i = 0; i < pagesize; ++i)
6322 if (*(data2 + i))
6323 return 7;
6324 close (fd2);
6325 if (munmap (data2, pagesize))
6326 return 8;
6327
6328 /* Next, try to mmap the file at a fixed address which already has
6329 something else allocated at it. If we can, also make sure that
6330 we see the same garbage. */
6331 fd = open ("conftest.mmap", O_RDWR);
6332 if (fd < 0)
6333 return 9;
6334 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6335 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6336 return 10;
6337 for (i = 0; i < pagesize; ++i)
6338 if (*(data + i) != *(data2 + i))
6339 return 11;
6340
6341 /* Finally, make sure that changes to the mapped area do not
6342 percolate back to the file as seen by read(). (This is a bug on
6343 some variants of i386 svr4.0.) */
6344 for (i = 0; i < pagesize; ++i)
6345 *(data2 + i) = *(data2 + i) + 1;
6346 data3 = (char *) malloc (pagesize);
6347 if (!data3)
6348 return 12;
6349 if (read (fd, data3, pagesize) != pagesize)
6350 return 13;
6351 for (i = 0; i < pagesize; ++i)
6352 if (*(data + i) != *(data3 + i))
6353 return 14;
6354 close (fd);
6355 return 0;
6356}
a946372e 6357_ACEOF
f11781c5
AK
6358if ac_fn_c_try_run "$LINENO"; then :
6359 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6360else
f11781c5
AK
6361 ac_cv_func_mmap_fixed_mapped=no
6362fi
6363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6364 conftest.$ac_objext conftest.beam conftest.$ac_ext
6365fi
a946372e 6366
a946372e 6367fi
f11781c5
AK
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6369$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6370if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6371
f11781c5 6372$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6373
f11781c5
AK
6374fi
6375rm -f conftest.mmap conftest.txt
6376
6377for ac_header in stdlib.h
6378do :
6379 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6380if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6381 cat >>confdefs.h <<_ACEOF
6382#define HAVE_STDLIB_H 1
a946372e 6383_ACEOF
f11781c5
AK
6384
6385fi
6386
6387done
6388
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6390$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6391if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6392 $as_echo_n "(cached) " >&6
6393else
6394 if test "$cross_compiling" = yes; then :
6395 ac_cv_func_realloc_0_nonnull=no
6396else
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6398/* end confdefs.h. */
f11781c5
AK
6399#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6400# include <stdlib.h>
6401#else
6402char *realloc ();
6403#endif
6404
6405int
6406main ()
6407{
6408return ! realloc (0, 0);
6409 ;
6410 return 0;
6411}
a946372e 6412_ACEOF
f11781c5
AK
6413if ac_fn_c_try_run "$LINENO"; then :
6414 ac_cv_func_realloc_0_nonnull=yes
a946372e 6415else
f11781c5
AK
6416 ac_cv_func_realloc_0_nonnull=no
6417fi
6418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6419 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6420fi
6421
f11781c5
AK
6422fi
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6424$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6425if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6426
f11781c5 6427$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6428
a946372e 6429else
f11781c5
AK
6430 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6431
6432 case " $LIBOBJS " in
6433 *" realloc.$ac_objext "* ) ;;
6434 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6435 ;;
6436esac
a946372e 6437
a946372e 6438
f11781c5
AK
6439$as_echo "#define realloc rpl_realloc" >>confdefs.h
6440
a946372e
AK
6441fi
6442
a946372e 6443
f11781c5
AK
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6445$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6446if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6447 $as_echo_n "(cached) " >&6
a946372e 6448else
f11781c5
AK
6449 if test "$cross_compiling" = yes; then :
6450 ac_cv_func_stat_empty_string_bug=yes
6451else
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453/* end confdefs.h. */
6454$ac_includes_default
6455int
6456main ()
6457{
6458struct stat sbuf;
6459 return stat ("", &sbuf) == 0;
6460 ;
6461 return 0;
6462}
6463_ACEOF
6464if ac_fn_c_try_run "$LINENO"; then :
6465 ac_cv_func_stat_empty_string_bug=no
6466else
6467 ac_cv_func_stat_empty_string_bug=yes
a946372e 6468fi
f11781c5
AK
6469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6470 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6471fi
6472
8c4e8a18 6473fi
f11781c5
AK
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6475$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6476if test $ac_cv_func_stat_empty_string_bug = yes; then
6477 case " $LIBOBJS " in
6478 *" stat.$ac_objext "* ) ;;
6479 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6480 ;;
6481esac
8c4e8a18
FDN
6482
6483
6484cat >>confdefs.h <<_ACEOF
f11781c5 6485#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6486_ACEOF
6487
6488fi
6489
f11781c5
AK
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6491$as_echo_n "checking for working strtod... " >&6; }
6492if test "${ac_cv_func_strtod+set}" = set; then :
6493 $as_echo_n "(cached) " >&6
66fd4529 6494else
f11781c5
AK
6495 if test "$cross_compiling" = yes; then :
6496 ac_cv_func_strtod=no
6497else
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499/* end confdefs.h. */
66fd4529 6500
f11781c5
AK
6501$ac_includes_default
6502#ifndef strtod
6503double strtod ();
6504#endif
6505int
6506main()
6507{
6508 {
6509 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6510 char *string = " +69";
6511 char *term;
6512 double value;
6513 value = strtod (string, &term);
6514 if (value != 69 || term != (string + 4))
6515 return 1;
6516 }
66fd4529 6517
f11781c5
AK
6518 {
6519 /* Under Solaris 2.4, strtod returns the wrong value for the
6520 terminating character under some conditions. */
6521 char *string = "NaN";
6522 char *term;
6523 strtod (string, &term);
6524 if (term != string && *(term - 1) == 0)
6525 return 1;
6526 }
6527 return 0;
6528}
66fd4529 6529
f11781c5
AK
6530_ACEOF
6531if ac_fn_c_try_run "$LINENO"; then :
6532 ac_cv_func_strtod=yes
66fd4529 6533else
f11781c5
AK
6534 ac_cv_func_strtod=no
6535fi
6536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6537 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6538fi
6539
f11781c5
AK
6540fi
6541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6542$as_echo "$ac_cv_func_strtod" >&6; }
6543if test $ac_cv_func_strtod = no; then
6544 case " $LIBOBJS " in
6545 *" strtod.$ac_objext "* ) ;;
6546 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6547 ;;
6548esac
71082be4 6549
f11781c5
AK
6550ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6551if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6552
66fd4529 6553fi
a946372e 6554
f11781c5
AK
6555if test $ac_cv_func_pow = no; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6557$as_echo_n "checking for pow in -lm... " >&6; }
6558if test "${ac_cv_lib_m_pow+set}" = set; then :
6559 $as_echo_n "(cached) " >&6
6560else
6561 ac_check_lib_save_LIBS=$LIBS
6562LIBS="-lm $LIBS"
6563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564/* end confdefs.h. */
90c80887 6565
f11781c5
AK
6566/* Override any GCC internal prototype to avoid an error.
6567 Use char because int might match the return type of a GCC
6568 builtin and then its argument prototype would still apply. */
6569#ifdef __cplusplus
6570extern "C"
6571#endif
6572char pow ();
6573int
6574main ()
6575{
6576return pow ();
6577 ;
6578 return 0;
6579}
6580_ACEOF
6581if ac_fn_c_try_link "$LINENO"; then :
6582 ac_cv_lib_m_pow=yes
90c80887 6583else
f11781c5 6584 ac_cv_lib_m_pow=no
90c80887 6585fi
f11781c5
AK
6586rm -f core conftest.err conftest.$ac_objext \
6587 conftest$ac_exeext conftest.$ac_ext
6588LIBS=$ac_check_lib_save_LIBS
90c80887 6589fi
f11781c5
AK
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6591$as_echo "$ac_cv_lib_m_pow" >&6; }
6592if test "x$ac_cv_lib_m_pow" = x""yes; then :
6593 POW_LIB=-lm
90c80887 6594else
f11781c5
AK
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6596$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6597fi
f11781c5 6598
90c80887
AK
6599fi
6600
f11781c5
AK
6601fi
6602
6603for ac_func in vprintf
6604do :
6605 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6606if test "x$ac_cv_func_vprintf" = x""yes; then :
6607 cat >>confdefs.h <<_ACEOF
6608#define HAVE_VPRINTF 1
6609_ACEOF
90c80887 6610
f11781c5
AK
6611ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6612if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6613
f11781c5 6614$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6615
90c80887 6616fi
90c80887 6617
f11781c5
AK
6618fi
6619done
90c80887 6620
90c80887 6621
90c80887 6622
f11781c5
AK
6623################################################################################
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6625$as_echo_n "checking whether to use static linking... " >&6; }
6626# Check whether --enable-static_link was given.
6627if test "${enable_static_link+set}" = set; then :
6628 enableval=$enable_static_link; STATIC_LINK=$enableval
6629else
6630 STATIC_LINK=no
6631fi
90c80887 6632
f11781c5
AK
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6634$as_echo "$STATIC_LINK" >&6; }
90c80887 6635
f11781c5 6636################################################################################
90c80887 6637
90c80887 6638
f11781c5
AK
6639################################################################################
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6641$as_echo_n "checking file owner... " >&6; }
90c80887 6642
f11781c5
AK
6643# Check whether --with-user was given.
6644if test "${with_user+set}" = set; then :
6645 withval=$with_user; OWNER=$withval
6646fi
90c80887 6647
f11781c5
AK
6648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6649$as_echo "$OWNER" >&6; }
90c80887 6650
f11781c5
AK
6651if test x$OWNER != x; then
6652 INSTALL="$INSTALL -o $OWNER"
90c80887 6653fi
a946372e 6654
f11781c5
AK
6655################################################################################
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6657$as_echo_n "checking group owner... " >&6; }
a946372e 6658
f11781c5
AK
6659# Check whether --with-group was given.
6660if test "${with_group+set}" = set; then :
6661 withval=$with_group; GROUP=$withval
a946372e 6662fi
f11781c5
AK
6663
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6665$as_echo "$GROUP" >&6; }
6666
6667if test x$GROUP != x; then
6668 INSTALL="$INSTALL -g $GROUP"
a946372e 6669fi
f11781c5
AK
6670
6671################################################################################
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6673$as_echo_n "checking device node uid... " >&6; }
6674
6675
6676# Check whether --with-device-uid was given.
6677if test "${with_device_uid+set}" = set; then :
6678 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6679else
f11781c5 6680 DM_DEVICE_UID=0
a946372e
AK
6681fi
6682
f11781c5
AK
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6684$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6685
f11781c5
AK
6686################################################################################
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6688$as_echo_n "checking device node gid... " >&6; }
a946372e 6689
a946372e 6690
f11781c5
AK
6691# Check whether --with-device-gid was given.
6692if test "${with_device_gid+set}" = set; then :
6693 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6694else
f11781c5 6695 DM_DEVICE_GID=0
a946372e 6696fi
a946372e 6697
f11781c5
AK
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6699$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6700
f11781c5
AK
6701################################################################################
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6703$as_echo_n "checking device node mode... " >&6; }
90c80887 6704
90c80887 6705
f11781c5
AK
6706# Check whether --with-device-mode was given.
6707if test "${with_device_mode+set}" = set; then :
6708 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6709else
6710 DM_DEVICE_MODE=0600
6711fi
90c80887 6712
f11781c5
AK
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6714$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6715
d0df875d
ZK
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6717$as_echo_n "checking when to create device nodes... " >&6; }
6718
6719# Check whether --with-device-nodes-on was given.
6720if test "${with_device_nodes_on+set}" = set; then :
6721 withval=$with_device_nodes_on; ADD_NODE=$withval
6722else
6723 ADD_NODE=resume
6724fi
6725
6726case "$ADD_NODE" in
6727 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6728 create) add_on=DM_ADD_NODE_ON_CREATE;;
6729 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6730esac
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6732$as_echo "on $ADD_NODE" >&6; }
6733
6734cat >>confdefs.h <<_ACEOF
6735#define DEFAULT_DM_ADD_NODE $add_on
6736_ACEOF
6737
6738
f11781c5
AK
6739################################################################################
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6741$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6742# Check whether --enable-lvm1_fallback was given.
6743if test "${enable_lvm1_fallback+set}" = set; then :
6744 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6745else
6746 LVM1_FALLBACK=no
6747fi
90c80887 6748
f11781c5
AK
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6750$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6751
f11781c5 6752if test x$LVM1_FALLBACK = xyes; then
90c80887 6753
f11781c5 6754$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6755
f11781c5 6756fi
90c80887 6757
f11781c5
AK
6758################################################################################
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6760$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6761
6762# Check whether --with-lvm1 was given.
6763if test "${with_lvm1+set}" = set; then :
6764 withval=$with_lvm1; LVM1=$withval
a946372e 6765else
f11781c5 6766 LVM1=internal
a946372e 6767fi
f11781c5
AK
6768
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6770$as_echo "$LVM1" >&6; }
6771
6772if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6773 then as_fn_error $? "--with-lvm1 parameter invalid
6774" "$LINENO" 5
6775fi;
6776
6777if test x$LVM1 = xinternal; then
6778
6779$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6780
a946372e
AK
6781fi
6782
6783################################################################################
f11781c5
AK
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6785$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6786
6787# Check whether --with-pool was given.
6788if test "${with_pool+set}" = set; then :
6789 withval=$with_pool; POOL=$withval
a946372e 6790else
f11781c5 6791 POOL=internal
a946372e
AK
6792fi
6793
f11781c5
AK
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6795$as_echo "$POOL" >&6; }
6796
6797if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6798 then as_fn_error $? "--with-pool parameter invalid
6799" "$LINENO" 5
6800fi;
6801
6802if test x$POOL = xinternal; then
6803
6804$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6805
a946372e
AK
6806fi
6807
6808################################################################################
f11781c5
AK
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6810$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6811
f11781c5
AK
6812# Check whether --with-cluster was given.
6813if test "${with_cluster+set}" = set; then :
6814 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6815fi
6816
f11781c5
AK
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6818$as_echo "$CLUSTER" >&6; }
a946372e 6819
f11781c5
AK
6820if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6821 then as_fn_error $? "--with-cluster parameter invalid
6822" "$LINENO" 5
6823fi;
fddafd51 6824
f11781c5 6825if test x$CLUSTER = xinternal; then
5556819a 6826
f11781c5 6827$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6828
fddafd51 6829fi
f11781c5
AK
6830
6831################################################################################
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6833$as_echo_n "checking whether to include snapshots... " >&6; }
6834
6835# Check whether --with-snapshots was given.
6836if test "${with_snapshots+set}" = set; then :
6837 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6838else
f11781c5 6839 SNAPSHOTS=internal
fddafd51
ZK
6840fi
6841
f11781c5
AK
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6843$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6844
f11781c5
AK
6845if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6846 then as_fn_error $? "--with-snapshots parameter invalid
6847" "$LINENO" 5
6848fi;
fddafd51 6849
f11781c5
AK
6850if test x$SNAPSHOTS = xinternal; then
6851
6852$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6853
6854fi
6855
6856################################################################################
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6858$as_echo_n "checking whether to include mirrors... " >&6; }
6859
6860# Check whether --with-mirrors was given.
6861if test "${with_mirrors+set}" = set; then :
6862 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6863else
f11781c5 6864 MIRRORS=internal
fddafd51
ZK
6865fi
6866
f11781c5
AK
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6868$as_echo "$MIRRORS" >&6; }
fddafd51 6869
f11781c5
AK
6870if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6871 then as_fn_error $? "--with-mirrors parameter invalid
6872" "$LINENO" 5
6873fi;
6874
6875if test x$MIRRORS = xinternal; then
6876
6877$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6878
6879fi
6880
cac52ca4
JEB
6881################################################################################
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6883$as_echo_n "checking whether to include raid... " >&6; }
6884
6885# Check whether --with-raid was given.
6886if test "${with_raid+set}" = set; then :
6887 withval=$with_raid; RAID=$withval
6888else
6889 RAID=internal
6890fi
6891
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6893$as_echo "$RAID" >&6; }
6894
6895if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6896 then as_fn_error $? "--with-raid parameter invalid
6897" "$LINENO" 5
6898fi;
6899
6900if test x$RAID = xinternal; then
6901
6902$as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6903
6904fi
6905
f11781c5
AK
6906################################################################################
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6908$as_echo_n "checking whether to include replicators... " >&6; }
6909
6910# Check whether --with-replicators was given.
6911if test "${with_replicators+set}" = set; then :
6912 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6913else
f11781c5
AK
6914 REPLICATORS=none
6915fi
fd4728e1 6916
f11781c5
AK
6917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6918$as_echo "$REPLICATORS" >&6; }
6919
6920case "$REPLICATORS" in
6921 none|shared) ;;
6922 internal)
6923$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6924 ;;
6925 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 6926esac
f11781c5
AK
6927
6928################################################################################
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6930$as_echo_n "checking whether to enable readline... " >&6; }
6931# Check whether --enable-readline was given.
6932if test "${enable_readline+set}" = set; then :
6933 enableval=$enable_readline; READLINE=$enableval
fd4728e1 6934else
f11781c5 6935 READLINE=maybe
fd4728e1
ZK
6936fi
6937
f11781c5
AK
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6939$as_echo "$READLINE" >&6; }
fd4728e1 6940
f11781c5
AK
6941################################################################################
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6943$as_echo_n "checking whether to enable realtime support... " >&6; }
6944# Check whether --enable-realtime was given.
6945if test "${enable_realtime+set}" = set; then :
6946 enableval=$enable_realtime; REALTIME=$enableval
5556819a 6947fi
d0191583 6948
f11781c5
AK
6949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6950$as_echo "$REALTIME" >&6; }
6951
54b362f9 6952################################################################################
f11781c5
AK
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6954$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6955# Check whether --enable-ocf was given.
6956if test "${enable_ocf+set}" = set; then :
6957 enableval=$enable_ocf; OCF=$enableval
54b362f9 6958else
f11781c5 6959 OCF=no
54b362f9
AK
6960fi
6961
f11781c5
AK
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6963$as_echo "$OCF" >&6; }
54b362f9 6964
606d0858
AK
6965# Check whether --with-ocfdir was given.
6966if test "${with_ocfdir+set}" = set; then :
6967 withval=$with_ocfdir; OCFDIR=$withval
6968else
6969 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
6970fi
6971
6972
f11781c5
AK
6973################################################################################
6974pkg_config_init() {
6975
6976
6977
6978
6979
6980
6981if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6982 if test -n "$ac_tool_prefix"; then
6983 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6984set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 6986$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 6987if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
6988 $as_echo_n "(cached) " >&6
6989else
f11781c5 6990 case $PKG_CONFIG in
54b362f9 6991 [\\/]* | ?:[\\/]*)
f11781c5 6992 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
6993 ;;
6994 *)
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
f11781c5 7000 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7002 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7004 break 2
7005 fi
7006done
f11781c5 7007 done
54b362f9
AK
7008IFS=$as_save_IFS
7009
7010 ;;
7011esac
7012fi
f11781c5
AK
7013PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7014if test -n "$PKG_CONFIG"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7016$as_echo "$PKG_CONFIG" >&6; }
54b362f9 7017else
f11781c5 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7019$as_echo "no" >&6; }
7020fi
7021
7022
f11781c5
AK
7023fi
7024if test -z "$ac_cv_path_PKG_CONFIG"; then
7025 ac_pt_PKG_CONFIG=$PKG_CONFIG
7026 # Extract the first word of "pkg-config", so it can be a program name with args.
7027set dummy pkg-config; ac_word=$2
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7029$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7030if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7031 $as_echo_n "(cached) " >&6
7032else
f11781c5 7033 case $ac_pt_PKG_CONFIG in
54b362f9 7034 [\\/]* | ?:[\\/]*)
f11781c5 7035 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7036 ;;
7037 *)
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
f11781c5 7043 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7045 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7047 break 2
7048 fi
7049done
f11781c5 7050 done
54b362f9
AK
7051IFS=$as_save_IFS
7052
7053 ;;
7054esac
7055fi
f11781c5
AK
7056ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7057if test -n "$ac_pt_PKG_CONFIG"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7059$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7060else
f11781c5 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7062$as_echo "no" >&6; }
7063fi
7064
f11781c5
AK
7065 if test "x$ac_pt_PKG_CONFIG" = x; then
7066 PKG_CONFIG=""
7067 else
7068 case $cross_compiling:$ac_tool_warned in
7069yes:)
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7072ac_tool_warned=yes ;;
7073esac
7074 PKG_CONFIG=$ac_pt_PKG_CONFIG
7075 fi
d1e8046f 7076else
f11781c5 7077 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7078fi
7079
f11781c5
AK
7080fi
7081if test -n "$PKG_CONFIG"; then
7082 _pkg_min_version=0.9.0
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7084$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7085 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7087$as_echo "yes" >&6; }
7088 else
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090$as_echo "no" >&6; }
7091 PKG_CONFIG=""
7092 fi
7093fi
d1e8046f 7094
f11781c5
AK
7095pkg_failed=no
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7097$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7098
f11781c5
AK
7099if test -n "$PKGCONFIGINIT_CFLAGS"; then
7100 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7101 elif test -n "$PKG_CONFIG"; then
7102 if test -n "$PKG_CONFIG" && \
7103 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7104 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7105 ac_status=$?
7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107 test $ac_status = 0; }; then
7108 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7109else
f11781c5
AK
7110 pkg_failed=yes
7111fi
7112 else
7113 pkg_failed=untried
7114fi
7115if test -n "$PKGCONFIGINIT_LIBS"; then
7116 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7117 elif test -n "$PKG_CONFIG"; then
7118 if test -n "$PKG_CONFIG" && \
7119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7120 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7121 ac_status=$?
f11781c5
AK
7122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7123 test $ac_status = 0; }; then
7124 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7125else
f11781c5
AK
7126 pkg_failed=yes
7127fi
7128 else
7129 pkg_failed=untried
d1e8046f
AK
7130fi
7131
d1e8046f 7132
f11781c5
AK
7133
7134if test $pkg_failed = yes; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136$as_echo "no" >&6; }
7137
7138if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7139 _pkg_short_errors_supported=yes
7140else
7141 _pkg_short_errors_supported=no
7142fi
7143 if test $_pkg_short_errors_supported = yes; then
7144 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7145 else
7146 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7147 fi
7148 # Put the nasty error message in config.log where it belongs
7149 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7150
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7152$as_echo "pkg-config initialized" >&6; }
7153elif test $pkg_failed = untried; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155$as_echo "no" >&6; }
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7157$as_echo "pkg-config initialized" >&6; }
d1e8046f 7158else
f11781c5
AK
7159 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7160 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7162$as_echo "yes" >&6; }
d1e8046f 7163
d1e8046f 7164fi
f11781c5
AK
7165 PKGCONFIG_INIT=1
7166}
d1e8046f 7167
f11781c5
AK
7168################################################################################
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7170$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7171
f11781c5
AK
7172# Check whether --with-clvmd was given.
7173if test "${with_clvmd+set}" = set; then :
7174 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7175else
f11781c5 7176 CLVMD=none
d1e8046f 7177fi
d1e8046f 7178
f11781c5
AK
7179if test x$CLVMD = xyes; then
7180 CLVMD=all
d1e8046f 7181fi
f11781c5
AK
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7183$as_echo "$CLVMD" >&6; }
d1e8046f 7184
f11781c5
AK
7185if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7186 CLUSTER=internal
d1e8046f
AK
7187fi
7188
f11781c5
AK
7189if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7190 pkg_config_init
7191fi
d1e8046f 7192
f11781c5
AK
7193CLVMD_CMANAGERS=""
7194CLVMD_NEEDS_QDISKD=no
d1e8046f 7195
f11781c5 7196if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
13db5983 7197 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
d1e8046f 7198fi
f11781c5
AK
7199if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7200 BUILDCMAN=yes
7201 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7202 CLVMD_NEEDS_QDISKD=yes
7203fi
7204if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7205 BUILDCOROSYNC=yes
7206 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7207fi
7208if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7209 BUILDOPENAIS=yes
7210 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7211fi
7212if test x$CLVMD_NEEDS_QDISKD != xno; then
7213 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7214fi
7215
f11781c5
AK
7216soft_bailout() {
7217 NOTFOUND=1
7218}
ad6254c5 7219
f11781c5
AK
7220hard_bailout() {
7221 as_fn_error $? "bailing out" "$LINENO" 5
7222}
ad6254c5 7223
f11781c5
AK
7224if test x$CLVMD = xall; then
7225 bailout=soft_bailout
f11781c5
AK
7226 BUILDCMAN=yes
7227 BUILDCOROSYNC=yes
7228 BUILDOPENAIS=yes
a5f46f6a 7229else
f11781c5 7230 bailout=hard_bailout
a5f46f6a
AK
7231fi
7232
f11781c5
AK
7233check_lib_no_libs() {
7234 lib_no_libs_arg1=$1
7235 shift
7236 lib_no_libs_arg2=$1
7237 shift
7238 lib_no_libs_args=$@
7239 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7241$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7242if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7243 $as_echo_n "(cached) " >&6
7244else
7245 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7246LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7248/* end confdefs.h. */
7249
7250/* Override any GCC internal prototype to avoid an error.
7251 Use char because int might match the return type of a GCC
7252 builtin and then its argument prototype would still apply. */
7253#ifdef __cplusplus
7254extern "C"
7255#endif
f11781c5 7256char $lib_no_libs_arg2 ();
90c80887
AK
7257int
7258main ()
7259{
f11781c5 7260return $lib_no_libs_arg2 ();
90c80887
AK
7261 ;
7262 return 0;
7263}
7264_ACEOF
f11781c5
AK
7265if ac_fn_c_try_link "$LINENO"; then :
7266 eval "$as_ac_Lib=yes"
90c80887 7267else
f11781c5 7268 eval "$as_ac_Lib=no"
90c80887 7269fi
f11781c5
AK
7270rm -f core conftest.err conftest.$ac_objext \
7271 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7272LIBS=$ac_check_lib_save_LIBS
7273fi
f11781c5
AK
7274eval ac_res=\$$as_ac_Lib
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7276$as_echo "$ac_res" >&6; }
7277if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7278 cat >>confdefs.h <<_ACEOF
7279#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7280_ACEOF
7281
7282 LIBS="-l$lib_no_libs_arg1 $LIBS"
7283
90c80887 7284else
f11781c5 7285 $bailout
90c80887
AK
7286fi
7287
f11781c5
AK
7288 LIBS=$ac_check_lib_save_LIBS
7289}
90c80887 7290
f11781c5 7291if test x$BUILDCMAN = xyes; then
ad6254c5 7292
f11781c5
AK
7293pkg_failed=no
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7295$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7296
f11781c5
AK
7297if test -n "$CMAN_CFLAGS"; then
7298 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7299 elif test -n "$PKG_CONFIG"; then
7300 if test -n "$PKG_CONFIG" && \
7301 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7302 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7303 ac_status=$?
7304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7305 test $ac_status = 0; }; then
7306 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7307else
7308 pkg_failed=yes
ad6254c5 7309fi
f11781c5
AK
7310 else
7311 pkg_failed=untried
ad6254c5 7312fi
f11781c5
AK
7313if test -n "$CMAN_LIBS"; then
7314 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7315 elif test -n "$PKG_CONFIG"; then
7316 if test -n "$PKG_CONFIG" && \
7317 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7318 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 7319 ac_status=$?
f11781c5
AK
7320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7321 test $ac_status = 0; }; then
7322 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7323else
f11781c5
AK
7324 pkg_failed=yes
7325fi
7326 else
7327 pkg_failed=untried
93bd259b
AK
7328fi
7329
f11781c5
AK
7330
7331
7332if test $pkg_failed = yes; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334$as_echo "no" >&6; }
7335
7336if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7337 _pkg_short_errors_supported=yes
7338else
7339 _pkg_short_errors_supported=no
93bd259b 7340fi
f11781c5
AK
7341 if test $_pkg_short_errors_supported = yes; then
7342 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7343 else
7344 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7345 fi
7346 # Put the nasty error message in config.log where it belongs
7347 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7348
f11781c5
AK
7349 NOTFOUND=0
7350 for ac_header in libcman.h
7351do :
7352 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7353if test "x$ac_cv_header_libcman_h" = x""yes; then :
7354 cat >>confdefs.h <<_ACEOF
7355#define HAVE_LIBCMAN_H 1
93bd259b
AK
7356_ACEOF
7357
f11781c5
AK
7358else
7359 $bailout
93bd259b
AK
7360fi
7361
f11781c5 7362done
93bd259b 7363
f11781c5
AK
7364 check_lib_no_libs cman cman_init
7365 if test $NOTFOUND = 0; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7367$as_echo "no pkg for libcman, using -lcman" >&6; }
7368 CMAN_LIBS="-lcman"
7369 HAVE_CMAN=yes
7370 fi
7371elif test $pkg_failed = untried; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
7374 NOTFOUND=0
7375 for ac_header in libcman.h
7376do :
7377 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7378if test "x$ac_cv_header_libcman_h" = x""yes; then :
7379 cat >>confdefs.h <<_ACEOF
7380#define HAVE_LIBCMAN_H 1
93bd259b 7381_ACEOF
93bd259b 7382
93bd259b 7383else
f11781c5 7384 $bailout
93bd259b
AK
7385fi
7386
f11781c5
AK
7387done
7388
7389 check_lib_no_libs cman cman_init
7390 if test $NOTFOUND = 0; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7392$as_echo "no pkg for libcman, using -lcman" >&6; }
7393 CMAN_LIBS="-lcman"
7394 HAVE_CMAN=yes
7395 fi
7396else
7397 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7398 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7400$as_echo "yes" >&6; }
7401 HAVE_CMAN=yes
93bd259b 7402fi
f11781c5
AK
7403 CHECKCONFDB=yes
7404 CHECKDLM=yes
93bd259b
AK
7405fi
7406
f11781c5
AK
7407if test x$BUILDCOROSYNC = xyes || \
7408 test x$BUILDOPENAIS = xyes; then
93bd259b 7409
f11781c5
AK
7410pkg_failed=no
7411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7412$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7413
f11781c5
AK
7414if test -n "$COROSYNC_CFLAGS"; then
7415 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7416 elif test -n "$PKG_CONFIG"; then
7417 if test -n "$PKG_CONFIG" && \
7418 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7419 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7420 ac_status=$?
7421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7422 test $ac_status = 0; }; then
7423 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7424else
f11781c5
AK
7425 pkg_failed=yes
7426fi
7427 else
7428 pkg_failed=untried
7429fi
7430if test -n "$COROSYNC_LIBS"; then
7431 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7432 elif test -n "$PKG_CONFIG"; then
7433 if test -n "$PKG_CONFIG" && \
7434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7435 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7436 ac_status=$?
f11781c5
AK
7437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438 test $ac_status = 0; }; then
7439 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7440else
f11781c5 7441 pkg_failed=yes
ad6254c5 7442fi
f11781c5
AK
7443 else
7444 pkg_failed=untried
ad6254c5 7445fi
ad6254c5 7446
72b2cb61 7447
72b2cb61 7448
f11781c5
AK
7449if test $pkg_failed = yes; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451$as_echo "no" >&6; }
19a2c6e0 7452
f11781c5
AK
7453if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7454 _pkg_short_errors_supported=yes
7455else
7456 _pkg_short_errors_supported=no
ad6254c5 7457fi
f11781c5
AK
7458 if test $_pkg_short_errors_supported = yes; then
7459 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7460 else
7461 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7462 fi
7463 # Put the nasty error message in config.log where it belongs
7464 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7465
f11781c5
AK
7466 $bailout
7467elif test $pkg_failed = untried; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469$as_echo "no" >&6; }
7470 $bailout
7471else
7472 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7473 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7475$as_echo "yes" >&6; }
7476 HAVE_COROSYNC=yes
7477fi
7478 CHECKCONFDB=yes
ad6254c5
AK
7479fi
7480
f11781c5 7481if test x$BUILDCOROSYNC = xyes; then
f30875db 7482
f11781c5
AK
7483pkg_failed=no
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7485$as_echo_n "checking for QUORUM... " >&6; }
7486
7487if test -n "$QUORUM_CFLAGS"; then
7488 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7489 elif test -n "$PKG_CONFIG"; then
7490 if test -n "$PKG_CONFIG" && \
7491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7492 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7493 ac_status=$?
f11781c5
AK
7494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7495 test $ac_status = 0; }; then
7496 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7497else
f11781c5 7498 pkg_failed=yes
f30875db 7499fi
f11781c5
AK
7500 else
7501 pkg_failed=untried
f30875db 7502fi
f11781c5
AK
7503if test -n "$QUORUM_LIBS"; then
7504 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7505 elif test -n "$PKG_CONFIG"; then
7506 if test -n "$PKG_CONFIG" && \
7507 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7508 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7509 ac_status=$?
7510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7511 test $ac_status = 0; }; then
7512 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7513else
f11781c5 7514 pkg_failed=yes
f30875db 7515fi
f11781c5
AK
7516 else
7517 pkg_failed=untried
7518fi
7519
f30875db 7520
f11781c5
AK
7521
7522if test $pkg_failed = yes; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524$as_echo "no" >&6; }
7525
7526if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7527 _pkg_short_errors_supported=yes
7528else
7529 _pkg_short_errors_supported=no
f30875db 7530fi
f11781c5
AK
7531 if test $_pkg_short_errors_supported = yes; then
7532 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7533 else
7534 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7535 fi
7536 # Put the nasty error message in config.log where it belongs
7537 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7538
f11781c5
AK
7539 $bailout
7540elif test $pkg_failed = untried; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542$as_echo "no" >&6; }
7543 $bailout
7544else
7545 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7546 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7548$as_echo "yes" >&6; }
7549 HAVE_QUORUM=yes
7550fi
7551 CHECKCPG=yes
7552 CHECKDLM=yes
d0191583
JM
7553fi
7554
f11781c5 7555if test x$BUILDOPENAIS = xyes; then
d0191583 7556
f11781c5
AK
7557pkg_failed=no
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7559$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7560
f11781c5
AK
7561if test -n "$SALCK_CFLAGS"; then
7562 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7563 elif test -n "$PKG_CONFIG"; then
7564 if test -n "$PKG_CONFIG" && \
7565 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7566 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7567 ac_status=$?
7568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7569 test $ac_status = 0; }; then
7570 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7571else
7572 pkg_failed=yes
7573fi
7574 else
7575 pkg_failed=untried
7576fi
7577if test -n "$SALCK_LIBS"; then
7578 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7579 elif test -n "$PKG_CONFIG"; then
7580 if test -n "$PKG_CONFIG" && \
7581 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7582 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7583 ac_status=$?
f11781c5
AK
7584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585 test $ac_status = 0; }; then
7586 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7587else
f11781c5 7588 pkg_failed=yes
8a2fc586 7589fi
f11781c5
AK
7590 else
7591 pkg_failed=untried
8a2fc586 7592fi
d0191583 7593
d0191583 7594
f8f6ec92 7595
f11781c5
AK
7596if test $pkg_failed = yes; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598$as_echo "no" >&6; }
8a2fc586 7599
f11781c5
AK
7600if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7601 _pkg_short_errors_supported=yes
ad6254c5 7602else
f11781c5
AK
7603 _pkg_short_errors_supported=no
7604fi
7605 if test $_pkg_short_errors_supported = yes; then
7606 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7607 else
7608 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7609 fi
7610 # Put the nasty error message in config.log where it belongs
7611 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7612
f11781c5
AK
7613 $bailout
7614elif test $pkg_failed = untried; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616$as_echo "no" >&6; }
7617 $bailout
ad6254c5 7618else
f11781c5
AK
7619 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7620 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7622$as_echo "yes" >&6; }
7623 HAVE_SALCK=yes
ad6254c5 7624fi
f11781c5 7625 CHECKCPG=yes
ad6254c5 7626fi
ad6254c5 7627
72b2cb61 7628
f8f6ec92 7629
f11781c5 7630if test x$CHECKCONFDB = xyes; then
f8f6ec92 7631
f11781c5
AK
7632pkg_failed=no
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7634$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7635
f11781c5
AK
7636if test -n "$CONFDB_CFLAGS"; then
7637 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7638 elif test -n "$PKG_CONFIG"; then
7639 if test -n "$PKG_CONFIG" && \
7640 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7641 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7642 ac_status=$?
f11781c5
AK
7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644 test $ac_status = 0; }; then
7645 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7646else
f11781c5
AK
7647 pkg_failed=yes
7648fi
7649 else
7650 pkg_failed=untried
7651fi
7652if test -n "$CONFDB_LIBS"; then
7653 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7654 elif test -n "$PKG_CONFIG"; then
7655 if test -n "$PKG_CONFIG" && \
7656 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7657 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7658 ac_status=$?
7659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660 test $ac_status = 0; }; then
7661 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7662else
7663 pkg_failed=yes
7664fi
7665 else
7666 pkg_failed=untried
f8f6ec92
ZK
7667fi
7668
f8f6ec92 7669
66e941e8 7670
f11781c5
AK
7671if test $pkg_failed = yes; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673$as_echo "no" >&6; }
7674
7675if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7676 _pkg_short_errors_supported=yes
f8f6ec92 7677else
f11781c5 7678 _pkg_short_errors_supported=no
66e941e8 7679fi
f11781c5
AK
7680 if test $_pkg_short_errors_supported = yes; then
7681 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7682 else
7683 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7684 fi
7685 # Put the nasty error message in config.log where it belongs
7686 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7687
f11781c5
AK
7688 HAVE_CONFDB=no
7689elif test $pkg_failed = untried; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691$as_echo "no" >&6; }
7692 HAVE_CONFDB=no
7693else
7694 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7695 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7697$as_echo "yes" >&6; }
7698 HAVE_CONFDB=yes
66e941e8 7699fi
f11781c5
AK
7700
7701 for ac_header in corosync/confdb.h
7702do :
7703 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7704if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7705 cat >>confdefs.h <<_ACEOF
f11781c5 7706#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7707_ACEOF
f11781c5 7708 HAVE_CONFDB_H=yes
66e941e8 7709else
f11781c5 7710 HAVE_CONFDB_H=no
66e941e8 7711fi
dd1f2c09
MB
7712
7713done
7714
7715
f11781c5
AK
7716 if test x$HAVE_CONFDB != xyes && \
7717 test x$HAVE_CONFDB_H = xyes; then
7718 check_lib_no_libs confdb confdb_initialize
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7720$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7721 CONFDB_LIBS="-lconfdb"
7722 HAVE_CONFDB=yes
7723 fi
7724
7725 if test x$BUILDCOROSYNC = xyes && \
7726 test x$HAVE_CONFDB != xyes &&
7727 test x$CLVMD != xall; then
7728 as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5
7729 fi
dd1f2c09 7730fi
f11781c5
AK
7731
7732if test x$CHECKCPG = xyes; then
7733
7734pkg_failed=no
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7736$as_echo_n "checking for CPG... " >&6; }
7737
7738if test -n "$CPG_CFLAGS"; then
7739 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7740 elif test -n "$PKG_CONFIG"; then
7741 if test -n "$PKG_CONFIG" && \
7742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7743 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7744 ac_status=$?
7745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7746 test $ac_status = 0; }; then
7747 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 7748else
f11781c5
AK
7749 pkg_failed=yes
7750fi
7751 else
7752 pkg_failed=untried
7753fi
7754if test -n "$CPG_LIBS"; then
7755 pkg_cv_CPG_LIBS="$CPG_LIBS"
7756 elif test -n "$PKG_CONFIG"; then
7757 if test -n "$PKG_CONFIG" && \
7758 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7759 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 7760 ac_status=$?
f11781c5
AK
7761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7762 test $ac_status = 0; }; then
7763 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 7764else
f11781c5
AK
7765 pkg_failed=yes
7766fi
7767 else
7768 pkg_failed=untried
7769fi
7770
7771
7772
7773if test $pkg_failed = yes; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775$as_echo "no" >&6; }
7776
7777if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7778 _pkg_short_errors_supported=yes
7779else
7780 _pkg_short_errors_supported=no
7781fi
7782 if test $_pkg_short_errors_supported = yes; then
7783 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7784 else
7785 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7786 fi
7787 # Put the nasty error message in config.log where it belongs
7788 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 7789
f11781c5
AK
7790 $bailout
7791elif test $pkg_failed = untried; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793$as_echo "no" >&6; }
7794 $bailout
7795else
7796 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
7797 CPG_LIBS=$pkg_cv_CPG_LIBS
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7799$as_echo "yes" >&6; }
7800 HAVE_CPG=yes
7801fi
dd1f2c09
MB
7802fi
7803
f11781c5 7804if test x$CHECKDLM = xyes; then
dd1f2c09 7805
f11781c5
AK
7806pkg_failed=no
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
7808$as_echo_n "checking for DLM... " >&6; }
7809
7810if test -n "$DLM_CFLAGS"; then
7811 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
7812 elif test -n "$PKG_CONFIG"; then
7813 if test -n "$PKG_CONFIG" && \
7814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7815 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 7816 ac_status=$?
f11781c5
AK
7817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7818 test $ac_status = 0; }; then
7819 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 7820else
f11781c5
AK
7821 pkg_failed=yes
7822fi
7823 else
7824 pkg_failed=untried
7825fi
7826if test -n "$DLM_LIBS"; then
7827 pkg_cv_DLM_LIBS="$DLM_LIBS"
7828 elif test -n "$PKG_CONFIG"; then
7829 if test -n "$PKG_CONFIG" && \
7830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7831 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7832 ac_status=$?
7833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7834 test $ac_status = 0; }; then
7835 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
7836else
7837 pkg_failed=yes
7838fi
7839 else
7840 pkg_failed=untried
dd1f2c09
MB
7841fi
7842
dd1f2c09 7843
dd1f2c09 7844
f11781c5
AK
7845if test $pkg_failed = yes; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847$as_echo "no" >&6; }
7848
7849if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7850 _pkg_short_errors_supported=yes
dd1f2c09 7851else
f11781c5 7852 _pkg_short_errors_supported=no
dd1f2c09 7853fi
f11781c5
AK
7854 if test $_pkg_short_errors_supported = yes; then
7855 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
7856 else
7857 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
7858 fi
7859 # Put the nasty error message in config.log where it belongs
7860 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 7861
f11781c5
AK
7862 NOTFOUND=0
7863 for ac_header in libdlm.h
7864do :
7865 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7866if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 7867 cat >>confdefs.h <<_ACEOF
f11781c5 7868#define HAVE_LIBDLM_H 1
dd1f2c09
MB
7869_ACEOF
7870
f11781c5
AK
7871else
7872 $bailout
dd1f2c09 7873fi
f8f6ec92
ZK
7874
7875done
7876
f11781c5
AK
7877 check_lib_no_libs dlm dlm_lock -lpthread
7878 if test $NOTFOUND = 0; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7880$as_echo "no pkg for libdlm, using -ldlm" >&6; }
7881 DLM_LIBS="-ldlm -lpthread"
7882 HAVE_DLM=yes
7883 fi
7884elif test $pkg_failed = untried; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886$as_echo "no" >&6; }
7887 NOTFOUND=0
7888 for ac_header in libdlm.h
7889do :
7890 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7891if test "x$ac_cv_header_libdlm_h" = x""yes; then :
7892 cat >>confdefs.h <<_ACEOF
7893#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
7894_ACEOF
7895
f8f6ec92 7896else
f11781c5 7897 $bailout
ad6254c5
AK
7898fi
7899
f11781c5 7900done
8b1a3214 7901
f11781c5
AK
7902 check_lib_no_libs dlm dlm_lock -lpthread
7903 if test $NOTFOUND = 0; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7905$as_echo "no pkg for libdlm, using -ldlm" >&6; }
7906 DLM_LIBS="-ldlm -lpthread"
7907 HAVE_DLM=yes
7908 fi
8b1a3214 7909else
f11781c5
AK
7910 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
7911 DLM_LIBS=$pkg_cv_DLM_LIBS
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7913$as_echo "yes" >&6; }
7914 HAVE_DLM=yes
8b1a3214 7915fi
8b1a3214
AK
7916fi
7917
f11781c5
AK
7918if test x$CLVMD = xall; then
7919 CLVMD=none
7920 CLVMD_CMANAGERS=""
7921 CLVMD_NEEDS_QDISKD=no
f11781c5
AK
7922 if test x$HAVE_CMAN = xyes && \
7923 test x$HAVE_DLM = xyes; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
7925$as_echo "Enabling clvmd cman cluster manager" >&6; }
7926 CLVMD="$CLVMD,cman"
7927 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7928 CLVMD_NEEDS_QDISKD=yes
7929 fi
7930 if test x$HAVE_COROSYNC = xyes && \
7931 test x$HAVE_QUORUM = xyes && \
7932 test x$HAVE_CPG = xyes && \
7933 test x$HAVE_DLM = xyes && \
7934 test x$HAVE_CONFDB = xyes; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
7936$as_echo "Enabling clvmd corosync cluster manager" >&6; }
7937 CLVMD="$CLVMD,corosync"
7938 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7939 fi
7940 if test x$HAVE_COROSYNC = xyes && \
7941 test x$HAVE_CPG = xyes && \
7942 test x$HAVE_SALCK = xyes; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
7944$as_echo "Enabling clvmd openais cluster manager" >&6; }
7945 CLVMD="$CLVMD,openais"
7946 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7947 fi
7948 if test x$CLVMD_NEEDS_QDISKD != xno; then
7949 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
7950 fi
7951 if test x$CLVMD = xnone; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
7953$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
7954 fi
7955fi
7956
ad6254c5 7957################################################################################
f11781c5 7958if test "x$CLVMD" != xnone; then
ad6254c5 7959
f11781c5
AK
7960# Check whether --with-clvmd-pidfile was given.
7961if test "${with_clvmd_pidfile+set}" = set; then :
7962 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 7963else
f11781c5 7964 CLVMD_PIDFILE="/var/run/clvmd.pid"
ad6254c5 7965fi
7a197a62 7966
ad6254c5 7967
f11781c5
AK
7968cat >>confdefs.h <<_ACEOF
7969#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 7970_ACEOF
ad6254c5 7971
ad6254c5 7972fi
7a197a62 7973
f11781c5
AK
7974################################################################################
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
7976$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
7977# Check whether --enable-cmirrord was given.
7978if test "${enable_cmirrord+set}" = set; then :
7979 enableval=$enable_cmirrord; CMIRRORD=$enableval
7980else
7981 CMIRRORD=no
7982fi
7983
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
7985$as_echo "$CMIRRORD" >&6; }
ad6254c5 7986
f11781c5 7987BUILD_CMIRRORD=$CMIRRORD
7a197a62 7988
f11781c5
AK
7989################################################################################
7990if test "x$BUILD_CMIRRORD" = xyes; then
7991
7992# Check whether --with-cmirrord-pidfile was given.
7993if test "${with_cmirrord_pidfile+set}" = set; then :
7994 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 7995else
f11781c5 7996 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
ad6254c5 7997fi
ad6254c5 7998
72b2cb61 7999
f11781c5
AK
8000cat >>confdefs.h <<_ACEOF
8001#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8002_ACEOF
8003
ad6254c5
AK
8004fi
8005
f11781c5
AK
8006################################################################################
8007if [ "x$BUILD_CMIRRORD" = xyes ]; then
8008 if test x$PKGCONFIG_INIT != x1; then
8009 pkg_config_init
8010 fi
ad6254c5 8011
f11781c5
AK
8012pkg_failed=no
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8014$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8015
f11781c5
AK
8016if test -n "$SACKPT_CFLAGS"; then
8017 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8018 elif test -n "$PKG_CONFIG"; then
8019 if test -n "$PKG_CONFIG" && \
8020 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8021 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8022 ac_status=$?
8023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8024 test $ac_status = 0; }; then
8025 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8026else
f11781c5
AK
8027 pkg_failed=yes
8028fi
8029 else
8030 pkg_failed=untried
8031fi
8032if test -n "$SACKPT_LIBS"; then
8033 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8034 elif test -n "$PKG_CONFIG"; then
8035 if test -n "$PKG_CONFIG" && \
8036 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8037 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 8038 ac_status=$?
f11781c5
AK
8039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8040 test $ac_status = 0; }; then
8041 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8042else
f11781c5
AK
8043 pkg_failed=yes
8044fi
8045 else
8046 pkg_failed=untried
8047fi
539f4a77
ZK
8048
8049
539f4a77 8050
f11781c5
AK
8051if test $pkg_failed = yes; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053$as_echo "no" >&6; }
8054
8055if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8056 _pkg_short_errors_supported=yes
539f4a77 8057else
f11781c5 8058 _pkg_short_errors_supported=no
539f4a77 8059fi
f11781c5
AK
8060 if test $_pkg_short_errors_supported = yes; then
8061 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8062 else
8063 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8064 fi
8065 # Put the nasty error message in config.log where it belongs
8066 echo "$SACKPT_PKG_ERRORS" >&5
8067
8068 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8069
8070$SACKPT_PKG_ERRORS
8071
8072Consider adjusting the PKG_CONFIG_PATH environment variable if you
8073installed software in a non-standard prefix.
8074
8075Alternatively, you may set the environment variables SACKPT_CFLAGS
8076and SACKPT_LIBS to avoid the need to call pkg-config.
8077See the pkg-config man page for more details." "$LINENO" 5
8078
8079elif test $pkg_failed = untried; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081$as_echo "no" >&6; }
8082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8084as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8085is in your PATH or set the PKG_CONFIG environment variable to the full
8086path to pkg-config.
8087
8088Alternatively, you may set the environment variables SACKPT_CFLAGS
8089and SACKPT_LIBS to avoid the need to call pkg-config.
8090See the pkg-config man page for more details.
8091
8092To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8093See \`config.log' for more details" "$LINENO" 5; }
8094
539f4a77 8095else
f11781c5
AK
8096 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8097 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8099$as_echo "yes" >&6; }
539f4a77 8100
539f4a77 8101fi
f11781c5 8102 if test x$HAVE_CPG != xyes; then
539f4a77 8103
f11781c5
AK
8104pkg_failed=no
8105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8106$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8107
f11781c5
AK
8108if test -n "$CPG_CFLAGS"; then
8109 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8110 elif test -n "$PKG_CONFIG"; then
8111 if test -n "$PKG_CONFIG" && \
8112 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8113 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8114 ac_status=$?
f11781c5
AK
8115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8116 test $ac_status = 0; }; then
8117 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8118else
f11781c5
AK
8119 pkg_failed=yes
8120fi
8121 else
8122 pkg_failed=untried
8123fi
8124if test -n "$CPG_LIBS"; then
8125 pkg_cv_CPG_LIBS="$CPG_LIBS"
8126 elif test -n "$PKG_CONFIG"; then
8127 if test -n "$PKG_CONFIG" && \
8128 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8129 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8130 ac_status=$?
8131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8132 test $ac_status = 0; }; then
8133 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8134else
8135 pkg_failed=yes
8136fi
8137 else
8138 pkg_failed=untried
8139fi
8140
8141
8142
8143if test $pkg_failed = yes; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145$as_echo "no" >&6; }
ad6254c5 8146
f11781c5
AK
8147if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8148 _pkg_short_errors_supported=yes
8149else
8150 _pkg_short_errors_supported=no
ad6254c5 8151fi
f11781c5
AK
8152 if test $_pkg_short_errors_supported = yes; then
8153 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8154 else
8155 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8156 fi
8157 # Put the nasty error message in config.log where it belongs
8158 echo "$CPG_PKG_ERRORS" >&5
8159
8160 as_fn_error $? "Package requirements (libcpg) were not met:
8161
8162$CPG_PKG_ERRORS
8163
8164Consider adjusting the PKG_CONFIG_PATH environment variable if you
8165installed software in a non-standard prefix.
8166
8167Alternatively, you may set the environment variables CPG_CFLAGS
8168and CPG_LIBS to avoid the need to call pkg-config.
8169See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8170
f11781c5
AK
8171elif test $pkg_failed = untried; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173$as_echo "no" >&6; }
8174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8176as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8177is in your PATH or set the PKG_CONFIG environment variable to the full
8178path to pkg-config.
539f4a77 8179
f11781c5
AK
8180Alternatively, you may set the environment variables CPG_CFLAGS
8181and CPG_LIBS to avoid the need to call pkg-config.
8182See the pkg-config man page for more details.
539f4a77 8183
f11781c5
AK
8184To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8185See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8186
539f4a77 8187else
f11781c5
AK
8188 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8189 CPG_LIBS=$pkg_cv_CPG_LIBS
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8191$as_echo "yes" >&6; }
bc1024f8 8192
f11781c5
AK
8193fi
8194 fi
8195fi
8196
8197################################################################################
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8199$as_echo_n "checking whether to enable debugging... " >&6; }
8200# Check whether --enable-debug was given.
8201if test "${enable_debug+set}" = set; then :
8202 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8203else
f11781c5
AK
8204 DEBUG=no
8205fi
8206
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8208$as_echo "$DEBUG" >&6; }
539f4a77 8209
f11781c5
AK
8210if test x$DEBUG = xyes; then
8211 COPTIMISE_FLAG=
8212else
8213 CSCOPE_CMD=
06e459df
JM
8214fi
8215
f11781c5
AK
8216################################################################################
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8218$as_echo_n "checking for C optimisation flag... " >&6; }
8219
8220# Check whether --with-optimisation was given.
8221if test "${with_optimisation+set}" = set; then :
8222 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8223fi
539f4a77 8224
f11781c5
AK
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8226$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8227
f11781c5
AK
8228################################################################################
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8230$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8231# Check whether --enable-profiling was given.
8232if test "${enable_profiling+set}" = set; then :
8233 enableval=$enable_profiling; PROFILING=$enableval
8234else
8235 PROFILING=no
539f4a77
ZK
8236fi
8237
f11781c5
AK
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8239$as_echo "$PROFILING" >&6; }
8240
8241if test "x$PROFILING" = xyes; then
8242 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8243 # Extract the first word of "lcov", so it can be a program name with args.
8244set dummy lcov; ac_word=$2
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246$as_echo_n "checking for $ac_word... " >&6; }
8247if test "${ac_cv_path_LCOV+set}" = set; then :
8248 $as_echo_n "(cached) " >&6
539f4a77 8249else
f11781c5
AK
8250 case $LCOV in
8251 [\\/]* | ?:[\\/]*)
8252 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8253 ;;
8254 *)
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256for as_dir in $PATH
8257do
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8262 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 break 2
8265 fi
8266done
8267 done
8268IFS=$as_save_IFS
539f4a77 8269
f11781c5
AK
8270 ;;
8271esac
8272fi
8273LCOV=$ac_cv_path_LCOV
8274if test -n "$LCOV"; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8276$as_echo "$LCOV" >&6; }
8277else
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279$as_echo "no" >&6; }
539f4a77
ZK
8280fi
8281
bc1024f8 8282
f11781c5
AK
8283 # Extract the first word of "genhtml", so it can be a program name with args.
8284set dummy genhtml; ac_word=$2
8285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8286$as_echo_n "checking for $ac_word... " >&6; }
8287if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8288 $as_echo_n "(cached) " >&6
ad6254c5 8289else
f11781c5
AK
8290 case $GENHTML in
8291 [\\/]* | ?:[\\/]*)
8292 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8293 ;;
8294 *)
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296for as_dir in $PATH
8297do
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8302 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8305 fi
8306done
8307 done
8308IFS=$as_save_IFS
8a2fc586 8309
f11781c5
AK
8310 ;;
8311esac
8312fi
8313GENHTML=$ac_cv_path_GENHTML
8314if test -n "$GENHTML"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8316$as_echo "$GENHTML" >&6; }
8317else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319$as_echo "no" >&6; }
8320fi
8a2fc586 8321
8a2fc586 8322
f11781c5
AK
8323 if test -z "$LCOV" -o -z "$GENHTML"; then
8324 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8325 fi
8326 # Extract the first word of "genpng", so it can be a program name with args.
8327set dummy genpng; ac_word=$2
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329$as_echo_n "checking for $ac_word... " >&6; }
8330if test "${ac_cv_path_GENPNG+set}" = set; then :
8331 $as_echo_n "(cached) " >&6
8332else
8333 case $GENPNG in
8334 [\\/]* | ?:[\\/]*)
8335 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8336 ;;
8337 *)
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339for as_dir in $PATH
8340do
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8348 fi
8349done
8350 done
8351IFS=$as_save_IFS
ad6254c5 8352
f11781c5 8353 ;;
7a197a62 8354esac
f11781c5
AK
8355fi
8356GENPNG=$ac_cv_path_GENPNG
8357if test -n "$GENPNG"; then
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8359$as_echo "$GENPNG" >&6; }
ad6254c5 8360else
f11781c5
AK
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362$as_echo "no" >&6; }
8363fi
8364
8365
8366 if test -n "$GENPNG"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8368$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8369 if $GENPNG --help > /dev/null 2>&1 ; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8371$as_echo "ok" >&6; }
8372 GENHTML="$GENHTML --frames"
8373 else
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8375$as_echo "not supported" >&6; }
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8377$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8378 GENPNG=
8379 fi
8380 fi
8381fi
ad6254c5 8382
f11781c5
AK
8383################################################################################
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8385$as_echo_n "checking whether to enable unit testing... " >&6; }
8386# Check whether --enable-testing was given.
8387if test "${enable_testing+set}" = set; then :
8388 enableval=$enable_testing; TESTING=$enableval
8389else
8390 TESTING=no
ad6254c5 8391fi
7a197a62 8392
f11781c5
AK
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8394$as_echo "$TESTING" >&6; }
72b2cb61 8395
f11781c5
AK
8396if test "$TESTING" = yes; then
8397 # Extract the first word of "ruby1.9", so it can be a program name with args.
8398set dummy ruby1.9; ac_word=$2
8399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400$as_echo_n "checking for $ac_word... " >&6; }
8401if test "${ac_cv_path_RUBY19+set}" = set; then :
8402 $as_echo_n "(cached) " >&6
8403else
8404 case $RUBY19 in
8405 [\\/]* | ?:[\\/]*)
8406 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
8407 ;;
8408 *)
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410for as_dir in $PATH
8411do
8412 IFS=$as_save_IFS
8413 test -z "$as_dir" && as_dir=.
8414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8416 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
8417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8418 break 2
8419 fi
bc1024f8 8420done
f11781c5
AK
8421 done
8422IFS=$as_save_IFS
ad6254c5 8423
f11781c5
AK
8424 ;;
8425esac
ad6254c5 8426fi
f11781c5
AK
8427RUBY19=$ac_cv_path_RUBY19
8428if test -n "$RUBY19"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8430$as_echo "$RUBY19" >&6; }
ad6254c5 8431else
f11781c5
AK
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433$as_echo "no" >&6; }
7a197a62
AK
8434fi
8435
ad6254c5 8436
f11781c5
AK
8437 # Extract the first word of "valgrind", so it can be a program name with args.
8438set dummy valgrind; ac_word=$2
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 8440$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 8441if test "${ac_cv_path_VALGRIND+set}" = set; then :
ec6a6fbe 8442 $as_echo_n "(cached) " >&6
ad6254c5 8443else
f11781c5 8444 case $VALGRIND in
ad6254c5 8445 [\\/]* | ?:[\\/]*)
f11781c5 8446 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
ad6254c5
AK
8447 ;;
8448 *)
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450for as_dir in $PATH
8451do
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
f11781c5 8454 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
8456 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
8458 break 2
8459 fi
8460done
f11781c5 8461 done
7a197a62 8462IFS=$as_save_IFS
ad6254c5
AK
8463
8464 ;;
8465esac
8466fi
f11781c5
AK
8467VALGRIND=$ac_cv_path_VALGRIND
8468if test -n "$VALGRIND"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8470$as_echo "$VALGRIND" >&6; }
ad6254c5 8471else
f11781c5 8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 8473$as_echo "no" >&6; }
ad6254c5
AK
8474fi
8475
7a197a62 8476
f11781c5
AK
8477 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8478 as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5
8479 fi
8480fi
ad6254c5 8481
f11781c5
AK
8482################################################################################
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8484$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8485# Check whether --enable-valgrind_pool was given.
8486if test "${enable_valgrind_pool+set}" = set; then :
8487 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8488else
8489 VALGRIND_POOL=no
8490fi
8491
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8493$as_echo "$VALGRIND_POOL" >&6; }
8494
8495if test "$VALGRIND_POOL" = yes; then
8496 for ac_header in valgrind/memcheck.h
8497do :
8498 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8499if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8500 cat >>confdefs.h <<_ACEOF
8501#define HAVE_VALGRIND_MEMCHECK_H 1
8502_ACEOF
ad6254c5 8503
ad6254c5 8504else
f11781c5 8505 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8506fi
8507
f11781c5
AK
8508done
8509
8510
8511$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8512
ad6254c5
AK
8513fi
8514
8515################################################################################
f11781c5
AK
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8517$as_echo_n "checking whether to use device-mapper... " >&6; }
8518# Check whether --enable-devmapper was given.
8519if test "${enable_devmapper+set}" = set; then :
8520 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8521fi
8522
f11781c5
AK
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8524$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8525
f11781c5 8526if test x$DEVMAPPER = xyes; then
ad6254c5 8527
f11781c5
AK
8528$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8529
8530fi
8531
8532################################################################################
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8534$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8535# Check whether --enable-udev_sync was given.
8536if test "${enable_udev_sync+set}" = set; then :
8537 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8538else
f11781c5 8539 UDEV_SYNC=no
7a197a62 8540fi
ad6254c5 8541
f11781c5
AK
8542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8543$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8544
f11781c5 8545if test x$UDEV_SYNC = xyes; then
86ba564a
AK
8546 if test x$PKGCONFIG_INIT != x1; then
8547 pkg_config_init
8548 fi
7a197a62 8549
d93275eb
PR
8550pkg_failed=no
8551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8552$as_echo_n "checking for UDEV... " >&6; }
8553
8554if test -n "$UDEV_CFLAGS"; then
8555 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8556 elif test -n "$PKG_CONFIG"; then
8557 if test -n "$PKG_CONFIG" && \
8558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8559 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8560 ac_status=$?
8561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8562 test $ac_status = 0; }; then
8563 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
68f2de6d 8564else
d93275eb 8565 pkg_failed=yes
f11781c5 8566fi
d93275eb
PR
8567 else
8568 pkg_failed=untried
f11781c5 8569fi
d93275eb
PR
8570if test -n "$UDEV_LIBS"; then
8571 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8572 elif test -n "$PKG_CONFIG"; then
8573 if test -n "$PKG_CONFIG" && \
8574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8575 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8576 ac_status=$?
8577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8578 test $ac_status = 0; }; then
8579 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
f11781c5 8580else
d93275eb 8581 pkg_failed=yes
68f2de6d 8582fi
d93275eb
PR
8583 else
8584 pkg_failed=untried
8585fi
8586
8587
8588
8589if test $pkg_failed = yes; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591$as_echo "no" >&6; }
8592
8593if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8594 _pkg_short_errors_supported=yes
8595else
8596 _pkg_short_errors_supported=no
8597fi
8598 if test $_pkg_short_errors_supported = yes; then
8599 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8600 else
8601 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8602 fi
8603 # Put the nasty error message in config.log where it belongs
8604 echo "$UDEV_PKG_ERRORS" >&5
8605
8606 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8607
8608$UDEV_PKG_ERRORS
8609
8610Consider adjusting the PKG_CONFIG_PATH environment variable if you
8611installed software in a non-standard prefix.
8612
8613Alternatively, you may set the environment variables UDEV_CFLAGS
8614and UDEV_LIBS to avoid the need to call pkg-config.
8615See the pkg-config man page for more details." "$LINENO" 5
68f2de6d 8616
d93275eb
PR
8617elif test $pkg_failed = untried; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619$as_echo "no" >&6; }
8620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8622as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8623is in your PATH or set the PKG_CONFIG environment variable to the full
8624path to pkg-config.
8625
8626Alternatively, you may set the environment variables UDEV_CFLAGS
8627and UDEV_LIBS to avoid the need to call pkg-config.
8628See the pkg-config man page for more details.
8629
8630To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8631See \`config.log' for more details" "$LINENO" 5; }
8632
8633else
8634 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8635 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8637$as_echo "yes" >&6; }
8638 UDEV_PC="libudev"
8639fi
68f2de6d 8640
f11781c5 8641$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8642
f11781c5
AK
8643fi
8644
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8646$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8647# Check whether --enable-udev_rules was given.
8648if test "${enable_udev_rules+set}" = set; then :
8649 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 8650else
f11781c5 8651 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
8652fi
8653
f11781c5
AK
8654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8655$as_echo "$UDEV_RULES" >&6; }
68f2de6d 8656
a5f46f6a 8657################################################################################
f11781c5
AK
8658# Check whether --enable-compat was given.
8659if test "${enable_compat+set}" = set; then :
8660 enableval=$enable_compat; DM_COMPAT=$enableval
8661else
8662 DM_COMPAT=no
8663fi
a5f46f6a 8664
f11781c5 8665
2061c0ec
AK
8666if test x$DM_COMPAT = xyes; then
8667 as_fn_error $? "--enable-compat is not currently supported.
8668Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8669ioctl protocol is supported.
8670 " "$LINENO" 5
8671fi
8672
f11781c5
AK
8673################################################################################
8674# Check whether --enable-units-compat was given.
8675if test "${enable_units_compat+set}" = set; then :
8676 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 8677else
f11781c5 8678 UNITS_COMPAT=no
a5f46f6a
AK
8679fi
8680
8681
f11781c5 8682if test x$UNITS_COMPAT = xyes; then
78ce7acc 8683
f11781c5
AK
8684$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8685
8686fi
8687
8688################################################################################
8689# Check whether --enable-ioctl was given.
8690if test "${enable_ioctl+set}" = set; then :
8691 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
8692fi
8693
a5f46f6a 8694
ad6254c5 8695################################################################################
f11781c5
AK
8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8697$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8698# Check whether --enable-o_direct was given.
8699if test "${enable_o_direct+set}" = set; then :
8700 enableval=$enable_o_direct; ODIRECT=$enableval
8701fi
ad6254c5 8702
f11781c5
AK
8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8704$as_echo "$ODIRECT" >&6; }
8705
8706if test x$ODIRECT = xyes; then
8707
8708$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 8709
ad6254c5 8710fi
ad6254c5 8711
f11781c5
AK
8712################################################################################
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8714$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8715# Check whether --enable-applib was given.
8716if test "${enable_applib+set}" = set; then :
8717 enableval=$enable_applib; APPLIB=$enableval
8718else
8719 APPLIB=no
ad6254c5 8720fi
7a197a62 8721
f11781c5
AK
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8723$as_echo "$APPLIB" >&6; }
ad6254c5 8724
f11781c5
AK
8725test x$APPLIB = xyes \
8726 && LVM2APP_LIB=-llvm2app \
8727 || LVM2APP_LIB=
ad6254c5 8728
f11781c5
AK
8729################################################################################
8730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8731$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8732# Check whether --enable-cmdlib was given.
8733if test "${enable_cmdlib+set}" = set; then :
8734 enableval=$enable_cmdlib; CMDLIB=$enableval
8735else
8736 CMDLIB=no
ad6254c5 8737fi
7a197a62 8738
f11781c5
AK
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8740$as_echo "$CMDLIB" >&6; }
7a197a62 8741
f11781c5
AK
8742test x$CMDLIB = xyes \
8743 && LVM2CMD_LIB=-llvm2cmd \
8744 || LVM2CMD_LIB=
8745
8746################################################################################
8747# Check whether --enable-pkgconfig was given.
8748if test "${enable_pkgconfig+set}" = set; then :
8749 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 8750else
f11781c5 8751 PKGCONFIG=no
ad6254c5 8752fi
ad6254c5 8753
ad6254c5 8754
f11781c5
AK
8755################################################################################
8756# Check whether --enable-write_install was given.
8757if test "${enable_write_install+set}" = set; then :
8758 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 8759else
f11781c5 8760 WRITE_INSTALL=no
ad6254c5
AK
8761fi
8762
ad6254c5 8763
f11781c5
AK
8764################################################################################
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8766$as_echo_n "checking whether to install fsadm... " >&6; }
8767# Check whether --enable-fsadm was given.
8768if test "${enable_fsadm+set}" = set; then :
8769 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
8770fi
8771
f11781c5
AK
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8773$as_echo "$FSADM" >&6; }
ad6254c5 8774
f11781c5
AK
8775################################################################################
8776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8777$as_echo_n "checking whether to use dmeventd... " >&6; }
8778# Check whether --enable-dmeventd was given.
8779if test "${enable_dmeventd+set}" = set; then :
8780 enableval=$enable_dmeventd; DMEVENTD=$enableval
8781fi
ad6254c5 8782
f11781c5
AK
8783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
8784$as_echo "$DMEVENTD" >&6; }
ad6254c5 8785
f11781c5 8786BUILD_DMEVENTD=$DMEVENTD
ad6254c5 8787
f11781c5
AK
8788if test x$DMEVENTD = xyes; then
8789 if test x$MIRRORS != xinternal; then
8790 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
8791 " "$LINENO" 5
8792 fi
8793 if test x$CMDLIB = xno; then
8794 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
8795 " "$LINENO" 5
8796 fi
8797fi
ad6254c5 8798
f11781c5 8799if test x$DMEVENTD = xyes; then
ad6254c5 8800
f11781c5 8801$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 8802
f11781c5 8803fi
ad6254c5 8804
f11781c5 8805################################################################################
ad6254c5 8806
f11781c5
AK
8807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
8808$as_echo_n "checking for getline in -lc... " >&6; }
8809if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 8810 $as_echo_n "(cached) " >&6
ad6254c5 8811else
f11781c5
AK
8812 ac_check_lib_save_LIBS=$LIBS
8813LIBS="-lc $LIBS"
8814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8815/* end confdefs.h. */
f11781c5
AK
8816
8817/* Override any GCC internal prototype to avoid an error.
8818 Use char because int might match the return type of a GCC
8819 builtin and then its argument prototype would still apply. */
8820#ifdef __cplusplus
8821extern "C"
8822#endif
8823char getline ();
8824int
8825main ()
8826{
8827return getline ();
8828 ;
8829 return 0;
8830}
ad6254c5 8831_ACEOF
f11781c5
AK
8832if ac_fn_c_try_link "$LINENO"; then :
8833 ac_cv_lib_c_getline=yes
ad6254c5 8834else
f11781c5
AK
8835 ac_cv_lib_c_getline=no
8836fi
8837rm -f core conftest.err conftest.$ac_objext \
8838 conftest$ac_exeext conftest.$ac_ext
8839LIBS=$ac_check_lib_save_LIBS
8840fi
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
8842$as_echo "$ac_cv_lib_c_getline" >&6; }
8843if test "x$ac_cv_lib_c_getline" = x""yes; then :
8844
8845$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 8846
ad6254c5 8847fi
7a197a62 8848
ad6254c5 8849
f11781c5
AK
8850################################################################################
8851
8852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
8853$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
8854if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8856else
8857 ac_check_lib_save_LIBS=$LIBS
8858LIBS="-lc $LIBS"
8859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8860/* end confdefs.h. */
f11781c5
AK
8861
8862/* Override any GCC internal prototype to avoid an error.
8863 Use char because int might match the return type of a GCC
8864 builtin and then its argument prototype would still apply. */
8865#ifdef __cplusplus
8866extern "C"
8867#endif
8868char canonicalize_file_name ();
8869int
8870main ()
8871{
8872return canonicalize_file_name ();
8873 ;
8874 return 0;
8875}
ad6254c5 8876_ACEOF
f11781c5
AK
8877if ac_fn_c_try_link "$LINENO"; then :
8878 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 8879else
f11781c5
AK
8880 ac_cv_lib_c_canonicalize_file_name=no
8881fi
8882rm -f core conftest.err conftest.$ac_objext \
8883 conftest$ac_exeext conftest.$ac_ext
8884LIBS=$ac_check_lib_save_LIBS
8885fi
8886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
8887$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
8888if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
8889
8890$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 8891
ad6254c5 8892fi
7a197a62 8893
ad6254c5 8894
f11781c5
AK
8895################################################################################
8896if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
8897 then exec_prefix="";
8898fi;
7a197a62 8899
f11781c5
AK
8900################################################################################
8901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8902$as_echo_n "checking for dlopen in -ldl... " >&6; }
8903if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 8904 $as_echo_n "(cached) " >&6
ad6254c5 8905else
f11781c5
AK
8906 ac_check_lib_save_LIBS=$LIBS
8907LIBS="-ldl $LIBS"
8908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909/* end confdefs.h. */
ad6254c5 8910
f11781c5
AK
8911/* Override any GCC internal prototype to avoid an error.
8912 Use char because int might match the return type of a GCC
8913 builtin and then its argument prototype would still apply. */
8914#ifdef __cplusplus
8915extern "C"
8916#endif
8917char dlopen ();
8918int
8919main ()
8920{
8921return dlopen ();
8922 ;
8923 return 0;
8924}
ad6254c5 8925_ACEOF
f11781c5
AK
8926if ac_fn_c_try_link "$LINENO"; then :
8927 ac_cv_lib_dl_dlopen=yes
ad6254c5 8928else
f11781c5 8929 ac_cv_lib_dl_dlopen=no
795ca3e5 8930fi
f11781c5
AK
8931rm -f core conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8933LIBS=$ac_check_lib_save_LIBS
8934fi
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8936$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8937if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 8938
ad6254c5 8939
f11781c5 8940$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 8941
f11781c5
AK
8942 DL_LIBS="-ldl"
8943 HAVE_LIBDL=yes
8944else
795ca3e5 8945
f11781c5
AK
8946 DL_LIBS=
8947 HAVE_LIBDL=no
8948fi
8106cdd5 8949
ad6254c5 8950
f11781c5
AK
8951################################################################################
8952if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8953 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
cac52ca4 8954 -o "x$RAID" = xshared \
f11781c5
AK
8955 \) -a "x$STATIC_LINK" = xyes ];
8956 then as_fn_error $? "Features cannot be 'shared' when building statically
8957" "$LINENO" 5
8958fi
ad6254c5 8959
f11781c5
AK
8960################################################################################
8961if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
8963$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
8964if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 8965 $as_echo_n "(cached) " >&6
795ca3e5 8966else
f11781c5
AK
8967 ac_check_lib_save_LIBS=$LIBS
8968LIBS="-lpthread $LIBS"
8969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8970/* end confdefs.h. */
8a2fc586 8971
f11781c5
AK
8972/* Override any GCC internal prototype to avoid an error.
8973 Use char because int might match the return type of a GCC
8974 builtin and then its argument prototype would still apply. */
8975#ifdef __cplusplus
8976extern "C"
ad6254c5 8977#endif
f11781c5
AK
8978char pthread_mutex_lock ();
8979int
8980main ()
8981{
8982return pthread_mutex_lock ();
8983 ;
8984 return 0;
8985}
8986_ACEOF
8987if ac_fn_c_try_link "$LINENO"; then :
8988 ac_cv_lib_pthread_pthread_mutex_lock=yes
8989else
8990 ac_cv_lib_pthread_pthread_mutex_lock=no
8991fi
8992rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994LIBS=$ac_check_lib_save_LIBS
8995fi
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
8997$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
8998if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
8999 PTHREAD_LIBS="-lpthread"
9000else
9001 hard_bailout
9002fi
9003
9004fi
9005
9006################################################################################
9007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9008$as_echo_n "checking whether to enable selinux support... " >&6; }
9009# Check whether --enable-selinux was given.
9010if test "${enable_selinux+set}" = set; then :
9011 enableval=$enable_selinux; SELINUX=$enableval
9012fi
9013
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9015$as_echo "$SELINUX" >&6; }
8a2fc586 9016
f11781c5
AK
9017################################################################################
9018if test x$SELINUX = xyes; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9020$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9021if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9022 $as_echo_n "(cached) " >&6
9023else
9024 ac_check_lib_save_LIBS=$LIBS
9025LIBS="-lsepol $LIBS"
9026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027/* end confdefs.h. */
8a2fc586 9028
7a197a62
AK
9029/* Override any GCC internal prototype to avoid an error.
9030 Use char because int might match the return type of a GCC
9031 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9032#ifdef __cplusplus
9033extern "C"
ad6254c5 9034#endif
f11781c5 9035char sepol_check_context ();
ad6254c5
AK
9036int
9037main ()
9038{
f11781c5 9039return sepol_check_context ();
ad6254c5
AK
9040 ;
9041 return 0;
9042}
9043_ACEOF
f11781c5
AK
9044if ac_fn_c_try_link "$LINENO"; then :
9045 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9046else
f11781c5
AK
9047 ac_cv_lib_sepol_sepol_check_context=no
9048fi
9049rm -f core conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
9051LIBS=$ac_check_lib_save_LIBS
80992638 9052fi
f11781c5
AK
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9054$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9055if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9056
80992638 9057
f11781c5
AK
9058$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9059
9060 SELINUX_LIBS="-lsepol"
8106cdd5 9061fi
795ca3e5 9062
f11781c5
AK
9063
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9065$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9066if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9067 $as_echo_n "(cached) " >&6
25fbec5b 9068else
f11781c5
AK
9069 ac_check_lib_save_LIBS=$LIBS
9070LIBS="-lselinux $LIBS"
9071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9072/* end confdefs.h. */
80992638 9073
7a197a62
AK
9074/* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
ad6254c5 9076 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9077#ifdef __cplusplus
9078extern "C"
9079#endif
f11781c5 9080char is_selinux_enabled ();
ad6254c5
AK
9081int
9082main ()
9083{
f11781c5 9084return is_selinux_enabled ();
ad6254c5
AK
9085 ;
9086 return 0;
9087}
9088_ACEOF
f11781c5
AK
9089if ac_fn_c_try_link "$LINENO"; then :
9090 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9091else
f11781c5 9092 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9093fi
f11781c5
AK
9094rm -f core conftest.err conftest.$ac_objext \
9095 conftest$ac_exeext conftest.$ac_ext
9096LIBS=$ac_check_lib_save_LIBS
25fbec5b 9097fi
f11781c5
AK
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9099$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9100if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9101
f11781c5
AK
9102 for ac_header in selinux/selinux.h
9103do :
9104 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9105if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9106 cat >>confdefs.h <<_ACEOF
9107#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9108_ACEOF
795ca3e5 9109
25fbec5b 9110else
f11781c5 9111 hard_bailout
795ca3e5 9112fi
795ca3e5 9113
f11781c5 9114done
795ca3e5 9115
f11781c5
AK
9116 for ac_header in selinux/label.h
9117do :
9118 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9119if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9120 cat >>confdefs.h <<_ACEOF
9121#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9122_ACEOF
ad6254c5 9123
ad6254c5 9124fi
7a197a62 9125
f11781c5 9126done
7a197a62 9127
ad6254c5 9128
f11781c5 9129$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9130
f11781c5
AK
9131 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9132 SELINUX_PC="libselinux"
9133 HAVE_SELINUX=yes
ad6254c5 9134else
8106cdd5 9135
f11781c5
AK
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9137$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9138 SELINUX_LIBS=
9139 SELINUX_PC=
9140 HAVE_SELINUX=no
795ca3e5 9141fi
ad6254c5 9142
795ca3e5
AK
9143fi
9144
f11781c5
AK
9145################################################################################
9146if test x$REALTIME = xyes; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9148$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9149if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9150 $as_echo_n "(cached) " >&6
26e7f2e0 9151else
f11781c5
AK
9152 ac_check_lib_save_LIBS=$LIBS
9153LIBS="-lrt $LIBS"
9154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9155/* end confdefs.h. */
ad6254c5 9156
f11781c5
AK
9157/* Override any GCC internal prototype to avoid an error.
9158 Use char because int might match the return type of a GCC
9159 builtin and then its argument prototype would still apply. */
9160#ifdef __cplusplus
9161extern "C"
9162#endif
9163char clock_gettime ();
ad6254c5
AK
9164int
9165main ()
9166{
f11781c5 9167return clock_gettime ();
ad6254c5
AK
9168 ;
9169 return 0;
9170}
9171_ACEOF
f11781c5
AK
9172if ac_fn_c_try_link "$LINENO"; then :
9173 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9174else
f11781c5 9175 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9176fi
f11781c5
AK
9177rm -f core conftest.err conftest.$ac_objext \
9178 conftest$ac_exeext conftest.$ac_ext
9179LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9180fi
f11781c5
AK
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9182$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9183if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9184 HAVE_REALTIME=yes
9185else
9186 HAVE_REALTIME=no
8106cdd5 9187fi
ad6254c5 9188
ad6254c5 9189
f11781c5 9190 if test x$HAVE_REALTIME = xyes; then
7a197a62 9191
f11781c5 9192$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9193
f11781c5
AK
9194 LIBS="-lrt $LIBS"
9195 else
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9197$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9198 fi
9199fi
9200
9201################################################################################
9202for ac_header in getopt.h
9203do :
9204 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9205if test "x$ac_cv_header_getopt_h" = x""yes; then :
9206 cat >>confdefs.h <<_ACEOF
9207#define HAVE_GETOPT_H 1
9208_ACEOF
9209
9210$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9211
ad6254c5 9212fi
7a197a62 9213
f11781c5 9214done
ad6254c5 9215
7a197a62 9216
f11781c5
AK
9217################################################################################
9218if test x$READLINE != xno; then
9219 lvm_saved_libs=$LIBS
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9221$as_echo_n "checking for library containing tgetent... " >&6; }
9222if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9223 $as_echo_n "(cached) " >&6
ad6254c5 9224else
f11781c5
AK
9225 ac_func_search_save_LIBS=$LIBS
9226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227/* end confdefs.h. */
ad6254c5 9228
f11781c5
AK
9229/* Override any GCC internal prototype to avoid an error.
9230 Use char because int might match the return type of a GCC
9231 builtin and then its argument prototype would still apply. */
9232#ifdef __cplusplus
9233extern "C"
9234#endif
9235char tgetent ();
9236int
9237main ()
9238{
9239return tgetent ();
9240 ;
9241 return 0;
9242}
ad6254c5 9243_ACEOF
f11781c5
AK
9244for ac_lib in '' tinfo ncurses curses termcap termlib; do
9245 if test -z "$ac_lib"; then
9246 ac_res="none required"
9247 else
9248 ac_res=-l$ac_lib
9249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9250 fi
9251 if ac_fn_c_try_link "$LINENO"; then :
9252 ac_cv_search_tgetent=$ac_res
9253fi
9254rm -f core conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext
9256 if test "${ac_cv_search_tgetent+set}" = set; then :
9257 break
9258fi
9259done
9260if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9261
80992638 9262else
f11781c5 9263 ac_cv_search_tgetent=no
b896caa1 9264fi
f11781c5
AK
9265rm conftest.$ac_ext
9266LIBS=$ac_func_search_save_LIBS
9267fi
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9269$as_echo "$ac_cv_search_tgetent" >&6; }
9270ac_res=$ac_cv_search_tgetent
9271if test "$ac_res" != no; then :
9272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9273 READLINE_LIBS=$ac_cv_search_tgetent
9274else
ad6254c5 9275
f11781c5
AK
9276 if test "$READLINE" = yes; then
9277 as_fn_error $? "termcap could not be found which is required for the
9278--enable-readline option (which is enabled by default). Either disable readline
9279support with --disable-readline or download and install termcap from:
9280 ftp.gnu.org/gnu/termcap
9281Note: if you are using precompiled packages you will also need the development
9282 package as well (which may be called termcap-devel or something similar).
9283Note: (n)curses also seems to work as a substitute for termcap. This was
9284 not found either - but you could try installing that as well." "$LINENO" 5
9285 fi
9286fi
b896caa1 9287
f11781c5
AK
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9289$as_echo_n "checking for readline in -lreadline... " >&6; }
9290if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9291 $as_echo_n "(cached) " >&6
795ca3e5 9292else
f11781c5
AK
9293 ac_check_lib_save_LIBS=$LIBS
9294LIBS="-lreadline $LIBS"
9295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9296/* end confdefs.h. */
8a2fc586 9297
f11781c5
AK
9298/* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
9301#ifdef __cplusplus
9302extern "C"
ad6254c5 9303#endif
f11781c5
AK
9304char readline ();
9305int
9306main ()
9307{
9308return readline ();
9309 ;
9310 return 0;
9311}
9312_ACEOF
9313if ac_fn_c_try_link "$LINENO"; then :
9314 ac_cv_lib_readline_readline=yes
9315else
9316 ac_cv_lib_readline_readline=no
9317fi
9318rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320LIBS=$ac_check_lib_save_LIBS
9321fi
9322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9323$as_echo "$ac_cv_lib_readline_readline" >&6; }
9324if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9325
8a2fc586 9326
f11781c5
AK
9327$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9328
9329 LIBS=$lvm_saved_libs
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9331$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9332if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9333 $as_echo_n "(cached) " >&6
9334else
9335 ac_check_lib_save_LIBS=$LIBS
9336LIBS="-lreadline $LIBS"
9337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338/* end confdefs.h. */
8a2fc586 9339
7a197a62
AK
9340/* Override any GCC internal prototype to avoid an error.
9341 Use char because int might match the return type of a GCC
9342 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9343#ifdef __cplusplus
9344extern "C"
ad6254c5 9345#endif
f11781c5 9346char rl_line_buffer ();
ad6254c5
AK
9347int
9348main ()
9349{
f11781c5 9350return rl_line_buffer ();
ad6254c5
AK
9351 ;
9352 return 0;
9353}
9354_ACEOF
f11781c5
AK
9355if ac_fn_c_try_link "$LINENO"; then :
9356 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9357else
f11781c5
AK
9358 ac_cv_lib_readline_rl_line_buffer=no
9359fi
9360rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9362LIBS=$ac_check_lib_save_LIBS
9363fi
9364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9365$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9366if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9367 READLINE_LIBS="-lreadline"
9368else
9369
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9371$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9372 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9373
ad6254c5 9374fi
7a197a62 9375
f11781c5
AK
9376else
9377
9378 READLINE_LIBS=
9379 if test "$READLINE" = yes; then
9380 as_fn_error $? "GNU Readline could not be found which is required for the
9381--enable-readline option (which is enabled by default). Either disable readline
9382support with --disable-readline or download and install readline from:
9383 ftp.gnu.org/gnu/readline
9384Note: if you are using precompiled packages you will also need the development
9385package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9386 fi
ad6254c5 9387fi
f11781c5
AK
9388
9389 LIBS="$READLINE_LIBS $lvm_saved_libs"
9390 for ac_func in rl_completion_matches
9391do :
9392 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9393if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9394 cat >>confdefs.h <<_ACEOF
f11781c5 9395#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9396_ACEOF
9397
ad6254c5
AK
9398fi
9399done
9400
f11781c5 9401 LIBS=$lvm_saved_libs
ad6254c5
AK
9402fi
9403
f11781c5
AK
9404################################################################################
9405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9406$as_echo_n "checking whether to enable internationalisation... " >&6; }
9407# Check whether --enable-nls was given.
9408if test "${enable_nls+set}" = set; then :
9409 enableval=$enable_nls; INTL=$enableval
9410else
9411 INTL=no
9412fi
d911ec67 9413
f11781c5
AK
9414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9415$as_echo "$INTL" >&6; }
9416
9417if test x$INTL = xyes; then
9418# FIXME - Move this - can be device-mapper too
9419 INTL_PACKAGE="lvm2"
9420 # Extract the first word of "msgfmt", so it can be a program name with args.
9421set dummy msgfmt; ac_word=$2
9422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423$as_echo_n "checking for $ac_word... " >&6; }
9424if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9425 $as_echo_n "(cached) " >&6
d911ec67 9426else
f11781c5
AK
9427 case $MSGFMT in
9428 [\\/]* | ?:[\\/]*)
9429 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9430 ;;
9431 *)
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433for as_dir in $PATH
9434do
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9439 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 break 2
9442 fi
9443done
9444 done
9445IFS=$as_save_IFS
9446
9447 ;;
d911ec67 9448esac
f11781c5
AK
9449fi
9450MSGFMT=$ac_cv_path_MSGFMT
9451if test -n "$MSGFMT"; then
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9453$as_echo "$MSGFMT" >&6; }
d911ec67 9454else
f11781c5
AK
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456$as_echo "no" >&6; }
9457fi
d911ec67 9458
f11781c5
AK
9459
9460 if [ "x$MSGFMT" == x ];
9461 then as_fn_error $? "msgfmt not found in path $PATH
9462 " "$LINENO" 5
9463 fi;
9464
9465
9466# Check whether --with-localedir was given.
9467if test "${with_localedir+set}" = set; then :
9468 withval=$with_localedir; LOCALEDIR=$withval
9469else
9470 LOCALEDIR='${prefix}/share/locale'
9471fi
9472
9473fi
9474
9475################################################################################
9476
9477# Check whether --with-confdir was given.
9478if test "${with_confdir+set}" = set; then :
9479 withval=$with_confdir; CONFDIR=$withval
9480else
9481 CONFDIR="/etc"
9482fi
9483
9484
9485
9486# Check whether --with-staticdir was given.
9487if test "${with_staticdir+set}" = set; then :
9488 withval=$with_staticdir; STATICDIR=$withval
9489else
9490 STATICDIR='${exec_prefix}/sbin'
9491fi
9492
9493
9494
9495# Check whether --with-usrlibdir was given.
9496if test "${with_usrlibdir+set}" = set; then :
9497 withval=$with_usrlibdir; usrlibdir=$withval
9498else
9499 usrlibdir='${prefix}/lib'
d911ec67
AK
9500fi
9501
d911ec67 9502
d911ec67 9503
f11781c5
AK
9504# Check whether --with-usrsbindir was given.
9505if test "${with_usrsbindir+set}" = set; then :
9506 withval=$with_usrsbindir; usrsbindir=$withval
9507else
9508 usrsbindir='${prefix}/sbin'
d911ec67
AK
9509fi
9510
d911ec67 9511
f11781c5 9512################################################################################
d911ec67 9513
f11781c5
AK
9514# Check whether --with-udev_prefix was given.
9515if test "${with_udev_prefix+set}" = set; then :
9516 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9517else
f11781c5 9518 udev_prefix='${exec_prefix}'
d911ec67 9519fi
d911ec67 9520
f11781c5
AK
9521
9522
9523# Check whether --with-udevdir was given.
9524if test "${with_udevdir+set}" = set; then :
9525 withval=$with_udevdir; udevdir=$withval
9526else
9527 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9528fi
f11781c5
AK
9529
9530
9531################################################################################
9532if test x$READLINE = xyes; then
9533 for ac_header in readline/readline.h readline/history.h
9534do :
9535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9536ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9537if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9538 cat >>confdefs.h <<_ACEOF
9539#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9540_ACEOF
9541
9542else
f11781c5 9543 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9544fi
9545
9546done
9547
9548fi
9549
f11781c5
AK
9550if test x$CLVMD != xnone; then
9551 for ac_header in mntent.h netdb.h netinet/in.h pthread.h search.h sys/mount.h sys/socket.h sys/uio.h sys/un.h utmpx.h
9552do :
9553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9554ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9555if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9556 cat >>confdefs.h <<_ACEOF
9557#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9558_ACEOF
ad6254c5 9559
f11781c5
AK
9560else
9561 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9562fi
7a197a62 9563
f11781c5 9564done
ad6254c5 9565
f11781c5
AK
9566 for ac_func in dup2 getmntent memmove select socket
9567do :
9568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9569ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9570if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9571 cat >>confdefs.h <<_ACEOF
9572#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9573_ACEOF
ad6254c5 9574
f11781c5
AK
9575else
9576 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9577fi
f11781c5 9578done
7a197a62 9579
f11781c5
AK
9580 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9581# -lseq on Dynix/PTX, -lgen on Unixware.
9582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9583$as_echo_n "checking for library containing getmntent... " >&6; }
9584if test "${ac_cv_search_getmntent+set}" = set; then :
9585 $as_echo_n "(cached) " >&6
9586else
9587 ac_func_search_save_LIBS=$LIBS
9588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589/* end confdefs.h. */
ad6254c5 9590
f11781c5
AK
9591/* Override any GCC internal prototype to avoid an error.
9592 Use char because int might match the return type of a GCC
9593 builtin and then its argument prototype would still apply. */
9594#ifdef __cplusplus
9595extern "C"
9596#endif
9597char getmntent ();
9598int
9599main ()
9600{
9601return getmntent ();
9602 ;
9603 return 0;
9604}
9605_ACEOF
9606for ac_lib in '' sun seq gen; do
9607 if test -z "$ac_lib"; then
9608 ac_res="none required"
9609 else
9610 ac_res=-l$ac_lib
9611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9612 fi
9613 if ac_fn_c_try_link "$LINENO"; then :
9614 ac_cv_search_getmntent=$ac_res
9615fi
9616rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext
9618 if test "${ac_cv_search_getmntent+set}" = set; then :
9619 break
9620fi
9621done
9622if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 9623
ad6254c5 9624else
f11781c5 9625 ac_cv_search_getmntent=no
795ca3e5 9626fi
f11781c5
AK
9627rm conftest.$ac_ext
9628LIBS=$ac_func_search_save_LIBS
9629fi
9630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9631$as_echo "$ac_cv_search_getmntent" >&6; }
9632ac_res=$ac_cv_search_getmntent
9633if test "$ac_res" != no; then :
9634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9635 ac_cv_func_getmntent=yes
9636
9637$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 9638
f11781c5
AK
9639else
9640 ac_cv_func_getmntent=no
8106cdd5 9641fi
f11781c5
AK
9642
9643
9644 for ac_header in sys/select.h sys/socket.h
9645do :
9646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9647ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9648if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 9649 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9650#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9651_ACEOF
795ca3e5 9652
795ca3e5
AK
9653fi
9654
ad6254c5 9655done
80992638 9656
f11781c5
AK
9657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9658$as_echo_n "checking types of arguments for select... " >&6; }
9659if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 9660 $as_echo_n "(cached) " >&6
83912faa 9661else
f11781c5
AK
9662 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9663 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9664 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
9666/* end confdefs.h. */
9667$ac_includes_default
f11781c5
AK
9668#ifdef HAVE_SYS_SELECT_H
9669# include <sys/select.h>
9670#endif
9671#ifdef HAVE_SYS_SOCKET_H
9672# include <sys/socket.h>
9673#endif
9674
9675int
9676main ()
9677{
9678extern int select ($ac_arg1,
9679 $ac_arg234, $ac_arg234, $ac_arg234,
9680 $ac_arg5);
9681 ;
9682 return 0;
9683}
ad6254c5 9684_ACEOF
f11781c5
AK
9685if ac_fn_c_try_compile "$LINENO"; then :
9686 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9687fi
9688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9689 done
9690 done
9691done
9692# Provide a safe default value.
9693: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 9694
ad6254c5 9695fi
f11781c5
AK
9696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9697$as_echo "$ac_cv_func_select_args" >&6; }
9698ac_save_IFS=$IFS; IFS=','
9699set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9700IFS=$ac_save_IFS
9701shift
7a197a62 9702
f11781c5
AK
9703cat >>confdefs.h <<_ACEOF
9704#define SELECT_TYPE_ARG1 $1
9705_ACEOF
ad6254c5 9706
f11781c5
AK
9707
9708cat >>confdefs.h <<_ACEOF
9709#define SELECT_TYPE_ARG234 ($2)
ad6254c5 9710_ACEOF
f11781c5
AK
9711
9712
9713cat >>confdefs.h <<_ACEOF
9714#define SELECT_TYPE_ARG5 ($3)
ad6254c5 9715_ACEOF
ad6254c5 9716
f11781c5
AK
9717rm -f conftest*
9718
ad6254c5 9719fi
7a197a62 9720
f11781c5
AK
9721if test x$CLUSTER != xnone; then
9722 for ac_header in sys/socket.h sys/un.h
9723do :
9724 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9725ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9726if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9727 cat >>confdefs.h <<_ACEOF
9728#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9729_ACEOF
ad6254c5 9730
f11781c5
AK
9731else
9732 as_fn_error $? "bailing out" "$LINENO" 5
9733fi
9734
9735done
9736
9737 for ac_func in socket
9738do :
9739 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9740if test "x$ac_cv_func_socket" = x""yes; then :
9741 cat >>confdefs.h <<_ACEOF
9742#define HAVE_SOCKET 1
9743_ACEOF
7a197a62 9744
80992638 9745else
f11781c5 9746 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 9747fi
f11781c5 9748done
83912faa 9749
69792976 9750fi
f11781c5
AK
9751
9752if test x$DMEVENTD = xyes; then
9753 for ac_header in arpa/inet.h
9754do :
9755 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9756if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 9757 cat >>confdefs.h <<_ACEOF
f11781c5 9758#define HAVE_ARPA_INET_H 1
ad6254c5 9759_ACEOF
69792976 9760
69792976 9761else
f11781c5 9762 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
9763fi
9764
ad6254c5 9765done
69792976 9766
ad6254c5
AK
9767fi
9768
f11781c5
AK
9769if test x$HAVE_LIBDL = xyes; then
9770 for ac_header in dlfcn.h
9771do :
9772 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9773if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9774 cat >>confdefs.h <<_ACEOF
9775#define HAVE_DLFCN_H 1
a5f46f6a 9776_ACEOF
a5f46f6a 9777
f11781c5
AK
9778else
9779 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9780fi
9781
f11781c5 9782done
a5f46f6a 9783
a5f46f6a
AK
9784fi
9785
f11781c5
AK
9786if test x$INTL = xyes; then
9787 for ac_header in libintl.h
9788do :
9789 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9790if test "x$ac_cv_header_libintl_h" = x""yes; then :
9791 cat >>confdefs.h <<_ACEOF
9792#define HAVE_LIBINTL_H 1
9793_ACEOF
a5f46f6a 9794
a5f46f6a 9795else
f11781c5 9796 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 9797fi
f11781c5
AK
9798
9799done
a5f46f6a
AK
9800
9801fi
f11781c5
AK
9802
9803if test x$UDEV_SYNC = xyes; then
9804 for ac_header in sys/ipc.h sys/sem.h
9805do :
9806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9807ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9808if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
9809 cat >>confdefs.h <<_ACEOF
9810#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9811_ACEOF
9812
9813else
f11781c5 9814 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9815fi
9816
9817done
9818
9819fi
9820
a653923f
AK
9821################################################################################
9822# Extract the first word of "modprobe", so it can be a program name with args.
9823set dummy modprobe; ac_word=$2
f11781c5 9824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 9825$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 9826if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 9827 $as_echo_n "(cached) " >&6
72b2cb61
AK
9828else
9829 case $MODPROBE_CMD in
9830 [\\/]* | ?:[\\/]*)
9831 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
9832 ;;
9833 *)
9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835for as_dir in $PATH
9836do
9837 IFS=$as_save_IFS
9838 test -z "$as_dir" && as_dir=.
f11781c5 9839 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 9840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 9841 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
9843 break 2
9844 fi
9845done
f11781c5 9846 done
7a197a62 9847IFS=$as_save_IFS
72b2cb61
AK
9848
9849 ;;
9850esac
9851fi
9852MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 9853if test -n "$MODPROBE_CMD"; then
f11781c5 9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 9855$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 9856else
f11781c5 9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 9858$as_echo "no" >&6; }
72b2cb61
AK
9859fi
9860
a653923f 9861
7a197a62 9862
a653923f 9863if test x$MODPROBE_CMD != x; then
72b2cb61
AK
9864
9865cat >>confdefs.h <<_ACEOF
9866#define MODPROBE_CMD "$MODPROBE_CMD"
9867_ACEOF
9868
a653923f
AK
9869fi
9870
b5c2529b 9871
a9b601e2
ZK
9872lvm_exec_prefix=$exec_prefix
9873test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
9874test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
9875
b5c2529b 9876cat >>confdefs.h <<_ACEOF
a9b601e2 9877#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
9878_ACEOF
9879
9880
9881if test "$CLVMD" != none; then
9882 clvmd_prefix=$ac_default_prefix
9883 test "$prefix" != NONE && clvmd_prefix=$prefix
9884
9885cat >>confdefs.h <<_ACEOF
9886#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
9887_ACEOF
9888
9889fi
9890
80992638 9891################################################################################
93bd259b
AK
9892if test "$BUILD_DMEVENTD" = yes; then
9893
9894# Check whether --with-dmeventd-pidfile was given.
f11781c5 9895if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 9896 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 9897else
71082be4 9898 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
9899fi
9900
93bd259b 9901
71082be4
ZK
9902cat >>confdefs.h <<_ACEOF
9903#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
9904_ACEOF
93bd259b 9905
71082be4 9906fi
93bd259b
AK
9907
9908if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
9909
9910# Check whether --with-dmeventd-path was given.
f11781c5 9911if test "${with_dmeventd_path+set}" = set; then :
71082be4 9912 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 9913else
71082be4 9914 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
9915fi
9916
93bd259b 9917
71082be4
ZK
9918cat >>confdefs.h <<_ACEOF
9919#define DMEVENTD_PATH "$DMEVENTD_PATH"
9920_ACEOF
3399ae32 9921
71082be4 9922fi
3399ae32 9923
8bae0a1e
AK
9924
9925
8bae0a1e 9926# Check whether --with-default-run-dir was given.
f11781c5 9927if test "${with_default_run_dir+set}" = set; then :
8bae0a1e
AK
9928 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
9929else
9930 DEFAULT_RUN_DIR="/var/run/lvm"
9931fi
9932
9933cat >>confdefs.h <<_ACEOF
9934#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
9935_ACEOF
9936
9937
71082be4 9938################################################################################
3399ae32
AK
9939
9940# Check whether --with-default-system-dir was given.
f11781c5 9941if test "${with_default_system_dir+set}" = set; then :
71082be4 9942 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 9943else
71082be4 9944 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
9945fi
9946
71082be4 9947
3399ae32
AK
9948cat >>confdefs.h <<_ACEOF
9949#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
9950_ACEOF
9951
9952
9953
3399ae32 9954# Check whether --with-default-archive-subdir was given.
f11781c5 9955if test "${with_default_archive_subdir+set}" = set; then :
71082be4 9956 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 9957else
71082be4 9958 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
9959fi
9960
71082be4 9961
3399ae32
AK
9962cat >>confdefs.h <<_ACEOF
9963#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
9964_ACEOF
9965
9966
9967
3399ae32 9968# Check whether --with-default-backup-subdir was given.
f11781c5 9969if test "${with_default_backup_subdir+set}" = set; then :
71082be4 9970 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 9971else
71082be4 9972 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
9973fi
9974
71082be4 9975
3399ae32
AK
9976cat >>confdefs.h <<_ACEOF
9977#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
9978_ACEOF
9979
9980
9981
3399ae32 9982# Check whether --with-default-cache-subdir was given.
f11781c5 9983if test "${with_default_cache_subdir+set}" = set; then :
71082be4 9984 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 9985else
71082be4 9986 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
9987fi
9988
71082be4 9989
3399ae32
AK
9990cat >>confdefs.h <<_ACEOF
9991#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
9992_ACEOF
9993
9994
9995
3399ae32 9996# Check whether --with-default-locking-dir was given.
f11781c5 9997if test "${with_default_locking_dir+set}" = set; then :
71082be4 9998 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 9999else
71082be4 10000 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
10001fi
10002
71082be4 10003
3399ae32
AK
10004cat >>confdefs.h <<_ACEOF
10005#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10006_ACEOF
10007
10008
fea55602
DW
10009################################################################################
10010
10011# Check whether --with-default-data-alignment was given.
f11781c5 10012if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
10013 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10014else
10015 DEFAULT_DATA_ALIGNMENT=1
10016fi
10017
10018
10019cat >>confdefs.h <<_ACEOF
10020#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10021_ACEOF
10022
10023
93bd259b 10024################################################################################
f11781c5 10025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10026$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10027
10028# Check whether --with-interface was given.
f11781c5 10029if test "${with_interface+set}" = set; then :
71082be4 10030 withval=$with_interface; interface=$withval
93bd259b 10031else
71082be4 10032 interface=ioctl
93bd259b
AK
10033fi
10034
10035if [ "x$interface" != xioctl ];
10036then
f11781c5 10037 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10038fi
f11781c5 10039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10040$as_echo "$interface" >&6; }
93bd259b
AK
10041
10042################################################################################
db8b5af9 10043DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10044
10045cat >>confdefs.h <<_ACEOF
10046#define DM_LIB_VERSION $DM_LIB_VERSION
10047_ACEOF
10048
10049
db8b5af9 10050DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10051
db8b5af9 10052LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10053
db8b5af9 10054VER=`cat "$srcdir"/VERSION`
bf456146 10055LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10056VER=`echo "$VER" | $AWK '{print $1}'`
10057LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10058VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10059LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10060LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10061LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10062LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10063
80992638 10064################################################################################
fae0c576 10065
83912faa 10066
795ca3e5
AK
10067
10068
10069
10070
10071
10072
5a52dca9 10073
8ef2b021 10074
199e490e 10075
69792976
AK
10076
10077
10078
d0191583 10079
69792976 10080
8106cdd5
AK
10081
10082
10083
10084
10085
d68a82ec 10086
036f273a 10087
7d1552c9 10088
8106cdd5 10089
0a62c911 10090
8106cdd5 10091
4a7f3eb2 10092
4922197a
AK
10093
10094
d8ac0fbc 10095
1a9ea74d 10096
8a2fc586
AK
10097
10098
d0191583 10099
93bd259b
AK
10100
10101
10102
10103
10104
d0191583
JM
10105
10106
10107
10108
10109
8a2fc586 10110
19a2c6e0 10111
f7f0854e
ZK
10112
10113
3ceb7608 10114
8ce0cbda 10115
8b1a3214 10116
ec6a6fbe
AK
10117
10118
10119
10120
e2997b73
AK
10121
10122
10123
10124
10125
10126
a946372e
AK
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
ec6a6fbe 10138
cac52ca4 10139
d3c8211f 10140
7e3fe830 10141
a5f46f6a
AK
10142
10143
10144
572fefeb 10145
90c80887 10146
3399ae32
AK
10147
10148
10149
10150
10151
90c80887 10152
bf456146 10153
e1b8a236 10154
0878503f 10155
8fea97b7 10156
54b362f9 10157
b1f08e51 10158
d1e8046f 10159
fea55602 10160
c89bc357 10161
37ddf259 10162
606d0858 10163
6e5c1f75 10164
68f2de6d
AK
10165
10166
80992638 10167################################################################################
6e5c1f75 10168ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 10169
ad6254c5 10170cat >confcache <<\_ACEOF
795ca3e5
AK
10171# This file is a shell script that caches the results of configure
10172# tests run on this system so they can be shared between configure
ad6254c5
AK
10173# scripts and configure runs, see configure's option --config-cache.
10174# It is not useful on other systems. If it contains results you don't
10175# want to keep, you may remove or edit it.
795ca3e5 10176#
ad6254c5
AK
10177# config.status only pays attention to the cache file if you give it
10178# the --recheck option to rerun configure.
795ca3e5 10179#
ad6254c5
AK
10180# `ac_cv_env_foo' variables (set or unset) will be overridden when
10181# loading this file, other *unset* `ac_cv_foo' will be assigned the
10182# following values.
10183
10184_ACEOF
10185
795ca3e5
AK
10186# The following way of writing the cache mishandles newlines in values,
10187# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10188# So, we kill variables containing newlines.
795ca3e5
AK
10189# Ultrix sh set writes to stderr and can't be redirected directly,
10190# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10191(
10192 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10193 eval ac_val=\$$ac_var
10194 case $ac_val in #(
10195 *${as_nl}*)
10196 case $ac_var in #(
f11781c5 10197 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10198$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10199 esac
10200 case $ac_var in #(
10201 _ | IFS | as_nl) ;; #(
ec6a6fbe 10202 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10203 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10204 esac ;;
10205 esac
10206 done
10207
ad6254c5 10208 (set) 2>&1 |
7a197a62
AK
10209 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10210 *${as_nl}ac_space=\ *)
f11781c5
AK
10211 # `set' does not quote correctly, so add quotes: double-quote
10212 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10213 sed -n \
8a2fc586
AK
10214 "s/'/'\\\\''/g;
10215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10216 ;; #(
ad6254c5
AK
10217 *)
10218 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10219 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10220 ;;
7a197a62
AK
10221 esac |
10222 sort
10223) |
ad6254c5 10224 sed '
7a197a62 10225 /^ac_cv_env_/b end
ad6254c5 10226 t clear
7a197a62 10227 :clear
ad6254c5
AK
10228 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10229 t end
7a197a62
AK
10230 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10231 :end' >>confcache
10232if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10233 if test -w "$cache_file"; then
10234 test "x$cache_file" != "x/dev/null" &&
f11781c5 10235 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10236$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10237 cat confcache >$cache_file
795ca3e5 10238 else
f11781c5 10239 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10240$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10241 fi
10242fi
10243rm -f confcache
10244
795ca3e5
AK
10245test "x$prefix" = xNONE && prefix=$ac_default_prefix
10246# Let make expand exec_prefix.
10247test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10248
72b2cb61 10249DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10250
10251ac_libobjs=
10252ac_ltlibobjs=
f11781c5 10253U=
ad6254c5
AK
10254for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10255 # 1. Remove the extension, and $U if already installed.
7a197a62 10256 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10257 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10258 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10259 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10260 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10261 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10262done
10263LIBOBJS=$ac_libobjs
80992638 10264
ad6254c5
AK
10265LTLIBOBJS=$ac_ltlibobjs
10266
10267
10268
10269: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10270ac_write_fail=0
ad6254c5
AK
10271ac_clean_files_save=$ac_clean_files
10272ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10273{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10274$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10275as_write_fail=0
10276cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10277#! $SHELL
10278# Generated by $as_me.
795ca3e5 10279# Run this file to recreate the current configuration.
795ca3e5 10280# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10281# configure, is in config.log if it exists.
10282
10283debug=false
10284ac_cs_recheck=false
10285ac_cs_silent=false
ad6254c5 10286
f11781c5
AK
10287SHELL=\${CONFIG_SHELL-$SHELL}
10288export SHELL
10289_ASEOF
10290cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10291## -------------------- ##
10292## M4sh Initialization. ##
10293## -------------------- ##
ad6254c5 10294
25fbec5b
AK
10295# Be more Bourne compatible
10296DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10297if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10298 emulate sh
10299 NULLCMD=:
ec6a6fbe 10300 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10301 # is contrary to our usage. Disable this feature.
10302 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10303 setopt NO_GLOB_SUBST
10304else
f11781c5
AK
10305 case `(set -o) 2>/dev/null` in #(
10306 *posix*) :
10307 set -o posix ;; #(
10308 *) :
10309 ;;
25fbec5b 10310esac
7a197a62 10311fi
25fbec5b
AK
10312
10313
ec6a6fbe
AK
10314as_nl='
10315'
10316export as_nl
10317# Printing a long string crashes Solaris 7 /usr/bin/printf.
10318as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10319as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10320as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10321# Prefer a ksh shell builtin over an external printf program on Solaris,
10322# but without wasting forks for bash or zsh.
10323if test -z "$BASH_VERSION$ZSH_VERSION" \
10324 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10325 as_echo='print -r --'
10326 as_echo_n='print -rn --'
10327elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10328 as_echo='printf %s\n'
10329 as_echo_n='printf %s'
10330else
10331 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10332 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10333 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10334 else
ec6a6fbe
AK
10335 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10336 as_echo_n_body='eval
10337 arg=$1;
f11781c5 10338 case $arg in #(
ec6a6fbe
AK
10339 *"$as_nl"*)
10340 expr "X$arg" : "X\\(.*\\)$as_nl";
10341 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10342 esac;
10343 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10344 '
10345 export as_echo_n_body
10346 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10347 fi
ec6a6fbe
AK
10348 export as_echo_body
10349 as_echo='sh -c $as_echo_body as_echo'
10350fi
10351
10352# The user is always right.
10353if test "${PATH_SEPARATOR+set}" != set; then
10354 PATH_SEPARATOR=:
10355 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10356 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10357 PATH_SEPARATOR=';'
10358 }
ad6254c5
AK
10359fi
10360
ad6254c5 10361
7a197a62
AK
10362# IFS
10363# We need space, tab and new line, in precisely that order. Quoting is
10364# there to prevent editors from complaining about space-tab.
10365# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10366# splitting by setting IFS to empty value.)
7a197a62
AK
10367IFS=" "" $as_nl"
10368
10369# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10370case $0 in #((
7a197a62
AK
10371 *[\\/]* ) as_myself=$0 ;;
10372 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373for as_dir in $PATH
10374do
10375 IFS=$as_save_IFS
10376 test -z "$as_dir" && as_dir=.
f11781c5
AK
10377 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10378 done
7a197a62
AK
10379IFS=$as_save_IFS
10380
10381 ;;
10382esac
10383# We did not find ourselves, most probably we were run as `sh COMMAND'
10384# in which case we are not to be found in the path.
10385if test "x$as_myself" = x; then
10386 as_myself=$0
10387fi
10388if test ! -f "$as_myself"; then
ec6a6fbe 10389 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10390 exit 1
7a197a62
AK
10391fi
10392
f11781c5
AK
10393# Unset variables that we do not need and which cause bugs (e.g. in
10394# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10395# suppresses any "Segmentation fault" message there. '((' could
10396# trigger a bug in pdksh 5.2.14.
10397for as_var in BASH_ENV ENV MAIL MAILPATH
10398do eval test x\${$as_var+set} = xset \
10399 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10400done
ad6254c5
AK
10401PS1='$ '
10402PS2='> '
10403PS4='+ '
10404
10405# NLS nuisances.
ec6a6fbe
AK
10406LC_ALL=C
10407export LC_ALL
10408LANGUAGE=C
10409export LANGUAGE
8106cdd5 10410
f11781c5
AK
10411# CDPATH.
10412(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10413
10414
10415# as_fn_error STATUS ERROR [LINENO LOG_FD]
10416# ----------------------------------------
10417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10419# script with STATUS, using 1 if that was 0.
10420as_fn_error ()
10421{
10422 as_status=$1; test $as_status -eq 0 && as_status=1
10423 if test "$4"; then
10424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10426 fi
10427 $as_echo "$as_me: error: $2" >&2
10428 as_fn_exit $as_status
10429} # as_fn_error
10430
10431
10432# as_fn_set_status STATUS
10433# -----------------------
10434# Set $? to STATUS, without forking.
10435as_fn_set_status ()
10436{
10437 return $1
10438} # as_fn_set_status
10439
10440# as_fn_exit STATUS
10441# -----------------
10442# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10443as_fn_exit ()
10444{
10445 set +e
10446 as_fn_set_status $1
10447 exit $1
10448} # as_fn_exit
10449
10450# as_fn_unset VAR
10451# ---------------
10452# Portably unset VAR.
10453as_fn_unset ()
10454{
10455 { eval $1=; unset $1;}
10456}
10457as_unset=as_fn_unset
10458# as_fn_append VAR VALUE
10459# ----------------------
10460# Append the text in VALUE to the end of the definition contained in VAR. Take
10461# advantage of any shell optimizations that allow amortized linear growth over
10462# repeated appends, instead of the typical quadratic growth present in naive
10463# implementations.
10464if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10465 eval 'as_fn_append ()
10466 {
10467 eval $1+=\$2
10468 }'
10469else
10470 as_fn_append ()
10471 {
10472 eval $1=\$$1\$2
10473 }
10474fi # as_fn_append
10475
10476# as_fn_arith ARG...
10477# ------------------
10478# Perform arithmetic evaluation on the ARGs, and store the result in the
10479# global $as_val. Take advantage of shells that can avoid forks. The arguments
10480# must be portable across $(()) and expr.
10481if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10482 eval 'as_fn_arith ()
10483 {
10484 as_val=$(( $* ))
10485 }'
10486else
10487 as_fn_arith ()
10488 {
10489 as_val=`expr "$@" || test $? -eq 1`
10490 }
10491fi # as_fn_arith
10492
10493
7a197a62
AK
10494if expr a : '\(a\)' >/dev/null 2>&1 &&
10495 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10496 as_expr=expr
10497else
10498 as_expr=false
10499fi
8106cdd5 10500
7a197a62 10501if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10502 as_basename=basename
10503else
10504 as_basename=false
10505fi
10506
f11781c5
AK
10507if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10508 as_dirname=dirname
10509else
10510 as_dirname=false
10511fi
ad6254c5 10512
7a197a62 10513as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10514$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10515 X"$0" : 'X\(//\)$' \| \
7a197a62 10516 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10517$as_echo X/"$0" |
7a197a62
AK
10518 sed '/^.*\/\([^/][^/]*\)\/*$/{
10519 s//\1/
10520 q
10521 }
10522 /^X\/\(\/\/\)$/{
10523 s//\1/
10524 q
10525 }
10526 /^X\/\(\/\).*/{
10527 s//\1/
10528 q
10529 }
10530 s/.*/./; q'`
ad6254c5 10531
f11781c5
AK
10532# Avoid depending upon Character Ranges.
10533as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10534as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10535as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10536as_cr_digits='0123456789'
10537as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10538
10539ECHO_C= ECHO_N= ECHO_T=
f11781c5 10540case `echo -n x` in #(((((
7a197a62 10541-n*)
f11781c5 10542 case `echo 'xy\c'` in
7a197a62 10543 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10544 xy) ECHO_C='\c';;
10545 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10546 ECHO_T=' ';;
7a197a62
AK
10547 esac;;
10548*)
10549 ECHO_N='-n';;
ad6254c5 10550esac
80992638 10551
ad6254c5 10552rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10553if test -d conf$$.dir; then
10554 rm -f conf$$.dir/conf$$.file
10555else
10556 rm -f conf$$.dir
ec6a6fbe
AK
10557 mkdir conf$$.dir 2>/dev/null
10558fi
10559if (echo >conf$$.file) 2>/dev/null; then
10560 if ln -s conf$$.file conf$$ 2>/dev/null; then
10561 as_ln_s='ln -s'
10562 # ... but there are two gotchas:
10563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10565 # In both cases, we have to default to `cp -p'.
10566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10567 as_ln_s='cp -p'
10568 elif ln conf$$.file conf$$ 2>/dev/null; then
10569 as_ln_s=ln
10570 else
ad6254c5 10571 as_ln_s='cp -p'
ec6a6fbe 10572 fi
ad6254c5
AK
10573else
10574 as_ln_s='cp -p'
10575fi
7a197a62
AK
10576rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10577rmdir conf$$.dir 2>/dev/null
8106cdd5 10578
f11781c5
AK
10579
10580# as_fn_mkdir_p
10581# -------------
10582# Create "$as_dir" as a directory, including parents if necessary.
10583as_fn_mkdir_p ()
10584{
10585
10586 case $as_dir in #(
10587 -*) as_dir=./$as_dir;;
10588 esac
10589 test -d "$as_dir" || eval $as_mkdir_p || {
10590 as_dirs=
10591 while :; do
10592 case $as_dir in #(
10593 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10594 *) as_qdir=$as_dir;;
10595 esac
10596 as_dirs="'$as_qdir' $as_dirs"
10597 as_dir=`$as_dirname -- "$as_dir" ||
10598$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10599 X"$as_dir" : 'X\(//\)[^/]' \| \
10600 X"$as_dir" : 'X\(//\)$' \| \
10601 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10602$as_echo X"$as_dir" |
10603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10604 s//\1/
10605 q
10606 }
10607 /^X\(\/\/\)[^/].*/{
10608 s//\1/
10609 q
10610 }
10611 /^X\(\/\/\)$/{
10612 s//\1/
10613 q
10614 }
10615 /^X\(\/\).*/{
10616 s//\1/
10617 q
10618 }
10619 s/.*/./; q'`
10620 test -d "$as_dir" && break
10621 done
10622 test -z "$as_dirs" || eval "mkdir $as_dirs"
10623 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10624
10625
10626} # as_fn_mkdir_p
ad6254c5 10627if mkdir -p . 2>/dev/null; then
f11781c5 10628 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 10629else
8a2fc586 10630 test -d ./-p && rmdir ./-p
ad6254c5
AK
10631 as_mkdir_p=false
10632fi
10633
25fbec5b
AK
10634if test -x / >/dev/null 2>&1; then
10635 as_test_x='test -x'
7a197a62 10636else
25fbec5b
AK
10637 if ls -dL / >/dev/null 2>&1; then
10638 as_ls_L_option=L
10639 else
10640 as_ls_L_option=
10641 fi
10642 as_test_x='
10643 eval sh -c '\''
10644 if test -d "$1"; then
ec6a6fbe 10645 test -d "$1/.";
25fbec5b 10646 else
f11781c5 10647 case $1 in #(
ec6a6fbe 10648 -*)set "./$1";;
25fbec5b 10649 esac;
f11781c5 10650 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
10651 ???[sx]*):;;*)false;;esac;fi
10652 '\'' sh
10653 '
7a197a62 10654fi
25fbec5b 10655as_executable_p=$as_test_x
ad6254c5
AK
10656
10657# Sed expression to map a string onto a valid CPP name.
8a2fc586 10658as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10659
10660# Sed expression to map a string onto a valid variable name.
8a2fc586 10661as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10662
10663
ad6254c5 10664exec 6>&1
f11781c5
AK
10665## ----------------------------------- ##
10666## Main body of $CONFIG_STATUS script. ##
10667## ----------------------------------- ##
10668_ASEOF
10669test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 10670
f11781c5
AK
10671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10672# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 10673# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
10674# values after options handling.
10675ac_log="
ad6254c5 10676This file was extended by $as_me, which was
f11781c5 10677generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
10678
10679 CONFIG_FILES = $CONFIG_FILES
10680 CONFIG_HEADERS = $CONFIG_HEADERS
10681 CONFIG_LINKS = $CONFIG_LINKS
10682 CONFIG_COMMANDS = $CONFIG_COMMANDS
10683 $ $0 $@
10684
7a197a62
AK
10685on `(hostname || uname -n) 2>/dev/null | sed 1q`
10686"
10687
ad6254c5
AK
10688_ACEOF
10689
ec6a6fbe
AK
10690case $ac_config_files in *"
10691"*) set x $ac_config_files; shift; ac_config_files=$*;;
10692esac
10693
10694case $ac_config_headers in *"
10695"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10696esac
10697
10698
10699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10700# Files that config.status was made for.
68f2de6d
AK
10701config_files="$ac_config_files"
10702config_headers="$ac_config_headers"
ad6254c5 10703
7a197a62 10704_ACEOF
ad6254c5 10705
ec6a6fbe 10706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 10707ac_cs_usage="\
f11781c5
AK
10708\`$as_me' instantiates files and other configuration actions
10709from templates according to the current configuration. Unless the files
10710and actions are specified as TAGs, all are instantiated by default.
ad6254c5 10711
f11781c5 10712Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
10713
10714 -h, --help print this help, then exit
25fbec5b 10715 -V, --version print version number and configuration settings, then exit
f11781c5 10716 --config print configuration, then exit
ec6a6fbe
AK
10717 -q, --quiet, --silent
10718 do not print progress messages
ad6254c5
AK
10719 -d, --debug don't remove temporary files
10720 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
10721 --file=FILE[:TEMPLATE]
10722 instantiate the configuration file FILE
10723 --header=FILE[:TEMPLATE]
10724 instantiate the configuration header FILE
ad6254c5
AK
10725
10726Configuration files:
10727$config_files
10728
72b2cb61
AK
10729Configuration headers:
10730$config_headers
10731
f11781c5 10732Report bugs to the package provider."
ad6254c5 10733
7a197a62 10734_ACEOF
ec6a6fbe 10735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 10736ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
10737ac_cs_version="\\
10738config.status
f11781c5
AK
10739configured by $0, generated by GNU Autoconf 2.66,
10740 with options \\"\$ac_cs_config\\"
ad6254c5 10741
f11781c5 10742Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
10743This config.status script is free software; the Free Software Foundation
10744gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
10745
10746ac_pwd='$ac_pwd'
10747srcdir='$srcdir'
10748INSTALL='$INSTALL'
fddafd51 10749MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
10750AWK='$AWK'
10751test -n "\$AWK" || AWK=awk
ad6254c5
AK
10752_ACEOF
10753
ec6a6fbe
AK
10754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10755# The default lists apply if the user does not specify any file.
ad6254c5
AK
10756ac_need_defaults=:
10757while test $# != 0
10758do
10759 case $1 in
10760 --*=*)
7a197a62
AK
10761 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10762 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
10763 ac_shift=:
10764 ;;
7a197a62 10765 *)
ad6254c5
AK
10766 ac_option=$1
10767 ac_optarg=$2
10768 ac_shift=shift
10769 ;;
ad6254c5
AK
10770 esac
10771
10772 case $ac_option in
10773 # Handling of the options.
ad6254c5
AK
10774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10775 ac_cs_recheck=: ;;
7a197a62 10776 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 10777 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
10778 --config | --confi | --conf | --con | --co | --c )
10779 $as_echo "$ac_cs_config"; exit ;;
7a197a62 10780 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
10781 debug=: ;;
10782 --file | --fil | --fi | --f )
10783 $ac_shift
ec6a6fbe
AK
10784 case $ac_optarg in
10785 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10786 esac
f11781c5 10787 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
10788 ac_need_defaults=false;;
10789 --header | --heade | --head | --hea )
10790 $ac_shift
ec6a6fbe
AK
10791 case $ac_optarg in
10792 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10793 esac
f11781c5 10794 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 10795 ac_need_defaults=false;;
7a197a62
AK
10796 --he | --h)
10797 # Conflict between --help and --header
f11781c5
AK
10798 as_fn_error $? "ambiguous option: \`$1'
10799Try \`$0 --help' for more information.";;
7a197a62 10800 --help | --hel | -h )
ec6a6fbe 10801 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
10802 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10803 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10804 ac_cs_silent=: ;;
10805
10806 # This is an error.
f11781c5
AK
10807 -*) as_fn_error $? "unrecognized option: \`$1'
10808Try \`$0 --help' for more information." ;;
ad6254c5 10809
f11781c5 10810 *) as_fn_append ac_config_targets " $1"
7a197a62 10811 ac_need_defaults=false ;;
ad6254c5
AK
10812
10813 esac
10814 shift
10815done
10816
10817ac_configure_extra_args=
10818
10819if $ac_cs_silent; then
10820 exec 6>/dev/null
10821 ac_configure_extra_args="$ac_configure_extra_args --silent"
10822fi
10823
10824_ACEOF
ec6a6fbe 10825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10826if \$ac_cs_recheck; then
ec6a6fbe
AK
10827 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10828 shift
10829 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10830 CONFIG_SHELL='$SHELL'
7a197a62 10831 export CONFIG_SHELL
ec6a6fbe 10832 exec "\$@"
ad6254c5
AK
10833fi
10834
10835_ACEOF
ec6a6fbe 10836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10837exec 5>>config.log
10838{
10839 echo
10840 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10841## Running $as_me. ##
10842_ASBOX
ec6a6fbe 10843 $as_echo "$ac_log"
7a197a62 10844} >&5
ad6254c5 10845
7a197a62 10846_ACEOF
ec6a6fbe 10847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 10848_ACEOF
ad6254c5 10849
ec6a6fbe 10850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10851
10852# Handling of arguments.
ad6254c5
AK
10853for ac_config_target in $ac_config_targets
10854do
7a197a62
AK
10855 case $ac_config_target in
10856 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
10857 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10858 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
10859 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
10860 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 10861 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
10862 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
10863 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 10864 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 10865 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
10866 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
10867 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 10868 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 10869 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 10870 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
10871 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10872 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
10873 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
10874 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
10875 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
10876 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 10877 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 10878 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 10879 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
10880 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
10881 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 10882 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 10883 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
10884 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10885 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 10886 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 10887 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 10888 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
6e5c1f75
PR
10889 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
10890 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
7a197a62 10891 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 10892 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 10893 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 10894 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 10895 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
10896 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
10897 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 10898 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 10899
f11781c5 10900 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 10901 esac
ad6254c5
AK
10902done
10903
7a197a62 10904
ad6254c5
AK
10905# If the user did not use the arguments to specify the items to instantiate,
10906# then the envvar interface is used. Set only those that are not.
10907# We use the long form for the default assignment because of an extremely
10908# bizarre bug on SunOS 4.1.3.
10909if $ac_need_defaults; then
10910 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 10911 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
10912fi
10913
10914# Have a temporary directory for convenience. Make it in the build tree
7a197a62 10915# simply because there is no reason against having it here, and in addition,
ad6254c5 10916# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
10917# Hook for its removal unless debugging.
10918# Note that there is a small window in which the directory will not be cleaned:
10919# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
10920$debug ||
10921{
7a197a62
AK
10922 tmp=
10923 trap 'exit_status=$?
10924 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10925' 0
f11781c5 10926 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 10927}
ad6254c5
AK
10928# Create a (secure) tmp directory for tmp files.
10929
10930{
7a197a62 10931 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
10932 test -n "$tmp" && test -d "$tmp"
10933} ||
10934{
7a197a62
AK
10935 tmp=./conf$$-$RANDOM
10936 (umask 077 && mkdir "$tmp")
f11781c5 10937} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 10938
ec6a6fbe
AK
10939# Set up the scripts for CONFIG_FILES section.
10940# No need to generate them if there are no CONFIG_FILES.
10941# This happens for instance with `./config.status config.h'.
1995c9ff 10942if test -n "$CONFIG_FILES"; then
7a197a62 10943
68f2de6d 10944
f11781c5
AK
10945ac_cr=`echo X | tr X '\015'`
10946# On cygwin, bash can eat \r inside `` if the user requested igncr.
10947# But we know of no other shell where ac_cr would be empty at this
10948# point, so we can use a bashism as a fallback.
10949if test "x$ac_cr" = x; then
10950 eval ac_cr=\$\'\\r\'
10951fi
ec6a6fbe
AK
10952ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10953if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10954 ac_cs_awk_cr='\\r'
10955else
10956 ac_cs_awk_cr=$ac_cr
1995c9ff 10957fi
7a197a62 10958
ec6a6fbe 10959echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 10960_ACEOF
7a197a62 10961
8106cdd5 10962
ec6a6fbe
AK
10963{
10964 echo "cat >conf$$subs.awk <<_ACEOF" &&
10965 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10966 echo "_ACEOF"
10967} >conf$$subs.sh ||
f11781c5
AK
10968 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10969ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
10970ac_delim='%!_!# '
10971for ac_last_try in false false false false false :; do
ec6a6fbe 10972 . ./conf$$subs.sh ||
f11781c5 10973 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
10974
10975 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10976 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
10977 break
10978 elif $ac_last_try; then
f11781c5 10979 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
10980 else
10981 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10982 fi
10983done
ec6a6fbe
AK
10984rm -f conf$$subs.sh
10985
10986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10987cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10988_ACEOF
10989sed -n '
10990h
10991s/^/S["/; s/!.*/"]=/
10992p
10993g
10994s/^[^!]*!//
10995:repl
10996t repl
10997s/'"$ac_delim"'$//
10998t delim
10999:nl
11000h
f11781c5 11001s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11002t more1
11003s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11004p
11005n
11006b repl
11007:more1
11008s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11009p
11010g
11011s/.\{148\}//
11012t nl
11013:delim
11014h
f11781c5 11015s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11016t more2
11017s/["\\]/\\&/g; s/^/"/; s/$/"/
11018p
11019b
11020:more2
11021s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11022p
11023g
11024s/.\{148\}//
11025t delim
11026' <conf$$subs.awk | sed '
11027/^[^""]/{
11028 N
11029 s/\n//
11030}
11031' >>$CONFIG_STATUS || ac_write_fail=1
11032rm -f conf$$subs.awk
11033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11034_ACAWK
11035cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11036 for (key in S) S_is_set[key] = 1
11037 FS = "\a"
7a197a62 11038
ec6a6fbe
AK
11039}
11040{
11041 line = $ 0
11042 nfields = split(line, field, "@")
11043 substed = 0
11044 len = length(field[1])
11045 for (i = 2; i < nfields; i++) {
11046 key = field[i]
11047 keylen = length(key)
11048 if (S_is_set[key]) {
11049 value = S[key]
11050 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11051 len += length(value) + length(field[++i])
11052 substed = 1
11053 } else
11054 len += 1 + keylen
11055 }
11056
11057 print line
11058}
fddafd51 11059
ec6a6fbe 11060_ACAWK
1995c9ff 11061_ACEOF
ec6a6fbe
AK
11062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11063if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11064 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11065else
11066 cat
11067fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11068 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11069_ACEOF
11070
f11781c5
AK
11071# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11072# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11073# trailing colons and then remove the whole line if VPATH becomes empty
11074# (actually we leave an empty line to preserve line numbers).
11075if test "x$srcdir" = x.; then
f11781c5
AK
11076 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11077h
11078s///
11079s/^/:/
11080s/[ ]*$/:/
11081s/:\$(srcdir):/:/g
11082s/:\${srcdir}:/:/g
11083s/:@srcdir@:/:/g
11084s/^:*//
7a197a62 11085s/:*$//
f11781c5
AK
11086x
11087s/\(=[ ]*\).*/\1/
11088G
11089s/\n//
7a197a62
AK
11090s/^[^=]*=[ ]*$//
11091}'
11092fi
11093
ec6a6fbe 11094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11095fi # test -n "$CONFIG_FILES"
11096
ec6a6fbe
AK
11097# Set up the scripts for CONFIG_HEADERS section.
11098# No need to generate them if there are no CONFIG_HEADERS.
11099# This happens for instance with `./config.status Makefile'.
11100if test -n "$CONFIG_HEADERS"; then
11101cat >"$tmp/defines.awk" <<\_ACAWK ||
11102BEGIN {
11103_ACEOF
11104
11105# Transform confdefs.h into an awk script `defines.awk', embedded as
11106# here-document in config.status, that substitutes the proper values into
11107# config.h.in to produce config.h.
11108
11109# Create a delimiter string that does not exist in confdefs.h, to ease
11110# handling of long lines.
11111ac_delim='%!_!# '
11112for ac_last_try in false false :; do
11113 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11114 if test -z "$ac_t"; then
11115 break
11116 elif $ac_last_try; then
f11781c5 11117 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11118 else
11119 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11120 fi
11121done
11122
11123# For the awk script, D is an array of macro values keyed by name,
11124# likewise P contains macro parameters if any. Preserve backslash
11125# newline sequences.
11126
11127ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11128sed -n '
11129s/.\{148\}/&'"$ac_delim"'/g
11130t rset
11131:rset
11132s/^[ ]*#[ ]*define[ ][ ]*/ /
11133t def
11134d
11135:def
11136s/\\$//
11137t bsnl
11138s/["\\]/\\&/g
11139s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11140D["\1"]=" \3"/p
11141s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11142d
11143:bsnl
11144s/["\\]/\\&/g
11145s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11146D["\1"]=" \3\\\\\\n"\\/p
11147t cont
11148s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11149t cont
11150d
11151:cont
11152n
11153s/.\{148\}/&'"$ac_delim"'/g
11154t clear
11155:clear
11156s/\\$//
11157t bsnlc
11158s/["\\]/\\&/g; s/^/"/; s/$/"/p
11159d
11160:bsnlc
11161s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11162b cont
11163' <confdefs.h | sed '
11164s/'"$ac_delim"'/"\\\
11165"/g' >>$CONFIG_STATUS || ac_write_fail=1
11166
11167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11168 for (key in D) D_is_set[key] = 1
11169 FS = "\a"
11170}
11171/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11172 line = \$ 0
11173 split(line, arg, " ")
11174 if (arg[1] == "#") {
11175 defundef = arg[2]
11176 mac1 = arg[3]
11177 } else {
11178 defundef = substr(arg[1], 2)
11179 mac1 = arg[2]
11180 }
11181 split(mac1, mac2, "(") #)
11182 macro = mac2[1]
11183 prefix = substr(line, 1, index(line, defundef) - 1)
11184 if (D_is_set[macro]) {
11185 # Preserve the white space surrounding the "#".
11186 print prefix "define", macro P[macro] D[macro]
11187 next
11188 } else {
11189 # Replace #undef with comments. This is necessary, for example,
11190 # in the case of _POSIX_SOURCE, which is predefined and required
11191 # on some systems where configure will not decide to define it.
11192 if (defundef == "undef") {
11193 print "/*", prefix defundef, macro, "*/"
11194 next
11195 }
11196 }
11197}
11198{ print }
11199_ACAWK
11200_ACEOF
11201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11202 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11203fi # test -n "$CONFIG_HEADERS"
11204
7a197a62 11205
ec6a6fbe
AK
11206eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11207shift
11208for ac_tag
7a197a62
AK
11209do
11210 case $ac_tag in
11211 :[FHLC]) ac_mode=$ac_tag; continue;;
11212 esac
11213 case $ac_mode$ac_tag in
11214 :[FHL]*:*);;
f11781c5 11215 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11216 :[FH]-) ac_tag=-:-;;
11217 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11218 esac
11219 ac_save_IFS=$IFS
11220 IFS=:
11221 set x $ac_tag
11222 IFS=$ac_save_IFS
11223 shift
11224 ac_file=$1
11225 shift
11226
11227 case $ac_mode in
11228 :L) ac_source=$1;;
11229 :[FH])
11230 ac_file_inputs=
11231 for ac_f
11232 do
11233 case $ac_f in
11234 -) ac_f="$tmp/stdin";;
11235 *) # Look for the file first in the build tree, then in the source tree
11236 # (if the path is not absolute). The absolute path cannot be DOS-style,
11237 # because $ac_f cannot contain `:'.
11238 test -f "$ac_f" ||
11239 case $ac_f in
11240 [\\/$]*) false;;
11241 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11242 esac ||
f11781c5 11243 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11244 esac
ec6a6fbe 11245 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11246 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11247 done
11248
11249 # Let's still pretend it is `configure' which instantiates (i.e., don't
11250 # use $as_me), people would be surprised to read:
11251 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11252 configure_input='Generated from '`
11253 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11254 `' by configure.'
7a197a62
AK
11255 if test x"$ac_file" != x-; then
11256 configure_input="$ac_file. $configure_input"
f11781c5 11257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11258$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11259 fi
ec6a6fbe
AK
11260 # Neutralize special characters interpreted by sed in replacement strings.
11261 case $configure_input in #(
11262 *\&* | *\|* | *\\* )
11263 ac_sed_conf_input=`$as_echo "$configure_input" |
11264 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11265 *) ac_sed_conf_input=$configure_input;;
11266 esac
7a197a62
AK
11267
11268 case $ac_tag in
ec6a6fbe 11269 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11270 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11271 esac
11272 ;;
80992638 11273 esac
8106cdd5 11274
7a197a62 11275 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11276$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11277 X"$ac_file" : 'X\(//\)[^/]' \| \
11278 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11279 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11280$as_echo X"$ac_file" |
7a197a62
AK
11281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11282 s//\1/
11283 q
11284 }
11285 /^X\(\/\/\)[^/].*/{
11286 s//\1/
11287 q
11288 }
11289 /^X\(\/\/\)$/{
11290 s//\1/
11291 q
11292 }
11293 /^X\(\/\).*/{
11294 s//\1/
11295 q
11296 }
11297 s/.*/./; q'`
f11781c5 11298 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11299 ac_builddir=.
11300
7a197a62
AK
11301case "$ac_dir" in
11302.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11303*)
ec6a6fbe 11304 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11305 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11306 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11307 case $ac_top_builddir_sub in
11308 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11309 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11310 esac ;;
11311esac
11312ac_abs_top_builddir=$ac_pwd
11313ac_abs_builddir=$ac_pwd$ac_dir_suffix
11314# for backward compatibility:
11315ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11316
11317case $srcdir in
7a197a62 11318 .) # We are building in place.
ad6254c5 11319 ac_srcdir=.
7a197a62
AK
11320 ac_top_srcdir=$ac_top_builddir_sub
11321 ac_abs_top_srcdir=$ac_pwd ;;
11322 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11323 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11324 ac_top_srcdir=$srcdir
11325 ac_abs_top_srcdir=$srcdir ;;
11326 *) # Relative name.
11327 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11328 ac_top_srcdir=$ac_top_build_prefix$srcdir
11329 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11330esac
7a197a62 11331ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11332
ad6254c5 11333
7a197a62
AK
11334 case $ac_mode in
11335 :F)
11336 #
11337 # CONFIG_FILE
11338 #
ad6254c5
AK
11339
11340 case $INSTALL in
11341 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11342 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11343 esac
fddafd51
ZK
11344 ac_MKDIR_P=$MKDIR_P
11345 case $MKDIR_P in
11346 [\\/$]* | ?:[\\/]* ) ;;
11347 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11348 esac
7a197a62 11349_ACEOF
795ca3e5 11350
ec6a6fbe 11351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11352# If the template does not know about datarootdir, expand it.
11353# FIXME: This hack should be removed a few years after 2.60.
11354ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11355ac_sed_dataroot='
11356/datarootdir/ {
7a197a62
AK
11357 p
11358 q
11359}
11360/@datadir@/p
11361/@docdir@/p
11362/@infodir@/p
11363/@localedir@/p
f11781c5 11364/@mandir@/p'
ec6a6fbe 11365case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11366*datarootdir*) ac_datarootdir_seen=yes;;
11367*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11369$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11370_ACEOF
ec6a6fbe 11371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11372 ac_datarootdir_hack='
11373 s&@datadir@&$datadir&g
11374 s&@docdir@&$docdir&g
11375 s&@infodir@&$infodir&g
11376 s&@localedir@&$localedir&g
11377 s&@mandir@&$mandir&g
f11781c5 11378 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11379esac
11380_ACEOF
11381
11382# Neutralize VPATH when `$srcdir' = `.'.
11383# Shell code in configure.ac might set extrasub.
11384# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11386ac_sed_extra="$ac_vpsub
ad6254c5
AK
11387$extrasub
11388_ACEOF
ec6a6fbe 11389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11390:t
11391/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11392s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11393s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11394s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11395s&@srcdir@&$ac_srcdir&;t t
11396s&@abs_srcdir@&$ac_abs_srcdir&;t t
11397s&@top_srcdir@&$ac_top_srcdir&;t t
11398s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11399s&@builddir@&$ac_builddir&;t t
11400s&@abs_builddir@&$ac_abs_builddir&;t t
11401s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11402s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11403s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11404$ac_datarootdir_hack
ec6a6fbe
AK
11405"
11406eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11408
11409test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11410 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11411 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11413which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11414$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11415which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11416
11417 rm -f "$tmp/stdin"
72b2cb61 11418 case $ac_file in
ec6a6fbe
AK
11419 -) cat "$tmp/out" && rm -f "$tmp/out";;
11420 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11421 esac \
f11781c5 11422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11423 ;;
11424 :H)
11425 #
11426 # CONFIG_HEADER
11427 #
72b2cb61 11428 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11429 {
11430 $as_echo "/* $configure_input */" \
11431 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11432 } >"$tmp/config.h" \
f11781c5 11433 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11434 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11435 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11436$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11437 else
ec6a6fbe
AK
11438 rm -f "$ac_file"
11439 mv "$tmp/config.h" "$ac_file" \
f11781c5 11440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11441 fi
11442 else
ec6a6fbe
AK
11443 $as_echo "/* $configure_input */" \
11444 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11445 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11446 fi
7a197a62
AK
11447 ;;
11448
11449
11450 esac
11451
11452done # for ac_tag
795ca3e5 11453
795ca3e5 11454
f11781c5 11455as_fn_exit 0
ad6254c5 11456_ACEOF
ad6254c5
AK
11457ac_clean_files=$ac_clean_files_save
11458
ec6a6fbe 11459test $ac_write_fail = 0 ||
f11781c5 11460 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11461
ad6254c5
AK
11462
11463# configure is writing to config.log, and then calls config.status.
11464# config.status does its own redirection, appending to config.log.
11465# Unfortunately, on DOS this fails, as config.log is still kept open
11466# by configure, so config.status won't be able to write to it; its
11467# output is simply discarded. So we exec the FD to /dev/null,
11468# effectively closing config.log, so it can be properly (re)opened and
11469# appended to by config.status. When coming back to configure, we
11470# need to make the FD available again.
11471if test "$no_create" != yes; then
11472 ac_cs_success=:
11473 ac_config_status_args=
11474 test "$silent" = yes &&
11475 ac_config_status_args="$ac_config_status_args --quiet"
11476 exec 5>/dev/null
11477 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11478 exec 5>>config.log
11479 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11480 # would make configure fail if this is the last instruction.
f11781c5 11481 $ac_cs_success || as_fn_exit 1
ad6254c5 11482fi
ec6a6fbe 11483if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11485$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11486fi
795ca3e5 11487
2dc95e1c
AK
11488
11489if test x$ODIRECT != xyes; then
f11781c5 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11491$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11492fi
This page took 1.753689 seconds and 5 git commands to generate.