]> sourceware.org Git - lvm2.git/blame - configure
Add configure --with-default-name-mangling.
[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
e587cb6a 599systemdsystemunitdir
a5f46f6a
AK
600udevdir
601udev_prefix
ec6a6fbe
AK
602tmpdir
603kernelvsn
604missingkernel
605kerneldir
606interface
6e5c1f75 607DMEVENTD_PIDFILE
23b059e7 608WRITE_INSTALL
0878503f 609UDEV_SYNC
a5f46f6a 610UDEV_RULES
f7f0854e 611UDEV_PC
3ba4a195 612THIN
54b362f9 613TESTING
ec6a6fbe
AK
614STATIC_LINK
615STATICDIR
616SNAPSHOTS
f7f0854e 617SELINUX_PC
e1b8a236 618SELINUX_LIBS
cac52ca4 619REPLICATORS
539f4a77 620READLINE_LIBS
cac52ca4 621RAID
f30875db 622PTHREAD_LIBS
ec6a6fbe
AK
623POOL
624PKGCONFIG
606d0858 625OCFDIR
37ddf259 626OCF
ec6a6fbe
AK
627MIRRORS
628LVM_RELEASE_DATE
629LVM_RELEASE
d2c11605 630LVM_PATH
ec6a6fbe
AK
631LVM_PATCHLEVEL
632LVM_MINOR
633LVM_MAJOR
bf456146 634LVM_LIBAPI
ec6a6fbe 635LVM_VERSION
ec6a6fbe
AK
636LVM1_FALLBACK
637LVM1
638LOCALEDIR
639LIB_SUFFIX
640LDDEPS
641JOBS
642INTL_PACKAGE
643INTL
ec6a6fbe
AK
644HAVE_REALTIME
645HAVE_LIBDL
ec6a6fbe 646FSADM
bf09a320 647ELDFLAGS
ec6a6fbe
AK
648DM_LIB_PATCHLEVEL
649DM_LIB_VERSION
650DM_IOCTLS
651DM_DEVICE_UID
652DM_DEVICE_MODE
653DM_DEVICE_GID
654DM_COMPAT
d1e8046f 655DMEVENTD_PATH
ec6a6fbe 656DMEVENTD
19a2c6e0 657DL_LIBS
ec6a6fbe 658DEVMAPPER
b1f08e51 659DEFAULT_RUN_DIR
3399ae32 660DEFAULT_LOCK_DIR
fea55602 661DEFAULT_DATA_ALIGNMENT
3399ae32
AK
662DEFAULT_CACHE_SUBDIR
663DEFAULT_BACKUP_SUBDIR
664DEFAULT_ARCHIVE_SUBDIR
665DEFAULT_SYS_DIR
ec6a6fbe
AK
666DEBUG
667COPTIMISE_FLAG
e2997b73 668CONFDIR
ec6a6fbe 669CMDLIB
d2c11605 670CLVMD_PATH
c89bc357 671CLVMD_CMANAGERS
ec6a6fbe
AK
672CLVMD
673CLUSTER
674CLDWHOLEARCHIVE
675CLDNOWHOLEARCHIVE
676CLDFLAGS
cdd50823 677BUILD_LVMETAD
ec6a6fbe 678BUILD_DMEVENTD
66fd4529 679BUILD_CMIRRORD
572fefeb 680APPLIB
ec6a6fbe
AK
681MODPROBE_CMD
682MSGFMT
683LVM2CMD_LIB
572fefeb 684LVM2APP_LIB
d93275eb
PR
685UDEV_LIBS
686UDEV_CFLAGS
426fc742
PR
687CUNIT_LIBS
688CUNIT_CFLAGS
fd4728e1 689GENPNG
ec6a6fbe
AK
690GENHTML
691LCOV
90c80887
AK
692SACKPT_LIBS
693SACKPT_CFLAGS
a946372e
AK
694DLM_LIBS
695DLM_CFLAGS
e2997b73
AK
696CPG_LIBS
697CPG_CFLAGS
b6d7a484
AK
698CMAP_LIBS
699CMAP_CFLAGS
e2997b73
AK
700CONFDB_LIBS
701CONFDB_CFLAGS
a946372e
AK
702SALCK_LIBS
703SALCK_CFLAGS
e2997b73
AK
704QUORUM_LIBS
705QUORUM_CFLAGS
a946372e
AK
706COROSYNC_LIBS
707COROSYNC_CFLAGS
708CMAN_LIBS
709CMAN_CFLAGS
a946372e
AK
710PKGCONFIGINIT_LIBS
711PKGCONFIGINIT_CFLAGS
f11781c5
AK
712PKG_CONFIG_LIBDIR
713PKG_CONFIG_PATH
e2997b73 714PKG_CONFIG
ec6a6fbe
AK
715POW_LIB
716LIBOBJS
717ALLOCA
718CSCOPE_CMD
719CFLOW_CMD
720RANLIB
721MKDIR_P
722SET_MAKE
723LN_S
724INSTALL_DATA
725INSTALL_SCRIPT
726INSTALL_PROGRAM
727EGREP
728GREP
729CPP
730OBJEXT
731EXEEXT
732ac_ct_CC
733CPPFLAGS
734LDFLAGS
735CFLAGS
736CC
737AWK
738SED
739target_os
740target_vendor
741target_cpu
742target
743host_os
744host_vendor
745host_cpu
746host
747build_os
748build_vendor
749build_cpu
750build
751target_alias
752host_alias
753build_alias
754LIBS
755ECHO_T
756ECHO_N
757ECHO_C
758DEFS
759mandir
760localedir
761libdir
762psdir
763pdfdir
764dvidir
765htmldir
766infodir
767docdir
768oldincludedir
769includedir
770localstatedir
771sharedstatedir
772sysconfdir
773datadir
774datarootdir
775libexecdir
776sbindir
777bindir
778program_transform_name
779prefix
780exec_prefix
f11781c5 781PACKAGE_URL
ec6a6fbe
AK
782PACKAGE_BUGREPORT
783PACKAGE_STRING
784PACKAGE_VERSION
785PACKAGE_TARNAME
786PACKAGE_NAME
787PATH_SEPARATOR
788SHELL'
ad6254c5 789ac_subst_files=''
ec6a6fbe
AK
790ac_user_opts='
791enable_option_checking
792enable_static_link
793with_user
794with_group
795with_device_uid
796with_device_gid
797with_device_mode
d0df875d 798with_device_nodes_on
ec6a6fbe
AK
799enable_lvm1_fallback
800with_lvm1
801with_pool
802with_cluster
803with_snapshots
804with_mirrors
cac52ca4 805with_raid
8fea97b7 806with_replicators
3ba4a195 807with_thin
ec6a6fbe
AK
808enable_readline
809enable_realtime
37ddf259 810enable_ocf
606d0858 811with_ocfdir
ec6a6fbe 812with_clvmd
8c4e8a18 813with_clvmd_pidfile
66fd4529
AK
814enable_cmirrord
815with_cmirrord_pidfile
ec6a6fbe
AK
816enable_debug
817with_optimisation
818enable_profiling
54b362f9 819enable_testing
d1e8046f 820enable_valgrind_pool
ec6a6fbe 821enable_devmapper
cdd50823 822enable_lvmetad
a5f46f6a
AK
823enable_udev_sync
824enable_udev_rules
ec6a6fbe 825enable_compat
95eaa683 826enable_units_compat
ec6a6fbe
AK
827enable_ioctl
828enable_o_direct
572fefeb 829enable_applib
ec6a6fbe
AK
830enable_cmdlib
831enable_pkgconfig
23b059e7 832enable_write_install
ec6a6fbe
AK
833enable_fsadm
834enable_dmeventd
835enable_selinux
836enable_nls
837with_localedir
838with_confdir
839with_staticdir
840with_usrlibdir
841with_usrsbindir
a5f46f6a 842with_udev_prefix
78ce7acc 843with_udevdir
e587cb6a 844with_systemdsystemunitdir
ec6a6fbe
AK
845with_dmeventd_pidfile
846with_dmeventd_path
8bae0a1e 847with_default_run_dir
3399ae32
AK
848with_default_system_dir
849with_default_archive_subdir
850with_default_backup_subdir
851with_default_cache_subdir
852with_default_locking_dir
fea55602 853with_default_data_alignment
ec6a6fbe
AK
854with_interface
855'
7a197a62
AK
856 ac_precious_vars='build_alias
857host_alias
858target_alias
859CC
860CFLAGS
861LDFLAGS
25fbec5b 862LIBS
7a197a62 863CPPFLAGS
e2997b73
AK
864CPP
865PKG_CONFIG
f11781c5
AK
866PKG_CONFIG_PATH
867PKG_CONFIG_LIBDIR
a946372e
AK
868PKGCONFIGINIT_CFLAGS
869PKGCONFIGINIT_LIBS
a946372e
AK
870CMAN_CFLAGS
871CMAN_LIBS
872COROSYNC_CFLAGS
873COROSYNC_LIBS
e2997b73
AK
874QUORUM_CFLAGS
875QUORUM_LIBS
a946372e
AK
876SALCK_CFLAGS
877SALCK_LIBS
e2997b73
AK
878CONFDB_CFLAGS
879CONFDB_LIBS
b6d7a484
AK
880CMAP_CFLAGS
881CMAP_LIBS
e2997b73 882CPG_CFLAGS
a946372e
AK
883CPG_LIBS
884DLM_CFLAGS
90c80887
AK
885DLM_LIBS
886SACKPT_CFLAGS
d93275eb 887SACKPT_LIBS
426fc742
PR
888CUNIT_CFLAGS
889CUNIT_LIBS
d93275eb
PR
890UDEV_CFLAGS
891UDEV_LIBS'
7a197a62 892
795ca3e5
AK
893
894# Initialize some variables set by options.
ad6254c5
AK
895ac_init_help=
896ac_init_version=false
ec6a6fbe
AK
897ac_unrecognized_opts=
898ac_unrecognized_sep=
795ca3e5
AK
899# The variables have the same names as the options, with
900# dashes changed to underlines.
ad6254c5 901cache_file=/dev/null
795ca3e5 902exec_prefix=NONE
795ca3e5 903no_create=
795ca3e5
AK
904no_recursion=
905prefix=NONE
906program_prefix=NONE
907program_suffix=NONE
908program_transform_name=s,x,x,
909silent=
910site=
911srcdir=
795ca3e5
AK
912verbose=
913x_includes=NONE
914x_libraries=NONE
ad6254c5
AK
915
916# Installation directory options.
917# These are left unexpanded so users can "make install exec_prefix=/foo"
918# and all the variables that are supposed to be based on exec_prefix
919# by default will actually change.
920# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 921# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
922bindir='${exec_prefix}/bin'
923sbindir='${exec_prefix}/sbin'
924libexecdir='${exec_prefix}/libexec'
7a197a62
AK
925datarootdir='${prefix}/share'
926datadir='${datarootdir}'
795ca3e5
AK
927sysconfdir='${prefix}/etc'
928sharedstatedir='${prefix}/com'
929localstatedir='${prefix}/var'
795ca3e5
AK
930includedir='${prefix}/include'
931oldincludedir='/usr/include'
7a197a62
AK
932docdir='${datarootdir}/doc/${PACKAGE}'
933infodir='${datarootdir}/info'
934htmldir='${docdir}'
935dvidir='${docdir}'
936pdfdir='${docdir}'
937psdir='${docdir}'
938libdir='${exec_prefix}/lib'
939localedir='${datarootdir}/locale'
940mandir='${datarootdir}/man'
795ca3e5 941
795ca3e5 942ac_prev=
7a197a62 943ac_dashdash=
795ca3e5
AK
944for ac_option
945do
795ca3e5
AK
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
7a197a62 948 eval $ac_prev=\$ac_option
795ca3e5
AK
949 ac_prev=
950 continue
951 fi
952
7a197a62
AK
953 case $ac_option in
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *) ac_optarg=yes ;;
956 esac
795ca3e5
AK
957
958 # Accept the important Cygnus configure options, so we can diagnose typos.
959
7a197a62
AK
960 case $ac_dashdash$ac_option in
961 --)
962 ac_dashdash=yes ;;
795ca3e5
AK
963
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 ac_prev=bindir ;;
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 967 bindir=$ac_optarg ;;
795ca3e5
AK
968
969 -build | --build | --buil | --bui | --bu)
ad6254c5 970 ac_prev=build_alias ;;
795ca3e5 971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 972 build_alias=$ac_optarg ;;
795ca3e5
AK
973
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976 ac_prev=cache_file ;;
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
979 cache_file=$ac_optarg ;;
980
981 --config-cache | -C)
982 cache_file=config.cache ;;
795ca3e5 983
7a197a62 984 -datadir | --datadir | --datadi | --datad)
795ca3e5 985 ac_prev=datadir ;;
7a197a62 986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 987 datadir=$ac_optarg ;;
795ca3e5 988
7a197a62
AK
989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990 | --dataroo | --dataro | --datar)
991 ac_prev=datarootdir ;;
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994 datarootdir=$ac_optarg ;;
995
795ca3e5 996 -disable-* | --disable-*)
ec6a6fbe 997 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 998 # Reject names that are not valid shell variable names.
ec6a6fbe 999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1000 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005"enable_$ac_useropt"
1006"*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=no ;;
7a197a62
AK
1011
1012 -docdir | --docdir | --docdi | --doc | --do)
1013 ac_prev=docdir ;;
1014 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1015 docdir=$ac_optarg ;;
1016
1017 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018 ac_prev=dvidir ;;
1019 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1020 dvidir=$ac_optarg ;;
795ca3e5
AK
1021
1022 -enable-* | --enable-*)
ec6a6fbe 1023 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1024 # Reject names that are not valid shell variable names.
ec6a6fbe 1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1026 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1027 ac_useropt_orig=$ac_useropt
1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1030 *"
1031"enable_$ac_useropt"
1032"*) ;;
1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1034 ac_unrecognized_sep=', ';;
1035 esac
1036 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1037
1038 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1039 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1040 | --exec | --exe | --ex)
1041 ac_prev=exec_prefix ;;
1042 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1043 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1044 | --exec=* | --exe=* | --ex=*)
ad6254c5 1045 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1046
1047 -gas | --gas | --ga | --g)
1048 # Obsolete; use --with-gas.
1049 with_gas=yes ;;
1050
ad6254c5
AK
1051 -help | --help | --hel | --he | -h)
1052 ac_init_help=long ;;
1053 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1054 ac_init_help=recursive ;;
1055 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1056 ac_init_help=short ;;
795ca3e5
AK
1057
1058 -host | --host | --hos | --ho)
ad6254c5 1059 ac_prev=host_alias ;;
795ca3e5 1060 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1061 host_alias=$ac_optarg ;;
795ca3e5 1062
7a197a62
AK
1063 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1064 ac_prev=htmldir ;;
1065 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1066 | --ht=*)
1067 htmldir=$ac_optarg ;;
1068
795ca3e5
AK
1069 -includedir | --includedir | --includedi | --included | --include \
1070 | --includ | --inclu | --incl | --inc)
1071 ac_prev=includedir ;;
1072 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1073 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1074 includedir=$ac_optarg ;;
795ca3e5
AK
1075
1076 -infodir | --infodir | --infodi | --infod | --info | --inf)
1077 ac_prev=infodir ;;
1078 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1079 infodir=$ac_optarg ;;
795ca3e5
AK
1080
1081 -libdir | --libdir | --libdi | --libd)
1082 ac_prev=libdir ;;
1083 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1084 libdir=$ac_optarg ;;
795ca3e5
AK
1085
1086 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1087 | --libexe | --libex | --libe)
1088 ac_prev=libexecdir ;;
1089 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1090 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1091 libexecdir=$ac_optarg ;;
795ca3e5 1092
7a197a62
AK
1093 -localedir | --localedir | --localedi | --localed | --locale)
1094 ac_prev=localedir ;;
1095 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1096 localedir=$ac_optarg ;;
1097
795ca3e5 1098 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1099 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1100 ac_prev=localstatedir ;;
1101 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1102 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1103 localstatedir=$ac_optarg ;;
795ca3e5
AK
1104
1105 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1106 ac_prev=mandir ;;
1107 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1108 mandir=$ac_optarg ;;
795ca3e5
AK
1109
1110 -nfp | --nfp | --nf)
1111 # Obsolete; use --without-fp.
1112 with_fp=no ;;
1113
1114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1115 | --no-cr | --no-c | -n)
795ca3e5
AK
1116 no_create=yes ;;
1117
1118 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1119 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1120 no_recursion=yes ;;
1121
1122 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1123 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1124 | --oldin | --oldi | --old | --ol | --o)
1125 ac_prev=oldincludedir ;;
1126 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1127 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1128 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1129 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1130
1131 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1132 ac_prev=prefix ;;
1133 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1134 prefix=$ac_optarg ;;
795ca3e5
AK
1135
1136 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1137 | --program-pre | --program-pr | --program-p)
1138 ac_prev=program_prefix ;;
1139 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1140 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1141 program_prefix=$ac_optarg ;;
795ca3e5
AK
1142
1143 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1144 | --program-suf | --program-su | --program-s)
1145 ac_prev=program_suffix ;;
1146 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1147 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1148 program_suffix=$ac_optarg ;;
795ca3e5
AK
1149
1150 -program-transform-name | --program-transform-name \
1151 | --program-transform-nam | --program-transform-na \
1152 | --program-transform-n | --program-transform- \
1153 | --program-transform | --program-transfor \
1154 | --program-transfo | --program-transf \
1155 | --program-trans | --program-tran \
1156 | --progr-tra | --program-tr | --program-t)
1157 ac_prev=program_transform_name ;;
1158 -program-transform-name=* | --program-transform-name=* \
1159 | --program-transform-nam=* | --program-transform-na=* \
1160 | --program-transform-n=* | --program-transform-=* \
1161 | --program-transform=* | --program-transfor=* \
1162 | --program-transfo=* | --program-transf=* \
1163 | --program-trans=* | --program-tran=* \
1164 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1165 program_transform_name=$ac_optarg ;;
795ca3e5 1166
7a197a62
AK
1167 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1168 ac_prev=pdfdir ;;
1169 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1170 pdfdir=$ac_optarg ;;
1171
1172 -psdir | --psdir | --psdi | --psd | --ps)
1173 ac_prev=psdir ;;
1174 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1175 psdir=$ac_optarg ;;
1176
795ca3e5
AK
1177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178 | -silent | --silent | --silen | --sile | --sil)
1179 silent=yes ;;
1180
1181 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182 ac_prev=sbindir ;;
1183 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184 | --sbi=* | --sb=*)
ad6254c5 1185 sbindir=$ac_optarg ;;
795ca3e5
AK
1186
1187 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189 | --sharedst | --shareds | --shared | --share | --shar \
1190 | --sha | --sh)
1191 ac_prev=sharedstatedir ;;
1192 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195 | --sha=* | --sh=*)
ad6254c5 1196 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1197
1198 -site | --site | --sit)
1199 ac_prev=site ;;
1200 -site=* | --site=* | --sit=*)
ad6254c5 1201 site=$ac_optarg ;;
795ca3e5
AK
1202
1203 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204 ac_prev=srcdir ;;
1205 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1206 srcdir=$ac_optarg ;;
795ca3e5
AK
1207
1208 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209 | --syscon | --sysco | --sysc | --sys | --sy)
1210 ac_prev=sysconfdir ;;
1211 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1213 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1214
1215 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1216 ac_prev=target_alias ;;
795ca3e5 1217 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1218 target_alias=$ac_optarg ;;
795ca3e5
AK
1219
1220 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1221 verbose=yes ;;
1222
ad6254c5
AK
1223 -version | --version | --versio | --versi | --vers | -V)
1224 ac_init_version=: ;;
795ca3e5
AK
1225
1226 -with-* | --with-*)
ec6a6fbe 1227 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1228 # Reject names that are not valid shell variable names.
ec6a6fbe 1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1230 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1231 ac_useropt_orig=$ac_useropt
1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1234 *"
1235"with_$ac_useropt"
1236"*) ;;
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1238 ac_unrecognized_sep=', ';;
1239 esac
1240 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1241
1242 -without-* | --without-*)
ec6a6fbe 1243 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1244 # Reject names that are not valid shell variable names.
ec6a6fbe 1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1246 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1250 *"
1251"with_$ac_useropt"
1252"*) ;;
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1255 esac
1256 eval with_$ac_useropt=no ;;
795ca3e5
AK
1257
1258 --x)
1259 # Obsolete; use --with-x.
1260 with_x=yes ;;
1261
1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263 | --x-incl | --x-inc | --x-in | --x-i)
1264 ac_prev=x_includes ;;
1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1267 x_includes=$ac_optarg ;;
795ca3e5
AK
1268
1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271 ac_prev=x_libraries ;;
1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1274 x_libraries=$ac_optarg ;;
795ca3e5 1275
f11781c5
AK
1276 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1277Try \`$0 --help' for more information"
795ca3e5
AK
1278 ;;
1279
ad6254c5
AK
1280 *=*)
1281 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1282 # Reject names that are not valid shell variable names.
f11781c5
AK
1283 case $ac_envvar in #(
1284 '' | [0-9]* | *[!_$as_cr_alnum]* )
1285 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1286 esac
7a197a62 1287 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1288 export $ac_envvar ;;
1289
795ca3e5 1290 *)
ad6254c5 1291 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1292 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1294 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1295 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1296 ;;
1297
1298 esac
1299done
1300
1301if test -n "$ac_prev"; then
ad6254c5 1302 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1303 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1304fi
795ca3e5 1305
ec6a6fbe
AK
1306if test -n "$ac_unrecognized_opts"; then
1307 case $enable_option_checking in
1308 no) ;;
f11781c5 1309 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1310 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1311 esac
1312fi
1313
1314# Check all directory arguments for consistency.
7a197a62
AK
1315for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316 datadir sysconfdir sharedstatedir localstatedir includedir \
1317 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1318 libdir localedir mandir
795ca3e5 1319do
7a197a62 1320 eval ac_val=\$$ac_var
ec6a6fbe
AK
1321 # Remove trailing slashes.
1322 case $ac_val in
1323 */ )
1324 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1325 eval $ac_var=\$ac_val;;
1326 esac
1327 # Be sure to have absolute directory names.
ad6254c5 1328 case $ac_val in
7a197a62
AK
1329 [\\/$]* | ?:[\\/]* ) continue;;
1330 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1331 esac
f11781c5 1332 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1333done
1334
ad6254c5
AK
1335# There might be people who depend on the old broken behavior: `$host'
1336# used to hold the argument of --host etc.
1337# FIXME: To remove some day.
1338build=$build_alias
1339host=$host_alias
1340target=$target_alias
1341
1342# FIXME: To remove some day.
1343if test "x$host_alias" != x; then
1344 if test "x$build_alias" = x; then
1345 cross_compiling=maybe
f11781c5
AK
1346 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1347 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1348 elif test "x$build_alias" != "x$host_alias"; then
1349 cross_compiling=yes
1350 fi
1351fi
8106cdd5 1352
ad6254c5
AK
1353ac_tool_prefix=
1354test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355
1356test "$silent" = yes && exec 6>/dev/null
795ca3e5 1357
795ca3e5 1358
7a197a62
AK
1359ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360ac_ls_di=`ls -di .` &&
1361ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1362 as_fn_error $? "working directory cannot be determined"
7a197a62 1363test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1364 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1365
1366
795ca3e5
AK
1367# Find the source files, if location was not specified.
1368if test -z "$srcdir"; then
1369 ac_srcdir_defaulted=yes
7a197a62 1370 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1371 ac_confdir=`$as_dirname -- "$as_myself" ||
1372$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373 X"$as_myself" : 'X\(//\)[^/]' \| \
1374 X"$as_myself" : 'X\(//\)$' \| \
1375 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1376$as_echo X"$as_myself" |
7a197a62
AK
1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\/\)[^/].*/{
1382 s//\1/
1383 q
1384 }
1385 /^X\(\/\/\)$/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\).*/{
1390 s//\1/
1391 q
1392 }
1393 s/.*/./; q'`
795ca3e5 1394 srcdir=$ac_confdir
7a197a62 1395 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1396 srcdir=..
1397 fi
1398else
1399 ac_srcdir_defaulted=no
1400fi
7a197a62
AK
1401if test ! -r "$srcdir/$ac_unique_file"; then
1402 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1403 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1404fi
7a197a62
AK
1405ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406ac_abs_confdir=`(
f11781c5 1407 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1408 pwd)`
1409# When building in place, set srcdir=.
1410if test "$ac_abs_confdir" = "$ac_pwd"; then
1411 srcdir=.
1412fi
1413# Remove unnecessary trailing slashes from srcdir.
1414# Double slashes in file names in object file debugging info
1415# mess up M-x gdb in Emacs.
1416case $srcdir in
1417*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418esac
1419for ac_var in $ac_precious_vars; do
1420 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_${ac_var}_value=\$${ac_var}
1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424done
ad6254c5
AK
1425
1426#
1427# Report the --help message.
1428#
1429if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1432 cat <<_ACEOF
1433\`configure' configures this package to adapt to many kinds of systems.
1434
1435Usage: $0 [OPTION]... [VAR=VALUE]...
1436
1437To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438VAR=VALUE. See below for descriptions of some of the useful variables.
1439
1440Defaults for the options are specified in brackets.
1441
1442Configuration:
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
f11781c5 1447 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452
ad6254c5
AK
1453Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1455 [$ac_default_prefix]
ad6254c5 1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1457 [PREFIX]
ad6254c5
AK
1458
1459By default, \`make install' will install all the files in
1460\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462for instance \`--prefix=\$HOME'.
1463
1464For better control, use the options below.
1465
1466Fine tuning of the installation directories:
ec6a6fbe
AK
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1486_ACEOF
1487
1488 cat <<\_ACEOF
1489
1490System types:
1491 --build=BUILD configure for building on BUILD [guessed]
1492 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1493 --target=TARGET configure for building compilers for TARGET [HOST]
1494_ACEOF
1495fi
1496
1497if test -n "$ac_init_help"; then
1498
1499 cat <<\_ACEOF
1500
1501Optional Features:
ec6a6fbe 1502 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1505 --enable-static_link use this to link the tools to their libraries
1506 statically (default is dynamic linking
1507 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1508 device-mapper is missing from the kernel
71082be4
ZK
1509 --disable-readline disable readline support
1510 --enable-realtime enable realtime clock support
37ddf259
AK
1511 --enable-ocf enable Open Cluster Framework (OCF) compliant
1512 resource agents
71082be4
ZK
1513 --enable-cmirrord enable the cluster mirror log daemon
1514 --enable-debug enable debugging
1515 --enable-profiling gather gcov profiling data
54b362f9 1516 --enable-testing enable testing targets in the makefile
d1e8046f 1517 --enable-valgrind-pool enable valgrind awareness of pools
71082be4 1518 --disable-devmapper disable LVM2 device-mapper interaction
d38de32b 1519 --enable-lvmetad enable the LVM Metadata Daemon
71082be4
ZK
1520 --enable-udev_sync enable synchronisation with udev processing
1521 --enable-udev_rules install rule files needed for udev synchronisation
1522 --enable-compat enable support for old device-mapper versions
1523 --enable-units-compat enable output compatibility with old versions that
1524 that do not use KiB-style unit suffixes
1525 --disable-driver disable calls to device-mapper in the kernel
1526 --disable-o_direct disable O_DIRECT
1527 --enable-applib build application library
1528 --enable-cmdlib build shared command library
1529 --enable-pkgconfig install pkgconfig support
1530 --enable-write_install install user writable files
1531 --disable-fsadm disable fsadm
1532 --enable-dmeventd enable the device-mapper event daemon
1533 --disable-selinux disable selinux support
1534 --enable-nls enable Native Language Support
ad6254c5
AK
1535
1536Optional Packages:
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1539 --with-user=USER set the owner of installed files [[USER=]]
1540 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1541 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1542 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1543 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
d0df875d
ZK
1544 --with-device-nodes-on=ON
1545 create nodes on resume or create [[ON=resume]]
ad6254c5 1546 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1547 [[TYPE=internal]]
ad6254c5 1548 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1549 [[TYPE=internal]]
71082be4 1550 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1551 [[TYPE=internal]]
71082be4 1552 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1553 [[TYPE=internal]]
71082be4 1554 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1555 [[TYPE=internal]]
cac52ca4
JEB
1556 --with-raid=TYPE mirror support: internal/shared/none
1557 [[TYPE=internal]]
71082be4 1558 --with-replicators=TYPE replicator support: internal/shared/none
f11781c5 1559 [[TYPE=none]]
3ba4a195
ZK
1560 --with-thin=TYPE thin provisioning support: internal/shared/none
1561 [[TYPE=none]]
606d0858
AK
1562 --with-ocfdir=DIR install OCF files in DIR
1563 [[PREFIX/lib/ocf/resource.d/lvm2]]
71082be4 1564 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1565 The following cluster manager combinations are valid:
a946372e
AK
1566 * cman (RHEL5 or equivalent)
1567 * cman,corosync,openais (or selection of them)
1091650a 1568 * singlenode (localhost only)
a946372e
AK
1569 * all (autodetect)
1570 * none (disable build)
71082be4 1571 [TYPE=none]
8c4e8a18 1572 --with-clvmd-pidfile=PATH
f11781c5 1573 clvmd pidfile [[/var/run/clvmd.pid]]
71082be4 1574 --with-cmirrord-pidfile=PATH
f11781c5
AK
1575 cmirrord pidfile [[/var/run/cmirrord.pid]]
1576 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1577 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1578 --with-confdir=DIR configuration files in DIR [[/etc]]
1579 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1580 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1581 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1582 --with-udev-prefix=UPREFIX
f11781c5
AK
1583 install udev rule files in UPREFIX [[EPREFIX]]
1584 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
e587cb6a
PR
1585 --with-systemdsystemunitdir=DIR
1586 systemd service files in DIR
71082be4 1587 --with-dmeventd-pidfile=PATH
f11781c5 1588 dmeventd pidfile [[/var/run/dmeventd.pid]]
71082be4 1589 --with-dmeventd-path=PATH
f11781c5 1590 dmeventd path [[EPREFIX/sbin/dmeventd]]
8bae0a1e 1591 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4 1592 --with-default-system-dir=DIR
f11781c5 1593 default LVM system directory [[/etc/lvm]]
71082be4 1594 --with-default-archive-subdir=SUBDIR
f11781c5 1595 default metadata archive subdir [[archive]]
71082be4 1596 --with-default-backup-subdir=SUBDIR
f11781c5 1597 default metadata backup subdir [[backup]]
71082be4 1598 --with-default-cache-subdir=SUBDIR
f11781c5 1599 default metadata cache subdir [[cache]]
71082be4 1600 --with-default-locking-dir=DIR
f11781c5 1601 default locking directory [[/var/lock/lvm]]
fea55602 1602 --with-default-data-alignment=NUM
f11781c5
AK
1603 set the default data alignment in MiB [[1]]
1604 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1605
1606Some influential environment variables:
1607 CC C compiler command
1608 CFLAGS C compiler flags
1609 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1610 nonstandard directory <lib dir>
25fbec5b 1611 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1612 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1613 you have headers in a nonstandard directory <include dir>
ad6254c5 1614 CPP C preprocessor
e2997b73 1615 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1616 PKG_CONFIG_PATH
1617 directories to add to pkg-config's search path
1618 PKG_CONFIG_LIBDIR
1619 path overriding pkg-config's built-in search path
a946372e
AK
1620 PKGCONFIGINIT_CFLAGS
1621 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1622 PKGCONFIGINIT_LIBS
1623 linker flags for PKGCONFIGINIT, overriding pkg-config
a946372e
AK
1624 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1625 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1626 COROSYNC_CFLAGS
1627 C compiler flags for COROSYNC, overriding pkg-config
1628 COROSYNC_LIBS
1629 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1630 QUORUM_CFLAGS
1631 C compiler flags for QUORUM, overriding pkg-config
1632 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1633 SALCK_CFLAGS
1634 C compiler flags for SALCK, overriding pkg-config
1635 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1636 CONFDB_CFLAGS
1637 C compiler flags for CONFDB, overriding pkg-config
1638 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
b6d7a484
AK
1639 CMAP_CFLAGS C compiler flags for CMAP, overriding pkg-config
1640 CMAP_LIBS linker flags for CMAP, overriding pkg-config
e2997b73
AK
1641 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1642 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1643 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1644 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1645 SACKPT_CFLAGS
1646 C compiler flags for SACKPT, overriding pkg-config
1647 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
426fc742
PR
1648 CUNIT_CFLAGS
1649 C compiler flags for CUNIT, overriding pkg-config
1650 CUNIT_LIBS linker flags for CUNIT, overriding pkg-config
d93275eb
PR
1651 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1652 UDEV_LIBS linker flags for UDEV, overriding pkg-config
ad6254c5
AK
1653
1654Use these variables to override the choices made by `configure' or to help
1655it to find libraries and programs with nonstandard names/locations.
1656
f11781c5 1657Report bugs to the package provider.
ad6254c5 1658_ACEOF
7a197a62 1659ac_status=$?
ad6254c5
AK
1660fi
1661
1662if test "$ac_init_help" = "recursive"; then
1663 # If there are subdirs, report their specific --help.
ad6254c5 1664 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1665 test -d "$ac_dir" ||
1666 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1667 continue
ad6254c5
AK
1668 ac_builddir=.
1669
7a197a62
AK
1670case "$ac_dir" in
1671.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1672*)
ec6a6fbe 1673 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1674 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1675 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1676 case $ac_top_builddir_sub in
1677 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1678 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1679 esac ;;
1680esac
1681ac_abs_top_builddir=$ac_pwd
1682ac_abs_builddir=$ac_pwd$ac_dir_suffix
1683# for backward compatibility:
1684ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1685
1686case $srcdir in
7a197a62 1687 .) # We are building in place.
ad6254c5 1688 ac_srcdir=.
7a197a62
AK
1689 ac_top_srcdir=$ac_top_builddir_sub
1690 ac_abs_top_srcdir=$ac_pwd ;;
1691 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1692 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1693 ac_top_srcdir=$srcdir
1694 ac_abs_top_srcdir=$srcdir ;;
1695 *) # Relative name.
1696 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1697 ac_top_srcdir=$ac_top_build_prefix$srcdir
1698 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1699esac
7a197a62
AK
1700ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1701
1702 cd "$ac_dir" || { ac_status=$?; continue; }
1703 # Check for guested configure.
1704 if test -f "$ac_srcdir/configure.gnu"; then
1705 echo &&
1706 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1707 elif test -f "$ac_srcdir/configure"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1710 else
ec6a6fbe 1711 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1712 fi || ac_status=$?
1713 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1714 done
1715fi
1716
7a197a62 1717test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1718if $ac_init_version; then
1719 cat <<\_ACEOF
7a197a62 1720configure
f11781c5 1721generated by GNU Autoconf 2.66
ad6254c5 1722
f11781c5 1723Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1724This configure script is free software; the Free Software Foundation
1725gives unlimited permission to copy, distribute and modify it.
1726_ACEOF
7a197a62 1727 exit
ad6254c5 1728fi
ad6254c5 1729
f11781c5
AK
1730## ------------------------ ##
1731## Autoconf initialization. ##
1732## ------------------------ ##
ad6254c5 1733
f11781c5
AK
1734# ac_fn_c_try_compile LINENO
1735# --------------------------
1736# Try to compile conftest.$ac_ext, and return whether this succeeded.
1737ac_fn_c_try_compile ()
ad6254c5 1738{
f11781c5
AK
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext
1741 if { { ac_try="$ac_compile"
1742case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745esac
1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747$as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_compile") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest.$ac_objext; then :
1760 ac_retval=0
1761else
1762 $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1764
f11781c5
AK
1765 ac_retval=1
1766fi
1767 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 as_fn_set_status $ac_retval
ad6254c5 1769
f11781c5 1770} # ac_fn_c_try_compile
ad6254c5 1771
f11781c5
AK
1772# ac_fn_c_try_cpp LINENO
1773# ----------------------
1774# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1775ac_fn_c_try_cpp ()
1776{
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_cpp conftest.$ac_ext"
1779case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1791 fi
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } >/dev/null && {
1794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 }; then :
1797 ac_retval=0
1798else
1799 $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1801
f11781c5
AK
1802 ac_retval=1
1803fi
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805 as_fn_set_status $ac_retval
ad6254c5 1806
f11781c5 1807} # ac_fn_c_try_cpp
d911ec67 1808
f11781c5
AK
1809# ac_fn_c_try_link LINENO
1810# -----------------------
1811# Try to link conftest.$ac_ext, and return whether this succeeded.
1812ac_fn_c_try_link ()
d911ec67 1813{
f11781c5
AK
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext conftest$ac_exeext
1816 if { { ac_try="$ac_link"
d911ec67
AK
1817case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820esac
f11781c5
AK
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>conftest.err
d911ec67 1824 ac_status=$?
f11781c5
AK
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest$ac_exeext && {
1835 test "$cross_compiling" = yes ||
1836 $as_test_x conftest$ac_exeext
1837 }; then :
1838 ac_retval=0
d911ec67 1839else
f11781c5 1840 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
f11781c5 1843 ac_retval=1
d911ec67 1844fi
f11781c5
AK
1845 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1846 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1847 # interfere with the next link command; also delete a directory that is
1848 # left behind by Apple's compiler. We do this before executing the actions.
1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 as_fn_set_status $ac_retval
d911ec67 1852
f11781c5 1853} # ac_fn_c_try_link
d911ec67 1854
f11781c5
AK
1855# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1856# -------------------------------------------------------
1857# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1858# the include files in INCLUDES and setting the cache variable VAR
1859# accordingly.
1860ac_fn_c_check_header_mongrel ()
1861{
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if eval "test \"\${$3+set}\"" = set; then :
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
1866if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1867 $as_echo_n "(cached) " >&6
1868fi
f11781c5
AK
1869eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1871$as_echo "$ac_res" >&6; }
1872else
1873 # Is the header compilable?
f11781c5
AK
1874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1875$as_echo_n "checking $2 usability... " >&6; }
1876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1877/* end confdefs.h. */
f11781c5
AK
1878$4
1879#include <$2>
d911ec67 1880_ACEOF
f11781c5 1881if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1882 ac_header_compiler=yes
1883else
f11781c5 1884 ac_header_compiler=no
d911ec67 1885fi
d911ec67 1886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1888$as_echo "$ac_header_compiler" >&6; }
1889
1890# Is the header present?
f11781c5
AK
1891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1892$as_echo_n "checking $2 presence... " >&6; }
1893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1894/* end confdefs.h. */
f11781c5 1895#include <$2>
d911ec67 1896_ACEOF
f11781c5 1897if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1898 ac_header_preproc=yes
1899else
d911ec67
AK
1900 ac_header_preproc=no
1901fi
d911ec67 1902rm -f conftest.err conftest.$ac_ext
f11781c5 1903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1904$as_echo "$ac_header_preproc" >&6; }
1905
1906# So? What about this header?
f11781c5 1907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1908 yes:no: )
f11781c5
AK
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1910$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1913 ;;
1914 no:yes:* )
f11781c5
AK
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1916$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1918$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1920$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1922$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1924$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1925 ;;
1926esac
f11781c5
AK
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928$as_echo_n "checking for $2... " >&6; }
1929if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1930 $as_echo_n "(cached) " >&6
1931else
f11781c5 1932 eval "$3=\$ac_header_compiler"
d911ec67 1933fi
f11781c5
AK
1934eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1936$as_echo "$ac_res" >&6; }
ad6254c5 1937fi
f11781c5 1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1939
f11781c5 1940} # ac_fn_c_check_header_mongrel
ad6254c5 1941
f11781c5
AK
1942# ac_fn_c_try_run LINENO
1943# ----------------------
1944# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1945# that executables *can* be run.
1946ac_fn_c_try_run ()
ad6254c5 1947{
f11781c5
AK
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { { ac_try="$ac_link"
7a197a62
AK
1950case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953esac
f11781c5
AK
1954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955$as_echo "$ac_try_echo"; } >&5
7a197a62 1956 (eval "$ac_link") 2>&5
ad6254c5 1957 ac_status=$?
f11781c5
AK
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1960 { { case "(($ac_try" in
7a197a62
AK
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963esac
f11781c5
AK
1964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965$as_echo "$ac_try_echo"; } >&5
7a197a62 1966 (eval "$ac_try") 2>&5
ad6254c5 1967 ac_status=$?
f11781c5
AK
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; }; }; then :
1970 ac_retval=0
ad6254c5 1971else
ec6a6fbe 1972 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 1973 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
1974sed 's/^/| /' conftest.$ac_ext >&5
1975
f11781c5 1976 ac_retval=$ac_status
ad6254c5 1977fi
f11781c5
AK
1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980 as_fn_set_status $ac_retval
ad6254c5 1981
f11781c5 1982} # ac_fn_c_try_run
ad6254c5 1983
f11781c5
AK
1984# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1985# -------------------------------------------------------
1986# Tests whether HEADER exists and can be compiled using the include files in
1987# INCLUDES, setting the cache variable VAR accordingly.
1988ac_fn_c_check_header_compile ()
1989{
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992$as_echo_n "checking for $2... " >&6; }
1993if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 1994 $as_echo_n "(cached) " >&6
ad6254c5 1995else
f11781c5 1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 1997/* end confdefs.h. */
f11781c5
AK
1998$4
1999#include <$2>
ad6254c5 2000_ACEOF
f11781c5
AK
2001if ac_fn_c_try_compile "$LINENO"; then :
2002 eval "$3=yes"
ad6254c5 2003else
f11781c5 2004 eval "$3=no"
ad6254c5 2005fi
7a197a62 2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2007fi
f11781c5
AK
2008eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2010$as_echo "$ac_res" >&6; }
f11781c5 2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2012
f11781c5 2013} # ac_fn_c_check_header_compile
ad6254c5 2014
f11781c5
AK
2015# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2016# ----------------------------------------------------
2017# Tries to find if the field MEMBER exists in type AGGR, after including
2018# INCLUDES, setting cache variable VAR accordingly.
2019ac_fn_c_check_member ()
2020{
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2023$as_echo_n "checking for $2.$3... " >&6; }
2024if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2025 $as_echo_n "(cached) " >&6
795ca3e5 2026else
f11781c5
AK
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h. */
2029$5
2030int
2031main ()
2032{
2033static $2 ac_aggr;
2034if (ac_aggr.$3)
2035return 0;
2036 ;
2037 return 0;
2038}
ad6254c5 2039_ACEOF
f11781c5
AK
2040if ac_fn_c_try_compile "$LINENO"; then :
2041 eval "$4=yes"
2042else
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2044/* end confdefs.h. */
f11781c5
AK
2045$5
2046int
2047main ()
2048{
2049static $2 ac_aggr;
2050if (sizeof ac_aggr.$3)
2051return 0;
2052 ;
2053 return 0;
2054}
2055_ACEOF
2056if ac_fn_c_try_compile "$LINENO"; then :
2057 eval "$4=yes"
2058else
2059 eval "$4=no"
2060fi
2061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062fi
2063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064fi
2065eval ac_res=\$$4
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067$as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069
2070} # ac_fn_c_check_member
795ca3e5 2071
f11781c5
AK
2072# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2073# -------------------------------------------
2074# Tests whether TYPE exists after having included INCLUDES, setting cache
2075# variable VAR accordingly.
2076ac_fn_c_check_type ()
2077{
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080$as_echo_n "checking for $2... " >&6; }
2081if eval "test \"\${$3+set}\"" = set; then :
2082 $as_echo_n "(cached) " >&6
2083else
2084 eval "$3=no"
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086/* end confdefs.h. */
2087$4
ad6254c5
AK
2088int
2089main ()
2090{
f11781c5
AK
2091if (sizeof ($2))
2092 return 0;
ad6254c5
AK
2093 ;
2094 return 0;
2095}
2096_ACEOF
f11781c5
AK
2097if ac_fn_c_try_compile "$LINENO"; then :
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099/* end confdefs.h. */
2100$4
2101int
2102main ()
2103{
2104if (sizeof (($2)))
2105 return 0;
2106 ;
2107 return 0;
2108}
2109_ACEOF
2110if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2111
f11781c5
AK
2112else
2113 eval "$3=yes"
795ca3e5 2114fi
f11781c5
AK
2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2118fi
f11781c5
AK
2119eval ac_res=\$$3
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2121$as_echo "$ac_res" >&6; }
f11781c5 2122 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2123
f11781c5 2124} # ac_fn_c_check_type
ad6254c5 2125
f11781c5
AK
2126# ac_fn_c_find_intX_t LINENO BITS VAR
2127# -----------------------------------
2128# Finds a signed integer type with width BITS, setting cache variable VAR
2129# accordingly.
2130ac_fn_c_find_intX_t ()
2131{
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2134$as_echo_n "checking for int$2_t... " >&6; }
2135if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2136 $as_echo_n "(cached) " >&6
ad6254c5 2137else
f11781c5
AK
2138 eval "$3=no"
2139 # Order is important - never check a type that is potentially smaller
2140 # than half of the expected target width.
2141 for ac_type in int$2_t 'int' 'long int' \
2142 'long long int' 'short int' 'signed char'; do
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2144/* end confdefs.h. */
2145$ac_includes_default
f11781c5 2146 enum { N = $2 / 2 - 1 };
7a197a62
AK
2147int
2148main ()
2149{
f11781c5
AK
2150static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2151test_array [0] = 0
7a197a62 2152
f11781c5
AK
2153 ;
2154 return 0;
2155}
2156_ACEOF
2157if ac_fn_c_try_compile "$LINENO"; then :
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h. */
2160$ac_includes_default
2161 enum { N = $2 / 2 - 1 };
2162int
2163main ()
2164{
2165static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2166 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2167test_array [0] = 0
7a197a62
AK
2168
2169 ;
2170 return 0;
2171}
ad6254c5 2172_ACEOF
f11781c5 2173if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2174
f11781c5
AK
2175else
2176 case $ac_type in #(
2177 int$2_t) :
2178 eval "$3=yes" ;; #(
2179 *) :
2180 eval "$3=\$ac_type" ;;
2181esac
ad6254c5 2182fi
f11781c5 2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2184fi
f11781c5
AK
2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2187
2188else
f11781c5 2189 break
ad6254c5 2190fi
f11781c5 2191 done
ad6254c5 2192fi
f11781c5
AK
2193eval ac_res=\$$3
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195$as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2197
2198} # ac_fn_c_find_intX_t
2199
2200# ac_fn_c_find_uintX_t LINENO BITS VAR
2201# ------------------------------------
2202# Finds an unsigned integer type with width BITS, setting cache variable VAR
2203# accordingly.
2204ac_fn_c_find_uintX_t ()
2205{
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2208$as_echo_n "checking for uint$2_t... " >&6; }
2209if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2210 $as_echo_n "(cached) " >&6
ad6254c5 2211else
f11781c5
AK
2212 eval "$3=no"
2213 # Order is important - never check a type that is potentially smaller
2214 # than half of the expected target width.
2215 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2216 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2218/* end confdefs.h. */
7a197a62 2219$ac_includes_default
ad6254c5
AK
2220int
2221main ()
2222{
f11781c5
AK
2223static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2224test_array [0] = 0
ad6254c5 2225
f11781c5
AK
2226 ;
2227 return 0;
ad6254c5
AK
2228}
2229_ACEOF
f11781c5
AK
2230if ac_fn_c_try_compile "$LINENO"; then :
2231 case $ac_type in #(
2232 uint$2_t) :
2233 eval "$3=yes" ;; #(
2234 *) :
2235 eval "$3=\$ac_type" ;;
7a197a62 2236esac
ad6254c5 2237fi
f11781c5
AK
2238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2240
f11781c5
AK
2241else
2242 break
ad6254c5 2243fi
f11781c5 2244 done
ad6254c5 2245fi
f11781c5
AK
2246eval ac_res=\$$3
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248$as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2250
f11781c5 2251} # ac_fn_c_find_uintX_t
ad6254c5 2252
f11781c5
AK
2253# ac_fn_c_check_func LINENO FUNC VAR
2254# ----------------------------------
2255# Tests whether FUNC exists, setting the cache variable VAR accordingly
2256ac_fn_c_check_func ()
2257{
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2260$as_echo_n "checking for $2... " >&6; }
2261if eval "test \"\${$3+set}\"" = set; then :
2262 $as_echo_n "(cached) " >&6
ad6254c5 2263else
f11781c5
AK
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265/* end confdefs.h. */
2266/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2268#define $2 innocuous_$2
ad6254c5 2269
f11781c5
AK
2270/* System header to define __stub macros and hopefully few prototypes,
2271 which can conflict with char $2 (); below.
2272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2273 <limits.h> exists even on freestanding compilers. */
ad6254c5 2274
f11781c5
AK
2275#ifdef __STDC__
2276# include <limits.h>
2277#else
2278# include <assert.h>
2279#endif
ad6254c5 2280
f11781c5
AK
2281#undef $2
2282
2283/* Override any GCC internal prototype to avoid an error.
2284 Use char because int might match the return type of a GCC
2285 builtin and then its argument prototype would still apply. */
2286#ifdef __cplusplus
2287extern "C"
2288#endif
2289char $2 ();
2290/* The GNU C library defines this for functions which it implements
2291 to always fail with ENOSYS. Some functions are actually named
2292 something starting with __ and the normal name is an alias. */
2293#if defined __stub_$2 || defined __stub___$2
2294choke me
2295#endif
ad6254c5 2296
ad6254c5
AK
2297int
2298main ()
2299{
f11781c5 2300return $2 ();
ad6254c5
AK
2301 ;
2302 return 0;
2303}
2304_ACEOF
f11781c5
AK
2305if ac_fn_c_try_link "$LINENO"; then :
2306 eval "$3=yes"
ad6254c5 2307else
f11781c5 2308 eval "$3=no"
ad6254c5 2309fi
f11781c5
AK
2310rm -f core conftest.err conftest.$ac_objext \
2311 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2312fi
f11781c5
AK
2313eval ac_res=\$$3
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315$as_echo "$ac_res" >&6; }
2316 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2317
f11781c5
AK
2318} # ac_fn_c_check_func
2319cat >config.log <<_ACEOF
2320This file contains any messages produced by compilers while
2321running configure, to aid debugging if configure makes a mistake.
7a197a62 2322
f11781c5
AK
2323It was created by $as_me, which was
2324generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2325
f11781c5 2326 $ $0 $@
ad6254c5 2327
ad6254c5 2328_ACEOF
f11781c5
AK
2329exec 5>>config.log
2330{
2331cat <<_ASUNAME
2332## --------- ##
2333## Platform. ##
2334## --------- ##
ad6254c5 2335
f11781c5
AK
2336hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2337uname -m = `(uname -m) 2>/dev/null || echo unknown`
2338uname -r = `(uname -r) 2>/dev/null || echo unknown`
2339uname -s = `(uname -s) 2>/dev/null || echo unknown`
2340uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2341
f11781c5
AK
2342/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2343/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2344
f11781c5
AK
2345/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2346/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2347/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2348/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2349/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2350/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2351/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2352
2353_ASUNAME
2354
2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356for as_dir in $PATH
2357do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 $as_echo "PATH: $as_dir"
2361 done
2362IFS=$as_save_IFS
2363
2364} >&5
2365
2366cat >&5 <<_ACEOF
2367
2368
2369## ----------- ##
2370## Core tests. ##
2371## ----------- ##
ad6254c5 2372
ad6254c5 2373_ACEOF
ad6254c5 2374
7a197a62 2375
f11781c5
AK
2376# Keep a trace of the command line.
2377# Strip out --no-create and --no-recursion so they do not pile up.
2378# Strip out --silent because we don't want to record it for future runs.
2379# Also quote any args containing shell meta-characters.
2380# Make two passes to allow for proper duplicate-argument suppression.
2381ac_configure_args=
2382ac_configure_args0=
2383ac_configure_args1=
2384ac_must_keep_next=false
2385for ac_pass in 1 2
2386do
2387 for ac_arg
2388 do
2389 case $ac_arg in
2390 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2391 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2392 | -silent | --silent | --silen | --sile | --sil)
2393 continue ;;
2394 *\'*)
2395 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2396 esac
2397 case $ac_pass in
2398 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2399 2)
2400 as_fn_append ac_configure_args1 " '$ac_arg'"
2401 if test $ac_must_keep_next = true; then
2402 ac_must_keep_next=false # Got value, back to normal.
2403 else
2404 case $ac_arg in
2405 *=* | --config-cache | -C | -disable-* | --disable-* \
2406 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2407 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2408 | -with-* | --with-* | -without-* | --without-* | --x)
2409 case "$ac_configure_args0 " in
2410 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2411 esac
2412 ;;
2413 -* ) ac_must_keep_next=true ;;
2414 esac
2415 fi
2416 as_fn_append ac_configure_args " '$ac_arg'"
2417 ;;
2418 esac
2419 done
2420done
2421{ ac_configure_args0=; unset ac_configure_args0;}
2422{ ac_configure_args1=; unset ac_configure_args1;}
2423
2424# When interrupted or exit'd, cleanup temporary files, and complete
2425# config.log. We remove comments because anyway the quotes in there
2426# would cause problems or look ugly.
2427# WARNING: Use '\'' to represent an apostrophe within the trap.
2428# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2429trap 'exit_status=$?
2430 # Save into config.log some information that might help in debugging.
2431 {
2432 echo
2433
2434 $as_echo "## ---------------- ##
2435## Cache variables. ##
2436## ---------------- ##"
2437 echo
2438 # The following way of writing the cache mishandles newlines in values,
2439(
2440 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2441 eval ac_val=\$$ac_var
2442 case $ac_val in #(
2443 *${as_nl}*)
2444 case $ac_var in #(
2445 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2446$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2447 esac
2448 case $ac_var in #(
2449 _ | IFS | as_nl) ;; #(
2450 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2451 *) { eval $ac_var=; unset $ac_var;} ;;
2452 esac ;;
2453 esac
2454 done
2455 (set) 2>&1 |
2456 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2457 *${as_nl}ac_space=\ *)
2458 sed -n \
2459 "s/'\''/'\''\\\\'\'''\''/g;
2460 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2461 ;; #(
2462 *)
2463 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2464 ;;
2465 esac |
2466 sort
2467)
2468 echo
2469
2470 $as_echo "## ----------------- ##
2471## Output variables. ##
2472## ----------------- ##"
2473 echo
2474 for ac_var in $ac_subst_vars
2475 do
2476 eval ac_val=\$$ac_var
2477 case $ac_val in
2478 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2479 esac
2480 $as_echo "$ac_var='\''$ac_val'\''"
2481 done | sort
2482 echo
2483
2484 if test -n "$ac_subst_files"; then
2485 $as_echo "## ------------------- ##
2486## File substitutions. ##
2487## ------------------- ##"
2488 echo
2489 for ac_var in $ac_subst_files
2490 do
2491 eval ac_val=\$$ac_var
2492 case $ac_val in
2493 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2494 esac
2495 $as_echo "$ac_var='\''$ac_val'\''"
2496 done | sort
2497 echo
2498 fi
2499
2500 if test -s confdefs.h; then
2501 $as_echo "## ----------- ##
2502## confdefs.h. ##
2503## ----------- ##"
2504 echo
2505 cat confdefs.h
2506 echo
2507 fi
2508 test "$ac_signal" != 0 &&
2509 $as_echo "$as_me: caught signal $ac_signal"
2510 $as_echo "$as_me: exit $exit_status"
2511 } >&5
2512 rm -f core *.core core.conftest.* &&
2513 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2514 exit $exit_status
2515' 0
2516for ac_signal in 1 2 13 15; do
2517 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2518done
2519ac_signal=0
2520
2521# confdefs.h avoids OS command line length limits that DEFS can exceed.
2522rm -f -r conftest* confdefs.h
7a197a62 2523
f11781c5 2524$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2525
f11781c5 2526# Predefined preprocessor variables.
ad6254c5
AK
2527
2528cat >>confdefs.h <<_ACEOF
f11781c5 2529#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2530_ACEOF
2531
f11781c5
AK
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2534_ACEOF
ad6254c5 2535
f11781c5
AK
2536cat >>confdefs.h <<_ACEOF
2537#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2538_ACEOF
f11781c5
AK
2539
2540cat >>confdefs.h <<_ACEOF
2541#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2542_ACEOF
ad6254c5 2543
f11781c5
AK
2544cat >>confdefs.h <<_ACEOF
2545#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2546_ACEOF
7a197a62 2547
f11781c5
AK
2548cat >>confdefs.h <<_ACEOF
2549#define PACKAGE_URL "$PACKAGE_URL"
2550_ACEOF
ad6254c5 2551
7a197a62 2552
f11781c5
AK
2553# Let the site file select an alternate cache file if it wants to.
2554# Prefer an explicitly selected file to automatically selected ones.
2555ac_site_file1=NONE
2556ac_site_file2=NONE
2557if test -n "$CONFIG_SITE"; then
2558 # We do not want a PATH search for config.site.
2559 case $CONFIG_SITE in #((
2560 -*) ac_site_file1=./$CONFIG_SITE;;
2561 */*) ac_site_file1=$CONFIG_SITE;;
2562 *) ac_site_file1=./$CONFIG_SITE;;
2563 esac
2564elif test "x$prefix" != xNONE; then
2565 ac_site_file1=$prefix/share/config.site
2566 ac_site_file2=$prefix/etc/config.site
ad6254c5 2567else
f11781c5
AK
2568 ac_site_file1=$ac_default_prefix/share/config.site
2569 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2570fi
f11781c5
AK
2571for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2572do
2573 test "x$ac_site_file" = xNONE && continue
2574 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2576$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2577 sed 's/^/| /' "$ac_site_file" >&5
2578 . "$ac_site_file" \
2579 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2581as_fn_error $? "failed to load site script $ac_site_file
2582See \`config.log' for more details" "$LINENO" 5; }
2583 fi
2584done
ad6254c5 2585
f11781c5
AK
2586if test -r "$cache_file"; then
2587 # Some versions of bash will fail to source /dev/null (special files
2588 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2589 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2591$as_echo "$as_me: loading cache $cache_file" >&6;}
2592 case $cache_file in
2593 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2594 *) . "./$cache_file";;
2595 esac
2596 fi
2597else
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2599$as_echo "$as_me: creating cache $cache_file" >&6;}
2600 >$cache_file
ad6254c5 2601fi
ad6254c5 2602
f11781c5
AK
2603as_fn_append ac_header_list " stdlib.h"
2604as_fn_append ac_header_list " unistd.h"
2605as_fn_append ac_header_list " sys/param.h"
2606# Check that the precious variables saved in the cache have kept the same
2607# value.
2608ac_cache_corrupted=false
2609for ac_var in $ac_precious_vars; do
2610 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2611 eval ac_new_set=\$ac_env_${ac_var}_set
2612 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2613 eval ac_new_val=\$ac_env_${ac_var}_value
2614 case $ac_old_set,$ac_new_set in
2615 set,)
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2617$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2618 ac_cache_corrupted=: ;;
2619 ,set)
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2621$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2622 ac_cache_corrupted=: ;;
2623 ,);;
2624 *)
2625 if test "x$ac_old_val" != "x$ac_new_val"; then
2626 # differences in whitespace do not lead to failure.
2627 ac_old_val_w=`echo x $ac_old_val`
2628 ac_new_val_w=`echo x $ac_new_val`
2629 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2631$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2632 ac_cache_corrupted=:
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2635$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2636 eval $ac_var=\$ac_old_val
2637 fi
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2639$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2641$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2642 fi;;
2643 esac
2644 # Pass precious variables to config.status.
2645 if test "$ac_new_set" = set; then
2646 case $ac_new_val in
2647 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2648 *) ac_arg=$ac_var=$ac_new_val ;;
2649 esac
2650 case " $ac_configure_args " in
2651 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2652 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2653 esac
2654 fi
2655done
2656if $ac_cache_corrupted; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2660$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2661 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2662fi
f11781c5
AK
2663## -------------------- ##
2664## Main body of script. ##
2665## -------------------- ##
ad6254c5 2666
f11781c5
AK
2667ac_ext=c
2668ac_cpp='$CPP $CPPFLAGS'
2669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2671ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2672
ad6254c5 2673
ad6254c5 2674
f11781c5 2675ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2676
2677
f11781c5
AK
2678################################################################################
2679ac_aux_dir=
2680for ac_dir in autoconf "$srcdir"/autoconf; do
2681 if test -f "$ac_dir/install-sh"; then
2682 ac_aux_dir=$ac_dir
2683 ac_install_sh="$ac_aux_dir/install-sh -c"
2684 break
2685 elif test -f "$ac_dir/install.sh"; then
2686 ac_aux_dir=$ac_dir
2687 ac_install_sh="$ac_aux_dir/install.sh -c"
2688 break
2689 elif test -f "$ac_dir/shtool"; then
2690 ac_aux_dir=$ac_dir
2691 ac_install_sh="$ac_aux_dir/shtool install -c"
2692 break
2693 fi
2694done
2695if test -z "$ac_aux_dir"; then
2696 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2697fi
ad6254c5 2698
f11781c5
AK
2699# These three variables are undocumented and unsupported,
2700# and are intended to be withdrawn in a future Autoconf release.
2701# They can cause serious problems if a builder's source tree is in a directory
2702# whose full name contains unusual characters.
2703ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2704ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2705ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2706
ad6254c5 2707
8a2fc586 2708
f11781c5
AK
2709################################################################################
2710# Make sure we can run config.sub.
2711$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2712 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2713
f11781c5
AK
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2715$as_echo_n "checking build system type... " >&6; }
2716if test "${ac_cv_build+set}" = set; then :
2717 $as_echo_n "(cached) " >&6
2718else
2719 ac_build_alias=$build_alias
2720test "x$ac_build_alias" = x &&
2721 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2722test "x$ac_build_alias" = x &&
2723 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2724ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2725 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2726
2727fi
f11781c5
AK
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2729$as_echo "$ac_cv_build" >&6; }
2730case $ac_cv_build in
2731*-*-*) ;;
2732*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2733esac
2734build=$ac_cv_build
2735ac_save_IFS=$IFS; IFS='-'
2736set x $ac_cv_build
2737shift
2738build_cpu=$1
2739build_vendor=$2
2740shift; shift
2741# Remember, the first character of IFS is used to create $*,
2742# except with old shells:
2743build_os=$*
2744IFS=$ac_save_IFS
2745case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2746
2747
f11781c5
AK
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2749$as_echo_n "checking host system type... " >&6; }
2750if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2751 $as_echo_n "(cached) " >&6
ad6254c5 2752else
f11781c5
AK
2753 if test "x$host_alias" = x; then
2754 ac_cv_host=$ac_cv_build
ad6254c5 2755else
f11781c5
AK
2756 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2757 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2758fi
ad6254c5 2759
f11781c5
AK
2760fi
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2762$as_echo "$ac_cv_host" >&6; }
2763case $ac_cv_host in
2764*-*-*) ;;
2765*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2766esac
2767host=$ac_cv_host
2768ac_save_IFS=$IFS; IFS='-'
2769set x $ac_cv_host
2770shift
2771host_cpu=$1
2772host_vendor=$2
2773shift; shift
2774# Remember, the first character of IFS is used to create $*,
2775# except with old shells:
2776host_os=$*
2777IFS=$ac_save_IFS
2778case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2779
ad6254c5 2780
f11781c5
AK
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2782$as_echo_n "checking target system type... " >&6; }
2783if test "${ac_cv_target+set}" = set; then :
2784 $as_echo_n "(cached) " >&6
ad6254c5 2785else
f11781c5
AK
2786 if test "x$target_alias" = x; then
2787 ac_cv_target=$ac_cv_host
2788else
2789 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2790 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2791fi
7a197a62 2792
ad6254c5 2793fi
f11781c5
AK
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2795$as_echo "$ac_cv_target" >&6; }
2796case $ac_cv_target in
2797*-*-*) ;;
2798*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2799esac
f11781c5
AK
2800target=$ac_cv_target
2801ac_save_IFS=$IFS; IFS='-'
2802set x $ac_cv_target
2803shift
2804target_cpu=$1
2805target_vendor=$2
2806shift; shift
2807# Remember, the first character of IFS is used to create $*,
2808# except with old shells:
2809target_os=$*
2810IFS=$ac_save_IFS
2811case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2812
ad6254c5 2813
f11781c5
AK
2814# The aliases save the names the user supplied, while $host etc.
2815# will get canonicalized.
2816test -n "$target_alias" &&
2817 test "$program_prefix$program_suffix$program_transform_name" = \
2818 NONENONEs,x,x, &&
2819 program_prefix=${target_alias}-
ad6254c5 2820
f11781c5
AK
2821case "$host_os" in
2822 linux*)
2823 CFLAGS="$CFLAGS"
2824 COPTIMISE_FLAG="-O2"
2825 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
bf09a320
AK
2826 ELDFLAGS="-Wl,--export-dynamic"
2827 # FIXME Generate list and use --dynamic-list=.dlopen.sym
f11781c5
AK
2828 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2829 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2830 LDDEPS="$LDDEPS .export.sym"
f11781c5
AK
2831 LIB_SUFFIX=so
2832 DEVMAPPER=yes
cdd50823 2833 LVMETAD=no
f11781c5
AK
2834 ODIRECT=yes
2835 DM_IOCTLS=yes
2836 SELINUX=yes
2837 CLUSTER=internal
2838 FSADM=yes
2839 ;;
2840 darwin*)
2841 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2842 COPTIMISE_FLAG="-O2"
2843 CLDFLAGS="$CLDFLAGS"
bf09a320 2844 ELDFLAGS=
f11781c5
AK
2845 CLDWHOLEARCHIVE="-all_load"
2846 CLDNOWHOLEARCHIVE=
2847 LIB_SUFFIX=dylib
2848 DEVMAPPER=yes
2849 ODIRECT=no
2850 DM_IOCTLS=no
2851 SELINUX=no
2852 CLUSTER=none
2853 FSADM=no
2854 ;;
2855esac
ad6254c5 2856
f11781c5
AK
2857################################################################################
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2859$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2860if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2861 $as_echo_n "(cached) " >&6
ad6254c5 2862else
f11781c5
AK
2863 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2864 for ac_i in 1 2 3 4 5 6 7; do
2865 ac_script="$ac_script$as_nl$ac_script"
2866 done
2867 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2868 { ac_script=; unset ac_script;}
2869 if test -z "$SED"; then
2870 ac_path_SED_found=false
2871 # Loop through the user's path and test for each of PROGNAME-LIST
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873for as_dir in $PATH
2874do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_prog in sed gsed; do
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2880 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2881# Check for GNU ac_path_SED and select it if it is found.
2882 # Check for GNU $ac_path_SED
2883case `"$ac_path_SED" --version 2>&1` in
2884*GNU*)
2885 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2886*)
2887 ac_count=0
2888 $as_echo_n 0123456789 >"conftest.in"
2889 while :
2890 do
2891 cat "conftest.in" "conftest.in" >"conftest.tmp"
2892 mv "conftest.tmp" "conftest.in"
2893 cp "conftest.in" "conftest.nl"
2894 $as_echo '' >> "conftest.nl"
2895 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2897 as_fn_arith $ac_count + 1 && ac_count=$as_val
2898 if test $ac_count -gt ${ac_path_SED_max-0}; then
2899 # Best one so far, save it but keep looking for a better one
2900 ac_cv_path_SED="$ac_path_SED"
2901 ac_path_SED_max=$ac_count
2902 fi
2903 # 10*(2^10) chars as input seems more than enough
2904 test $ac_count -gt 10 && break
2905 done
2906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2907esac
ad6254c5 2908
f11781c5
AK
2909 $ac_path_SED_found && break 3
2910 done
2911 done
2912 done
2913IFS=$as_save_IFS
2914 if test -z "$ac_cv_path_SED"; then
2915 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2916 fi
2917else
2918 ac_cv_path_SED=$SED
ad6254c5 2919fi
7a197a62 2920
f11781c5
AK
2921fi
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2923$as_echo "$ac_cv_path_SED" >&6; }
2924 SED="$ac_cv_path_SED"
2925 rm -f conftest.sed
ad6254c5 2926
f11781c5
AK
2927for ac_prog in gawk mawk nawk awk
2928do
2929 # Extract the first word of "$ac_prog", so it can be a program name with args.
2930set dummy $ac_prog; ac_word=$2
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932$as_echo_n "checking for $ac_word... " >&6; }
2933if test "${ac_cv_prog_AWK+set}" = set; then :
2934 $as_echo_n "(cached) " >&6
ad6254c5 2935else
f11781c5
AK
2936 if test -n "$AWK"; then
2937 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_AWK="$ac_prog"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950done
2951 done
2952IFS=$as_save_IFS
ad6254c5 2953
ad6254c5 2954fi
ad6254c5 2955fi
f11781c5
AK
2956AWK=$ac_cv_prog_AWK
2957if test -n "$AWK"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2959$as_echo "$AWK" >&6; }
2960else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962$as_echo "no" >&6; }
ad6254c5 2963fi
ad6254c5 2964
ad6254c5 2965
f11781c5 2966 test -n "$AWK" && break
ad6254c5
AK
2967done
2968
f11781c5
AK
2969ac_ext=c
2970ac_cpp='$CPP $CPPFLAGS'
2971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2973ac_compiler_gnu=$ac_cv_c_compiler_gnu
2974if test -n "$ac_tool_prefix"; then
2975 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2976set dummy ${ac_tool_prefix}gcc; ac_word=$2
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978$as_echo_n "checking for $ac_word... " >&6; }
2979if test "${ac_cv_prog_CC+set}" = set; then :
ec6a6fbe 2980 $as_echo_n "(cached) " >&6
ad6254c5 2981else
f11781c5
AK
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 2984else
f11781c5
AK
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2995 fi
2996done
2997 done
2998IFS=$as_save_IFS
ad6254c5 2999
ad6254c5 3000fi
ad6254c5 3001fi
f11781c5
AK
3002CC=$ac_cv_prog_CC
3003if test -n "$CC"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3005$as_echo "$CC" >&6; }
3006else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008$as_echo "no" >&6; }
ad6254c5 3009fi
ad6254c5 3010
f11781c5
AK
3011
3012fi
3013if test -z "$ac_cv_prog_CC"; then
3014 ac_ct_CC=$CC
3015 # Extract the first word of "gcc", so it can be a program name with args.
3016set dummy gcc; ac_word=$2
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018$as_echo_n "checking for $ac_word... " >&6; }
3019if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 3020 $as_echo_n "(cached) " >&6
ad6254c5 3021else
f11781c5
AK
3022 if test -n "$ac_ct_CC"; then
3023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 3024else
f11781c5
AK
3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026for as_dir in $PATH
3027do
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032 ac_cv_prog_ac_ct_CC="gcc"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 break 2
3035 fi
3036done
3037 done
3038IFS=$as_save_IFS
d911ec67 3039
d911ec67 3040fi
d911ec67 3041fi
f11781c5
AK
3042ac_ct_CC=$ac_cv_prog_ac_ct_CC
3043if test -n "$ac_ct_CC"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3045$as_echo "$ac_ct_CC" >&6; }
3046else
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048$as_echo "no" >&6; }
d911ec67 3049fi
d911ec67 3050
f11781c5
AK
3051 if test "x$ac_ct_CC" = x; then
3052 CC=""
3053 else
3054 case $cross_compiling:$ac_tool_warned in
3055yes:)
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3058ac_tool_warned=yes ;;
3059esac
3060 CC=$ac_ct_CC
3061 fi
3062else
3063 CC="$ac_cv_prog_CC"
d911ec67 3064fi
d911ec67 3065
f11781c5
AK
3066if test -z "$CC"; then
3067 if test -n "$ac_tool_prefix"; then
3068 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3069set dummy ${ac_tool_prefix}cc; ac_word=$2
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071$as_echo_n "checking for $ac_word... " >&6; }
3072if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67 3073 $as_echo_n "(cached) " >&6
d911ec67 3074else
f11781c5
AK
3075 if test -n "$CC"; then
3076 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 3077else
f11781c5
AK
3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079for as_dir in $PATH
3080do
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085 ac_cv_prog_CC="${ac_tool_prefix}cc"
3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 break 2
3088 fi
3089done
3090 done
3091IFS=$as_save_IFS
d911ec67 3092
f11781c5
AK
3093fi
3094fi
3095CC=$ac_cv_prog_CC
3096if test -n "$CC"; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3098$as_echo "$CC" >&6; }
3099else
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101$as_echo "no" >&6; }
d911ec67
AK
3102fi
3103
d911ec67 3104
f11781c5
AK
3105 fi
3106fi
3107if test -z "$CC"; then
3108 # Extract the first word of "cc", so it can be a program name with args.
3109set dummy cc; ac_word=$2
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111$as_echo_n "checking for $ac_word... " >&6; }
3112if test "${ac_cv_prog_CC+set}" = set; then :
3113 $as_echo_n "(cached) " >&6
d911ec67 3114else
f11781c5
AK
3115 if test -n "$CC"; then
3116 ac_cv_prog_CC="$CC" # Let the user override the test.
3117else
3118 ac_prog_rejected=no
3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3127 ac_prog_rejected=yes
3128 continue
3129 fi
3130 ac_cv_prog_CC="cc"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 break 2
3133 fi
3134done
3135 done
3136IFS=$as_save_IFS
d911ec67 3137
f11781c5
AK
3138if test $ac_prog_rejected = yes; then
3139 # We found a bogon in the path, so make sure we never use it.
3140 set dummy $ac_cv_prog_CC
3141 shift
3142 if test $# != 0; then
3143 # We chose a different compiler from the bogus one.
3144 # However, it has the same basename, so the bogon will be chosen
3145 # first if we set CC to just the basename; use the full file name.
3146 shift
3147 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3148 fi
3149fi
3150fi
3151fi
3152CC=$ac_cv_prog_CC
3153if test -n "$CC"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3155$as_echo "$CC" >&6; }
3156else
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158$as_echo "no" >&6; }
d911ec67
AK
3159fi
3160
d911ec67 3161
f11781c5
AK
3162fi
3163if test -z "$CC"; then
3164 if test -n "$ac_tool_prefix"; then
3165 for ac_prog in cl.exe
3166 do
3167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3168set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170$as_echo_n "checking for $ac_word... " >&6; }
3171if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3172 $as_echo_n "(cached) " >&6
3173else
f11781c5
AK
3174 if test -n "$CC"; then
3175 ac_cv_prog_CC="$CC" # Let the user override the test.
3176else
3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178for as_dir in $PATH
3179do
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3187 fi
3188done
3189 done
3190IFS=$as_save_IFS
d911ec67
AK
3191
3192fi
f11781c5
AK
3193fi
3194CC=$ac_cv_prog_CC
3195if test -n "$CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197$as_echo "$CC" >&6; }
3198else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200$as_echo "no" >&6; }
d911ec67
AK
3201fi
3202
d911ec67 3203
f11781c5
AK
3204 test -n "$CC" && break
3205 done
3206fi
3207if test -z "$CC"; then
3208 ac_ct_CC=$CC
3209 for ac_prog in cl.exe
3210do
3211 # Extract the first word of "$ac_prog", so it can be a program name with args.
3212set dummy $ac_prog; ac_word=$2
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214$as_echo_n "checking for $ac_word... " >&6; }
3215if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d911ec67
AK
3216 $as_echo_n "(cached) " >&6
3217else
f11781c5
AK
3218 if test -n "$ac_ct_CC"; then
3219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3220else
f11781c5
AK
3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222for as_dir in $PATH
3223do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228 ac_cv_prog_ac_ct_CC="$ac_prog"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3231 fi
3232done
3233 done
3234IFS=$as_save_IFS
ad6254c5 3235
ad6254c5 3236fi
ad6254c5 3237fi
f11781c5
AK
3238ac_ct_CC=$ac_cv_prog_ac_ct_CC
3239if test -n "$ac_ct_CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3241$as_echo "$ac_ct_CC" >&6; }
3242else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244$as_echo "no" >&6; }
ad6254c5 3245fi
ad6254c5 3246
d911ec67 3247
f11781c5
AK
3248 test -n "$ac_ct_CC" && break
3249done
d911ec67 3250
f11781c5
AK
3251 if test "x$ac_ct_CC" = x; then
3252 CC=""
3253 else
3254 case $cross_compiling:$ac_tool_warned in
3255yes:)
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3258ac_tool_warned=yes ;;
d911ec67 3259esac
f11781c5
AK
3260 CC=$ac_ct_CC
3261 fi
3262fi
ad6254c5
AK
3263
3264fi
d911ec67
AK
3265
3266
f11781c5
AK
3267test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3269as_fn_error $? "no acceptable C compiler found in \$PATH
3270See \`config.log' for more details" "$LINENO" 5; }
3271
3272# Provide some information about the compiler.
3273$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3274set X $ac_compile
3275ac_compiler=$2
3276for ac_option in --version -v -V -qversion; do
3277 { { ac_try="$ac_compiler $ac_option >&5"
3278case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281esac
3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283$as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3285 ac_status=$?
3286 if test -s conftest.err; then
3287 sed '10a\
3288... rest of stderr output deleted ...
3289 10q' conftest.err >conftest.er1
3290 cat conftest.er1 >&5
3291 fi
3292 rm -f conftest.er1 conftest.err
3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294 test $ac_status = 0; }
3295done
ad6254c5 3296
f11781c5 3297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3298/* end confdefs.h. */
f11781c5 3299
ad6254c5
AK
3300int
3301main ()
3302{
f11781c5 3303
ad6254c5
AK
3304 ;
3305 return 0;
3306}
3307_ACEOF
f11781c5
AK
3308ac_clean_files_save=$ac_clean_files
3309ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3310# Try to create an executable without -o first, disregard a.out.
3311# It will help us diagnose broken compilers, and finding out an intuition
3312# of exeext.
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3314$as_echo_n "checking whether the C compiler works... " >&6; }
3315ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3316
3317# The possible output files:
3318ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3319
3320ac_rmfiles=
3321for ac_file in $ac_files
3322do
3323 case $ac_file in
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3326 esac
3327done
3328rm -f $ac_rmfiles
3329
3330if { { ac_try="$ac_link_default"
7a197a62
AK
3331case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334esac
f11781c5
AK
3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336$as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_link_default") 2>&5
ad6254c5 3338 ac_status=$?
f11781c5
AK
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }; then :
3341 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3342# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3343# in a Makefile. We should not override ac_cv_exeext if it was cached,
3344# so that the user can short-circuit this test for compilers unknown to
3345# Autoconf.
3346for ac_file in $ac_files ''
3347do
3348 test -f "$ac_file" || continue
3349 case $ac_file in
3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3351 ;;
3352 [ab].out )
3353 # We found the default executable, but exeext='' is most
3354 # certainly right.
3355 break;;
3356 *.* )
3357 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3358 then :; else
3359 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3360 fi
3361 # We set ac_cv_exeext here because the later test for it is not
3362 # safe: cross compilers may not add the suffix if given an `-o'
3363 # argument, so we may need to know it at that point already.
3364 # Even if this section looks crufty: it has the advantage of
3365 # actually working.
3366 break;;
3367 * )
3368 break;;
3369 esac
3370done
3371test "$ac_cv_exeext" = no && ac_cv_exeext=
3372
ad6254c5 3373else
f11781c5
AK
3374 ac_file=''
3375fi
3376if test -z "$ac_file"; then :
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378$as_echo "no" >&6; }
ec6a6fbe 3379$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
f11781c5
AK
3382{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384as_fn_error 77 "C compiler cannot create executables
3385See \`config.log' for more details" "$LINENO" 5; }
3386else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3388$as_echo "yes" >&6; }
ad6254c5 3389fi
f11781c5
AK
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3391$as_echo_n "checking for C compiler default output file name... " >&6; }
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3393$as_echo "$ac_file" >&6; }
3394ac_exeext=$ac_cv_exeext
7a197a62 3395
f11781c5
AK
3396rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3397ac_clean_files=$ac_clean_files_save
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3399$as_echo_n "checking for suffix of executables... " >&6; }
3400if { { ac_try="$ac_link"
3401case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
8a2fc586 3404esac
f11781c5
AK
3405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406$as_echo "$ac_try_echo"; } >&5
3407 (eval "$ac_link") 2>&5
3408 ac_status=$?
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }; then :
3411 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3412# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3413# work properly (i.e., refer to `conftest.exe'), while it won't with
3414# `rm'.
3415for ac_file in conftest.exe conftest conftest.*; do
3416 test -f "$ac_file" || continue
3417 case $ac_file in
3418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3419 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3420 break;;
3421 * ) break;;
3422 esac
3423done
3424else
3425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3428See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3429fi
f11781c5
AK
3430rm -f conftest conftest$ac_cv_exeext
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3432$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3433
f11781c5
AK
3434rm -f conftest.$ac_ext
3435EXEEXT=$ac_cv_exeext
3436ac_exeext=$EXEEXT
3437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3438/* end confdefs.h. */
f11781c5 3439#include <stdio.h>
ad6254c5 3440int
f11781c5 3441main ()
ad6254c5 3442{
f11781c5
AK
3443FILE *f = fopen ("conftest.out", "w");
3444 return ferror (f) || fclose (f) != 0;
ad6254c5 3445
f11781c5 3446 ;
7a197a62 3447 return 0;
ad6254c5 3448}
ad6254c5 3449_ACEOF
f11781c5
AK
3450ac_clean_files="$ac_clean_files conftest.out"
3451# Check that the compiler produces executables we can run. If not, either
3452# the compiler is broken, or we cross compile.
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3454$as_echo_n "checking whether we are cross compiling... " >&6; }
3455if test "$cross_compiling" != yes; then
3456 { { ac_try="$ac_link"
7a197a62
AK
3457case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460esac
f11781c5
AK
3461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462$as_echo "$ac_try_echo"; } >&5
7a197a62 3463 (eval "$ac_link") 2>&5
ad6254c5 3464 ac_status=$?
f11781c5
AK
3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }
3467 if { ac_try='./conftest$ac_cv_exeext'
3468 { { case "(($ac_try" in
7a197a62
AK
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471esac
f11781c5
AK
3472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473$as_echo "$ac_try_echo"; } >&5
7a197a62 3474 (eval "$ac_try") 2>&5
ad6254c5 3475 ac_status=$?
f11781c5
AK
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }; }; then
3478 cross_compiling=no
3479 else
3480 if test "$cross_compiling" = maybe; then
3481 cross_compiling=yes
3482 else
3483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485as_fn_error $? "cannot run C compiled programs.
3486If you meant to cross compile, use \`--host'.
3487See \`config.log' for more details" "$LINENO" 5; }
3488 fi
3489 fi
3490fi
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3492$as_echo "$cross_compiling" >&6; }
3493
3494rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3495ac_clean_files=$ac_clean_files_save
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3497$as_echo_n "checking for suffix of object files... " >&6; }
3498if test "${ac_cv_objext+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3500else
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502/* end confdefs.h. */
ad6254c5
AK
3503
3504int
3505main ()
3506{
f11781c5 3507
ad6254c5
AK
3508 ;
3509 return 0;
3510}
3511_ACEOF
f11781c5
AK
3512rm -f conftest.o conftest.obj
3513if { { ac_try="$ac_compile"
7a197a62
AK
3514case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517esac
f11781c5
AK
3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519$as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_compile") 2>&5
ad6254c5 3521 ac_status=$?
f11781c5
AK
3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523 test $ac_status = 0; }; then :
3524 for ac_file in conftest.o conftest.obj conftest.*; do
3525 test -f "$ac_file" || continue;
3526 case $ac_file in
3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3528 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3529 break;;
3530 esac
3531done
ad6254c5 3532else
ec6a6fbe 3533 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3534sed 's/^/| /' conftest.$ac_ext >&5
3535
f11781c5
AK
3536{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538as_fn_error $? "cannot compute suffix of object files: cannot compile
3539See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3540fi
f11781c5 3541rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3542fi
f11781c5
AK
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3544$as_echo "$ac_cv_objext" >&6; }
3545OBJEXT=$ac_cv_objext
3546ac_objext=$OBJEXT
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3548$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3549if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3550 $as_echo_n "(cached) " >&6
ad6254c5 3551else
f11781c5 3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3553/* end confdefs.h. */
3554
ad6254c5
AK
3555int
3556main ()
3557{
f11781c5
AK
3558#ifndef __GNUC__
3559 choke me
3560#endif
3561
ad6254c5
AK
3562 ;
3563 return 0;
3564}
3565_ACEOF
f11781c5
AK
3566if ac_fn_c_try_compile "$LINENO"; then :
3567 ac_compiler_gnu=yes
ad6254c5 3568else
f11781c5 3569 ac_compiler_gnu=no
ad6254c5 3570fi
f11781c5
AK
3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3573
d0191583 3574fi
f11781c5
AK
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3576$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3577if test $ac_compiler_gnu = yes; then
3578 GCC=yes
d0191583 3579else
f11781c5 3580 GCC=
d0191583 3581fi
f11781c5
AK
3582ac_test_CFLAGS=${CFLAGS+set}
3583ac_save_CFLAGS=$CFLAGS
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3585$as_echo_n "checking whether $CC accepts -g... " >&6; }
3586if test "${ac_cv_prog_cc_g+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
3588else
3589 ac_save_c_werror_flag=$ac_c_werror_flag
3590 ac_c_werror_flag=yes
3591 ac_cv_prog_cc_g=no
3592 CFLAGS="-g"
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594/* end confdefs.h. */
72b2cb61 3595
f11781c5
AK
3596int
3597main ()
3598{
72b2cb61 3599
f11781c5
AK
3600 ;
3601 return 0;
3602}
3603_ACEOF
3604if ac_fn_c_try_compile "$LINENO"; then :
3605 ac_cv_prog_cc_g=yes
3606else
3607 CFLAGS=""
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609/* end confdefs.h. */
ad6254c5 3610
f11781c5
AK
3611int
3612main ()
3613{
ad6254c5 3614
f11781c5
AK
3615 ;
3616 return 0;
3617}
d0191583 3618_ACEOF
f11781c5
AK
3619if ac_fn_c_try_compile "$LINENO"; then :
3620
3621else
3622 ac_c_werror_flag=$ac_save_c_werror_flag
3623 CFLAGS="-g"
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3625/* end confdefs.h. */
7a197a62 3626
f11781c5
AK
3627int
3628main ()
3629{
ad6254c5 3630
f11781c5
AK
3631 ;
3632 return 0;
3633}
3634_ACEOF
3635if ac_fn_c_try_compile "$LINENO"; then :
3636 ac_cv_prog_cc_g=yes
3637fi
3638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639fi
3640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641fi
3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 ac_c_werror_flag=$ac_save_c_werror_flag
3644fi
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3646$as_echo "$ac_cv_prog_cc_g" >&6; }
3647if test "$ac_test_CFLAGS" = set; then
3648 CFLAGS=$ac_save_CFLAGS
3649elif test $ac_cv_prog_cc_g = yes; then
3650 if test "$GCC" = yes; then
3651 CFLAGS="-g -O2"
3652 else
3653 CFLAGS="-g"
3654 fi
3655else
3656 if test "$GCC" = yes; then
3657 CFLAGS="-O2"
3658 else
3659 CFLAGS=
3660 fi
3661fi
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3663$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3664if test "${ac_cv_prog_cc_c89+set}" = set; then :
3665 $as_echo_n "(cached) " >&6
3666else
3667 ac_cv_prog_cc_c89=no
3668ac_save_CC=$CC
3669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670/* end confdefs.h. */
3671#include <stdarg.h>
3672#include <stdio.h>
3673#include <sys/types.h>
3674#include <sys/stat.h>
3675/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3676struct buf { int x; };
3677FILE * (*rcsopen) (struct buf *, struct stat *, int);
3678static char *e (p, i)
3679 char **p;
3680 int i;
3681{
3682 return p[i];
3683}
3684static char *f (char * (*g) (char **, int), char **p, ...)
3685{
3686 char *s;
3687 va_list v;
3688 va_start (v,p);
3689 s = g (p, va_arg (v,int));
3690 va_end (v);
3691 return s;
3692}
ad6254c5 3693
f11781c5
AK
3694/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3695 function prototypes and stuff, but not '\xHH' hex character constants.
3696 These don't provoke an error unfortunately, instead are silently treated
3697 as 'x'. The following induces an error, until -std is added to get
3698 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3699 array size at least. It's necessary to write '\x00'==0 to get something
3700 that's true only with -std. */
3701int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3702
f11781c5
AK
3703/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3704 inside strings and character constants. */
3705#define FOO(x) 'x'
3706int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3707
f11781c5
AK
3708int test (int i, double x);
3709struct s1 {int (*f) (int a);};
3710struct s2 {int (*f) (double a);};
3711int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3712int argc;
3713char **argv;
d0191583
JM
3714int
3715main ()
3716{
f11781c5 3717return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3718 ;
3719 return 0;
3720}
72b2cb61 3721_ACEOF
f11781c5
AK
3722for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3723 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3724do
3725 CC="$ac_save_CC $ac_arg"
3726 if ac_fn_c_try_compile "$LINENO"; then :
3727 ac_cv_prog_cc_c89=$ac_arg
3728fi
3729rm -f core conftest.err conftest.$ac_objext
3730 test "x$ac_cv_prog_cc_c89" != "xno" && break
3731done
3732rm -f conftest.$ac_ext
3733CC=$ac_save_CC
3734
3735fi
3736# AC_CACHE_VAL
3737case "x$ac_cv_prog_cc_c89" in
3738 x)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3740$as_echo "none needed" >&6; } ;;
3741 xno)
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3743$as_echo "unsupported" >&6; } ;;
3744 *)
3745 CC="$CC $ac_cv_prog_cc_c89"
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3747$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3748esac
f11781c5
AK
3749if test "x$ac_cv_prog_cc_c89" != xno; then :
3750
3751fi
3752
3753ac_ext=c
3754ac_cpp='$CPP $CPPFLAGS'
3755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3758
ad6254c5 3759
7a197a62 3760
f11781c5
AK
3761ac_ext=c
3762ac_cpp='$CPP $CPPFLAGS'
3763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3767$as_echo_n "checking how to run the C preprocessor... " >&6; }
3768# On Suns, sometimes $CPP names a directory.
3769if test -n "$CPP" && test -d "$CPP"; then
3770 CPP=
3771fi
3772if test -z "$CPP"; then
3773 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3774 $as_echo_n "(cached) " >&6
ad6254c5 3775else
f11781c5
AK
3776 # Double quotes because CPP needs to be expanded
3777 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3778 do
3779 ac_preproc_ok=false
3780for ac_c_preproc_warn_flag in '' yes
3781do
3782 # Use a header file that comes with gcc, so configuring glibc
3783 # with a fresh cross-compiler works.
3784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3785 # <limits.h> exists even on freestanding compilers.
3786 # On the NeXT, cc -E runs the code through the compiler's parser,
3787 # not just through cpp. "Syntax error" is here to catch this case.
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3789/* end confdefs.h. */
d0191583
JM
3790#ifdef __STDC__
3791# include <limits.h>
3792#else
3793# include <assert.h>
3794#endif
f11781c5
AK
3795 Syntax error
3796_ACEOF
3797if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3798
f11781c5
AK
3799else
3800 # Broken: fails on valid input.
3801continue
3802fi
3803rm -f conftest.err conftest.$ac_ext
d0191583 3804
f11781c5
AK
3805 # OK, works on sane cases. Now check whether nonexistent headers
3806 # can be detected and how.
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808/* end confdefs.h. */
3809#include <ac_nonexistent.h>
72b2cb61 3810_ACEOF
f11781c5
AK
3811if ac_fn_c_try_cpp "$LINENO"; then :
3812 # Broken: success on invalid input.
3813continue
d0191583 3814else
f11781c5
AK
3815 # Passes both tests.
3816ac_preproc_ok=:
3817break
ad6254c5 3818fi
f11781c5 3819rm -f conftest.err conftest.$ac_ext
ad6254c5 3820
f11781c5
AK
3821done
3822# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3823rm -f conftest.err conftest.$ac_ext
3824if $ac_preproc_ok; then :
3825 break
7a197a62
AK
3826fi
3827
f11781c5
AK
3828 done
3829 ac_cv_prog_CPP=$CPP
ad6254c5 3830
7a197a62 3831fi
f11781c5
AK
3832 CPP=$ac_cv_prog_CPP
3833else
3834 ac_cv_prog_CPP=$CPP
d0191583 3835fi
f11781c5
AK
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3837$as_echo "$CPP" >&6; }
3838ac_preproc_ok=false
3839for ac_c_preproc_warn_flag in '' yes
3840do
3841 # Use a header file that comes with gcc, so configuring glibc
3842 # with a fresh cross-compiler works.
3843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3844 # <limits.h> exists even on freestanding compilers.
3845 # On the NeXT, cc -E runs the code through the compiler's parser,
3846 # not just through cpp. "Syntax error" is here to catch this case.
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h. */
3849#ifdef __STDC__
3850# include <limits.h>
3851#else
3852# include <assert.h>
3853#endif
3854 Syntax error
3855_ACEOF
3856if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3857
9c961554 3858else
f11781c5
AK
3859 # Broken: fails on valid input.
3860continue
9c961554 3861fi
f11781c5 3862rm -f conftest.err conftest.$ac_ext
9c961554 3863
f11781c5
AK
3864 # OK, works on sane cases. Now check whether nonexistent headers
3865 # can be detected and how.
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867/* end confdefs.h. */
3868#include <ac_nonexistent.h>
3869_ACEOF
3870if ac_fn_c_try_cpp "$LINENO"; then :
3871 # Broken: success on invalid input.
3872continue
3873else
3874 # Passes both tests.
3875ac_preproc_ok=:
3876break
3877fi
3878rm -f conftest.err conftest.$ac_ext
ad6254c5 3879
f11781c5
AK
3880done
3881# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882rm -f conftest.err conftest.$ac_ext
3883if $ac_preproc_ok; then :
d0191583 3884
f11781c5
AK
3885else
3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3889See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3890fi
3891
f11781c5
AK
3892ac_ext=c
3893ac_cpp='$CPP $CPPFLAGS'
3894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3897
ad6254c5 3898
f11781c5
AK
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3900$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3901if test "${ac_cv_path_GREP+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3903else
3904 if test -z "$GREP"; then
3905 ac_path_GREP_found=false
3906 # Loop through the user's path and test for each of PROGNAME-LIST
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3909do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_prog in grep ggrep; do
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3915 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3916# Check for GNU ac_path_GREP and select it if it is found.
3917 # Check for GNU $ac_path_GREP
3918case `"$ac_path_GREP" --version 2>&1` in
3919*GNU*)
3920 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3921*)
3922 ac_count=0
3923 $as_echo_n 0123456789 >"conftest.in"
3924 while :
3925 do
3926 cat "conftest.in" "conftest.in" >"conftest.tmp"
3927 mv "conftest.tmp" "conftest.in"
3928 cp "conftest.in" "conftest.nl"
3929 $as_echo 'GREP' >> "conftest.nl"
3930 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3932 as_fn_arith $ac_count + 1 && ac_count=$as_val
3933 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3934 # Best one so far, save it but keep looking for a better one
3935 ac_cv_path_GREP="$ac_path_GREP"
3936 ac_path_GREP_max=$ac_count
3937 fi
3938 # 10*(2^10) chars as input seems more than enough
3939 test $ac_count -gt 10 && break
3940 done
3941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3942esac
ad6254c5 3943
f11781c5
AK
3944 $ac_path_GREP_found && break 3
3945 done
3946 done
3947 done
3948IFS=$as_save_IFS
3949 if test -z "$ac_cv_path_GREP"; then
3950 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3951 fi
3952else
3953 ac_cv_path_GREP=$GREP
7a197a62
AK
3954fi
3955
d0191583 3956fi
f11781c5
AK
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3958$as_echo "$ac_cv_path_GREP" >&6; }
3959 GREP="$ac_cv_path_GREP"
ad6254c5 3960
24bbc4d7 3961
f11781c5
AK
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3963$as_echo_n "checking for egrep... " >&6; }
3964if test "${ac_cv_path_EGREP+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
3966else
3967 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3968 then ac_cv_path_EGREP="$GREP -E"
3969 else
3970 if test -z "$EGREP"; then
3971 ac_path_EGREP_found=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_prog in egrep; do
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3981 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3982# Check for GNU ac_path_EGREP and select it if it is found.
3983 # Check for GNU $ac_path_EGREP
3984case `"$ac_path_EGREP" --version 2>&1` in
3985*GNU*)
3986 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3987*)
3988 ac_count=0
3989 $as_echo_n 0123456789 >"conftest.in"
3990 while :
3991 do
3992 cat "conftest.in" "conftest.in" >"conftest.tmp"
3993 mv "conftest.tmp" "conftest.in"
3994 cp "conftest.in" "conftest.nl"
3995 $as_echo 'EGREP' >> "conftest.nl"
3996 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998 as_fn_arith $ac_count + 1 && ac_count=$as_val
3999 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4000 # Best one so far, save it but keep looking for a better one
4001 ac_cv_path_EGREP="$ac_path_EGREP"
4002 ac_path_EGREP_max=$ac_count
4003 fi
4004 # 10*(2^10) chars as input seems more than enough
4005 test $ac_count -gt 10 && break
4006 done
4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008esac
24bbc4d7 4009
f11781c5
AK
4010 $ac_path_EGREP_found && break 3
4011 done
4012 done
4013 done
4014IFS=$as_save_IFS
4015 if test -z "$ac_cv_path_EGREP"; then
4016 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4017 fi
24bbc4d7 4018else
f11781c5 4019 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
4020fi
4021
f11781c5 4022 fi
24bbc4d7 4023fi
f11781c5
AK
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4025$as_echo "$ac_cv_path_EGREP" >&6; }
4026 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
4027
4028
f11781c5
AK
4029if test $ac_cv_c_compiler_gnu = yes; then
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4031$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4032if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4033 $as_echo_n "(cached) " >&6
93bd259b 4034else
f11781c5
AK
4035 ac_pattern="Autoconf.*'x'"
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037/* end confdefs.h. */
4038#include <sgtty.h>
4039Autoconf TIOCGETP
4040_ACEOF
4041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4043 ac_cv_prog_gcc_traditional=yes
d0191583 4044else
f11781c5 4045 ac_cv_prog_gcc_traditional=no
7a197a62 4046fi
f11781c5 4047rm -f conftest*
7a197a62 4048
72b2cb61 4049
f11781c5
AK
4050 if test $ac_cv_prog_gcc_traditional = no; then
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052/* end confdefs.h. */
4053#include <termio.h>
4054Autoconf TCGETA
72b2cb61 4055_ACEOF
f11781c5
AK
4056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4057 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4058 ac_cv_prog_gcc_traditional=yes
ad6254c5 4059fi
f11781c5 4060rm -f conftest*
ad6254c5 4061
f11781c5 4062 fi
7a197a62 4063fi
f11781c5
AK
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4065$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4066 if test $ac_cv_prog_gcc_traditional = yes; then
4067 CC="$CC -traditional"
4068 fi
ad6254c5
AK
4069fi
4070
f11781c5
AK
4071# Find a good install program. We prefer a C program (faster),
4072# so one script is as good as another. But avoid the broken or
4073# incompatible versions:
4074# SysV /etc/install, /usr/sbin/install
4075# SunOS /usr/etc/install
4076# IRIX /sbin/install
4077# AIX /bin/install
4078# AmigaOS /C/install, which installs bootblocks on floppy discs
4079# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4080# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4081# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4082# OS/2's system install, which has a completely different semantic
4083# ./install, which can be erroneously created by make from ./install.sh.
4084# Reject install programs that cannot install multiple files.
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4086$as_echo_n "checking for a BSD-compatible install... " >&6; }
4087if test -z "$INSTALL"; then
4088if test "${ac_cv_path_install+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
ad6254c5 4090else
f11781c5
AK
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092for as_dir in $PATH
4093do
4094 IFS=$as_save_IFS
4095 test -z "$as_dir" && as_dir=.
4096 # Account for people who put trailing slashes in PATH elements.
4097case $as_dir/ in #((
4098 ./ | .// | /[cC]/* | \
4099 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4100 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4101 /usr/ucb/* ) ;;
4102 *)
4103 # OSF1 and SCO ODT 3.0 have their own names for install.
4104 # Don't use installbsd from OSF since it installs stuff as root
4105 # by default.
4106 for ac_prog in ginstall scoinst install; do
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4109 if test $ac_prog = install &&
4110 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4111 # AIX install. It has an incompatible calling convention.
4112 :
4113 elif test $ac_prog = install &&
4114 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4115 # program-specific install script used by HP pwplus--don't use.
4116 :
4117 else
4118 rm -rf conftest.one conftest.two conftest.dir
4119 echo one > conftest.one
4120 echo two > conftest.two
4121 mkdir conftest.dir
4122 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4123 test -s conftest.one && test -s conftest.two &&
4124 test -s conftest.dir/conftest.one &&
4125 test -s conftest.dir/conftest.two
4126 then
4127 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4128 break 3
4129 fi
4130 fi
4131 fi
4132 done
4133 done
4134 ;;
4135esac
7a197a62 4136
f11781c5
AK
4137 done
4138IFS=$as_save_IFS
d0191583 4139
f11781c5 4140rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4141
4142fi
f11781c5
AK
4143 if test "${ac_cv_path_install+set}" = set; then
4144 INSTALL=$ac_cv_path_install
4145 else
4146 # As a last resort, use the slow shell script. Don't cache a
4147 # value for INSTALL within a source directory, because that will
4148 # break other packages using the cache if that directory is
4149 # removed, or if the value is a relative name.
4150 INSTALL=$ac_install_sh
4151 fi
7a197a62 4152fi
f11781c5
AK
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4154$as_echo "$INSTALL" >&6; }
7a197a62 4155
f11781c5
AK
4156# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4157# It thinks the first close brace ends the variable substitution.
4158test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4159
f11781c5 4160test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4161
f11781c5 4162test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4163
f11781c5
AK
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4165$as_echo_n "checking whether ln -s works... " >&6; }
4166LN_S=$as_ln_s
4167if test "$LN_S" = "ln -s"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4169$as_echo "yes" >&6; }
4170else
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4172$as_echo "no, using $LN_S" >&6; }
15d91f5a 4173fi
ad6254c5 4174
f11781c5
AK
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4176$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4177set x ${MAKE-make}
4178ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4179if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4180 $as_echo_n "(cached) " >&6
d0191583 4181else
f11781c5
AK
4182 cat >conftest.make <<\_ACEOF
4183SHELL = /bin/sh
4184all:
4185 @echo '@@@%%%=$(MAKE)=@@@%%%'
4186_ACEOF
4187# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4188case `${MAKE-make} -f conftest.make 2>/dev/null` in
4189 *@@@%%%=?*=@@@%%%*)
4190 eval ac_cv_prog_make_${ac_make}_set=yes;;
4191 *)
4192 eval ac_cv_prog_make_${ac_make}_set=no;;
4193esac
4194rm -f conftest.make
4195fi
4196if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4198$as_echo "yes" >&6; }
4199 SET_MAKE=
4200else
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202$as_echo "no" >&6; }
4203 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4204fi
4205
f11781c5
AK
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4207$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4208if test -z "$MKDIR_P"; then
4209 if test "${ac_cv_path_mkdir+set}" = set; then :
4210 $as_echo_n "(cached) " >&6
4211else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4214do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_prog in mkdir gmkdir; do
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4220 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4221 'mkdir (GNU coreutils) '* | \
4222 'mkdir (coreutils) '* | \
4223 'mkdir (fileutils) '4.1*)
4224 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4225 break 3;;
4226 esac
4227 done
4228 done
4229 done
4230IFS=$as_save_IFS
d0191583 4231
f11781c5 4232fi
ad6254c5 4233
f11781c5
AK
4234 test -d ./--version && rmdir ./--version
4235 if test "${ac_cv_path_mkdir+set}" = set; then
4236 MKDIR_P="$ac_cv_path_mkdir -p"
4237 else
4238 # As a last resort, use the slow shell script. Don't cache a
4239 # value for MKDIR_P within a source directory, because that will
4240 # break other packages using the cache if that directory is
4241 # removed, or if the value is a relative name.
4242 MKDIR_P="$ac_install_sh -d"
4243 fi
ad6254c5 4244fi
f11781c5
AK
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4246$as_echo "$MKDIR_P" >&6; }
7a197a62 4247
f11781c5
AK
4248if test -n "$ac_tool_prefix"; then
4249 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4250set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252$as_echo_n "checking for $ac_word... " >&6; }
4253if test "${ac_cv_prog_RANLIB+set}" = set; then :
4254 $as_echo_n "(cached) " >&6
4255else
4256 if test -n "$RANLIB"; then
4257 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4258else
4259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260for as_dir in $PATH
4261do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4266 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 break 2
4269 fi
4270done
4271 done
4272IFS=$as_save_IFS
d0191583 4273
f11781c5
AK
4274fi
4275fi
4276RANLIB=$ac_cv_prog_RANLIB
4277if test -n "$RANLIB"; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4279$as_echo "$RANLIB" >&6; }
d0191583 4280else
f11781c5
AK
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282$as_echo "no" >&6; }
ad6254c5 4283fi
ad6254c5 4284
8a2fc586 4285
d0191583 4286fi
f11781c5
AK
4287if test -z "$ac_cv_prog_RANLIB"; then
4288 ac_ct_RANLIB=$RANLIB
4289 # Extract the first word of "ranlib", so it can be a program name with args.
4290set dummy ranlib; ac_word=$2
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292$as_echo_n "checking for $ac_word... " >&6; }
4293if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4295else
4296 if test -n "$ac_ct_RANLIB"; then
4297 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4298else
4299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH
4301do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 ac_cv_prog_ac_ct_RANLIB="ranlib"
4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 break 2
4309 fi
4310done
4311 done
4312IFS=$as_save_IFS
8a2fc586 4313
f11781c5
AK
4314fi
4315fi
4316ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4317if test -n "$ac_ct_RANLIB"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4319$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4320else
f11781c5
AK
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322$as_echo "no" >&6; }
8fea97b7
ZK
4323fi
4324
f11781c5
AK
4325 if test "x$ac_ct_RANLIB" = x; then
4326 RANLIB=":"
4327 else
4328 case $cross_compiling:$ac_tool_warned in
4329yes:)
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4332ac_tool_warned=yes ;;
8fea97b7 4333esac
f11781c5
AK
4334 RANLIB=$ac_ct_RANLIB
4335 fi
d0191583 4336else
f11781c5 4337 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4338fi
8a2fc586 4339
f11781c5
AK
4340# Extract the first word of "cflow", so it can be a program name with args.
4341set dummy cflow; ac_word=$2
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343$as_echo_n "checking for $ac_word... " >&6; }
4344if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4346else
4347 case $CFLOW_CMD in
4348 [\\/]* | ?:[\\/]*)
4349 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4350 ;;
4351 *)
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH
4354do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4362 fi
4363done
4364 done
4365IFS=$as_save_IFS
8a2fc586 4366
f11781c5
AK
4367 ;;
4368esac
ad6254c5 4369fi
f11781c5
AK
4370CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4371if test -n "$CFLOW_CMD"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4373$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4374else
f11781c5
AK
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376$as_echo "no" >&6; }
37ddf259
AK
4377fi
4378
e2997b73 4379
f11781c5
AK
4380# Extract the first word of "cscope", so it can be a program name with args.
4381set dummy cscope; ac_word=$2
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4383$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4384if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4385 $as_echo_n "(cached) " >&6
4386else
f11781c5 4387 case $CSCOPE_CMD in
e2997b73 4388 [\\/]* | ?:[\\/]*)
f11781c5 4389 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4390 ;;
4391 *)
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
f11781c5 4397 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4399 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4401 break 2
4402 fi
4403done
f11781c5 4404 done
e2997b73
AK
4405IFS=$as_save_IFS
4406
4407 ;;
4408esac
4409fi
f11781c5
AK
4410CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4411if test -n "$CSCOPE_CMD"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4413$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4414else
f11781c5 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4416$as_echo "no" >&6; }
4417fi
f11781c5
AK
4418
4419
4420
4421################################################################################
4422ac_header_dirent=no
4423for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4424 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4426$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4427if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4428 $as_echo_n "(cached) " >&6
4429else
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431/* end confdefs.h. */
4432#include <sys/types.h>
4433#include <$ac_hdr>
4434
4435int
4436main ()
4437{
4438if ((DIR *) 0)
4439return 0;
4440 ;
4441 return 0;
4442}
4443_ACEOF
4444if ac_fn_c_try_compile "$LINENO"; then :
4445 eval "$as_ac_Header=yes"
4446else
4447 eval "$as_ac_Header=no"
4448fi
4449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450fi
4451eval ac_res=\$$as_ac_Header
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4453$as_echo "$ac_res" >&6; }
4454if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4455 cat >>confdefs.h <<_ACEOF
4456#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4457_ACEOF
4458
4459ac_header_dirent=$ac_hdr; break
4460fi
4461
4462done
4463# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4464if test $ac_header_dirent = dirent.h; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4466$as_echo_n "checking for library containing opendir... " >&6; }
4467if test "${ac_cv_search_opendir+set}" = set; then :
4468 $as_echo_n "(cached) " >&6
4469else
4470 ac_func_search_save_LIBS=$LIBS
4471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472/* end confdefs.h. */
4473
4474/* Override any GCC internal prototype to avoid an error.
4475 Use char because int might match the return type of a GCC
4476 builtin and then its argument prototype would still apply. */
4477#ifdef __cplusplus
4478extern "C"
4479#endif
4480char opendir ();
4481int
4482main ()
4483{
4484return opendir ();
4485 ;
4486 return 0;
4487}
4488_ACEOF
4489for ac_lib in '' dir; do
4490 if test -z "$ac_lib"; then
4491 ac_res="none required"
4492 else
4493 ac_res=-l$ac_lib
4494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4495 fi
4496 if ac_fn_c_try_link "$LINENO"; then :
4497 ac_cv_search_opendir=$ac_res
4498fi
4499rm -f core conftest.err conftest.$ac_objext \
4500 conftest$ac_exeext
4501 if test "${ac_cv_search_opendir+set}" = set; then :
4502 break
4503fi
4504done
4505if test "${ac_cv_search_opendir+set}" = set; then :
4506
4507else
4508 ac_cv_search_opendir=no
4509fi
4510rm conftest.$ac_ext
4511LIBS=$ac_func_search_save_LIBS
4512fi
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4514$as_echo "$ac_cv_search_opendir" >&6; }
4515ac_res=$ac_cv_search_opendir
4516if test "$ac_res" != no; then :
4517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4518
4519fi
f11781c5
AK
4520
4521else
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4523$as_echo_n "checking for library containing opendir... " >&6; }
4524if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4525 $as_echo_n "(cached) " >&6
4526else
f11781c5
AK
4527 ac_func_search_save_LIBS=$LIBS
4528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529/* end confdefs.h. */
e2997b73 4530
f11781c5
AK
4531/* Override any GCC internal prototype to avoid an error.
4532 Use char because int might match the return type of a GCC
4533 builtin and then its argument prototype would still apply. */
4534#ifdef __cplusplus
4535extern "C"
4536#endif
4537char opendir ();
4538int
4539main ()
4540{
4541return opendir ();
4542 ;
4543 return 0;
4544}
4545_ACEOF
4546for ac_lib in '' x; do
4547 if test -z "$ac_lib"; then
4548 ac_res="none required"
4549 else
4550 ac_res=-l$ac_lib
4551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4552 fi
4553 if ac_fn_c_try_link "$LINENO"; then :
4554 ac_cv_search_opendir=$ac_res
e2997b73 4555fi
f11781c5
AK
4556rm -f core conftest.err conftest.$ac_objext \
4557 conftest$ac_exeext
4558 if test "${ac_cv_search_opendir+set}" = set; then :
4559 break
e2997b73 4560fi
f11781c5
AK
4561done
4562if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4563
e2997b73 4564else
f11781c5
AK
4565 ac_cv_search_opendir=no
4566fi
4567rm conftest.$ac_ext
4568LIBS=$ac_func_search_save_LIBS
e2997b73 4569fi
f11781c5
AK
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4571$as_echo "$ac_cv_search_opendir" >&6; }
4572ac_res=$ac_cv_search_opendir
4573if test "$ac_res" != no; then :
4574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4575
4576fi
8c4e8a18 4577
e2997b73
AK
4578fi
4579
f11781c5
AK
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4581$as_echo_n "checking for ANSI C header files... " >&6; }
4582if test "${ac_cv_header_stdc+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584else
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586/* end confdefs.h. */
4587#include <stdlib.h>
4588#include <stdarg.h>
4589#include <string.h>
4590#include <float.h>
e2997b73 4591
f11781c5
AK
4592int
4593main ()
4594{
4595
4596 ;
4597 return 0;
4598}
4599_ACEOF
4600if ac_fn_c_try_compile "$LINENO"; then :
4601 ac_cv_header_stdc=yes
e2997b73 4602else
f11781c5 4603 ac_cv_header_stdc=no
e2997b73 4604fi
f11781c5
AK
4605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606
4607if test $ac_cv_header_stdc = yes; then
4608 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610/* end confdefs.h. */
4611#include <string.h>
4612
4613_ACEOF
4614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4615 $EGREP "memchr" >/dev/null 2>&1; then :
4616
e2997b73 4617else
f11781c5 4618 ac_cv_header_stdc=no
e2997b73 4619fi
f11781c5 4620rm -f conftest*
e2997b73 4621
f11781c5 4622fi
e2997b73 4623
f11781c5
AK
4624if test $ac_cv_header_stdc = yes; then
4625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627/* end confdefs.h. */
4628#include <stdlib.h>
e2997b73 4629
f11781c5
AK
4630_ACEOF
4631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4632 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4633
e2997b73 4634else
f11781c5 4635 ac_cv_header_stdc=no
e2997b73 4636fi
f11781c5 4637rm -f conftest*
e2997b73 4638
e2997b73 4639fi
90c80887 4640
f11781c5
AK
4641if test $ac_cv_header_stdc = yes; then
4642 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4643 if test "$cross_compiling" = yes; then :
4644 :
4645else
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647/* end confdefs.h. */
4648#include <ctype.h>
4649#include <stdlib.h>
4650#if ((' ' & 0x0FF) == 0x020)
4651# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4652# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4653#else
4654# define ISLOWER(c) \
4655 (('a' <= (c) && (c) <= 'i') \
4656 || ('j' <= (c) && (c) <= 'r') \
4657 || ('s' <= (c) && (c) <= 'z'))
4658# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4659#endif
4660
4661#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4662int
4663main ()
4664{
4665 int i;
4666 for (i = 0; i < 256; i++)
4667 if (XOR (islower (i), ISLOWER (i))
4668 || toupper (i) != TOUPPER (i))
4669 return 2;
4670 return 0;
4671}
4672_ACEOF
4673if ac_fn_c_try_run "$LINENO"; then :
90c80887 4674
90c80887 4675else
f11781c5 4676 ac_cv_header_stdc=no
90c80887 4677fi
f11781c5
AK
4678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4679 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4680fi
90c80887 4681
90c80887 4682fi
90c80887 4683fi
f11781c5
AK
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4685$as_echo "$ac_cv_header_stdc" >&6; }
4686if test $ac_cv_header_stdc = yes; then
90c80887 4687
f11781c5 4688$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4689
90c80887 4690fi
f11781c5
AK
4691
4692# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4693for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4694 inttypes.h stdint.h unistd.h
4695do :
4696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4697ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4698"
4699if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4700 cat >>confdefs.h <<_ACEOF
4701#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4702_ACEOF
4703
90c80887 4704fi
f11781c5
AK
4705
4706done
4707
4708
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4710$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4711if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4712 $as_echo_n "(cached) " >&6
4713else
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715/* end confdefs.h. */
4716#include <sys/types.h>
4717int
4718main ()
4719{
4720return makedev(0, 0);
4721 ;
4722 return 0;
4723}
4724_ACEOF
4725if ac_fn_c_try_link "$LINENO"; then :
4726 ac_cv_header_sys_types_h_makedev=yes
4727else
4728 ac_cv_header_sys_types_h_makedev=no
90c80887 4729fi
f11781c5
AK
4730rm -f core conftest.err conftest.$ac_objext \
4731 conftest$ac_exeext conftest.$ac_ext
4732
90c80887 4733fi
f11781c5
AK
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4735$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4736
4737if test $ac_cv_header_sys_types_h_makedev = no; then
4738ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4739if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4740
4741$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4742
a946372e 4743fi
e2997b73 4744
e2997b73 4745
a946372e 4746
f11781c5
AK
4747 if test $ac_cv_header_sys_mkdev_h = no; then
4748 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4749if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4750
4751$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4752
e2997b73 4753fi
a946372e 4754
a946372e 4755
f11781c5
AK
4756 fi
4757fi
4758
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4760$as_echo_n "checking for ANSI C header files... " >&6; }
4761if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4762 $as_echo_n "(cached) " >&6
4763else
f11781c5 4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4765/* end confdefs.h. */
f11781c5
AK
4766#include <stdlib.h>
4767#include <stdarg.h>
4768#include <string.h>
4769#include <float.h>
a946372e 4770
a946372e
AK
4771int
4772main ()
4773{
f11781c5 4774
a946372e
AK
4775 ;
4776 return 0;
4777}
4778_ACEOF
f11781c5
AK
4779if ac_fn_c_try_compile "$LINENO"; then :
4780 ac_cv_header_stdc=yes
e2997b73 4781else
f11781c5
AK
4782 ac_cv_header_stdc=no
4783fi
4784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785
4786if test $ac_cv_header_stdc = yes; then
4787 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789/* end confdefs.h. */
4790#include <string.h>
4791
4792_ACEOF
4793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4794 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4795
f11781c5
AK
4796else
4797 ac_cv_header_stdc=no
a946372e 4798fi
f11781c5 4799rm -f conftest*
e2997b73 4800
a946372e 4801fi
e2997b73 4802
f11781c5
AK
4803if test $ac_cv_header_stdc = yes; then
4804 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806/* end confdefs.h. */
4807#include <stdlib.h>
4808
4809_ACEOF
4810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4811 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4812
e2997b73 4813else
f11781c5 4814 ac_cv_header_stdc=no
e2997b73 4815fi
f11781c5 4816rm -f conftest*
e2997b73 4817
f11781c5 4818fi
a946372e 4819
f11781c5
AK
4820if test $ac_cv_header_stdc = yes; then
4821 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4822 if test "$cross_compiling" = yes; then :
4823 :
4824else
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826/* end confdefs.h. */
4827#include <ctype.h>
4828#include <stdlib.h>
4829#if ((' ' & 0x0FF) == 0x020)
4830# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4831# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4832#else
4833# define ISLOWER(c) \
4834 (('a' <= (c) && (c) <= 'i') \
4835 || ('j' <= (c) && (c) <= 'r') \
4836 || ('s' <= (c) && (c) <= 'z'))
4837# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4838#endif
e2997b73 4839
f11781c5
AK
4840#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4841int
4842main ()
4843{
4844 int i;
4845 for (i = 0; i < 256; i++)
4846 if (XOR (islower (i), ISLOWER (i))
4847 || toupper (i) != TOUPPER (i))
4848 return 2;
4849 return 0;
4850}
4851_ACEOF
4852if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4853
e2997b73 4854else
f11781c5 4855 ac_cv_header_stdc=no
e2997b73 4856fi
f11781c5
AK
4857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4858 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4859fi
f11781c5 4860
e2997b73 4861fi
e2997b73 4862fi
f11781c5
AK
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4864$as_echo "$ac_cv_header_stdc" >&6; }
4865if test $ac_cv_header_stdc = yes; then
e2997b73 4866
f11781c5 4867$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4868
f11781c5 4869fi
e2997b73 4870
f11781c5
AK
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4872$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4873if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
4875else
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877/* end confdefs.h. */
4878#include <sys/types.h>
4879#include <sys/wait.h>
4880#ifndef WEXITSTATUS
4881# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4882#endif
4883#ifndef WIFEXITED
4884# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4885#endif
e2997b73 4886
f11781c5
AK
4887int
4888main ()
4889{
4890 int s;
4891 wait (&s);
4892 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4893 ;
4894 return 0;
4895}
4896_ACEOF
4897if ac_fn_c_try_compile "$LINENO"; then :
4898 ac_cv_header_sys_wait_h=yes
e2997b73 4899else
f11781c5 4900 ac_cv_header_sys_wait_h=no
e2997b73 4901fi
f11781c5
AK
4902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903fi
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4905$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4906if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4907
f11781c5 4908$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4909
d0191583 4910fi
f11781c5
AK
4911
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4913$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4914if test "${ac_cv_header_time+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
fc54be10 4916else
f11781c5 4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4918/* end confdefs.h. */
f11781c5
AK
4919#include <sys/types.h>
4920#include <sys/time.h>
4921#include <time.h>
4922
4923int
4924main ()
4925{
4926if ((struct tm *) 0)
4927return 0;
4928 ;
4929 return 0;
4930}
a946372e 4931_ACEOF
f11781c5
AK
4932if ac_fn_c_try_compile "$LINENO"; then :
4933 ac_cv_header_time=yes
a946372e 4934else
f11781c5
AK
4935 ac_cv_header_time=no
4936fi
4937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938fi
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4940$as_echo "$ac_cv_header_time" >&6; }
4941if test $ac_cv_header_time = yes; then
4942
4943$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4944
4945fi
4946
4947
4948for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4949 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4950 sys/wait.h time.h
4951do :
4952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4953ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4954if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4955 cat >>confdefs.h <<_ACEOF
4956#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4957_ACEOF
d0191583 4958
f11781c5
AK
4959else
4960 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4961fi
4962
f11781c5 4963done
fddafd51 4964
f11781c5
AK
4965
4966case "$host_os" in
4967 linux*)
4968 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4969do :
4970 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4971ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4972if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4973 cat >>confdefs.h <<_ACEOF
4974#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a946372e 4975_ACEOF
a946372e 4976
f11781c5
AK
4977else
4978 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
4979fi
4980
f11781c5
AK
4981done
4982 ;;
4983 darwin*)
4984 for ac_header in machine/endian.h sys/disk.h
4985do :
4986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4987ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4988if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4989 cat >>confdefs.h <<_ACEOF
4990#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4991_ACEOF
a946372e 4992
f11781c5
AK
4993else
4994 as_fn_error $? "bailing out" "$LINENO" 5
4995fi
a946372e 4996
f11781c5
AK
4997done
4998 ;;
a946372e 4999esac
f11781c5
AK
5000
5001for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5002 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5003 sys/types.h unistd.h
5004do :
5005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5006ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5007if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5008 cat >>confdefs.h <<_ACEOF
5009#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5010_ACEOF
5011
a946372e 5012else
f11781c5 5013 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5014fi
a946372e 5015
f11781c5
AK
5016done
5017
5018for ac_header in termios.h sys/statvfs.h
5019do :
5020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5021ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5022if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
5023 cat >>confdefs.h <<_ACEOF
5024#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5025_ACEOF
5026
a946372e
AK
5027fi
5028
5029done
5030
a946372e 5031
f11781c5
AK
5032################################################################################
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5034$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5035if test "${ac_cv_c_const+set}" = set; then :
a946372e 5036 $as_echo_n "(cached) " >&6
a946372e 5037else
f11781c5 5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5039/* end confdefs.h. */
a946372e 5040
f11781c5
AK
5041int
5042main ()
5043{
5044/* FIXME: Include the comments suggested by Paul. */
5045#ifndef __cplusplus
5046 /* Ultrix mips cc rejects this. */
5047 typedef int charset[2];
5048 const charset cs;
5049 /* SunOS 4.1.1 cc rejects this. */
5050 char const *const *pcpcc;
5051 char **ppc;
5052 /* NEC SVR4.0.2 mips cc rejects this. */
5053 struct point {int x, y;};
5054 static struct point const zero = {0,0};
5055 /* AIX XL C 1.02.0.0 rejects this.
5056 It does not let you subtract one const X* pointer from another in
5057 an arm of an if-expression whose if-part is not a constant
5058 expression */
5059 const char *g = "string";
5060 pcpcc = &g + (g ? g-g : 0);
5061 /* HPUX 7.0 cc rejects these. */
5062 ++pcpcc;
5063 ppc = (char**) pcpcc;
5064 pcpcc = (char const *const *) ppc;
5065 { /* SCO 3.2v4 cc rejects this. */
5066 char *t;
5067 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5068
f11781c5
AK
5069 *t++ = 0;
5070 if (s) return 0;
5071 }
5072 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5073 int x[] = {25, 17};
5074 const int *foo = &x[0];
5075 ++foo;
5076 }
5077 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5078 typedef const int *iptr;
5079 iptr p = 0;
5080 ++p;
5081 }
5082 { /* AIX XL C 1.02.0.0 rejects this saying
5083 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5084 struct s { int j; const int *ap[3]; };
5085 struct s *b; b->j = 5;
5086 }
5087 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5088 const int foo = 10;
5089 if (!foo) return 0;
5090 }
5091 return !cs[0] && !zero.x;
5092#endif
a946372e 5093
f11781c5
AK
5094 ;
5095 return 0;
5096}
a946372e 5097_ACEOF
f11781c5
AK
5098if ac_fn_c_try_compile "$LINENO"; then :
5099 ac_cv_c_const=yes
a946372e 5100else
f11781c5
AK
5101 ac_cv_c_const=no
5102fi
5103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5104fi
f11781c5
AK
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5106$as_echo "$ac_cv_c_const" >&6; }
5107if test $ac_cv_c_const = no; then
a946372e 5108
f11781c5 5109$as_echo "#define const /**/" >>confdefs.h
a946372e 5110
f11781c5 5111fi
a946372e 5112
f11781c5
AK
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5114$as_echo_n "checking for inline... " >&6; }
5115if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5116 $as_echo_n "(cached) " >&6
5117else
f11781c5
AK
5118 ac_cv_c_inline=no
5119for ac_kw in inline __inline__ __inline; do
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121/* end confdefs.h. */
5122#ifndef __cplusplus
5123typedef int foo_t;
5124static $ac_kw foo_t static_foo () {return 0; }
5125$ac_kw foo_t foo () {return 0; }
5126#endif
5127
5128_ACEOF
5129if ac_fn_c_try_compile "$LINENO"; then :
5130 ac_cv_c_inline=$ac_kw
a946372e 5131fi
f11781c5
AK
5132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133 test "$ac_cv_c_inline" != no && break
5134done
a946372e
AK
5135
5136fi
f11781c5
AK
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5138$as_echo "$ac_cv_c_inline" >&6; }
5139
5140case $ac_cv_c_inline in
5141 inline | yes) ;;
5142 *)
5143 case $ac_cv_c_inline in
5144 no) ac_val=;;
5145 *) ac_val=$ac_cv_c_inline;;
5146 esac
5147 cat >>confdefs.h <<_ACEOF
5148#ifndef __cplusplus
5149#define inline $ac_val
5150#endif
5151_ACEOF
5152 ;;
5153esac
5154
5155ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5156if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5157
5158cat >>confdefs.h <<_ACEOF
5159#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5160_ACEOF
5161
f11781c5 5162
a946372e
AK
5163fi
5164
f11781c5
AK
5165ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5166if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5167
a946372e 5168else
f11781c5
AK
5169
5170cat >>confdefs.h <<_ACEOF
5171#define off_t long int
5172_ACEOF
5173
a946372e
AK
5174fi
5175
f11781c5
AK
5176ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5177if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5178
a946372e 5179else
f11781c5
AK
5180
5181cat >>confdefs.h <<_ACEOF
5182#define pid_t int
5183_ACEOF
5184
5185fi
5186
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5188$as_echo_n "checking return type of signal handlers... " >&6; }
5189if test "${ac_cv_type_signal+set}" = set; then :
5190 $as_echo_n "(cached) " >&6
a946372e 5191else
f11781c5
AK
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193/* end confdefs.h. */
5194#include <sys/types.h>
5195#include <signal.h>
5196
5197int
5198main ()
5199{
5200return *(signal (0, 0)) (0) == 1;
5201 ;
5202 return 0;
5203}
5204_ACEOF
5205if ac_fn_c_try_compile "$LINENO"; then :
5206 ac_cv_type_signal=int
5207else
5208 ac_cv_type_signal=void
a946372e 5209fi
f11781c5 5210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5211fi
f11781c5
AK
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5213$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5214
f11781c5
AK
5215cat >>confdefs.h <<_ACEOF
5216#define RETSIGTYPE $ac_cv_type_signal
5217_ACEOF
a946372e
AK
5218
5219
f11781c5
AK
5220ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5221if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5222
a946372e 5223else
a946372e 5224
f11781c5
AK
5225cat >>confdefs.h <<_ACEOF
5226#define size_t unsigned int
5227_ACEOF
a946372e 5228
a946372e 5229fi
f11781c5
AK
5230
5231ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5232if test "x$ac_cv_type_mode_t" = x""yes; then :
5233
a946372e 5234else
f11781c5
AK
5235
5236cat >>confdefs.h <<_ACEOF
5237#define mode_t int
a946372e 5238_ACEOF
a946372e 5239
a946372e
AK
5240fi
5241
f11781c5
AK
5242ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5243case $ac_cv_c_int8_t in #(
5244 no|yes) ;; #(
5245 *)
a946372e 5246
f11781c5
AK
5247cat >>confdefs.h <<_ACEOF
5248#define int8_t $ac_cv_c_int8_t
a946372e 5249_ACEOF
f11781c5 5250;;
a946372e 5251esac
a946372e 5252
f11781c5
AK
5253ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5254case $ac_cv_c_int16_t in #(
5255 no|yes) ;; #(
5256 *)
a946372e 5257
f11781c5
AK
5258cat >>confdefs.h <<_ACEOF
5259#define int16_t $ac_cv_c_int16_t
5260_ACEOF
5261;;
5262esac
a946372e 5263
f11781c5
AK
5264ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5265case $ac_cv_c_int32_t in #(
5266 no|yes) ;; #(
5267 *)
a946372e 5268
f11781c5
AK
5269cat >>confdefs.h <<_ACEOF
5270#define int32_t $ac_cv_c_int32_t
5271_ACEOF
5272;;
a946372e 5273esac
a946372e 5274
f11781c5
AK
5275ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5276case $ac_cv_c_int64_t in #(
5277 no|yes) ;; #(
5278 *)
5279
5280cat >>confdefs.h <<_ACEOF
5281#define int64_t $ac_cv_c_int64_t
a946372e 5282_ACEOF
f11781c5
AK
5283;;
5284esac
5285
5286ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5287if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5288
5289else
a946372e 5290
f11781c5
AK
5291cat >>confdefs.h <<_ACEOF
5292#define ssize_t int
5293_ACEOF
a946372e 5294
f11781c5 5295fi
a946372e 5296
f11781c5
AK
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5298$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5299if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5300 $as_echo_n "(cached) " >&6
a946372e 5301else
f11781c5 5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5303/* end confdefs.h. */
f11781c5
AK
5304#include <sys/types.h>
5305
a946372e 5306_ACEOF
f11781c5
AK
5307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5308 $EGREP "uid_t" >/dev/null 2>&1; then :
5309 ac_cv_type_uid_t=yes
a946372e 5310else
f11781c5
AK
5311 ac_cv_type_uid_t=no
5312fi
5313rm -f conftest*
a946372e 5314
a946372e 5315fi
f11781c5
AK
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5317$as_echo "$ac_cv_type_uid_t" >&6; }
5318if test $ac_cv_type_uid_t = no; then
a946372e 5319
f11781c5 5320$as_echo "#define uid_t int" >>confdefs.h
a946372e 5321
f11781c5
AK
5322
5323$as_echo "#define gid_t int" >>confdefs.h
5324
5325fi
5326
5327ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5328case $ac_cv_c_uint8_t in #(
5329 no|yes) ;; #(
5330 *)
5331
5332$as_echo "#define _UINT8_T 1" >>confdefs.h
5333
5334
5335cat >>confdefs.h <<_ACEOF
5336#define uint8_t $ac_cv_c_uint8_t
a946372e 5337_ACEOF
f11781c5
AK
5338;;
5339 esac
5340
5341ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5342case $ac_cv_c_uint16_t in #(
5343 no|yes) ;; #(
5344 *)
5345
5346
5347cat >>confdefs.h <<_ACEOF
5348#define uint16_t $ac_cv_c_uint16_t
a946372e 5349_ACEOF
f11781c5
AK
5350;;
5351 esac
a946372e 5352
f11781c5
AK
5353ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5354case $ac_cv_c_uint32_t in #(
5355 no|yes) ;; #(
5356 *)
a946372e 5357
f11781c5 5358$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5359
a946372e 5360
f11781c5
AK
5361cat >>confdefs.h <<_ACEOF
5362#define uint32_t $ac_cv_c_uint32_t
5363_ACEOF
5364;;
5365 esac
5366
5367ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5368case $ac_cv_c_uint64_t in #(
5369 no|yes) ;; #(
5370 *)
5371
5372$as_echo "#define _UINT64_T 1" >>confdefs.h
5373
5374
5375cat >>confdefs.h <<_ACEOF
5376#define uint64_t $ac_cv_c_uint64_t
5377_ACEOF
5378;;
5379 esac
5380
5381ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5382if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5383
5384cat >>confdefs.h <<_ACEOF
5385#define HAVE_STRUCT_STAT_ST_RDEV 1
5386_ACEOF
5387
5388
5389fi
5390
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5392$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5393if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5394 $as_echo_n "(cached) " >&6
5395else
f11781c5
AK
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h. */
5398#include <sys/types.h>
5399#include <time.h>
5400
5401int
5402main ()
5403{
5404struct tm tm;
5405 int *p = &tm.tm_sec;
5406 return !p;
5407 ;
5408 return 0;
5409}
5410_ACEOF
5411if ac_fn_c_try_compile "$LINENO"; then :
5412 ac_cv_struct_tm=time.h
5413else
5414 ac_cv_struct_tm=sys/time.h
a946372e 5415fi
f11781c5
AK
5416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417fi
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5419$as_echo "$ac_cv_struct_tm" >&6; }
5420if test $ac_cv_struct_tm = sys/time.h; then
5421
5422$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5423
5424fi
f11781c5
AK
5425
5426
5427################################################################################
5428for ac_func in ftruncate gethostname getpagesize \
5429 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5430 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5431 strstr strtol strtoul uname
5432do :
5433 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5434ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5435if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5436 cat >>confdefs.h <<_ACEOF
f11781c5 5437#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5438_ACEOF
5439
5440else
f11781c5 5441 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5442fi
a946372e
AK
5443done
5444
f11781c5
AK
5445for ac_func in siginterrupt
5446do :
5447 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5448if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5449 cat >>confdefs.h <<_ACEOF
5450#define HAVE_SIGINTERRUPT 1
5451_ACEOF
a946372e 5452
f11781c5
AK
5453fi
5454done
a946372e 5455
f11781c5
AK
5456# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5457# for constant arguments. Useless!
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5459$as_echo_n "checking for working alloca.h... " >&6; }
5460if test "${ac_cv_working_alloca_h+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
a946372e 5462else
f11781c5
AK
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464/* end confdefs.h. */
5465#include <alloca.h>
5466int
5467main ()
5468{
5469char *p = (char *) alloca (2 * sizeof (int));
5470 if (p) return 0;
5471 ;
5472 return 0;
5473}
5474_ACEOF
5475if ac_fn_c_try_link "$LINENO"; then :
5476 ac_cv_working_alloca_h=yes
a946372e 5477else
f11781c5 5478 ac_cv_working_alloca_h=no
a946372e 5479fi
f11781c5
AK
5480rm -f core conftest.err conftest.$ac_objext \
5481 conftest$ac_exeext conftest.$ac_ext
a946372e 5482fi
f11781c5
AK
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5484$as_echo "$ac_cv_working_alloca_h" >&6; }
5485if test $ac_cv_working_alloca_h = yes; then
a946372e 5486
f11781c5 5487$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5488
a946372e 5489fi
a946372e 5490
f11781c5
AK
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5492$as_echo_n "checking for alloca... " >&6; }
5493if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5494 $as_echo_n "(cached) " >&6
a946372e 5495else
f11781c5 5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5497/* end confdefs.h. */
f11781c5
AK
5498#ifdef __GNUC__
5499# define alloca __builtin_alloca
5500#else
5501# ifdef _MSC_VER
5502# include <malloc.h>
5503# define alloca _alloca
5504# else
5505# ifdef HAVE_ALLOCA_H
5506# include <alloca.h>
5507# else
5508# ifdef _AIX
5509 #pragma alloca
5510# else
5511# ifndef alloca /* predefined by HP cc +Olibcalls */
5512char *alloca ();
5513# endif
5514# endif
5515# endif
5516# endif
5517#endif
a946372e 5518
f11781c5
AK
5519int
5520main ()
5521{
5522char *p = (char *) alloca (1);
5523 if (p) return 0;
5524 ;
5525 return 0;
5526}
a946372e 5527_ACEOF
f11781c5
AK
5528if ac_fn_c_try_link "$LINENO"; then :
5529 ac_cv_func_alloca_works=yes
a946372e 5530else
f11781c5 5531 ac_cv_func_alloca_works=no
a946372e 5532fi
f11781c5
AK
5533rm -f core conftest.err conftest.$ac_objext \
5534 conftest$ac_exeext conftest.$ac_ext
5535fi
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5537$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5538
f11781c5 5539if test $ac_cv_func_alloca_works = yes; then
a946372e 5540
f11781c5 5541$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5542
a946372e 5543else
f11781c5
AK
5544 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5545# that cause trouble. Some versions do not even contain alloca or
5546# contain a buggy version. If you still want to use their alloca,
5547# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5548
f11781c5 5549ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5550
f11781c5 5551$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5552
a946372e 5553
f11781c5
AK
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5555$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5556if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5557 $as_echo_n "(cached) " >&6
a946372e 5558else
f11781c5 5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5560/* end confdefs.h. */
f11781c5
AK
5561#if defined CRAY && ! defined CRAY2
5562webecray
5563#else
5564wenotbecray
5565#endif
5566
a946372e 5567_ACEOF
f11781c5
AK
5568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5569 $EGREP "webecray" >/dev/null 2>&1; then :
5570 ac_cv_os_cray=yes
a946372e 5571else
f11781c5 5572 ac_cv_os_cray=no
a946372e 5573fi
f11781c5 5574rm -f conftest*
a946372e 5575
f11781c5
AK
5576fi
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5578$as_echo "$ac_cv_os_cray" >&6; }
5579if test $ac_cv_os_cray = yes; then
5580 for ac_func in _getb67 GETB67 getb67; do
5581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5582ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5583if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5584
f11781c5
AK
5585cat >>confdefs.h <<_ACEOF
5586#define CRAY_STACKSEG_END $ac_func
a946372e 5587_ACEOF
a946372e 5588
f11781c5 5589 break
a946372e
AK
5590fi
5591
f11781c5
AK
5592 done
5593fi
a946372e 5594
f11781c5
AK
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5596$as_echo_n "checking stack direction for C alloca... " >&6; }
5597if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5598 $as_echo_n "(cached) " >&6
5599else
f11781c5
AK
5600 if test "$cross_compiling" = yes; then :
5601 ac_cv_c_stack_direction=0
5602else
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604/* end confdefs.h. */
5605$ac_includes_default
5606int
5607find_stack_direction ()
5608{
5609 static char *addr = 0;
5610 auto char dummy;
5611 if (addr == 0)
5612 {
5613 addr = &dummy;
5614 return find_stack_direction ();
5615 }
5616 else
5617 return (&dummy > addr) ? 1 : -1;
5618}
5619
5620int
5621main ()
5622{
5623 return find_stack_direction () < 0;
5624}
5625_ACEOF
5626if ac_fn_c_try_run "$LINENO"; then :
5627 ac_cv_c_stack_direction=1
5628else
5629 ac_cv_c_stack_direction=-1
5630fi
5631rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5632 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5633fi
a946372e
AK
5634
5635fi
f11781c5
AK
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5637$as_echo "$ac_cv_c_stack_direction" >&6; }
5638cat >>confdefs.h <<_ACEOF
5639#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5640_ACEOF
5641
f11781c5 5642
a946372e
AK
5643fi
5644
f11781c5
AK
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5646$as_echo_n "checking whether closedir returns void... " >&6; }
5647if test "${ac_cv_func_closedir_void+set}" = set; then :
5648 $as_echo_n "(cached) " >&6
5649else
5650 if test "$cross_compiling" = yes; then :
5651 ac_cv_func_closedir_void=yes
5652else
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654/* end confdefs.h. */
5655$ac_includes_default
5656#include <$ac_header_dirent>
5657#ifndef __cplusplus
5658int closedir ();
5659#endif
a946372e 5660
f11781c5
AK
5661int
5662main ()
5663{
5664return closedir (opendir (".")) != 0;
5665 ;
5666 return 0;
5667}
5668_ACEOF
5669if ac_fn_c_try_run "$LINENO"; then :
5670 ac_cv_func_closedir_void=no
a946372e 5671else
f11781c5 5672 ac_cv_func_closedir_void=yes
a946372e 5673fi
f11781c5
AK
5674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5675 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5676fi
5677
f11781c5
AK
5678fi
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5680$as_echo "$ac_cv_func_closedir_void" >&6; }
5681if test $ac_cv_func_closedir_void = yes; then
a946372e 5682
f11781c5 5683$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5684
a946372e
AK
5685fi
5686
f11781c5
AK
5687for ac_header in unistd.h
5688do :
5689 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5690if test "x$ac_cv_header_unistd_h" = x""yes; then :
5691 cat >>confdefs.h <<_ACEOF
5692#define HAVE_UNISTD_H 1
5693_ACEOF
a946372e 5694
f11781c5 5695fi
a946372e 5696
f11781c5 5697done
a946372e 5698
f11781c5
AK
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5700$as_echo_n "checking for working chown... " >&6; }
5701if test "${ac_cv_func_chown_works+set}" = set; then :
5702 $as_echo_n "(cached) " >&6
a946372e 5703else
f11781c5
AK
5704 if test "$cross_compiling" = yes; then :
5705 ac_cv_func_chown_works=no
a946372e 5706else
f11781c5
AK
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708/* end confdefs.h. */
5709$ac_includes_default
5710#include <fcntl.h>
a946372e 5711
f11781c5
AK
5712int
5713main ()
5714{
5715 char *f = "conftest.chown";
5716 struct stat before, after;
a946372e 5717
f11781c5
AK
5718 if (creat (f, 0600) < 0)
5719 return 1;
5720 if (stat (f, &before) < 0)
5721 return 1;
5722 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5723 return 1;
5724 if (stat (f, &after) < 0)
5725 return 1;
5726 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5727
f11781c5
AK
5728 ;
5729 return 0;
5730}
5731_ACEOF
5732if ac_fn_c_try_run "$LINENO"; then :
5733 ac_cv_func_chown_works=yes
a946372e 5734else
f11781c5 5735 ac_cv_func_chown_works=no
a946372e 5736fi
f11781c5
AK
5737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5738 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5739fi
5740
f11781c5 5741rm -f conftest.chown
a946372e 5742
f11781c5
AK
5743fi
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5745$as_echo "$ac_cv_func_chown_works" >&6; }
5746if test $ac_cv_func_chown_works = yes; then
a946372e 5747
f11781c5 5748$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5749
a946372e 5750fi
a946372e 5751
f11781c5
AK
5752for ac_header in vfork.h
5753do :
5754 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5755if test "x$ac_cv_header_vfork_h" = x""yes; then :
5756 cat >>confdefs.h <<_ACEOF
5757#define HAVE_VFORK_H 1
5758_ACEOF
a946372e 5759
f11781c5 5760fi
a946372e 5761
f11781c5 5762done
a946372e 5763
f11781c5
AK
5764for ac_func in fork vfork
5765do :
5766 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5767ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5768if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5769 cat >>confdefs.h <<_ACEOF
5770#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5771_ACEOF
a946372e 5772
f11781c5
AK
5773fi
5774done
a946372e 5775
f11781c5
AK
5776if test "x$ac_cv_func_fork" = xyes; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5778$as_echo_n "checking for working fork... " >&6; }
5779if test "${ac_cv_func_fork_works+set}" = set; then :
5780 $as_echo_n "(cached) " >&6
5781else
5782 if test "$cross_compiling" = yes; then :
5783 ac_cv_func_fork_works=cross
5784else
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786/* end confdefs.h. */
5787$ac_includes_default
5788int
5789main ()
5790{
a946372e 5791
f11781c5
AK
5792 /* By Ruediger Kuhlmann. */
5793 return fork () < 0;
a946372e 5794
f11781c5
AK
5795 ;
5796 return 0;
5797}
5798_ACEOF
5799if ac_fn_c_try_run "$LINENO"; then :
5800 ac_cv_func_fork_works=yes
a946372e 5801else
f11781c5
AK
5802 ac_cv_func_fork_works=no
5803fi
5804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5805 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5806fi
a946372e 5807
f11781c5
AK
5808fi
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5810$as_echo "$ac_cv_func_fork_works" >&6; }
5811
a946372e 5812else
f11781c5 5813 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5814fi
f11781c5
AK
5815if test "x$ac_cv_func_fork_works" = xcross; then
5816 case $host in
5817 *-*-amigaos* | *-*-msdosdjgpp*)
5818 # Override, as these systems have only a dummy fork() stub
5819 ac_cv_func_fork_works=no
5820 ;;
5821 *)
5822 ac_cv_func_fork_works=yes
5823 ;;
5824 esac
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5826$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5827fi
f11781c5
AK
5828ac_cv_func_vfork_works=$ac_cv_func_vfork
5829if test "x$ac_cv_func_vfork" = xyes; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5831$as_echo_n "checking for working vfork... " >&6; }
5832if test "${ac_cv_func_vfork_works+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834else
5835 if test "$cross_compiling" = yes; then :
5836 ac_cv_func_vfork_works=cross
5837else
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839/* end confdefs.h. */
5840/* Thanks to Paul Eggert for this test. */
5841$ac_includes_default
5842#include <sys/wait.h>
5843#ifdef HAVE_VFORK_H
5844# include <vfork.h>
5845#endif
5846/* On some sparc systems, changes by the child to local and incoming
5847 argument registers are propagated back to the parent. The compiler
5848 is told about this with #include <vfork.h>, but some compilers
5849 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5850 static variable whose address is put into a register that is
5851 clobbered by the vfork. */
5852static void
5853#ifdef __cplusplus
5854sparc_address_test (int arg)
5855# else
5856sparc_address_test (arg) int arg;
5857#endif
5858{
5859 static pid_t child;
5860 if (!child) {
5861 child = vfork ();
5862 if (child < 0) {
5863 perror ("vfork");
5864 _exit(2);
5865 }
5866 if (!child) {
5867 arg = getpid();
5868 write(-1, "", 0);
5869 _exit (arg);
5870 }
5871 }
5872}
a946372e 5873
f11781c5
AK
5874int
5875main ()
5876{
5877 pid_t parent = getpid ();
5878 pid_t child;
a946372e 5879
f11781c5 5880 sparc_address_test (0);
a946372e 5881
f11781c5 5882 child = vfork ();
a946372e 5883
f11781c5
AK
5884 if (child == 0) {
5885 /* Here is another test for sparc vfork register problems. This
5886 test uses lots of local variables, at least as many local
5887 variables as main has allocated so far including compiler
5888 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5889 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5890 reuse the register of parent for one of the local variables,
5891 since it will think that parent can't possibly be used any more
5892 in this routine. Assigning to the local variable will thus
5893 munge parent in the parent process. */
5894 pid_t
5895 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5896 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5897 /* Convince the compiler that p..p7 are live; otherwise, it might
5898 use the same hardware register for all 8 local variables. */
5899 if (p != p1 || p != p2 || p != p3 || p != p4
5900 || p != p5 || p != p6 || p != p7)
5901 _exit(1);
a946372e 5902
f11781c5
AK
5903 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5904 from child file descriptors. If the child closes a descriptor
5905 before it execs or exits, this munges the parent's descriptor
5906 as well. Test for this by closing stdout in the child. */
5907 _exit(close(fileno(stdout)) != 0);
5908 } else {
5909 int status;
5910 struct stat st;
5911
5912 while (wait(&status) != child)
5913 ;
5914 return (
5915 /* Was there some problem with vforking? */
5916 child < 0
5917
5918 /* Did the child fail? (This shouldn't happen.) */
5919 || status
5920
5921 /* Did the vfork/compiler bug occur? */
5922 || parent != getpid()
5923
5924 /* Did the file descriptor bug occur? */
5925 || fstat(fileno(stdout), &st) != 0
5926 );
5927 }
5928}
5929_ACEOF
5930if ac_fn_c_try_run "$LINENO"; then :
5931 ac_cv_func_vfork_works=yes
a946372e 5932else
f11781c5 5933 ac_cv_func_vfork_works=no
a946372e 5934fi
f11781c5
AK
5935rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5936 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5937fi
f11781c5 5938
a946372e 5939fi
f11781c5
AK
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5941$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5942
f11781c5
AK
5943fi;
5944if test "x$ac_cv_func_fork_works" = xcross; then
5945 ac_cv_func_vfork_works=$ac_cv_func_vfork
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5947$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5948fi
a946372e 5949
f11781c5 5950if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5951
f11781c5 5952$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5953
a946372e 5954else
a946372e 5955
f11781c5
AK
5956$as_echo "#define vfork fork" >>confdefs.h
5957
a946372e 5958fi
f11781c5 5959if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5960
f11781c5 5961$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5962
a946372e 5963fi
f11781c5
AK
5964
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5966$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5967if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5968 $as_echo_n "(cached) " >&6
a946372e 5969else
f11781c5
AK
5970 rm -f conftest.sym conftest.file
5971echo >conftest.file
5972if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5973 if test "$cross_compiling" = yes; then :
5974 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5975else
f11781c5 5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5977/* end confdefs.h. */
f11781c5
AK
5978$ac_includes_default
5979int
5980main ()
5981{
5982struct stat sbuf;
5983 /* Linux will dereference the symlink and fail, as required by POSIX.
5984 That is better in the sense that it means we will not
5985 have to compile and use the lstat wrapper. */
5986 return lstat ("conftest.sym/", &sbuf) == 0;
5987 ;
5988 return 0;
5989}
a946372e 5990_ACEOF
f11781c5
AK
5991if ac_fn_c_try_run "$LINENO"; then :
5992 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 5993else
f11781c5 5994 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5995fi
f11781c5
AK
5996rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5997 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5998fi
a946372e 5999
a946372e 6000else
f11781c5
AK
6001 # If the `ln -s' command failed, then we probably don't even
6002 # have an lstat function.
6003 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 6004fi
f11781c5 6005rm -f conftest.sym conftest.file
a946372e 6006
f11781c5
AK
6007fi
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6009$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 6010
f11781c5 6011test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 6012
f11781c5
AK
6013cat >>confdefs.h <<_ACEOF
6014#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6015_ACEOF
a946372e 6016
a946372e 6017
f11781c5
AK
6018if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6019 case " $LIBOBJS " in
6020 *" lstat.$ac_objext "* ) ;;
6021 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6022 ;;
6023esac
a946372e 6024
f11781c5 6025fi
a946372e 6026
f11781c5
AK
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6028$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6029if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
a946372e 6031else
f11781c5
AK
6032 if test "$cross_compiling" = yes; then :
6033 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6034else
f11781c5
AK
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036/* end confdefs.h. */
6037$ac_includes_default
6038int
6039main ()
6040{
6041struct stat sbuf;
6042 return lstat ("", &sbuf) == 0;
6043 ;
6044 return 0;
6045}
6046_ACEOF
6047if ac_fn_c_try_run "$LINENO"; then :
6048 ac_cv_func_lstat_empty_string_bug=no
6049else
6050 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6051fi
f11781c5
AK
6052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6053 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6054fi
6055
f11781c5
AK
6056fi
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6058$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6059if test $ac_cv_func_lstat_empty_string_bug = yes; then
6060 case " $LIBOBJS " in
6061 *" lstat.$ac_objext "* ) ;;
6062 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6063 ;;
6064esac
a946372e
AK
6065
6066
f11781c5
AK
6067cat >>confdefs.h <<_ACEOF
6068#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6069_ACEOF
a946372e 6070
a946372e 6071fi
a946372e 6072
f11781c5
AK
6073for ac_header in stdlib.h
6074do :
6075 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6076if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6077 cat >>confdefs.h <<_ACEOF
6078#define HAVE_STDLIB_H 1
6079_ACEOF
6080
a946372e
AK
6081fi
6082
f11781c5 6083done
a946372e 6084
f11781c5
AK
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6086$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6087if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6088 $as_echo_n "(cached) " >&6
6089else
6090 if test "$cross_compiling" = yes; then :
6091 ac_cv_func_malloc_0_nonnull=no
6092else
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094/* end confdefs.h. */
6095#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6096# include <stdlib.h>
6097#else
6098char *malloc ();
6099#endif
a946372e 6100
f11781c5
AK
6101int
6102main ()
6103{
6104return ! malloc (0);
6105 ;
6106 return 0;
6107}
6108_ACEOF
6109if ac_fn_c_try_run "$LINENO"; then :
6110 ac_cv_func_malloc_0_nonnull=yes
a946372e 6111else
f11781c5 6112 ac_cv_func_malloc_0_nonnull=no
a946372e 6113fi
f11781c5
AK
6114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6115 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6116fi
f11781c5 6117
a946372e 6118fi
f11781c5
AK
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6120$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6121if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6122
f11781c5 6123$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6124
f11781c5
AK
6125else
6126 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6127
f11781c5
AK
6128 case " $LIBOBJS " in
6129 *" malloc.$ac_objext "* ) ;;
6130 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6131 ;;
6132esac
6133
6134
6135$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6136
a946372e 6137fi
a946372e 6138
a946372e 6139
f11781c5
AK
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6141$as_echo_n "checking for working memcmp... " >&6; }
6142if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6143 $as_echo_n "(cached) " >&6
a946372e 6144else
f11781c5
AK
6145 if test "$cross_compiling" = yes; then :
6146 ac_cv_func_memcmp_working=no
6147else
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6149/* end confdefs.h. */
6150$ac_includes_default
f11781c5
AK
6151int
6152main ()
6153{
a946372e 6154
f11781c5
AK
6155 /* Some versions of memcmp are not 8-bit clean. */
6156 char c0 = '\100', c1 = '\200', c2 = '\201';
6157 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6158 return 1;
a946372e 6159
f11781c5
AK
6160 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6161 or more and with at least one buffer not starting on a 4-byte boundary.
6162 William Lewis provided this test program. */
6163 {
6164 char foo[21];
6165 char bar[21];
6166 int i;
6167 for (i = 0; i < 4; i++)
6168 {
6169 char *a = foo + i;
6170 char *b = bar + i;
6171 strcpy (a, "--------01111111");
6172 strcpy (b, "--------10000000");
6173 if (memcmp (a, b, 16) >= 0)
6174 return 1;
6175 }
6176 return 0;
6177 }
a946372e 6178
f11781c5
AK
6179 ;
6180 return 0;
6181}
a946372e 6182_ACEOF
f11781c5
AK
6183if ac_fn_c_try_run "$LINENO"; then :
6184 ac_cv_func_memcmp_working=yes
a946372e 6185else
f11781c5
AK
6186 ac_cv_func_memcmp_working=no
6187fi
6188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6189 conftest.$ac_objext conftest.beam conftest.$ac_ext
6190fi
a946372e 6191
a946372e 6192fi
f11781c5
AK
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6194$as_echo "$ac_cv_func_memcmp_working" >&6; }
6195test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6196 *" memcmp.$ac_objext "* ) ;;
6197 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6198 ;;
6199esac
a946372e 6200
a946372e 6201
a946372e 6202
a946372e 6203
f11781c5
AK
6204
6205 for ac_header in $ac_header_list
6206do :
6207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6208ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6209"
6210if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6211 cat >>confdefs.h <<_ACEOF
6212#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6213_ACEOF
6214
a946372e
AK
6215fi
6216
6217done
6218
a946372e 6219
f11781c5
AK
6220
6221
6222
6223
6224
6225
6226for ac_func in getpagesize
6227do :
6228 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6229if test "x$ac_cv_func_getpagesize" = x""yes; then :
6230 cat >>confdefs.h <<_ACEOF
6231#define HAVE_GETPAGESIZE 1
6232_ACEOF
6233
a946372e 6234fi
f11781c5
AK
6235done
6236
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6238$as_echo_n "checking for working mmap... " >&6; }
6239if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6240 $as_echo_n "(cached) " >&6
a946372e 6241else
f11781c5
AK
6242 if test "$cross_compiling" = yes; then :
6243 ac_cv_func_mmap_fixed_mapped=no
6244else
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6246/* end confdefs.h. */
6247$ac_includes_default
f11781c5
AK
6248/* malloc might have been renamed as rpl_malloc. */
6249#undef malloc
6250
6251/* Thanks to Mike Haertel and Jim Avera for this test.
6252 Here is a matrix of mmap possibilities:
6253 mmap private not fixed
6254 mmap private fixed at somewhere currently unmapped
6255 mmap private fixed at somewhere already mapped
6256 mmap shared not fixed
6257 mmap shared fixed at somewhere currently unmapped
6258 mmap shared fixed at somewhere already mapped
6259 For private mappings, we should verify that changes cannot be read()
6260 back from the file, nor mmap's back from the file at a different
6261 address. (There have been systems where private was not correctly
6262 implemented like the infamous i386 svr4.0, and systems where the
6263 VM page cache was not coherent with the file system buffer cache
6264 like early versions of FreeBSD and possibly contemporary NetBSD.)
6265 For shared mappings, we should conversely verify that changes get
6266 propagated back to all the places they're supposed to be.
6267
6268 Grep wants private fixed already mapped.
6269 The main things grep needs to know about mmap are:
6270 * does it exist and is it safe to write into the mmap'd area
6271 * how to use it (BSD variants) */
6272
6273#include <fcntl.h>
6274#include <sys/mman.h>
6275
6276#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6277char *malloc ();
6278#endif
6279
6280/* This mess was copied from the GNU getpagesize.h. */
6281#ifndef HAVE_GETPAGESIZE
6282# ifdef _SC_PAGESIZE
6283# define getpagesize() sysconf(_SC_PAGESIZE)
6284# else /* no _SC_PAGESIZE */
6285# ifdef HAVE_SYS_PARAM_H
6286# include <sys/param.h>
6287# ifdef EXEC_PAGESIZE
6288# define getpagesize() EXEC_PAGESIZE
6289# else /* no EXEC_PAGESIZE */
6290# ifdef NBPG
6291# define getpagesize() NBPG * CLSIZE
6292# ifndef CLSIZE
6293# define CLSIZE 1
6294# endif /* no CLSIZE */
6295# else /* no NBPG */
6296# ifdef NBPC
6297# define getpagesize() NBPC
6298# else /* no NBPC */
6299# ifdef PAGESIZE
6300# define getpagesize() PAGESIZE
6301# endif /* PAGESIZE */
6302# endif /* no NBPC */
6303# endif /* no NBPG */
6304# endif /* no EXEC_PAGESIZE */
6305# else /* no HAVE_SYS_PARAM_H */
6306# define getpagesize() 8192 /* punt totally */
6307# endif /* no HAVE_SYS_PARAM_H */
6308# endif /* no _SC_PAGESIZE */
6309
6310#endif /* no HAVE_GETPAGESIZE */
6311
6312int
6313main ()
6314{
6315 char *data, *data2, *data3;
6316 const char *cdata2;
6317 int i, pagesize;
6318 int fd, fd2;
6319
6320 pagesize = getpagesize ();
6321
6322 /* First, make a file with some known garbage in it. */
6323 data = (char *) malloc (pagesize);
6324 if (!data)
6325 return 1;
6326 for (i = 0; i < pagesize; ++i)
6327 *(data + i) = rand ();
6328 umask (0);
6329 fd = creat ("conftest.mmap", 0600);
6330 if (fd < 0)
6331 return 2;
6332 if (write (fd, data, pagesize) != pagesize)
6333 return 3;
6334 close (fd);
6335
6336 /* Next, check that the tail of a page is zero-filled. File must have
6337 non-zero length, otherwise we risk SIGBUS for entire page. */
6338 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6339 if (fd2 < 0)
6340 return 4;
6341 cdata2 = "";
6342 if (write (fd2, cdata2, 1) != 1)
6343 return 5;
6344 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6345 if (data2 == MAP_FAILED)
6346 return 6;
6347 for (i = 0; i < pagesize; ++i)
6348 if (*(data2 + i))
6349 return 7;
6350 close (fd2);
6351 if (munmap (data2, pagesize))
6352 return 8;
6353
6354 /* Next, try to mmap the file at a fixed address which already has
6355 something else allocated at it. If we can, also make sure that
6356 we see the same garbage. */
6357 fd = open ("conftest.mmap", O_RDWR);
6358 if (fd < 0)
6359 return 9;
6360 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6361 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6362 return 10;
6363 for (i = 0; i < pagesize; ++i)
6364 if (*(data + i) != *(data2 + i))
6365 return 11;
6366
6367 /* Finally, make sure that changes to the mapped area do not
6368 percolate back to the file as seen by read(). (This is a bug on
6369 some variants of i386 svr4.0.) */
6370 for (i = 0; i < pagesize; ++i)
6371 *(data2 + i) = *(data2 + i) + 1;
6372 data3 = (char *) malloc (pagesize);
6373 if (!data3)
6374 return 12;
6375 if (read (fd, data3, pagesize) != pagesize)
6376 return 13;
6377 for (i = 0; i < pagesize; ++i)
6378 if (*(data + i) != *(data3 + i))
6379 return 14;
6380 close (fd);
6381 return 0;
6382}
a946372e 6383_ACEOF
f11781c5
AK
6384if ac_fn_c_try_run "$LINENO"; then :
6385 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6386else
f11781c5
AK
6387 ac_cv_func_mmap_fixed_mapped=no
6388fi
6389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6390 conftest.$ac_objext conftest.beam conftest.$ac_ext
6391fi
a946372e 6392
a946372e 6393fi
f11781c5
AK
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6395$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6396if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6397
f11781c5 6398$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6399
f11781c5
AK
6400fi
6401rm -f conftest.mmap conftest.txt
6402
6403for ac_header in stdlib.h
6404do :
6405 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6406if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6407 cat >>confdefs.h <<_ACEOF
6408#define HAVE_STDLIB_H 1
a946372e 6409_ACEOF
f11781c5
AK
6410
6411fi
6412
6413done
6414
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6416$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6417if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6418 $as_echo_n "(cached) " >&6
6419else
6420 if test "$cross_compiling" = yes; then :
6421 ac_cv_func_realloc_0_nonnull=no
6422else
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6424/* end confdefs.h. */
f11781c5
AK
6425#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6426# include <stdlib.h>
6427#else
6428char *realloc ();
6429#endif
6430
6431int
6432main ()
6433{
6434return ! realloc (0, 0);
6435 ;
6436 return 0;
6437}
a946372e 6438_ACEOF
f11781c5
AK
6439if ac_fn_c_try_run "$LINENO"; then :
6440 ac_cv_func_realloc_0_nonnull=yes
a946372e 6441else
f11781c5
AK
6442 ac_cv_func_realloc_0_nonnull=no
6443fi
6444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6445 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6446fi
6447
f11781c5
AK
6448fi
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6450$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6451if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6452
f11781c5 6453$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6454
a946372e 6455else
f11781c5
AK
6456 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6457
6458 case " $LIBOBJS " in
6459 *" realloc.$ac_objext "* ) ;;
6460 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6461 ;;
6462esac
a946372e 6463
a946372e 6464
f11781c5
AK
6465$as_echo "#define realloc rpl_realloc" >>confdefs.h
6466
a946372e
AK
6467fi
6468
a946372e 6469
f11781c5
AK
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6471$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6472if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6473 $as_echo_n "(cached) " >&6
a946372e 6474else
f11781c5
AK
6475 if test "$cross_compiling" = yes; then :
6476 ac_cv_func_stat_empty_string_bug=yes
6477else
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h. */
6480$ac_includes_default
6481int
6482main ()
6483{
6484struct stat sbuf;
6485 return stat ("", &sbuf) == 0;
6486 ;
6487 return 0;
6488}
6489_ACEOF
6490if ac_fn_c_try_run "$LINENO"; then :
6491 ac_cv_func_stat_empty_string_bug=no
6492else
6493 ac_cv_func_stat_empty_string_bug=yes
a946372e 6494fi
f11781c5
AK
6495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6496 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6497fi
6498
8c4e8a18 6499fi
f11781c5
AK
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6501$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6502if test $ac_cv_func_stat_empty_string_bug = yes; then
6503 case " $LIBOBJS " in
6504 *" stat.$ac_objext "* ) ;;
6505 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6506 ;;
6507esac
8c4e8a18
FDN
6508
6509
6510cat >>confdefs.h <<_ACEOF
f11781c5 6511#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6512_ACEOF
6513
6514fi
6515
f11781c5
AK
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6517$as_echo_n "checking for working strtod... " >&6; }
6518if test "${ac_cv_func_strtod+set}" = set; then :
6519 $as_echo_n "(cached) " >&6
66fd4529 6520else
f11781c5
AK
6521 if test "$cross_compiling" = yes; then :
6522 ac_cv_func_strtod=no
6523else
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525/* end confdefs.h. */
66fd4529 6526
f11781c5
AK
6527$ac_includes_default
6528#ifndef strtod
6529double strtod ();
6530#endif
6531int
6532main()
6533{
6534 {
6535 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6536 char *string = " +69";
6537 char *term;
6538 double value;
6539 value = strtod (string, &term);
6540 if (value != 69 || term != (string + 4))
6541 return 1;
6542 }
66fd4529 6543
f11781c5
AK
6544 {
6545 /* Under Solaris 2.4, strtod returns the wrong value for the
6546 terminating character under some conditions. */
6547 char *string = "NaN";
6548 char *term;
6549 strtod (string, &term);
6550 if (term != string && *(term - 1) == 0)
6551 return 1;
6552 }
6553 return 0;
6554}
66fd4529 6555
f11781c5
AK
6556_ACEOF
6557if ac_fn_c_try_run "$LINENO"; then :
6558 ac_cv_func_strtod=yes
66fd4529 6559else
f11781c5
AK
6560 ac_cv_func_strtod=no
6561fi
6562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6563 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6564fi
6565
f11781c5
AK
6566fi
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6568$as_echo "$ac_cv_func_strtod" >&6; }
6569if test $ac_cv_func_strtod = no; then
6570 case " $LIBOBJS " in
6571 *" strtod.$ac_objext "* ) ;;
6572 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6573 ;;
6574esac
71082be4 6575
f11781c5
AK
6576ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6577if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6578
66fd4529 6579fi
a946372e 6580
f11781c5
AK
6581if test $ac_cv_func_pow = no; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6583$as_echo_n "checking for pow in -lm... " >&6; }
6584if test "${ac_cv_lib_m_pow+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6586else
6587 ac_check_lib_save_LIBS=$LIBS
6588LIBS="-lm $LIBS"
6589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590/* end confdefs.h. */
90c80887 6591
f11781c5
AK
6592/* Override any GCC internal prototype to avoid an error.
6593 Use char because int might match the return type of a GCC
6594 builtin and then its argument prototype would still apply. */
6595#ifdef __cplusplus
6596extern "C"
6597#endif
6598char pow ();
6599int
6600main ()
6601{
6602return pow ();
6603 ;
6604 return 0;
6605}
6606_ACEOF
6607if ac_fn_c_try_link "$LINENO"; then :
6608 ac_cv_lib_m_pow=yes
90c80887 6609else
f11781c5 6610 ac_cv_lib_m_pow=no
90c80887 6611fi
f11781c5
AK
6612rm -f core conftest.err conftest.$ac_objext \
6613 conftest$ac_exeext conftest.$ac_ext
6614LIBS=$ac_check_lib_save_LIBS
90c80887 6615fi
f11781c5
AK
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6617$as_echo "$ac_cv_lib_m_pow" >&6; }
6618if test "x$ac_cv_lib_m_pow" = x""yes; then :
6619 POW_LIB=-lm
90c80887 6620else
f11781c5
AK
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6622$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6623fi
f11781c5 6624
90c80887
AK
6625fi
6626
f11781c5
AK
6627fi
6628
6629for ac_func in vprintf
6630do :
6631 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6632if test "x$ac_cv_func_vprintf" = x""yes; then :
6633 cat >>confdefs.h <<_ACEOF
6634#define HAVE_VPRINTF 1
6635_ACEOF
90c80887 6636
f11781c5
AK
6637ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6638if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6639
f11781c5 6640$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6641
90c80887 6642fi
90c80887 6643
f11781c5
AK
6644fi
6645done
90c80887 6646
90c80887 6647
90c80887 6648
f11781c5
AK
6649################################################################################
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6651$as_echo_n "checking whether to use static linking... " >&6; }
6652# Check whether --enable-static_link was given.
6653if test "${enable_static_link+set}" = set; then :
6654 enableval=$enable_static_link; STATIC_LINK=$enableval
6655else
6656 STATIC_LINK=no
6657fi
90c80887 6658
f11781c5
AK
6659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6660$as_echo "$STATIC_LINK" >&6; }
90c80887 6661
f11781c5 6662################################################################################
90c80887 6663
90c80887 6664
f11781c5
AK
6665################################################################################
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6667$as_echo_n "checking file owner... " >&6; }
90c80887 6668
f11781c5
AK
6669# Check whether --with-user was given.
6670if test "${with_user+set}" = set; then :
6671 withval=$with_user; OWNER=$withval
6672fi
90c80887 6673
f11781c5
AK
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6675$as_echo "$OWNER" >&6; }
90c80887 6676
f11781c5
AK
6677if test x$OWNER != x; then
6678 INSTALL="$INSTALL -o $OWNER"
90c80887 6679fi
a946372e 6680
f11781c5
AK
6681################################################################################
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6683$as_echo_n "checking group owner... " >&6; }
a946372e 6684
f11781c5
AK
6685# Check whether --with-group was given.
6686if test "${with_group+set}" = set; then :
6687 withval=$with_group; GROUP=$withval
a946372e 6688fi
f11781c5
AK
6689
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6691$as_echo "$GROUP" >&6; }
6692
6693if test x$GROUP != x; then
6694 INSTALL="$INSTALL -g $GROUP"
a946372e 6695fi
f11781c5
AK
6696
6697################################################################################
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6699$as_echo_n "checking device node uid... " >&6; }
6700
6701
6702# Check whether --with-device-uid was given.
6703if test "${with_device_uid+set}" = set; then :
6704 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6705else
f11781c5 6706 DM_DEVICE_UID=0
a946372e
AK
6707fi
6708
f11781c5
AK
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6710$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6711
f11781c5
AK
6712################################################################################
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6714$as_echo_n "checking device node gid... " >&6; }
a946372e 6715
a946372e 6716
f11781c5
AK
6717# Check whether --with-device-gid was given.
6718if test "${with_device_gid+set}" = set; then :
6719 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6720else
f11781c5 6721 DM_DEVICE_GID=0
a946372e 6722fi
a946372e 6723
f11781c5
AK
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6725$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6726
f11781c5
AK
6727################################################################################
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6729$as_echo_n "checking device node mode... " >&6; }
90c80887 6730
90c80887 6731
f11781c5
AK
6732# Check whether --with-device-mode was given.
6733if test "${with_device_mode+set}" = set; then :
6734 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6735else
6736 DM_DEVICE_MODE=0600
6737fi
90c80887 6738
f11781c5
AK
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6740$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6741
d0df875d
ZK
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6743$as_echo_n "checking when to create device nodes... " >&6; }
6744
6745# Check whether --with-device-nodes-on was given.
6746if test "${with_device_nodes_on+set}" = set; then :
6747 withval=$with_device_nodes_on; ADD_NODE=$withval
6748else
6749 ADD_NODE=resume
6750fi
6751
6752case "$ADD_NODE" in
6753 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6754 create) add_on=DM_ADD_NODE_ON_CREATE;;
6755 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6756esac
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6758$as_echo "on $ADD_NODE" >&6; }
6759
6760cat >>confdefs.h <<_ACEOF
6761#define DEFAULT_DM_ADD_NODE $add_on
6762_ACEOF
6763
6764
f11781c5
AK
6765################################################################################
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6767$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6768# Check whether --enable-lvm1_fallback was given.
6769if test "${enable_lvm1_fallback+set}" = set; then :
6770 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6771else
6772 LVM1_FALLBACK=no
6773fi
90c80887 6774
f11781c5
AK
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6776$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6777
f11781c5 6778if test x$LVM1_FALLBACK = xyes; then
90c80887 6779
f11781c5 6780$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6781
f11781c5 6782fi
90c80887 6783
f11781c5
AK
6784################################################################################
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6786$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6787
6788# Check whether --with-lvm1 was given.
6789if test "${with_lvm1+set}" = set; then :
6790 withval=$with_lvm1; LVM1=$withval
a946372e 6791else
f11781c5 6792 LVM1=internal
a946372e 6793fi
f11781c5
AK
6794
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6796$as_echo "$LVM1" >&6; }
6797
6798if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6799 then as_fn_error $? "--with-lvm1 parameter invalid
6800" "$LINENO" 5
6801fi;
6802
6803if test x$LVM1 = xinternal; then
6804
6805$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6806
a946372e
AK
6807fi
6808
6809################################################################################
f11781c5
AK
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6811$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6812
6813# Check whether --with-pool was given.
6814if test "${with_pool+set}" = set; then :
6815 withval=$with_pool; POOL=$withval
a946372e 6816else
f11781c5 6817 POOL=internal
a946372e
AK
6818fi
6819
f11781c5
AK
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6821$as_echo "$POOL" >&6; }
6822
6823if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6824 then as_fn_error $? "--with-pool parameter invalid
6825" "$LINENO" 5
6826fi;
6827
6828if test x$POOL = xinternal; then
6829
6830$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6831
a946372e
AK
6832fi
6833
6834################################################################################
f11781c5
AK
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6836$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6837
f11781c5
AK
6838# Check whether --with-cluster was given.
6839if test "${with_cluster+set}" = set; then :
6840 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6841fi
6842
f11781c5
AK
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6844$as_echo "$CLUSTER" >&6; }
a946372e 6845
f11781c5
AK
6846if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6847 then as_fn_error $? "--with-cluster parameter invalid
6848" "$LINENO" 5
6849fi;
fddafd51 6850
f11781c5 6851if test x$CLUSTER = xinternal; then
5556819a 6852
f11781c5 6853$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6854
fddafd51 6855fi
f11781c5
AK
6856
6857################################################################################
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6859$as_echo_n "checking whether to include snapshots... " >&6; }
6860
6861# Check whether --with-snapshots was given.
6862if test "${with_snapshots+set}" = set; then :
6863 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6864else
f11781c5 6865 SNAPSHOTS=internal
fddafd51
ZK
6866fi
6867
f11781c5
AK
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6869$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6870
f11781c5
AK
6871if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6872 then as_fn_error $? "--with-snapshots parameter invalid
6873" "$LINENO" 5
6874fi;
fddafd51 6875
f11781c5
AK
6876if test x$SNAPSHOTS = xinternal; then
6877
6878$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6879
6880fi
6881
6882################################################################################
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6884$as_echo_n "checking whether to include mirrors... " >&6; }
6885
6886# Check whether --with-mirrors was given.
6887if test "${with_mirrors+set}" = set; then :
6888 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6889else
f11781c5 6890 MIRRORS=internal
fddafd51
ZK
6891fi
6892
f11781c5
AK
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6894$as_echo "$MIRRORS" >&6; }
fddafd51 6895
f11781c5
AK
6896if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6897 then as_fn_error $? "--with-mirrors parameter invalid
6898" "$LINENO" 5
6899fi;
6900
6901if test x$MIRRORS = xinternal; then
6902
6903$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6904
6905fi
6906
cac52ca4
JEB
6907################################################################################
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6909$as_echo_n "checking whether to include raid... " >&6; }
6910
6911# Check whether --with-raid was given.
6912if test "${with_raid+set}" = set; then :
6913 withval=$with_raid; RAID=$withval
6914else
6915 RAID=internal
6916fi
6917
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6919$as_echo "$RAID" >&6; }
6920
6921if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6922 then as_fn_error $? "--with-raid parameter invalid
6923" "$LINENO" 5
6924fi;
6925
6926if test x$RAID = xinternal; then
6927
6928$as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6929
6930fi
6931
f11781c5
AK
6932################################################################################
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6934$as_echo_n "checking whether to include replicators... " >&6; }
6935
6936# Check whether --with-replicators was given.
6937if test "${with_replicators+set}" = set; then :
6938 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6939else
f11781c5
AK
6940 REPLICATORS=none
6941fi
fd4728e1 6942
f11781c5
AK
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6944$as_echo "$REPLICATORS" >&6; }
6945
6946case "$REPLICATORS" in
6947 none|shared) ;;
6948 internal)
6949$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6950 ;;
6951 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 6952esac
f11781c5 6953
3ba4a195
ZK
6954################################################################################
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
6956$as_echo_n "checking whether to include thin provisioning... " >&6; }
6957
6958# Check whether --with-thin was given.
6959if test "${with_thin+set}" = set; then :
6960 withval=$with_thin; THIN=$withval
6961else
6962 THIN=none
6963fi
6964
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
6966$as_echo "$THIN" >&6; }
6967
6968case "$THIN" in
6969 none|shared) ;;
6970 internal)
6971$as_echo "#define THIN_INTERNAL 1" >>confdefs.h
6972 ;;
6973 *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
6974esac
6975
f11781c5
AK
6976################################################################################
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6978$as_echo_n "checking whether to enable readline... " >&6; }
6979# Check whether --enable-readline was given.
6980if test "${enable_readline+set}" = set; then :
6981 enableval=$enable_readline; READLINE=$enableval
fd4728e1 6982else
f11781c5 6983 READLINE=maybe
fd4728e1
ZK
6984fi
6985
f11781c5
AK
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6987$as_echo "$READLINE" >&6; }
fd4728e1 6988
f11781c5
AK
6989################################################################################
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6991$as_echo_n "checking whether to enable realtime support... " >&6; }
6992# Check whether --enable-realtime was given.
6993if test "${enable_realtime+set}" = set; then :
6994 enableval=$enable_realtime; REALTIME=$enableval
5556819a 6995fi
d0191583 6996
f11781c5
AK
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6998$as_echo "$REALTIME" >&6; }
6999
54b362f9 7000################################################################################
f11781c5
AK
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
7002$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
7003# Check whether --enable-ocf was given.
7004if test "${enable_ocf+set}" = set; then :
7005 enableval=$enable_ocf; OCF=$enableval
54b362f9 7006else
f11781c5 7007 OCF=no
54b362f9
AK
7008fi
7009
f11781c5
AK
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
7011$as_echo "$OCF" >&6; }
54b362f9 7012
606d0858
AK
7013# Check whether --with-ocfdir was given.
7014if test "${with_ocfdir+set}" = set; then :
7015 withval=$with_ocfdir; OCFDIR=$withval
7016else
7017 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
7018fi
7019
7020
f11781c5
AK
7021################################################################################
7022pkg_config_init() {
7023
7024
7025
7026
7027
7028
7029if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7030 if test -n "$ac_tool_prefix"; then
7031 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7032set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7034$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7035if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7036 $as_echo_n "(cached) " >&6
7037else
f11781c5 7038 case $PKG_CONFIG in
54b362f9 7039 [\\/]* | ?:[\\/]*)
f11781c5 7040 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7041 ;;
7042 *)
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
f11781c5 7048 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7050 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7052 break 2
7053 fi
7054done
f11781c5 7055 done
54b362f9
AK
7056IFS=$as_save_IFS
7057
7058 ;;
7059esac
7060fi
f11781c5
AK
7061PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7062if test -n "$PKG_CONFIG"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7064$as_echo "$PKG_CONFIG" >&6; }
54b362f9 7065else
f11781c5 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7067$as_echo "no" >&6; }
7068fi
7069
7070
f11781c5
AK
7071fi
7072if test -z "$ac_cv_path_PKG_CONFIG"; then
7073 ac_pt_PKG_CONFIG=$PKG_CONFIG
7074 # Extract the first word of "pkg-config", so it can be a program name with args.
7075set dummy pkg-config; ac_word=$2
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7077$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7078if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7079 $as_echo_n "(cached) " >&6
7080else
f11781c5 7081 case $ac_pt_PKG_CONFIG in
54b362f9 7082 [\\/]* | ?:[\\/]*)
f11781c5 7083 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7084 ;;
7085 *)
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087for as_dir in $PATH
7088do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
f11781c5 7091 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7093 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7095 break 2
7096 fi
7097done
f11781c5 7098 done
54b362f9
AK
7099IFS=$as_save_IFS
7100
7101 ;;
7102esac
7103fi
f11781c5
AK
7104ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7105if test -n "$ac_pt_PKG_CONFIG"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7107$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7108else
f11781c5 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7110$as_echo "no" >&6; }
7111fi
7112
f11781c5
AK
7113 if test "x$ac_pt_PKG_CONFIG" = x; then
7114 PKG_CONFIG=""
7115 else
7116 case $cross_compiling:$ac_tool_warned in
7117yes:)
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120ac_tool_warned=yes ;;
7121esac
7122 PKG_CONFIG=$ac_pt_PKG_CONFIG
7123 fi
d1e8046f 7124else
f11781c5 7125 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7126fi
7127
f11781c5
AK
7128fi
7129if test -n "$PKG_CONFIG"; then
7130 _pkg_min_version=0.9.0
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7132$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7133 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7135$as_echo "yes" >&6; }
7136 else
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138$as_echo "no" >&6; }
7139 PKG_CONFIG=""
7140 fi
7141fi
d1e8046f 7142
f11781c5
AK
7143pkg_failed=no
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7145$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7146
f11781c5
AK
7147if test -n "$PKGCONFIGINIT_CFLAGS"; then
7148 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7149 elif test -n "$PKG_CONFIG"; then
7150 if test -n "$PKG_CONFIG" && \
7151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7152 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7153 ac_status=$?
7154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7155 test $ac_status = 0; }; then
7156 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7157else
f11781c5
AK
7158 pkg_failed=yes
7159fi
7160 else
7161 pkg_failed=untried
7162fi
7163if test -n "$PKGCONFIGINIT_LIBS"; then
7164 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7165 elif test -n "$PKG_CONFIG"; then
7166 if test -n "$PKG_CONFIG" && \
7167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7168 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7169 ac_status=$?
f11781c5
AK
7170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7171 test $ac_status = 0; }; then
7172 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7173else
f11781c5
AK
7174 pkg_failed=yes
7175fi
7176 else
7177 pkg_failed=untried
d1e8046f
AK
7178fi
7179
d1e8046f 7180
f11781c5
AK
7181
7182if test $pkg_failed = yes; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184$as_echo "no" >&6; }
7185
7186if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7187 _pkg_short_errors_supported=yes
7188else
7189 _pkg_short_errors_supported=no
7190fi
7191 if test $_pkg_short_errors_supported = yes; then
7192 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7193 else
7194 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7195 fi
7196 # Put the nasty error message in config.log where it belongs
7197 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7198
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7200$as_echo "pkg-config initialized" >&6; }
7201elif test $pkg_failed = untried; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203$as_echo "no" >&6; }
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7205$as_echo "pkg-config initialized" >&6; }
d1e8046f 7206else
f11781c5
AK
7207 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7208 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7210$as_echo "yes" >&6; }
d1e8046f 7211
d1e8046f 7212fi
f11781c5
AK
7213 PKGCONFIG_INIT=1
7214}
d1e8046f 7215
f11781c5
AK
7216################################################################################
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7218$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7219
f11781c5
AK
7220# Check whether --with-clvmd was given.
7221if test "${with_clvmd+set}" = set; then :
7222 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7223else
f11781c5 7224 CLVMD=none
d1e8046f 7225fi
d1e8046f 7226
f11781c5
AK
7227if test x$CLVMD = xyes; then
7228 CLVMD=all
d1e8046f 7229fi
f11781c5
AK
7230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7231$as_echo "$CLVMD" >&6; }
d1e8046f 7232
f11781c5
AK
7233if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7234 CLUSTER=internal
d1e8046f
AK
7235fi
7236
f11781c5
AK
7237if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7238 pkg_config_init
7239fi
d1e8046f 7240
f11781c5
AK
7241CLVMD_CMANAGERS=""
7242CLVMD_NEEDS_QDISKD=no
d1e8046f 7243
f11781c5 7244if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
13db5983 7245 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
d1e8046f 7246fi
f11781c5
AK
7247if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7248 BUILDCMAN=yes
7249 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7250 CLVMD_NEEDS_QDISKD=yes
7251fi
7252if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7253 BUILDCOROSYNC=yes
7254 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7255fi
7256if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7257 BUILDOPENAIS=yes
7258 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7259fi
7260if test x$CLVMD_NEEDS_QDISKD != xno; then
7261 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7262fi
7263
f11781c5
AK
7264soft_bailout() {
7265 NOTFOUND=1
7266}
ad6254c5 7267
f11781c5
AK
7268hard_bailout() {
7269 as_fn_error $? "bailing out" "$LINENO" 5
7270}
ad6254c5 7271
f11781c5
AK
7272if test x$CLVMD = xall; then
7273 bailout=soft_bailout
f11781c5
AK
7274 BUILDCMAN=yes
7275 BUILDCOROSYNC=yes
7276 BUILDOPENAIS=yes
a5f46f6a 7277else
f11781c5 7278 bailout=hard_bailout
a5f46f6a
AK
7279fi
7280
f11781c5
AK
7281check_lib_no_libs() {
7282 lib_no_libs_arg1=$1
7283 shift
7284 lib_no_libs_arg2=$1
7285 shift
7286 lib_no_libs_args=$@
7287 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7289$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7290if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7291 $as_echo_n "(cached) " >&6
7292else
7293 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7294LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7296/* end confdefs.h. */
7297
7298/* Override any GCC internal prototype to avoid an error.
7299 Use char because int might match the return type of a GCC
7300 builtin and then its argument prototype would still apply. */
7301#ifdef __cplusplus
7302extern "C"
7303#endif
f11781c5 7304char $lib_no_libs_arg2 ();
90c80887
AK
7305int
7306main ()
7307{
f11781c5 7308return $lib_no_libs_arg2 ();
90c80887
AK
7309 ;
7310 return 0;
7311}
7312_ACEOF
f11781c5
AK
7313if ac_fn_c_try_link "$LINENO"; then :
7314 eval "$as_ac_Lib=yes"
90c80887 7315else
f11781c5 7316 eval "$as_ac_Lib=no"
90c80887 7317fi
f11781c5
AK
7318rm -f core conftest.err conftest.$ac_objext \
7319 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7320LIBS=$ac_check_lib_save_LIBS
7321fi
f11781c5
AK
7322eval ac_res=\$$as_ac_Lib
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7324$as_echo "$ac_res" >&6; }
7325if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7326 cat >>confdefs.h <<_ACEOF
7327#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7328_ACEOF
7329
7330 LIBS="-l$lib_no_libs_arg1 $LIBS"
7331
90c80887 7332else
f11781c5 7333 $bailout
90c80887
AK
7334fi
7335
f11781c5
AK
7336 LIBS=$ac_check_lib_save_LIBS
7337}
90c80887 7338
f11781c5 7339if test x$BUILDCMAN = xyes; then
ad6254c5 7340
f11781c5
AK
7341pkg_failed=no
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7343$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7344
f11781c5
AK
7345if test -n "$CMAN_CFLAGS"; then
7346 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7347 elif test -n "$PKG_CONFIG"; then
7348 if test -n "$PKG_CONFIG" && \
7349 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7350 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7351 ac_status=$?
7352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7353 test $ac_status = 0; }; then
7354 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7355else
7356 pkg_failed=yes
ad6254c5 7357fi
f11781c5
AK
7358 else
7359 pkg_failed=untried
ad6254c5 7360fi
f11781c5
AK
7361if test -n "$CMAN_LIBS"; then
7362 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7363 elif test -n "$PKG_CONFIG"; then
7364 if test -n "$PKG_CONFIG" && \
7365 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7366 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 7367 ac_status=$?
f11781c5
AK
7368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7369 test $ac_status = 0; }; then
7370 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7371else
f11781c5
AK
7372 pkg_failed=yes
7373fi
7374 else
7375 pkg_failed=untried
93bd259b
AK
7376fi
7377
f11781c5
AK
7378
7379
7380if test $pkg_failed = yes; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382$as_echo "no" >&6; }
7383
7384if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7385 _pkg_short_errors_supported=yes
7386else
7387 _pkg_short_errors_supported=no
93bd259b 7388fi
f11781c5
AK
7389 if test $_pkg_short_errors_supported = yes; then
7390 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7391 else
7392 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7393 fi
7394 # Put the nasty error message in config.log where it belongs
7395 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7396
f11781c5
AK
7397 NOTFOUND=0
7398 for ac_header in libcman.h
7399do :
7400 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7401if test "x$ac_cv_header_libcman_h" = x""yes; then :
7402 cat >>confdefs.h <<_ACEOF
7403#define HAVE_LIBCMAN_H 1
93bd259b
AK
7404_ACEOF
7405
f11781c5
AK
7406else
7407 $bailout
93bd259b
AK
7408fi
7409
f11781c5 7410done
93bd259b 7411
f11781c5
AK
7412 check_lib_no_libs cman cman_init
7413 if test $NOTFOUND = 0; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7415$as_echo "no pkg for libcman, using -lcman" >&6; }
7416 CMAN_LIBS="-lcman"
7417 HAVE_CMAN=yes
7418 fi
7419elif test $pkg_failed = untried; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421$as_echo "no" >&6; }
7422 NOTFOUND=0
7423 for ac_header in libcman.h
7424do :
7425 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7426if test "x$ac_cv_header_libcman_h" = x""yes; then :
7427 cat >>confdefs.h <<_ACEOF
7428#define HAVE_LIBCMAN_H 1
93bd259b 7429_ACEOF
93bd259b 7430
93bd259b 7431else
f11781c5 7432 $bailout
93bd259b
AK
7433fi
7434
f11781c5
AK
7435done
7436
7437 check_lib_no_libs cman cman_init
7438 if test $NOTFOUND = 0; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7440$as_echo "no pkg for libcman, using -lcman" >&6; }
7441 CMAN_LIBS="-lcman"
7442 HAVE_CMAN=yes
7443 fi
7444else
7445 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7446 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7448$as_echo "yes" >&6; }
7449 HAVE_CMAN=yes
93bd259b 7450fi
f11781c5
AK
7451 CHECKCONFDB=yes
7452 CHECKDLM=yes
93bd259b
AK
7453fi
7454
f11781c5
AK
7455if test x$BUILDCOROSYNC = xyes || \
7456 test x$BUILDOPENAIS = xyes; then
93bd259b 7457
f11781c5
AK
7458pkg_failed=no
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7460$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7461
f11781c5
AK
7462if test -n "$COROSYNC_CFLAGS"; then
7463 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7464 elif test -n "$PKG_CONFIG"; then
7465 if test -n "$PKG_CONFIG" && \
7466 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7467 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7468 ac_status=$?
7469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7470 test $ac_status = 0; }; then
7471 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7472else
f11781c5
AK
7473 pkg_failed=yes
7474fi
7475 else
7476 pkg_failed=untried
7477fi
7478if test -n "$COROSYNC_LIBS"; then
7479 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7480 elif test -n "$PKG_CONFIG"; then
7481 if test -n "$PKG_CONFIG" && \
7482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7483 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7484 ac_status=$?
f11781c5
AK
7485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7486 test $ac_status = 0; }; then
7487 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7488else
f11781c5 7489 pkg_failed=yes
ad6254c5 7490fi
f11781c5
AK
7491 else
7492 pkg_failed=untried
ad6254c5 7493fi
ad6254c5 7494
72b2cb61 7495
72b2cb61 7496
f11781c5
AK
7497if test $pkg_failed = yes; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499$as_echo "no" >&6; }
19a2c6e0 7500
f11781c5
AK
7501if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7502 _pkg_short_errors_supported=yes
7503else
7504 _pkg_short_errors_supported=no
ad6254c5 7505fi
f11781c5
AK
7506 if test $_pkg_short_errors_supported = yes; then
7507 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7508 else
7509 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7510 fi
7511 # Put the nasty error message in config.log where it belongs
7512 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7513
f11781c5
AK
7514 $bailout
7515elif test $pkg_failed = untried; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517$as_echo "no" >&6; }
7518 $bailout
7519else
7520 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7521 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7523$as_echo "yes" >&6; }
7524 HAVE_COROSYNC=yes
7525fi
7526 CHECKCONFDB=yes
b6d7a484 7527 CHECKCMAP=yes
ad6254c5
AK
7528fi
7529
f11781c5 7530if test x$BUILDCOROSYNC = xyes; then
f30875db 7531
f11781c5
AK
7532pkg_failed=no
7533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7534$as_echo_n "checking for QUORUM... " >&6; }
7535
7536if test -n "$QUORUM_CFLAGS"; then
7537 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7538 elif test -n "$PKG_CONFIG"; then
7539 if test -n "$PKG_CONFIG" && \
7540 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7541 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7542 ac_status=$?
f11781c5
AK
7543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544 test $ac_status = 0; }; then
7545 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7546else
f11781c5 7547 pkg_failed=yes
f30875db 7548fi
f11781c5
AK
7549 else
7550 pkg_failed=untried
f30875db 7551fi
f11781c5
AK
7552if test -n "$QUORUM_LIBS"; then
7553 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7554 elif test -n "$PKG_CONFIG"; then
7555 if test -n "$PKG_CONFIG" && \
7556 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7557 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7558 ac_status=$?
7559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7560 test $ac_status = 0; }; then
7561 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7562else
f11781c5 7563 pkg_failed=yes
f30875db 7564fi
f11781c5
AK
7565 else
7566 pkg_failed=untried
7567fi
7568
f30875db 7569
f11781c5
AK
7570
7571if test $pkg_failed = yes; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573$as_echo "no" >&6; }
7574
7575if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7576 _pkg_short_errors_supported=yes
7577else
7578 _pkg_short_errors_supported=no
f30875db 7579fi
f11781c5
AK
7580 if test $_pkg_short_errors_supported = yes; then
7581 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7582 else
7583 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7584 fi
7585 # Put the nasty error message in config.log where it belongs
7586 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7587
f11781c5
AK
7588 $bailout
7589elif test $pkg_failed = untried; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591$as_echo "no" >&6; }
7592 $bailout
7593else
7594 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7595 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7597$as_echo "yes" >&6; }
7598 HAVE_QUORUM=yes
7599fi
7600 CHECKCPG=yes
7601 CHECKDLM=yes
d0191583
JM
7602fi
7603
f11781c5 7604if test x$BUILDOPENAIS = xyes; then
d0191583 7605
f11781c5
AK
7606pkg_failed=no
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7608$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7609
f11781c5
AK
7610if test -n "$SALCK_CFLAGS"; then
7611 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7612 elif test -n "$PKG_CONFIG"; then
7613 if test -n "$PKG_CONFIG" && \
7614 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7615 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7616 ac_status=$?
7617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7618 test $ac_status = 0; }; then
7619 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7620else
7621 pkg_failed=yes
7622fi
7623 else
7624 pkg_failed=untried
7625fi
7626if test -n "$SALCK_LIBS"; then
7627 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7628 elif test -n "$PKG_CONFIG"; then
7629 if test -n "$PKG_CONFIG" && \
7630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7631 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7632 ac_status=$?
f11781c5
AK
7633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7634 test $ac_status = 0; }; then
7635 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7636else
f11781c5 7637 pkg_failed=yes
8a2fc586 7638fi
f11781c5
AK
7639 else
7640 pkg_failed=untried
8a2fc586 7641fi
d0191583 7642
d0191583 7643
f8f6ec92 7644
f11781c5
AK
7645if test $pkg_failed = yes; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647$as_echo "no" >&6; }
8a2fc586 7648
f11781c5
AK
7649if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7650 _pkg_short_errors_supported=yes
ad6254c5 7651else
f11781c5
AK
7652 _pkg_short_errors_supported=no
7653fi
7654 if test $_pkg_short_errors_supported = yes; then
7655 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7656 else
7657 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7658 fi
7659 # Put the nasty error message in config.log where it belongs
7660 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7661
f11781c5
AK
7662 $bailout
7663elif test $pkg_failed = untried; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665$as_echo "no" >&6; }
7666 $bailout
ad6254c5 7667else
f11781c5
AK
7668 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7669 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7671$as_echo "yes" >&6; }
7672 HAVE_SALCK=yes
ad6254c5 7673fi
f11781c5 7674 CHECKCPG=yes
ad6254c5 7675fi
ad6254c5 7676
72b2cb61 7677
f8f6ec92 7678
f11781c5 7679if test x$CHECKCONFDB = xyes; then
f8f6ec92 7680
f11781c5
AK
7681pkg_failed=no
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7683$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7684
f11781c5
AK
7685if test -n "$CONFDB_CFLAGS"; then
7686 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7687 elif test -n "$PKG_CONFIG"; then
7688 if test -n "$PKG_CONFIG" && \
7689 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7690 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7691 ac_status=$?
f11781c5
AK
7692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7693 test $ac_status = 0; }; then
7694 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7695else
f11781c5
AK
7696 pkg_failed=yes
7697fi
7698 else
7699 pkg_failed=untried
7700fi
7701if test -n "$CONFDB_LIBS"; then
7702 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7703 elif test -n "$PKG_CONFIG"; then
7704 if test -n "$PKG_CONFIG" && \
7705 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7706 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7707 ac_status=$?
7708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7709 test $ac_status = 0; }; then
7710 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7711else
7712 pkg_failed=yes
7713fi
7714 else
7715 pkg_failed=untried
f8f6ec92
ZK
7716fi
7717
f8f6ec92 7718
66e941e8 7719
f11781c5
AK
7720if test $pkg_failed = yes; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722$as_echo "no" >&6; }
7723
7724if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7725 _pkg_short_errors_supported=yes
f8f6ec92 7726else
f11781c5 7727 _pkg_short_errors_supported=no
66e941e8 7728fi
f11781c5
AK
7729 if test $_pkg_short_errors_supported = yes; then
7730 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7731 else
7732 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7733 fi
7734 # Put the nasty error message in config.log where it belongs
7735 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7736
f11781c5
AK
7737 HAVE_CONFDB=no
7738elif test $pkg_failed = untried; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740$as_echo "no" >&6; }
7741 HAVE_CONFDB=no
7742else
7743 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7744 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7746$as_echo "yes" >&6; }
7747 HAVE_CONFDB=yes
66e941e8 7748fi
f11781c5
AK
7749
7750 for ac_header in corosync/confdb.h
7751do :
7752 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7753if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7754 cat >>confdefs.h <<_ACEOF
f11781c5 7755#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7756_ACEOF
f11781c5 7757 HAVE_CONFDB_H=yes
66e941e8 7758else
f11781c5 7759 HAVE_CONFDB_H=no
66e941e8 7760fi
dd1f2c09
MB
7761
7762done
7763
7764
f11781c5
AK
7765 if test x$HAVE_CONFDB != xyes && \
7766 test x$HAVE_CONFDB_H = xyes; then
7767 check_lib_no_libs confdb confdb_initialize
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7769$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7770 CONFDB_LIBS="-lconfdb"
7771 HAVE_CONFDB=yes
7772 fi
b6d7a484
AK
7773fi
7774
7775
7776if test x$CHECKCMAP = xyes; then
7777
7778pkg_failed=no
7779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAP" >&5
7780$as_echo_n "checking for CMAP... " >&6; }
7781
7782if test -n "$CMAP_CFLAGS"; then
7783 pkg_cv_CMAP_CFLAGS="$CMAP_CFLAGS"
7784 elif test -n "$PKG_CONFIG"; then
7785 if test -n "$PKG_CONFIG" && \
7786 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7787 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7788 ac_status=$?
7789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7790 test $ac_status = 0; }; then
7791 pkg_cv_CMAP_CFLAGS=`$PKG_CONFIG --cflags "libcmap" 2>/dev/null`
7792else
7793 pkg_failed=yes
7794fi
7795 else
7796 pkg_failed=untried
7797fi
7798if test -n "$CMAP_LIBS"; then
7799 pkg_cv_CMAP_LIBS="$CMAP_LIBS"
7800 elif test -n "$PKG_CONFIG"; then
7801 if test -n "$PKG_CONFIG" && \
7802 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7803 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7804 ac_status=$?
7805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7806 test $ac_status = 0; }; then
7807 pkg_cv_CMAP_LIBS=`$PKG_CONFIG --libs "libcmap" 2>/dev/null`
7808else
7809 pkg_failed=yes
7810fi
7811 else
7812 pkg_failed=untried
7813fi
7814
7815
7816
7817if test $pkg_failed = yes; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819$as_echo "no" >&6; }
f11781c5 7820
b6d7a484
AK
7821if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7822 _pkg_short_errors_supported=yes
7823else
7824 _pkg_short_errors_supported=no
7825fi
7826 if test $_pkg_short_errors_supported = yes; then
7827 CMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcmap" 2>&1`
7828 else
7829 CMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcmap" 2>&1`
7830 fi
7831 # Put the nasty error message in config.log where it belongs
7832 echo "$CMAP_PKG_ERRORS" >&5
7833
7834 HAVE_CMAP=no
7835elif test $pkg_failed = untried; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837$as_echo "no" >&6; }
7838 HAVE_CMAP=no
7839else
7840 CMAP_CFLAGS=$pkg_cv_CMAP_CFLAGS
7841 CMAP_LIBS=$pkg_cv_CMAP_LIBS
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7843$as_echo "yes" >&6; }
7844 HAVE_CMAP=yes
7845fi
7846
7847 for ac_header in corosync/cmap.h
7848do :
7849 ac_fn_c_check_header_mongrel "$LINENO" "corosync/cmap.h" "ac_cv_header_corosync_cmap_h" "$ac_includes_default"
7850if test "x$ac_cv_header_corosync_cmap_h" = x""yes; then :
7851 cat >>confdefs.h <<_ACEOF
7852#define HAVE_COROSYNC_CMAP_H 1
7853_ACEOF
7854 HAVE_CMAP_H=yes
7855else
7856 HAVE_CMAP_H=no
7857fi
7858
7859done
7860
7861
7862 if test x$HAVE_CMAP != xyes && \
7863 test x$HAVE_CMAP_H = xyes; then
7864 check_lib_no_libs cmap cmap_initialize
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for cmap, using -lcmap" >&5
7866$as_echo "no pkg for cmap, using -lcmap" >&6; }
7867 CMAP_LIBS="-lcmap"
7868 HAVE_CMAP=yes
7869 fi
7870fi
7871
7872if test x$BUILDCOROSYNC = xyes; then
7873 if test x$HAVE_CMAP != xyes && \
7874 test x$HAVE_CONFDB != xyes && \
f11781c5 7875 test x$CLVMD != xall; then
b6d7a484 7876 as_fn_error $? "bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required" "$LINENO" 5
f11781c5 7877 fi
dd1f2c09 7878fi
f11781c5
AK
7879
7880if test x$CHECKCPG = xyes; then
7881
7882pkg_failed=no
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7884$as_echo_n "checking for CPG... " >&6; }
7885
7886if test -n "$CPG_CFLAGS"; then
7887 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7888 elif test -n "$PKG_CONFIG"; then
7889 if test -n "$PKG_CONFIG" && \
7890 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7891 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7892 ac_status=$?
7893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7894 test $ac_status = 0; }; then
7895 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 7896else
f11781c5
AK
7897 pkg_failed=yes
7898fi
7899 else
7900 pkg_failed=untried
7901fi
7902if test -n "$CPG_LIBS"; then
7903 pkg_cv_CPG_LIBS="$CPG_LIBS"
7904 elif test -n "$PKG_CONFIG"; then
7905 if test -n "$PKG_CONFIG" && \
7906 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7907 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 7908 ac_status=$?
f11781c5
AK
7909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7910 test $ac_status = 0; }; then
7911 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 7912else
f11781c5
AK
7913 pkg_failed=yes
7914fi
7915 else
7916 pkg_failed=untried
7917fi
7918
7919
7920
7921if test $pkg_failed = yes; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923$as_echo "no" >&6; }
7924
7925if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7926 _pkg_short_errors_supported=yes
7927else
7928 _pkg_short_errors_supported=no
7929fi
7930 if test $_pkg_short_errors_supported = yes; then
7931 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7932 else
7933 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7934 fi
7935 # Put the nasty error message in config.log where it belongs
7936 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 7937
f11781c5
AK
7938 $bailout
7939elif test $pkg_failed = untried; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941$as_echo "no" >&6; }
7942 $bailout
7943else
7944 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
7945 CPG_LIBS=$pkg_cv_CPG_LIBS
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7947$as_echo "yes" >&6; }
7948 HAVE_CPG=yes
7949fi
dd1f2c09
MB
7950fi
7951
f11781c5 7952if test x$CHECKDLM = xyes; then
dd1f2c09 7953
f11781c5
AK
7954pkg_failed=no
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
7956$as_echo_n "checking for DLM... " >&6; }
7957
7958if test -n "$DLM_CFLAGS"; then
7959 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
7960 elif test -n "$PKG_CONFIG"; then
7961 if test -n "$PKG_CONFIG" && \
7962 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7963 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 7964 ac_status=$?
f11781c5
AK
7965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7966 test $ac_status = 0; }; then
7967 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 7968else
f11781c5
AK
7969 pkg_failed=yes
7970fi
7971 else
7972 pkg_failed=untried
7973fi
7974if test -n "$DLM_LIBS"; then
7975 pkg_cv_DLM_LIBS="$DLM_LIBS"
7976 elif test -n "$PKG_CONFIG"; then
7977 if test -n "$PKG_CONFIG" && \
7978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7979 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7980 ac_status=$?
7981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7982 test $ac_status = 0; }; then
7983 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
7984else
7985 pkg_failed=yes
7986fi
7987 else
7988 pkg_failed=untried
dd1f2c09
MB
7989fi
7990
dd1f2c09 7991
dd1f2c09 7992
f11781c5
AK
7993if test $pkg_failed = yes; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995$as_echo "no" >&6; }
7996
7997if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7998 _pkg_short_errors_supported=yes
dd1f2c09 7999else
f11781c5 8000 _pkg_short_errors_supported=no
dd1f2c09 8001fi
f11781c5
AK
8002 if test $_pkg_short_errors_supported = yes; then
8003 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8004 else
8005 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8006 fi
8007 # Put the nasty error message in config.log where it belongs
8008 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 8009
f11781c5
AK
8010 NOTFOUND=0
8011 for ac_header in libdlm.h
8012do :
8013 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8014if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 8015 cat >>confdefs.h <<_ACEOF
f11781c5 8016#define HAVE_LIBDLM_H 1
dd1f2c09
MB
8017_ACEOF
8018
f11781c5
AK
8019else
8020 $bailout
dd1f2c09 8021fi
f8f6ec92
ZK
8022
8023done
8024
f11781c5
AK
8025 check_lib_no_libs dlm dlm_lock -lpthread
8026 if test $NOTFOUND = 0; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8028$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8029 DLM_LIBS="-ldlm -lpthread"
8030 HAVE_DLM=yes
8031 fi
8032elif test $pkg_failed = untried; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034$as_echo "no" >&6; }
8035 NOTFOUND=0
8036 for ac_header in libdlm.h
8037do :
8038 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8039if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8040 cat >>confdefs.h <<_ACEOF
8041#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
8042_ACEOF
8043
f8f6ec92 8044else
f11781c5 8045 $bailout
ad6254c5
AK
8046fi
8047
f11781c5 8048done
8b1a3214 8049
f11781c5
AK
8050 check_lib_no_libs dlm dlm_lock -lpthread
8051 if test $NOTFOUND = 0; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8053$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8054 DLM_LIBS="-ldlm -lpthread"
8055 HAVE_DLM=yes
8056 fi
8b1a3214 8057else
f11781c5
AK
8058 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8059 DLM_LIBS=$pkg_cv_DLM_LIBS
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8061$as_echo "yes" >&6; }
8062 HAVE_DLM=yes
8b1a3214 8063fi
8b1a3214
AK
8064fi
8065
f11781c5
AK
8066if test x$CLVMD = xall; then
8067 CLVMD=none
8068 CLVMD_CMANAGERS=""
8069 CLVMD_NEEDS_QDISKD=no
f11781c5
AK
8070 if test x$HAVE_CMAN = xyes && \
8071 test x$HAVE_DLM = xyes; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8073$as_echo "Enabling clvmd cman cluster manager" >&6; }
8074 CLVMD="$CLVMD,cman"
8075 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8076 CLVMD_NEEDS_QDISKD=yes
8077 fi
8078 if test x$HAVE_COROSYNC = xyes && \
8079 test x$HAVE_QUORUM = xyes && \
8080 test x$HAVE_CPG = xyes && \
b6d7a484
AK
8081 test x$HAVE_DLM = xyes; then
8082 if test x$HAVE_CONFDB = xyes || test x$HAVE_CMAP = xyes; then
f11781c5
AK
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8084$as_echo "Enabling clvmd corosync cluster manager" >&6; }
8085 CLVMD="$CLVMD,corosync"
8086 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
b6d7a484 8087 fi
f11781c5
AK
8088 fi
8089 if test x$HAVE_COROSYNC = xyes && \
8090 test x$HAVE_CPG = xyes && \
8091 test x$HAVE_SALCK = xyes; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8093$as_echo "Enabling clvmd openais cluster manager" >&6; }
8094 CLVMD="$CLVMD,openais"
8095 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8096 fi
8097 if test x$CLVMD_NEEDS_QDISKD != xno; then
8098 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8099 fi
8100 if test x$CLVMD = xnone; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8102$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
8103 fi
8104fi
8105
75fad6ea
MB
8106if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
8107 if test x$HAVE_CMAP = xyes; then
8108 CLVMD_CMANAGERS="$CLVMD_CMANAGERS dlm"
8109 fi
8110fi
8111
ad6254c5 8112################################################################################
f11781c5 8113if test "x$CLVMD" != xnone; then
ad6254c5 8114
f11781c5
AK
8115# Check whether --with-clvmd-pidfile was given.
8116if test "${with_clvmd_pidfile+set}" = set; then :
8117 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 8118else
f11781c5 8119 CLVMD_PIDFILE="/var/run/clvmd.pid"
ad6254c5 8120fi
7a197a62 8121
ad6254c5 8122
f11781c5
AK
8123cat >>confdefs.h <<_ACEOF
8124#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 8125_ACEOF
ad6254c5 8126
ad6254c5 8127fi
7a197a62 8128
f11781c5
AK
8129################################################################################
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8131$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8132# Check whether --enable-cmirrord was given.
8133if test "${enable_cmirrord+set}" = set; then :
8134 enableval=$enable_cmirrord; CMIRRORD=$enableval
8135else
8136 CMIRRORD=no
8137fi
8138
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8140$as_echo "$CMIRRORD" >&6; }
ad6254c5 8141
f11781c5 8142BUILD_CMIRRORD=$CMIRRORD
7a197a62 8143
f11781c5
AK
8144################################################################################
8145if test "x$BUILD_CMIRRORD" = xyes; then
8146
8147# Check whether --with-cmirrord-pidfile was given.
8148if test "${with_cmirrord_pidfile+set}" = set; then :
8149 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 8150else
f11781c5 8151 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
ad6254c5 8152fi
ad6254c5 8153
72b2cb61 8154
f11781c5
AK
8155cat >>confdefs.h <<_ACEOF
8156#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8157_ACEOF
8158
ad6254c5
AK
8159fi
8160
f11781c5
AK
8161################################################################################
8162if [ "x$BUILD_CMIRRORD" = xyes ]; then
8163 if test x$PKGCONFIG_INIT != x1; then
8164 pkg_config_init
8165 fi
ad6254c5 8166
f11781c5
AK
8167pkg_failed=no
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8169$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8170
f11781c5
AK
8171if test -n "$SACKPT_CFLAGS"; then
8172 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8173 elif test -n "$PKG_CONFIG"; then
8174 if test -n "$PKG_CONFIG" && \
8175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8176 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8177 ac_status=$?
8178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8179 test $ac_status = 0; }; then
8180 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8181else
f11781c5
AK
8182 pkg_failed=yes
8183fi
8184 else
8185 pkg_failed=untried
8186fi
8187if test -n "$SACKPT_LIBS"; then
8188 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8189 elif test -n "$PKG_CONFIG"; then
8190 if test -n "$PKG_CONFIG" && \
8191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8192 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 8193 ac_status=$?
f11781c5
AK
8194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8195 test $ac_status = 0; }; then
8196 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8197else
f11781c5
AK
8198 pkg_failed=yes
8199fi
8200 else
8201 pkg_failed=untried
8202fi
539f4a77
ZK
8203
8204
539f4a77 8205
f11781c5
AK
8206if test $pkg_failed = yes; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208$as_echo "no" >&6; }
8209
8210if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8211 _pkg_short_errors_supported=yes
539f4a77 8212else
f11781c5 8213 _pkg_short_errors_supported=no
539f4a77 8214fi
f11781c5
AK
8215 if test $_pkg_short_errors_supported = yes; then
8216 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8217 else
8218 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8219 fi
8220 # Put the nasty error message in config.log where it belongs
8221 echo "$SACKPT_PKG_ERRORS" >&5
8222
8223 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8224
8225$SACKPT_PKG_ERRORS
8226
8227Consider adjusting the PKG_CONFIG_PATH environment variable if you
8228installed software in a non-standard prefix.
8229
8230Alternatively, you may set the environment variables SACKPT_CFLAGS
8231and SACKPT_LIBS to avoid the need to call pkg-config.
8232See the pkg-config man page for more details." "$LINENO" 5
8233
8234elif test $pkg_failed = untried; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236$as_echo "no" >&6; }
8237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8239as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8240is in your PATH or set the PKG_CONFIG environment variable to the full
8241path to pkg-config.
8242
8243Alternatively, you may set the environment variables SACKPT_CFLAGS
8244and SACKPT_LIBS to avoid the need to call pkg-config.
8245See the pkg-config man page for more details.
8246
8247To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8248See \`config.log' for more details" "$LINENO" 5; }
8249
539f4a77 8250else
f11781c5
AK
8251 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8252 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8254$as_echo "yes" >&6; }
539f4a77 8255
539f4a77 8256fi
f11781c5 8257 if test x$HAVE_CPG != xyes; then
539f4a77 8258
f11781c5
AK
8259pkg_failed=no
8260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8261$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8262
f11781c5
AK
8263if test -n "$CPG_CFLAGS"; then
8264 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8265 elif test -n "$PKG_CONFIG"; then
8266 if test -n "$PKG_CONFIG" && \
8267 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8268 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8269 ac_status=$?
f11781c5
AK
8270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8271 test $ac_status = 0; }; then
8272 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8273else
f11781c5
AK
8274 pkg_failed=yes
8275fi
8276 else
8277 pkg_failed=untried
8278fi
8279if test -n "$CPG_LIBS"; then
8280 pkg_cv_CPG_LIBS="$CPG_LIBS"
8281 elif test -n "$PKG_CONFIG"; then
8282 if test -n "$PKG_CONFIG" && \
8283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8284 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8285 ac_status=$?
8286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8287 test $ac_status = 0; }; then
8288 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8289else
8290 pkg_failed=yes
8291fi
8292 else
8293 pkg_failed=untried
8294fi
8295
8296
8297
8298if test $pkg_failed = yes; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300$as_echo "no" >&6; }
ad6254c5 8301
f11781c5
AK
8302if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8303 _pkg_short_errors_supported=yes
8304else
8305 _pkg_short_errors_supported=no
ad6254c5 8306fi
f11781c5
AK
8307 if test $_pkg_short_errors_supported = yes; then
8308 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8309 else
8310 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8311 fi
8312 # Put the nasty error message in config.log where it belongs
8313 echo "$CPG_PKG_ERRORS" >&5
8314
8315 as_fn_error $? "Package requirements (libcpg) were not met:
8316
8317$CPG_PKG_ERRORS
8318
8319Consider adjusting the PKG_CONFIG_PATH environment variable if you
8320installed software in a non-standard prefix.
8321
8322Alternatively, you may set the environment variables CPG_CFLAGS
8323and CPG_LIBS to avoid the need to call pkg-config.
8324See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8325
f11781c5
AK
8326elif test $pkg_failed = untried; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328$as_echo "no" >&6; }
8329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8331as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8332is in your PATH or set the PKG_CONFIG environment variable to the full
8333path to pkg-config.
539f4a77 8334
f11781c5
AK
8335Alternatively, you may set the environment variables CPG_CFLAGS
8336and CPG_LIBS to avoid the need to call pkg-config.
8337See the pkg-config man page for more details.
539f4a77 8338
f11781c5
AK
8339To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8340See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8341
539f4a77 8342else
f11781c5
AK
8343 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8344 CPG_LIBS=$pkg_cv_CPG_LIBS
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8346$as_echo "yes" >&6; }
bc1024f8 8347
f11781c5
AK
8348fi
8349 fi
8350fi
8351
8352################################################################################
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8354$as_echo_n "checking whether to enable debugging... " >&6; }
8355# Check whether --enable-debug was given.
8356if test "${enable_debug+set}" = set; then :
8357 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8358else
f11781c5
AK
8359 DEBUG=no
8360fi
8361
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8363$as_echo "$DEBUG" >&6; }
539f4a77 8364
f11781c5
AK
8365if test x$DEBUG = xyes; then
8366 COPTIMISE_FLAG=
8367else
8368 CSCOPE_CMD=
06e459df
JM
8369fi
8370
f11781c5
AK
8371################################################################################
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8373$as_echo_n "checking for C optimisation flag... " >&6; }
8374
8375# Check whether --with-optimisation was given.
8376if test "${with_optimisation+set}" = set; then :
8377 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8378fi
539f4a77 8379
f11781c5
AK
8380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8381$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8382
f11781c5
AK
8383################################################################################
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8385$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8386# Check whether --enable-profiling was given.
8387if test "${enable_profiling+set}" = set; then :
8388 enableval=$enable_profiling; PROFILING=$enableval
8389else
8390 PROFILING=no
539f4a77
ZK
8391fi
8392
f11781c5
AK
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8394$as_echo "$PROFILING" >&6; }
8395
8396if test "x$PROFILING" = xyes; then
8397 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8398 # Extract the first word of "lcov", so it can be a program name with args.
8399set dummy lcov; ac_word=$2
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8401$as_echo_n "checking for $ac_word... " >&6; }
8402if test "${ac_cv_path_LCOV+set}" = set; then :
8403 $as_echo_n "(cached) " >&6
539f4a77 8404else
f11781c5
AK
8405 case $LCOV in
8406 [\\/]* | ?:[\\/]*)
8407 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8408 ;;
8409 *)
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411for as_dir in $PATH
8412do
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8420 fi
8421done
8422 done
8423IFS=$as_save_IFS
539f4a77 8424
f11781c5
AK
8425 ;;
8426esac
8427fi
8428LCOV=$ac_cv_path_LCOV
8429if test -n "$LCOV"; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8431$as_echo "$LCOV" >&6; }
8432else
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434$as_echo "no" >&6; }
539f4a77
ZK
8435fi
8436
bc1024f8 8437
f11781c5
AK
8438 # Extract the first word of "genhtml", so it can be a program name with args.
8439set dummy genhtml; ac_word=$2
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8441$as_echo_n "checking for $ac_word... " >&6; }
8442if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8443 $as_echo_n "(cached) " >&6
ad6254c5 8444else
f11781c5
AK
8445 case $GENHTML in
8446 [\\/]* | ?:[\\/]*)
8447 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8448 ;;
8449 *)
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451for as_dir in $PATH
8452do
8453 IFS=$as_save_IFS
8454 test -z "$as_dir" && as_dir=.
8455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8457 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8459 break 2
8460 fi
8461done
8462 done
8463IFS=$as_save_IFS
8a2fc586 8464
f11781c5
AK
8465 ;;
8466esac
8467fi
8468GENHTML=$ac_cv_path_GENHTML
8469if test -n "$GENHTML"; then
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8471$as_echo "$GENHTML" >&6; }
8472else
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474$as_echo "no" >&6; }
8475fi
8a2fc586 8476
8a2fc586 8477
f11781c5
AK
8478 if test -z "$LCOV" -o -z "$GENHTML"; then
8479 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8480 fi
8481 # Extract the first word of "genpng", so it can be a program name with args.
8482set dummy genpng; ac_word=$2
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484$as_echo_n "checking for $ac_word... " >&6; }
8485if test "${ac_cv_path_GENPNG+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
8487else
8488 case $GENPNG in
8489 [\\/]* | ?:[\\/]*)
8490 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8491 ;;
8492 *)
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494for as_dir in $PATH
8495do
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8500 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 break 2
8503 fi
8504done
8505 done
8506IFS=$as_save_IFS
ad6254c5 8507
f11781c5 8508 ;;
7a197a62 8509esac
f11781c5
AK
8510fi
8511GENPNG=$ac_cv_path_GENPNG
8512if test -n "$GENPNG"; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8514$as_echo "$GENPNG" >&6; }
ad6254c5 8515else
f11781c5
AK
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517$as_echo "no" >&6; }
8518fi
8519
8520
8521 if test -n "$GENPNG"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8523$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8524 if $GENPNG --help > /dev/null 2>&1 ; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8526$as_echo "ok" >&6; }
8527 GENHTML="$GENHTML --frames"
8528 else
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8530$as_echo "not supported" >&6; }
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8532$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8533 GENPNG=
8534 fi
8535 fi
8536fi
ad6254c5 8537
f11781c5
AK
8538################################################################################
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8540$as_echo_n "checking whether to enable unit testing... " >&6; }
8541# Check whether --enable-testing was given.
8542if test "${enable_testing+set}" = set; then :
8543 enableval=$enable_testing; TESTING=$enableval
8544else
8545 TESTING=no
ad6254c5 8546fi
7a197a62 8547
f11781c5
AK
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8549$as_echo "$TESTING" >&6; }
72b2cb61 8550
f11781c5 8551if test "$TESTING" = yes; then
426fc742
PR
8552
8553pkg_failed=no
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
8555$as_echo_n "checking for CUNIT... " >&6; }
8556
8557if test -n "$CUNIT_CFLAGS"; then
8558 pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
8559 elif test -n "$PKG_CONFIG"; then
8560 if test -n "$PKG_CONFIG" && \
8561 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8562 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8563 ac_status=$?
8564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8565 test $ac_status = 0; }; then
8566 pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null`
8567else
8568 pkg_failed=yes
8569fi
8570 else
8571 pkg_failed=untried
8572fi
8573if test -n "$CUNIT_LIBS"; then
8574 pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
8575 elif test -n "$PKG_CONFIG"; then
8576 if test -n "$PKG_CONFIG" && \
8577 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8578 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8579 ac_status=$?
8580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8581 test $ac_status = 0; }; then
8582 pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null`
ad6254c5 8583else
426fc742
PR
8584 pkg_failed=yes
8585fi
8586 else
8587 pkg_failed=untried
ad6254c5
AK
8588fi
8589
7a197a62 8590
426fc742
PR
8591
8592if test $pkg_failed = yes; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594$as_echo "no" >&6; }
8595
8596if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8597 _pkg_short_errors_supported=yes
8598else
8599 _pkg_short_errors_supported=no
8600fi
8601 if test $_pkg_short_errors_supported = yes; then
8602 CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1`
8603 else
8604 CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1`
8605 fi
8606 # Put the nasty error message in config.log where it belongs
8607 echo "$CUNIT_PKG_ERRORS" >&5
8608
8609 as_fn_error $? "Package requirements (cunit >= 2.0) were not met:
8610
8611$CUNIT_PKG_ERRORS
8612
8613Consider adjusting the PKG_CONFIG_PATH environment variable if you
8614installed software in a non-standard prefix.
8615
8616Alternatively, you may set the environment variables CUNIT_CFLAGS
8617and CUNIT_LIBS to avoid the need to call pkg-config.
8618See the pkg-config man page for more details." "$LINENO" 5
8619
8620elif test $pkg_failed = untried; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622$as_echo "no" >&6; }
8623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8625as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8626is in your PATH or set the PKG_CONFIG environment variable to the full
8627path to pkg-config.
8628
8629Alternatively, you may set the environment variables CUNIT_CFLAGS
8630and CUNIT_LIBS to avoid the need to call pkg-config.
8631See the pkg-config man page for more details.
8632
8633To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8634See \`config.log' for more details" "$LINENO" 5; }
8635
8636else
8637 CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
8638 CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8640$as_echo "yes" >&6; }
8641
8642fi
f11781c5 8643fi
ad6254c5 8644
f11781c5
AK
8645################################################################################
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8647$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8648# Check whether --enable-valgrind_pool was given.
8649if test "${enable_valgrind_pool+set}" = set; then :
8650 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8651else
8652 VALGRIND_POOL=no
8653fi
8654
8655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8656$as_echo "$VALGRIND_POOL" >&6; }
8657
8658if test "$VALGRIND_POOL" = yes; then
8659 for ac_header in valgrind/memcheck.h
8660do :
8661 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8662if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8663 cat >>confdefs.h <<_ACEOF
8664#define HAVE_VALGRIND_MEMCHECK_H 1
8665_ACEOF
ad6254c5 8666
ad6254c5 8667else
f11781c5 8668 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8669fi
8670
f11781c5
AK
8671done
8672
8673
8674$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8675
ad6254c5
AK
8676fi
8677
8678################################################################################
f11781c5
AK
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8680$as_echo_n "checking whether to use device-mapper... " >&6; }
8681# Check whether --enable-devmapper was given.
8682if test "${enable_devmapper+set}" = set; then :
8683 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8684fi
8685
f11781c5
AK
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8687$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8688
f11781c5 8689if test x$DEVMAPPER = xyes; then
ad6254c5 8690
f11781c5
AK
8691$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8692
8693fi
8694
cdd50823
ZK
8695################################################################################
8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5
8697$as_echo_n "checking whether to build LVMetaD... " >&6; }
8698# Check whether --enable-lvmetad was given.
8699if test "${enable_lvmetad+set}" = set; then :
8700 enableval=$enable_lvmetad; LVMETAD=$enableval
8701fi
8702
8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5
8704$as_echo "$LVMETAD" >&6; }
8705
8706BUILD_LVMETAD=$LVMETAD
8707
f11781c5
AK
8708################################################################################
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8710$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8711# Check whether --enable-udev_sync was given.
8712if test "${enable_udev_sync+set}" = set; then :
8713 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8714else
f11781c5 8715 UDEV_SYNC=no
7a197a62 8716fi
ad6254c5 8717
f11781c5
AK
8718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8719$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8720
f11781c5 8721if test x$UDEV_SYNC = xyes; then
86ba564a
AK
8722 if test x$PKGCONFIG_INIT != x1; then
8723 pkg_config_init
8724 fi
7a197a62 8725
d93275eb
PR
8726pkg_failed=no
8727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8728$as_echo_n "checking for UDEV... " >&6; }
8729
8730if test -n "$UDEV_CFLAGS"; then
8731 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8732 elif test -n "$PKG_CONFIG"; then
8733 if test -n "$PKG_CONFIG" && \
8734 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8735 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8736 ac_status=$?
8737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8738 test $ac_status = 0; }; then
8739 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
68f2de6d 8740else
d93275eb 8741 pkg_failed=yes
f11781c5 8742fi
d93275eb
PR
8743 else
8744 pkg_failed=untried
f11781c5 8745fi
d93275eb
PR
8746if test -n "$UDEV_LIBS"; then
8747 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8748 elif test -n "$PKG_CONFIG"; then
8749 if test -n "$PKG_CONFIG" && \
8750 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8751 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8752 ac_status=$?
8753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8754 test $ac_status = 0; }; then
8755 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
f11781c5 8756else
d93275eb 8757 pkg_failed=yes
68f2de6d 8758fi
d93275eb
PR
8759 else
8760 pkg_failed=untried
8761fi
8762
8763
8764
8765if test $pkg_failed = yes; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767$as_echo "no" >&6; }
8768
8769if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8770 _pkg_short_errors_supported=yes
8771else
8772 _pkg_short_errors_supported=no
8773fi
8774 if test $_pkg_short_errors_supported = yes; then
8775 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8776 else
8777 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8778 fi
8779 # Put the nasty error message in config.log where it belongs
8780 echo "$UDEV_PKG_ERRORS" >&5
8781
8782 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8783
8784$UDEV_PKG_ERRORS
8785
8786Consider adjusting the PKG_CONFIG_PATH environment variable if you
8787installed software in a non-standard prefix.
8788
8789Alternatively, you may set the environment variables UDEV_CFLAGS
8790and UDEV_LIBS to avoid the need to call pkg-config.
8791See the pkg-config man page for more details." "$LINENO" 5
68f2de6d 8792
d93275eb
PR
8793elif test $pkg_failed = untried; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795$as_echo "no" >&6; }
8796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8798as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8799is in your PATH or set the PKG_CONFIG environment variable to the full
8800path to pkg-config.
8801
8802Alternatively, you may set the environment variables UDEV_CFLAGS
8803and UDEV_LIBS to avoid the need to call pkg-config.
8804See the pkg-config man page for more details.
8805
8806To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8807See \`config.log' for more details" "$LINENO" 5; }
8808
8809else
8810 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8811 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8813$as_echo "yes" >&6; }
8814 UDEV_PC="libudev"
8815fi
68f2de6d 8816
f11781c5 8817$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8818
f11781c5
AK
8819fi
8820
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8822$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8823# Check whether --enable-udev_rules was given.
8824if test "${enable_udev_rules+set}" = set; then :
8825 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 8826else
f11781c5 8827 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
8828fi
8829
f11781c5
AK
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8831$as_echo "$UDEV_RULES" >&6; }
68f2de6d 8832
a5f46f6a 8833################################################################################
f11781c5
AK
8834# Check whether --enable-compat was given.
8835if test "${enable_compat+set}" = set; then :
8836 enableval=$enable_compat; DM_COMPAT=$enableval
8837else
8838 DM_COMPAT=no
8839fi
a5f46f6a 8840
f11781c5 8841
2061c0ec
AK
8842if test x$DM_COMPAT = xyes; then
8843 as_fn_error $? "--enable-compat is not currently supported.
8844Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8845ioctl protocol is supported.
8846 " "$LINENO" 5
8847fi
8848
f11781c5
AK
8849################################################################################
8850# Check whether --enable-units-compat was given.
8851if test "${enable_units_compat+set}" = set; then :
8852 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 8853else
f11781c5 8854 UNITS_COMPAT=no
a5f46f6a
AK
8855fi
8856
8857
f11781c5 8858if test x$UNITS_COMPAT = xyes; then
78ce7acc 8859
f11781c5
AK
8860$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8861
8862fi
8863
8864################################################################################
8865# Check whether --enable-ioctl was given.
8866if test "${enable_ioctl+set}" = set; then :
8867 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
8868fi
8869
a5f46f6a 8870
ad6254c5 8871################################################################################
f11781c5
AK
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8873$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8874# Check whether --enable-o_direct was given.
8875if test "${enable_o_direct+set}" = set; then :
8876 enableval=$enable_o_direct; ODIRECT=$enableval
8877fi
ad6254c5 8878
f11781c5
AK
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8880$as_echo "$ODIRECT" >&6; }
8881
8882if test x$ODIRECT = xyes; then
8883
8884$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 8885
ad6254c5 8886fi
ad6254c5 8887
f11781c5
AK
8888################################################################################
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8890$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8891# Check whether --enable-applib was given.
8892if test "${enable_applib+set}" = set; then :
8893 enableval=$enable_applib; APPLIB=$enableval
8894else
8895 APPLIB=no
ad6254c5 8896fi
7a197a62 8897
f11781c5
AK
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8899$as_echo "$APPLIB" >&6; }
ad6254c5 8900
f11781c5
AK
8901test x$APPLIB = xyes \
8902 && LVM2APP_LIB=-llvm2app \
8903 || LVM2APP_LIB=
ad6254c5 8904
f11781c5
AK
8905################################################################################
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8907$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8908# Check whether --enable-cmdlib was given.
8909if test "${enable_cmdlib+set}" = set; then :
8910 enableval=$enable_cmdlib; CMDLIB=$enableval
8911else
8912 CMDLIB=no
ad6254c5 8913fi
7a197a62 8914
f11781c5
AK
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8916$as_echo "$CMDLIB" >&6; }
7a197a62 8917
f11781c5
AK
8918test x$CMDLIB = xyes \
8919 && LVM2CMD_LIB=-llvm2cmd \
8920 || LVM2CMD_LIB=
8921
8922################################################################################
8923# Check whether --enable-pkgconfig was given.
8924if test "${enable_pkgconfig+set}" = set; then :
8925 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 8926else
f11781c5 8927 PKGCONFIG=no
ad6254c5 8928fi
ad6254c5 8929
ad6254c5 8930
f11781c5
AK
8931################################################################################
8932# Check whether --enable-write_install was given.
8933if test "${enable_write_install+set}" = set; then :
8934 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 8935else
f11781c5 8936 WRITE_INSTALL=no
ad6254c5
AK
8937fi
8938
ad6254c5 8939
f11781c5
AK
8940################################################################################
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8942$as_echo_n "checking whether to install fsadm... " >&6; }
8943# Check whether --enable-fsadm was given.
8944if test "${enable_fsadm+set}" = set; then :
8945 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
8946fi
8947
f11781c5
AK
8948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8949$as_echo "$FSADM" >&6; }
ad6254c5 8950
f11781c5
AK
8951################################################################################
8952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8953$as_echo_n "checking whether to use dmeventd... " >&6; }
8954# Check whether --enable-dmeventd was given.
8955if test "${enable_dmeventd+set}" = set; then :
8956 enableval=$enable_dmeventd; DMEVENTD=$enableval
8957fi
ad6254c5 8958
f11781c5
AK
8959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
8960$as_echo "$DMEVENTD" >&6; }
ad6254c5 8961
f11781c5 8962BUILD_DMEVENTD=$DMEVENTD
ad6254c5 8963
f11781c5
AK
8964if test x$DMEVENTD = xyes; then
8965 if test x$MIRRORS != xinternal; then
8966 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
8967 " "$LINENO" 5
8968 fi
8969 if test x$CMDLIB = xno; then
8970 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
8971 " "$LINENO" 5
8972 fi
8973fi
ad6254c5 8974
f11781c5 8975if test x$DMEVENTD = xyes; then
ad6254c5 8976
f11781c5 8977$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 8978
f11781c5 8979fi
ad6254c5 8980
f11781c5 8981################################################################################
ad6254c5 8982
f11781c5
AK
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
8984$as_echo_n "checking for getline in -lc... " >&6; }
8985if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 8986 $as_echo_n "(cached) " >&6
ad6254c5 8987else
f11781c5
AK
8988 ac_check_lib_save_LIBS=$LIBS
8989LIBS="-lc $LIBS"
8990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8991/* end confdefs.h. */
f11781c5
AK
8992
8993/* Override any GCC internal prototype to avoid an error.
8994 Use char because int might match the return type of a GCC
8995 builtin and then its argument prototype would still apply. */
8996#ifdef __cplusplus
8997extern "C"
8998#endif
8999char getline ();
9000int
9001main ()
9002{
9003return getline ();
9004 ;
9005 return 0;
9006}
ad6254c5 9007_ACEOF
f11781c5
AK
9008if ac_fn_c_try_link "$LINENO"; then :
9009 ac_cv_lib_c_getline=yes
ad6254c5 9010else
f11781c5
AK
9011 ac_cv_lib_c_getline=no
9012fi
9013rm -f core conftest.err conftest.$ac_objext \
9014 conftest$ac_exeext conftest.$ac_ext
9015LIBS=$ac_check_lib_save_LIBS
9016fi
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9018$as_echo "$ac_cv_lib_c_getline" >&6; }
9019if test "x$ac_cv_lib_c_getline" = x""yes; then :
9020
9021$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 9022
ad6254c5 9023fi
7a197a62 9024
ad6254c5 9025
f11781c5
AK
9026################################################################################
9027
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9029$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9030if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9031 $as_echo_n "(cached) " >&6
9032else
9033 ac_check_lib_save_LIBS=$LIBS
9034LIBS="-lc $LIBS"
9035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9036/* end confdefs.h. */
f11781c5
AK
9037
9038/* Override any GCC internal prototype to avoid an error.
9039 Use char because int might match the return type of a GCC
9040 builtin and then its argument prototype would still apply. */
9041#ifdef __cplusplus
9042extern "C"
9043#endif
9044char canonicalize_file_name ();
9045int
9046main ()
9047{
9048return canonicalize_file_name ();
9049 ;
9050 return 0;
9051}
ad6254c5 9052_ACEOF
f11781c5
AK
9053if ac_fn_c_try_link "$LINENO"; then :
9054 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 9055else
f11781c5
AK
9056 ac_cv_lib_c_canonicalize_file_name=no
9057fi
9058rm -f core conftest.err conftest.$ac_objext \
9059 conftest$ac_exeext conftest.$ac_ext
9060LIBS=$ac_check_lib_save_LIBS
9061fi
9062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9063$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9064if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9065
9066$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 9067
ad6254c5 9068fi
7a197a62 9069
ad6254c5 9070
f11781c5
AK
9071################################################################################
9072if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9073 then exec_prefix="";
9074fi;
7a197a62 9075
f11781c5
AK
9076################################################################################
9077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9078$as_echo_n "checking for dlopen in -ldl... " >&6; }
9079if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 9080 $as_echo_n "(cached) " >&6
ad6254c5 9081else
f11781c5
AK
9082 ac_check_lib_save_LIBS=$LIBS
9083LIBS="-ldl $LIBS"
9084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085/* end confdefs.h. */
ad6254c5 9086
f11781c5
AK
9087/* Override any GCC internal prototype to avoid an error.
9088 Use char because int might match the return type of a GCC
9089 builtin and then its argument prototype would still apply. */
9090#ifdef __cplusplus
9091extern "C"
9092#endif
9093char dlopen ();
9094int
9095main ()
9096{
9097return dlopen ();
9098 ;
9099 return 0;
9100}
ad6254c5 9101_ACEOF
f11781c5
AK
9102if ac_fn_c_try_link "$LINENO"; then :
9103 ac_cv_lib_dl_dlopen=yes
ad6254c5 9104else
f11781c5 9105 ac_cv_lib_dl_dlopen=no
795ca3e5 9106fi
f11781c5
AK
9107rm -f core conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9109LIBS=$ac_check_lib_save_LIBS
9110fi
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9112$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9113if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 9114
ad6254c5 9115
f11781c5 9116$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 9117
f11781c5
AK
9118 DL_LIBS="-ldl"
9119 HAVE_LIBDL=yes
9120else
795ca3e5 9121
f11781c5
AK
9122 DL_LIBS=
9123 HAVE_LIBDL=no
9124fi
8106cdd5 9125
ad6254c5 9126
f11781c5
AK
9127################################################################################
9128if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9129 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
cac52ca4 9130 -o "x$RAID" = xshared \
f11781c5
AK
9131 \) -a "x$STATIC_LINK" = xyes ];
9132 then as_fn_error $? "Features cannot be 'shared' when building statically
9133" "$LINENO" 5
9134fi
ad6254c5 9135
f11781c5
AK
9136################################################################################
9137if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9139$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9140if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 9141 $as_echo_n "(cached) " >&6
795ca3e5 9142else
f11781c5
AK
9143 ac_check_lib_save_LIBS=$LIBS
9144LIBS="-lpthread $LIBS"
9145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9146/* end confdefs.h. */
8a2fc586 9147
f11781c5
AK
9148/* Override any GCC internal prototype to avoid an error.
9149 Use char because int might match the return type of a GCC
9150 builtin and then its argument prototype would still apply. */
9151#ifdef __cplusplus
9152extern "C"
ad6254c5 9153#endif
f11781c5
AK
9154char pthread_mutex_lock ();
9155int
9156main ()
9157{
9158return pthread_mutex_lock ();
9159 ;
9160 return 0;
9161}
9162_ACEOF
9163if ac_fn_c_try_link "$LINENO"; then :
9164 ac_cv_lib_pthread_pthread_mutex_lock=yes
9165else
9166 ac_cv_lib_pthread_pthread_mutex_lock=no
9167fi
9168rm -f core conftest.err conftest.$ac_objext \
9169 conftest$ac_exeext conftest.$ac_ext
9170LIBS=$ac_check_lib_save_LIBS
9171fi
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9173$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9174if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9175 PTHREAD_LIBS="-lpthread"
9176else
9177 hard_bailout
9178fi
9179
9180fi
9181
9182################################################################################
9183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9184$as_echo_n "checking whether to enable selinux support... " >&6; }
9185# Check whether --enable-selinux was given.
9186if test "${enable_selinux+set}" = set; then :
9187 enableval=$enable_selinux; SELINUX=$enableval
9188fi
9189
9190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9191$as_echo "$SELINUX" >&6; }
8a2fc586 9192
f11781c5
AK
9193################################################################################
9194if test x$SELINUX = xyes; then
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9196$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9197if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9198 $as_echo_n "(cached) " >&6
9199else
9200 ac_check_lib_save_LIBS=$LIBS
9201LIBS="-lsepol $LIBS"
9202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203/* end confdefs.h. */
8a2fc586 9204
7a197a62
AK
9205/* Override any GCC internal prototype to avoid an error.
9206 Use char because int might match the return type of a GCC
9207 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9208#ifdef __cplusplus
9209extern "C"
ad6254c5 9210#endif
f11781c5 9211char sepol_check_context ();
ad6254c5
AK
9212int
9213main ()
9214{
f11781c5 9215return sepol_check_context ();
ad6254c5
AK
9216 ;
9217 return 0;
9218}
9219_ACEOF
f11781c5
AK
9220if ac_fn_c_try_link "$LINENO"; then :
9221 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9222else
f11781c5
AK
9223 ac_cv_lib_sepol_sepol_check_context=no
9224fi
9225rm -f core conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
9227LIBS=$ac_check_lib_save_LIBS
80992638 9228fi
f11781c5
AK
9229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9230$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9231if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9232
80992638 9233
f11781c5
AK
9234$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9235
9236 SELINUX_LIBS="-lsepol"
8106cdd5 9237fi
795ca3e5 9238
f11781c5
AK
9239
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9241$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9242if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9243 $as_echo_n "(cached) " >&6
25fbec5b 9244else
f11781c5
AK
9245 ac_check_lib_save_LIBS=$LIBS
9246LIBS="-lselinux $LIBS"
9247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9248/* end confdefs.h. */
80992638 9249
7a197a62
AK
9250/* Override any GCC internal prototype to avoid an error.
9251 Use char because int might match the return type of a GCC
ad6254c5 9252 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9253#ifdef __cplusplus
9254extern "C"
9255#endif
f11781c5 9256char is_selinux_enabled ();
ad6254c5
AK
9257int
9258main ()
9259{
f11781c5 9260return is_selinux_enabled ();
ad6254c5
AK
9261 ;
9262 return 0;
9263}
9264_ACEOF
f11781c5
AK
9265if ac_fn_c_try_link "$LINENO"; then :
9266 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9267else
f11781c5 9268 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9269fi
f11781c5
AK
9270rm -f core conftest.err conftest.$ac_objext \
9271 conftest$ac_exeext conftest.$ac_ext
9272LIBS=$ac_check_lib_save_LIBS
25fbec5b 9273fi
f11781c5
AK
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9275$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9276if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9277
f11781c5
AK
9278 for ac_header in selinux/selinux.h
9279do :
9280 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9281if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9282 cat >>confdefs.h <<_ACEOF
9283#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9284_ACEOF
795ca3e5 9285
25fbec5b 9286else
f11781c5 9287 hard_bailout
795ca3e5 9288fi
795ca3e5 9289
f11781c5 9290done
795ca3e5 9291
f11781c5
AK
9292 for ac_header in selinux/label.h
9293do :
9294 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9295if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9296 cat >>confdefs.h <<_ACEOF
9297#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9298_ACEOF
ad6254c5 9299
ad6254c5 9300fi
7a197a62 9301
f11781c5 9302done
7a197a62 9303
ad6254c5 9304
f11781c5 9305$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9306
f11781c5
AK
9307 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9308 SELINUX_PC="libselinux"
9309 HAVE_SELINUX=yes
ad6254c5 9310else
8106cdd5 9311
f11781c5
AK
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9313$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9314 SELINUX_LIBS=
9315 SELINUX_PC=
9316 HAVE_SELINUX=no
795ca3e5 9317fi
ad6254c5 9318
795ca3e5
AK
9319fi
9320
f11781c5
AK
9321################################################################################
9322if test x$REALTIME = xyes; then
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9324$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9325if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9326 $as_echo_n "(cached) " >&6
26e7f2e0 9327else
f11781c5
AK
9328 ac_check_lib_save_LIBS=$LIBS
9329LIBS="-lrt $LIBS"
9330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9331/* end confdefs.h. */
ad6254c5 9332
f11781c5
AK
9333/* Override any GCC internal prototype to avoid an error.
9334 Use char because int might match the return type of a GCC
9335 builtin and then its argument prototype would still apply. */
9336#ifdef __cplusplus
9337extern "C"
9338#endif
9339char clock_gettime ();
ad6254c5
AK
9340int
9341main ()
9342{
f11781c5 9343return clock_gettime ();
ad6254c5
AK
9344 ;
9345 return 0;
9346}
9347_ACEOF
f11781c5
AK
9348if ac_fn_c_try_link "$LINENO"; then :
9349 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9350else
f11781c5 9351 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9352fi
f11781c5
AK
9353rm -f core conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
9355LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9356fi
f11781c5
AK
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9358$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9359if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9360 HAVE_REALTIME=yes
9361else
9362 HAVE_REALTIME=no
8106cdd5 9363fi
ad6254c5 9364
ad6254c5 9365
f11781c5 9366 if test x$HAVE_REALTIME = xyes; then
7a197a62 9367
f11781c5 9368$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9369
f11781c5
AK
9370 LIBS="-lrt $LIBS"
9371 else
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9373$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9374 fi
9375fi
9376
9377################################################################################
9378for ac_header in getopt.h
9379do :
9380 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9381if test "x$ac_cv_header_getopt_h" = x""yes; then :
9382 cat >>confdefs.h <<_ACEOF
9383#define HAVE_GETOPT_H 1
9384_ACEOF
9385
9386$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9387
ad6254c5 9388fi
7a197a62 9389
f11781c5 9390done
ad6254c5 9391
7a197a62 9392
f11781c5
AK
9393################################################################################
9394if test x$READLINE != xno; then
9395 lvm_saved_libs=$LIBS
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9397$as_echo_n "checking for library containing tgetent... " >&6; }
9398if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9399 $as_echo_n "(cached) " >&6
ad6254c5 9400else
f11781c5
AK
9401 ac_func_search_save_LIBS=$LIBS
9402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403/* end confdefs.h. */
ad6254c5 9404
f11781c5
AK
9405/* Override any GCC internal prototype to avoid an error.
9406 Use char because int might match the return type of a GCC
9407 builtin and then its argument prototype would still apply. */
9408#ifdef __cplusplus
9409extern "C"
9410#endif
9411char tgetent ();
9412int
9413main ()
9414{
9415return tgetent ();
9416 ;
9417 return 0;
9418}
ad6254c5 9419_ACEOF
f11781c5
AK
9420for ac_lib in '' tinfo ncurses curses termcap termlib; do
9421 if test -z "$ac_lib"; then
9422 ac_res="none required"
9423 else
9424 ac_res=-l$ac_lib
9425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9426 fi
9427 if ac_fn_c_try_link "$LINENO"; then :
9428 ac_cv_search_tgetent=$ac_res
9429fi
9430rm -f core conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext
9432 if test "${ac_cv_search_tgetent+set}" = set; then :
9433 break
9434fi
9435done
9436if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9437
80992638 9438else
f11781c5 9439 ac_cv_search_tgetent=no
b896caa1 9440fi
f11781c5
AK
9441rm conftest.$ac_ext
9442LIBS=$ac_func_search_save_LIBS
9443fi
9444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9445$as_echo "$ac_cv_search_tgetent" >&6; }
9446ac_res=$ac_cv_search_tgetent
9447if test "$ac_res" != no; then :
9448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9449 READLINE_LIBS=$ac_cv_search_tgetent
9450else
ad6254c5 9451
f11781c5
AK
9452 if test "$READLINE" = yes; then
9453 as_fn_error $? "termcap could not be found which is required for the
9454--enable-readline option (which is enabled by default). Either disable readline
9455support with --disable-readline or download and install termcap from:
9456 ftp.gnu.org/gnu/termcap
9457Note: if you are using precompiled packages you will also need the development
9458 package as well (which may be called termcap-devel or something similar).
9459Note: (n)curses also seems to work as a substitute for termcap. This was
9460 not found either - but you could try installing that as well." "$LINENO" 5
9461 fi
9462fi
b896caa1 9463
f11781c5
AK
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9465$as_echo_n "checking for readline in -lreadline... " >&6; }
9466if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9467 $as_echo_n "(cached) " >&6
795ca3e5 9468else
f11781c5
AK
9469 ac_check_lib_save_LIBS=$LIBS
9470LIBS="-lreadline $LIBS"
9471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9472/* end confdefs.h. */
8a2fc586 9473
f11781c5
AK
9474/* Override any GCC internal prototype to avoid an error.
9475 Use char because int might match the return type of a GCC
9476 builtin and then its argument prototype would still apply. */
9477#ifdef __cplusplus
9478extern "C"
ad6254c5 9479#endif
f11781c5
AK
9480char readline ();
9481int
9482main ()
9483{
9484return readline ();
9485 ;
9486 return 0;
9487}
9488_ACEOF
9489if ac_fn_c_try_link "$LINENO"; then :
9490 ac_cv_lib_readline_readline=yes
9491else
9492 ac_cv_lib_readline_readline=no
9493fi
9494rm -f core conftest.err conftest.$ac_objext \
9495 conftest$ac_exeext conftest.$ac_ext
9496LIBS=$ac_check_lib_save_LIBS
9497fi
9498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9499$as_echo "$ac_cv_lib_readline_readline" >&6; }
9500if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9501
8a2fc586 9502
f11781c5
AK
9503$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9504
9505 LIBS=$lvm_saved_libs
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9507$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9508if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9509 $as_echo_n "(cached) " >&6
9510else
9511 ac_check_lib_save_LIBS=$LIBS
9512LIBS="-lreadline $LIBS"
9513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514/* end confdefs.h. */
8a2fc586 9515
7a197a62
AK
9516/* Override any GCC internal prototype to avoid an error.
9517 Use char because int might match the return type of a GCC
9518 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9519#ifdef __cplusplus
9520extern "C"
ad6254c5 9521#endif
f11781c5 9522char rl_line_buffer ();
ad6254c5
AK
9523int
9524main ()
9525{
f11781c5 9526return rl_line_buffer ();
ad6254c5
AK
9527 ;
9528 return 0;
9529}
9530_ACEOF
f11781c5
AK
9531if ac_fn_c_try_link "$LINENO"; then :
9532 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9533else
f11781c5
AK
9534 ac_cv_lib_readline_rl_line_buffer=no
9535fi
9536rm -f core conftest.err conftest.$ac_objext \
9537 conftest$ac_exeext conftest.$ac_ext
9538LIBS=$ac_check_lib_save_LIBS
9539fi
9540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9541$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9542if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9543 READLINE_LIBS="-lreadline"
9544else
9545
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9547$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9548 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9549
ad6254c5 9550fi
7a197a62 9551
f11781c5
AK
9552else
9553
9554 READLINE_LIBS=
9555 if test "$READLINE" = yes; then
9556 as_fn_error $? "GNU Readline could not be found which is required for the
9557--enable-readline option (which is enabled by default). Either disable readline
9558support with --disable-readline or download and install readline from:
9559 ftp.gnu.org/gnu/readline
9560Note: if you are using precompiled packages you will also need the development
9561package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9562 fi
ad6254c5 9563fi
f11781c5
AK
9564
9565 LIBS="$READLINE_LIBS $lvm_saved_libs"
9566 for ac_func in rl_completion_matches
9567do :
9568 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9569if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9570 cat >>confdefs.h <<_ACEOF
f11781c5 9571#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9572_ACEOF
9573
ad6254c5
AK
9574fi
9575done
9576
f11781c5 9577 LIBS=$lvm_saved_libs
ad6254c5
AK
9578fi
9579
f11781c5
AK
9580################################################################################
9581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9582$as_echo_n "checking whether to enable internationalisation... " >&6; }
9583# Check whether --enable-nls was given.
9584if test "${enable_nls+set}" = set; then :
9585 enableval=$enable_nls; INTL=$enableval
9586else
9587 INTL=no
9588fi
d911ec67 9589
f11781c5
AK
9590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9591$as_echo "$INTL" >&6; }
9592
9593if test x$INTL = xyes; then
9594# FIXME - Move this - can be device-mapper too
9595 INTL_PACKAGE="lvm2"
9596 # Extract the first word of "msgfmt", so it can be a program name with args.
9597set dummy msgfmt; ac_word=$2
9598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9599$as_echo_n "checking for $ac_word... " >&6; }
9600if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9601 $as_echo_n "(cached) " >&6
d911ec67 9602else
f11781c5
AK
9603 case $MSGFMT in
9604 [\\/]* | ?:[\\/]*)
9605 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9606 ;;
9607 *)
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609for as_dir in $PATH
9610do
9611 IFS=$as_save_IFS
9612 test -z "$as_dir" && as_dir=.
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9615 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617 break 2
9618 fi
9619done
9620 done
9621IFS=$as_save_IFS
9622
9623 ;;
d911ec67 9624esac
f11781c5
AK
9625fi
9626MSGFMT=$ac_cv_path_MSGFMT
9627if test -n "$MSGFMT"; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9629$as_echo "$MSGFMT" >&6; }
d911ec67 9630else
f11781c5
AK
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632$as_echo "no" >&6; }
9633fi
d911ec67 9634
f11781c5
AK
9635
9636 if [ "x$MSGFMT" == x ];
9637 then as_fn_error $? "msgfmt not found in path $PATH
9638 " "$LINENO" 5
9639 fi;
9640
9641
9642# Check whether --with-localedir was given.
9643if test "${with_localedir+set}" = set; then :
9644 withval=$with_localedir; LOCALEDIR=$withval
9645else
9646 LOCALEDIR='${prefix}/share/locale'
9647fi
9648
9649fi
9650
9651################################################################################
9652
9653# Check whether --with-confdir was given.
9654if test "${with_confdir+set}" = set; then :
9655 withval=$with_confdir; CONFDIR=$withval
9656else
9657 CONFDIR="/etc"
9658fi
9659
9660
9661
9662# Check whether --with-staticdir was given.
9663if test "${with_staticdir+set}" = set; then :
9664 withval=$with_staticdir; STATICDIR=$withval
9665else
9666 STATICDIR='${exec_prefix}/sbin'
9667fi
9668
9669
9670
9671# Check whether --with-usrlibdir was given.
9672if test "${with_usrlibdir+set}" = set; then :
9673 withval=$with_usrlibdir; usrlibdir=$withval
9674else
9675 usrlibdir='${prefix}/lib'
d911ec67
AK
9676fi
9677
d911ec67 9678
d911ec67 9679
f11781c5
AK
9680# Check whether --with-usrsbindir was given.
9681if test "${with_usrsbindir+set}" = set; then :
9682 withval=$with_usrsbindir; usrsbindir=$withval
9683else
9684 usrsbindir='${prefix}/sbin'
d911ec67
AK
9685fi
9686
d911ec67 9687
f11781c5 9688################################################################################
d911ec67 9689
f11781c5
AK
9690# Check whether --with-udev_prefix was given.
9691if test "${with_udev_prefix+set}" = set; then :
9692 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9693else
f11781c5 9694 udev_prefix='${exec_prefix}'
d911ec67 9695fi
d911ec67 9696
f11781c5
AK
9697
9698
9699# Check whether --with-udevdir was given.
9700if test "${with_udevdir+set}" = set; then :
9701 withval=$with_udevdir; udevdir=$withval
9702else
9703 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9704fi
f11781c5
AK
9705
9706
e587cb6a
PR
9707################################################################################
9708
9709# Check whether --with-systemdsystemunitdir was given.
9710if test "${with_systemdsystemunitdir+set}" = set; then :
9711 withval=$with_systemdsystemunitdir; systemdsystemunitdir=$withval
9712else
9713 pkg_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
9714fi
9715
9716
9717if test -n "$pkg_systemdsystemunitdir"; then
9718 systemdsystemunitdir=$pkg_systemdsystemunitdir;
9719fi
9720
9721if test -z "$systemdsystemunitdir"; then
9722 systemdsystemunitdir='/lib/systemd/system';
9723fi
f11781c5
AK
9724################################################################################
9725if test x$READLINE = xyes; then
9726 for ac_header in readline/readline.h readline/history.h
9727do :
9728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9729ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9730if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9731 cat >>confdefs.h <<_ACEOF
9732#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9733_ACEOF
9734
9735else
f11781c5 9736 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9737fi
9738
9739done
9740
9741fi
9742
f11781c5
AK
9743if test x$CLVMD != xnone; then
9744 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
9745do :
9746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9747ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9748if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9749 cat >>confdefs.h <<_ACEOF
9750#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9751_ACEOF
ad6254c5 9752
f11781c5
AK
9753else
9754 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9755fi
7a197a62 9756
f11781c5 9757done
ad6254c5 9758
f11781c5
AK
9759 for ac_func in dup2 getmntent memmove select socket
9760do :
9761 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9762ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9763if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9764 cat >>confdefs.h <<_ACEOF
9765#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9766_ACEOF
ad6254c5 9767
f11781c5
AK
9768else
9769 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9770fi
f11781c5 9771done
7a197a62 9772
f11781c5
AK
9773 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9774# -lseq on Dynix/PTX, -lgen on Unixware.
9775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9776$as_echo_n "checking for library containing getmntent... " >&6; }
9777if test "${ac_cv_search_getmntent+set}" = set; then :
9778 $as_echo_n "(cached) " >&6
9779else
9780 ac_func_search_save_LIBS=$LIBS
9781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782/* end confdefs.h. */
ad6254c5 9783
f11781c5
AK
9784/* Override any GCC internal prototype to avoid an error.
9785 Use char because int might match the return type of a GCC
9786 builtin and then its argument prototype would still apply. */
9787#ifdef __cplusplus
9788extern "C"
9789#endif
9790char getmntent ();
9791int
9792main ()
9793{
9794return getmntent ();
9795 ;
9796 return 0;
9797}
9798_ACEOF
9799for ac_lib in '' sun seq gen; do
9800 if test -z "$ac_lib"; then
9801 ac_res="none required"
9802 else
9803 ac_res=-l$ac_lib
9804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9805 fi
9806 if ac_fn_c_try_link "$LINENO"; then :
9807 ac_cv_search_getmntent=$ac_res
9808fi
9809rm -f core conftest.err conftest.$ac_objext \
9810 conftest$ac_exeext
9811 if test "${ac_cv_search_getmntent+set}" = set; then :
9812 break
9813fi
9814done
9815if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 9816
ad6254c5 9817else
f11781c5 9818 ac_cv_search_getmntent=no
795ca3e5 9819fi
f11781c5
AK
9820rm conftest.$ac_ext
9821LIBS=$ac_func_search_save_LIBS
9822fi
9823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9824$as_echo "$ac_cv_search_getmntent" >&6; }
9825ac_res=$ac_cv_search_getmntent
9826if test "$ac_res" != no; then :
9827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9828 ac_cv_func_getmntent=yes
9829
9830$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 9831
f11781c5
AK
9832else
9833 ac_cv_func_getmntent=no
8106cdd5 9834fi
f11781c5
AK
9835
9836
9837 for ac_header in sys/select.h sys/socket.h
9838do :
9839 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9840ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9841if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 9842 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9843#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9844_ACEOF
795ca3e5 9845
795ca3e5
AK
9846fi
9847
ad6254c5 9848done
80992638 9849
f11781c5
AK
9850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9851$as_echo_n "checking types of arguments for select... " >&6; }
9852if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 9853 $as_echo_n "(cached) " >&6
83912faa 9854else
f11781c5
AK
9855 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9856 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9857 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
9859/* end confdefs.h. */
9860$ac_includes_default
f11781c5
AK
9861#ifdef HAVE_SYS_SELECT_H
9862# include <sys/select.h>
9863#endif
9864#ifdef HAVE_SYS_SOCKET_H
9865# include <sys/socket.h>
9866#endif
9867
9868int
9869main ()
9870{
9871extern int select ($ac_arg1,
9872 $ac_arg234, $ac_arg234, $ac_arg234,
9873 $ac_arg5);
9874 ;
9875 return 0;
9876}
ad6254c5 9877_ACEOF
f11781c5
AK
9878if ac_fn_c_try_compile "$LINENO"; then :
9879 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9880fi
9881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9882 done
9883 done
9884done
9885# Provide a safe default value.
9886: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 9887
ad6254c5 9888fi
f11781c5
AK
9889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9890$as_echo "$ac_cv_func_select_args" >&6; }
9891ac_save_IFS=$IFS; IFS=','
9892set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9893IFS=$ac_save_IFS
9894shift
7a197a62 9895
f11781c5
AK
9896cat >>confdefs.h <<_ACEOF
9897#define SELECT_TYPE_ARG1 $1
9898_ACEOF
ad6254c5 9899
f11781c5
AK
9900
9901cat >>confdefs.h <<_ACEOF
9902#define SELECT_TYPE_ARG234 ($2)
ad6254c5 9903_ACEOF
f11781c5
AK
9904
9905
9906cat >>confdefs.h <<_ACEOF
9907#define SELECT_TYPE_ARG5 ($3)
ad6254c5 9908_ACEOF
ad6254c5 9909
f11781c5
AK
9910rm -f conftest*
9911
ad6254c5 9912fi
7a197a62 9913
f11781c5
AK
9914if test x$CLUSTER != xnone; then
9915 for ac_header in sys/socket.h sys/un.h
9916do :
9917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9918ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9919if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9920 cat >>confdefs.h <<_ACEOF
9921#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9922_ACEOF
ad6254c5 9923
f11781c5
AK
9924else
9925 as_fn_error $? "bailing out" "$LINENO" 5
9926fi
9927
9928done
9929
9930 for ac_func in socket
9931do :
9932 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9933if test "x$ac_cv_func_socket" = x""yes; then :
9934 cat >>confdefs.h <<_ACEOF
9935#define HAVE_SOCKET 1
9936_ACEOF
7a197a62 9937
80992638 9938else
f11781c5 9939 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 9940fi
f11781c5 9941done
83912faa 9942
69792976 9943fi
f11781c5
AK
9944
9945if test x$DMEVENTD = xyes; then
9946 for ac_header in arpa/inet.h
9947do :
9948 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9949if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 9950 cat >>confdefs.h <<_ACEOF
f11781c5 9951#define HAVE_ARPA_INET_H 1
ad6254c5 9952_ACEOF
69792976 9953
69792976 9954else
f11781c5 9955 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
9956fi
9957
ad6254c5 9958done
69792976 9959
ad6254c5
AK
9960fi
9961
f11781c5
AK
9962if test x$HAVE_LIBDL = xyes; then
9963 for ac_header in dlfcn.h
9964do :
9965 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9966if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9967 cat >>confdefs.h <<_ACEOF
9968#define HAVE_DLFCN_H 1
a5f46f6a 9969_ACEOF
a5f46f6a 9970
f11781c5
AK
9971else
9972 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9973fi
9974
f11781c5 9975done
a5f46f6a 9976
a5f46f6a
AK
9977fi
9978
f11781c5
AK
9979if test x$INTL = xyes; then
9980 for ac_header in libintl.h
9981do :
9982 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9983if test "x$ac_cv_header_libintl_h" = x""yes; then :
9984 cat >>confdefs.h <<_ACEOF
9985#define HAVE_LIBINTL_H 1
9986_ACEOF
a5f46f6a 9987
a5f46f6a 9988else
f11781c5 9989 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 9990fi
f11781c5
AK
9991
9992done
a5f46f6a
AK
9993
9994fi
f11781c5
AK
9995
9996if test x$UDEV_SYNC = xyes; then
9997 for ac_header in sys/ipc.h sys/sem.h
9998do :
9999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10000ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10001if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
10002 cat >>confdefs.h <<_ACEOF
10003#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10004_ACEOF
10005
10006else
f11781c5 10007 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
10008fi
10009
10010done
10011
10012fi
10013
a653923f
AK
10014################################################################################
10015# Extract the first word of "modprobe", so it can be a program name with args.
10016set dummy modprobe; ac_word=$2
f11781c5 10017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 10018$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 10019if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 10020 $as_echo_n "(cached) " >&6
72b2cb61
AK
10021else
10022 case $MODPROBE_CMD in
10023 [\\/]* | ?:[\\/]*)
10024 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10025 ;;
10026 *)
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028for as_dir in $PATH
10029do
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
f11781c5 10032 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 10034 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 10035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
10036 break 2
10037 fi
10038done
f11781c5 10039 done
7a197a62 10040IFS=$as_save_IFS
72b2cb61
AK
10041
10042 ;;
10043esac
10044fi
10045MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 10046if test -n "$MODPROBE_CMD"; then
f11781c5 10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 10048$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 10049else
f11781c5 10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 10051$as_echo "no" >&6; }
72b2cb61
AK
10052fi
10053
a653923f 10054
7a197a62 10055
a653923f 10056if test x$MODPROBE_CMD != x; then
72b2cb61
AK
10057
10058cat >>confdefs.h <<_ACEOF
10059#define MODPROBE_CMD "$MODPROBE_CMD"
10060_ACEOF
10061
a653923f
AK
10062fi
10063
b5c2529b 10064
a9b601e2
ZK
10065lvm_exec_prefix=$exec_prefix
10066test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10067test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
d2c11605 10068LVM_PATH="$lvm_exec_prefix/sbin/lvm"
a9b601e2 10069
b5c2529b 10070cat >>confdefs.h <<_ACEOF
d2c11605 10071#define LVM_PATH "$LVM_PATH"
b5c2529b
ZK
10072_ACEOF
10073
10074
10075if test "$CLVMD" != none; then
10076 clvmd_prefix=$ac_default_prefix
d2c11605 10077 CLVMD_PATH="$clvmd_prefix/sbin/clvmd"
b5c2529b
ZK
10078 test "$prefix" != NONE && clvmd_prefix=$prefix
10079
10080cat >>confdefs.h <<_ACEOF
d2c11605 10081#define CLVMD_PATH "$CLVMD_PATH"
b5c2529b
ZK
10082_ACEOF
10083
10084fi
10085
80992638 10086################################################################################
93bd259b
AK
10087if test "$BUILD_DMEVENTD" = yes; then
10088
10089# Check whether --with-dmeventd-pidfile was given.
f11781c5 10090if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 10091 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 10092else
71082be4 10093 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
10094fi
10095
93bd259b 10096
71082be4
ZK
10097cat >>confdefs.h <<_ACEOF
10098#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10099_ACEOF
93bd259b 10100
71082be4 10101fi
93bd259b
AK
10102
10103if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
10104
10105# Check whether --with-dmeventd-path was given.
f11781c5 10106if test "${with_dmeventd_path+set}" = set; then :
71082be4 10107 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 10108else
71082be4 10109 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
10110fi
10111
93bd259b 10112
71082be4
ZK
10113cat >>confdefs.h <<_ACEOF
10114#define DMEVENTD_PATH "$DMEVENTD_PATH"
10115_ACEOF
3399ae32 10116
71082be4 10117fi
3399ae32 10118
8bae0a1e
AK
10119
10120
8bae0a1e 10121# Check whether --with-default-run-dir was given.
f11781c5 10122if test "${with_default_run_dir+set}" = set; then :
8bae0a1e
AK
10123 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
10124else
10125 DEFAULT_RUN_DIR="/var/run/lvm"
10126fi
10127
10128cat >>confdefs.h <<_ACEOF
10129#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10130_ACEOF
10131
10132
71082be4 10133################################################################################
3399ae32
AK
10134
10135# Check whether --with-default-system-dir was given.
f11781c5 10136if test "${with_default_system_dir+set}" = set; then :
71082be4 10137 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 10138else
71082be4 10139 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
10140fi
10141
71082be4 10142
3399ae32
AK
10143cat >>confdefs.h <<_ACEOF
10144#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10145_ACEOF
10146
10147
10148
3399ae32 10149# Check whether --with-default-archive-subdir was given.
f11781c5 10150if test "${with_default_archive_subdir+set}" = set; then :
71082be4 10151 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 10152else
71082be4 10153 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
10154fi
10155
71082be4 10156
3399ae32
AK
10157cat >>confdefs.h <<_ACEOF
10158#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10159_ACEOF
10160
10161
10162
3399ae32 10163# Check whether --with-default-backup-subdir was given.
f11781c5 10164if test "${with_default_backup_subdir+set}" = set; then :
71082be4 10165 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 10166else
71082be4 10167 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
10168fi
10169
71082be4 10170
3399ae32
AK
10171cat >>confdefs.h <<_ACEOF
10172#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10173_ACEOF
10174
10175
10176
3399ae32 10177# Check whether --with-default-cache-subdir was given.
f11781c5 10178if test "${with_default_cache_subdir+set}" = set; then :
71082be4 10179 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 10180else
71082be4 10181 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
10182fi
10183
71082be4 10184
3399ae32
AK
10185cat >>confdefs.h <<_ACEOF
10186#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10187_ACEOF
10188
10189
10190
3399ae32 10191# Check whether --with-default-locking-dir was given.
f11781c5 10192if test "${with_default_locking_dir+set}" = set; then :
71082be4 10193 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 10194else
71082be4 10195 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
10196fi
10197
71082be4 10198
3399ae32
AK
10199cat >>confdefs.h <<_ACEOF
10200#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10201_ACEOF
10202
10203
fea55602
DW
10204################################################################################
10205
10206# Check whether --with-default-data-alignment was given.
f11781c5 10207if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
10208 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10209else
10210 DEFAULT_DATA_ALIGNMENT=1
10211fi
10212
10213
10214cat >>confdefs.h <<_ACEOF
10215#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10216_ACEOF
10217
10218
93bd259b 10219################################################################################
f11781c5 10220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10221$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10222
10223# Check whether --with-interface was given.
f11781c5 10224if test "${with_interface+set}" = set; then :
71082be4 10225 withval=$with_interface; interface=$withval
93bd259b 10226else
71082be4 10227 interface=ioctl
93bd259b
AK
10228fi
10229
10230if [ "x$interface" != xioctl ];
10231then
f11781c5 10232 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10233fi
f11781c5 10234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10235$as_echo "$interface" >&6; }
93bd259b
AK
10236
10237################################################################################
db8b5af9 10238DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10239
10240cat >>confdefs.h <<_ACEOF
10241#define DM_LIB_VERSION $DM_LIB_VERSION
10242_ACEOF
10243
10244
db8b5af9 10245DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10246
db8b5af9 10247LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10248
db8b5af9 10249VER=`cat "$srcdir"/VERSION`
bf456146 10250LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10251VER=`echo "$VER" | $AWK '{print $1}'`
10252LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10253VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10254LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10255LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10256LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10257LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10258
80992638 10259################################################################################
fae0c576 10260
83912faa 10261
795ca3e5
AK
10262
10263
10264
10265
10266
10267
5a52dca9 10268
8ef2b021 10269
199e490e 10270
69792976
AK
10271
10272
10273
d0191583 10274
69792976 10275
8106cdd5
AK
10276
10277
10278
10279
10280
d68a82ec 10281
036f273a 10282
7d1552c9 10283
8106cdd5 10284
0a62c911 10285
8106cdd5 10286
4a7f3eb2 10287
4922197a
AK
10288
10289
d8ac0fbc 10290
1a9ea74d 10291
8a2fc586
AK
10292
10293
d0191583 10294
93bd259b
AK
10295
10296
10297
10298
10299
d0191583
JM
10300
10301
10302
10303
10304
8a2fc586 10305
19a2c6e0 10306
f7f0854e
ZK
10307
10308
3ceb7608 10309
8ce0cbda 10310
8b1a3214 10311
ec6a6fbe
AK
10312
10313
10314
10315
e2997b73
AK
10316
10317
10318
10319
10320
10321
a946372e
AK
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
ec6a6fbe 10333
cac52ca4 10334
d3c8211f 10335
7e3fe830 10336
a5f46f6a
AK
10337
10338
10339
572fefeb 10340
90c80887 10341
3399ae32
AK
10342
10343
10344
10345
10346
90c80887 10347
bf456146 10348
e1b8a236 10349
0878503f 10350
8fea97b7 10351
54b362f9 10352
b1f08e51 10353
d1e8046f 10354
fea55602 10355
c89bc357 10356
6e5c1f75 10357
3ba4a195 10358
d2c11605
ZK
10359
10360
cdd50823 10361
426fc742
PR
10362
10363
b6d7a484
AK
10364
10365
bf09a320 10366
e587cb6a 10367
68f2de6d
AK
10368
10369
80992638 10370################################################################################
2bc1d759 10371ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/common/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/lvmetad/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 10372
ad6254c5 10373cat >confcache <<\_ACEOF
795ca3e5
AK
10374# This file is a shell script that caches the results of configure
10375# tests run on this system so they can be shared between configure
ad6254c5
AK
10376# scripts and configure runs, see configure's option --config-cache.
10377# It is not useful on other systems. If it contains results you don't
10378# want to keep, you may remove or edit it.
795ca3e5 10379#
ad6254c5
AK
10380# config.status only pays attention to the cache file if you give it
10381# the --recheck option to rerun configure.
795ca3e5 10382#
ad6254c5
AK
10383# `ac_cv_env_foo' variables (set or unset) will be overridden when
10384# loading this file, other *unset* `ac_cv_foo' will be assigned the
10385# following values.
10386
10387_ACEOF
10388
795ca3e5
AK
10389# The following way of writing the cache mishandles newlines in values,
10390# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10391# So, we kill variables containing newlines.
795ca3e5
AK
10392# Ultrix sh set writes to stderr and can't be redirected directly,
10393# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10394(
10395 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10396 eval ac_val=\$$ac_var
10397 case $ac_val in #(
10398 *${as_nl}*)
10399 case $ac_var in #(
f11781c5 10400 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10401$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10402 esac
10403 case $ac_var in #(
10404 _ | IFS | as_nl) ;; #(
ec6a6fbe 10405 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10406 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10407 esac ;;
10408 esac
10409 done
10410
ad6254c5 10411 (set) 2>&1 |
7a197a62
AK
10412 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10413 *${as_nl}ac_space=\ *)
f11781c5
AK
10414 # `set' does not quote correctly, so add quotes: double-quote
10415 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10416 sed -n \
8a2fc586
AK
10417 "s/'/'\\\\''/g;
10418 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10419 ;; #(
ad6254c5
AK
10420 *)
10421 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10422 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10423 ;;
7a197a62
AK
10424 esac |
10425 sort
10426) |
ad6254c5 10427 sed '
7a197a62 10428 /^ac_cv_env_/b end
ad6254c5 10429 t clear
7a197a62 10430 :clear
ad6254c5
AK
10431 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10432 t end
7a197a62
AK
10433 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10434 :end' >>confcache
10435if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10436 if test -w "$cache_file"; then
10437 test "x$cache_file" != "x/dev/null" &&
f11781c5 10438 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10439$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10440 cat confcache >$cache_file
795ca3e5 10441 else
f11781c5 10442 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10443$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10444 fi
10445fi
10446rm -f confcache
10447
795ca3e5
AK
10448test "x$prefix" = xNONE && prefix=$ac_default_prefix
10449# Let make expand exec_prefix.
10450test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10451
72b2cb61 10452DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10453
10454ac_libobjs=
10455ac_ltlibobjs=
f11781c5 10456U=
ad6254c5
AK
10457for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10458 # 1. Remove the extension, and $U if already installed.
7a197a62 10459 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10460 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10461 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10462 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10463 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10464 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10465done
10466LIBOBJS=$ac_libobjs
80992638 10467
ad6254c5
AK
10468LTLIBOBJS=$ac_ltlibobjs
10469
10470
10471
10472: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10473ac_write_fail=0
ad6254c5
AK
10474ac_clean_files_save=$ac_clean_files
10475ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10476{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10477$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10478as_write_fail=0
10479cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10480#! $SHELL
10481# Generated by $as_me.
795ca3e5 10482# Run this file to recreate the current configuration.
795ca3e5 10483# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10484# configure, is in config.log if it exists.
10485
10486debug=false
10487ac_cs_recheck=false
10488ac_cs_silent=false
ad6254c5 10489
f11781c5
AK
10490SHELL=\${CONFIG_SHELL-$SHELL}
10491export SHELL
10492_ASEOF
10493cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10494## -------------------- ##
10495## M4sh Initialization. ##
10496## -------------------- ##
ad6254c5 10497
25fbec5b
AK
10498# Be more Bourne compatible
10499DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10500if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10501 emulate sh
10502 NULLCMD=:
ec6a6fbe 10503 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10504 # is contrary to our usage. Disable this feature.
10505 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10506 setopt NO_GLOB_SUBST
10507else
f11781c5
AK
10508 case `(set -o) 2>/dev/null` in #(
10509 *posix*) :
10510 set -o posix ;; #(
10511 *) :
10512 ;;
25fbec5b 10513esac
7a197a62 10514fi
25fbec5b
AK
10515
10516
ec6a6fbe
AK
10517as_nl='
10518'
10519export as_nl
10520# Printing a long string crashes Solaris 7 /usr/bin/printf.
10521as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10522as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10523as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10524# Prefer a ksh shell builtin over an external printf program on Solaris,
10525# but without wasting forks for bash or zsh.
10526if test -z "$BASH_VERSION$ZSH_VERSION" \
10527 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10528 as_echo='print -r --'
10529 as_echo_n='print -rn --'
10530elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10531 as_echo='printf %s\n'
10532 as_echo_n='printf %s'
10533else
10534 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10535 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10536 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10537 else
ec6a6fbe
AK
10538 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10539 as_echo_n_body='eval
10540 arg=$1;
f11781c5 10541 case $arg in #(
ec6a6fbe
AK
10542 *"$as_nl"*)
10543 expr "X$arg" : "X\\(.*\\)$as_nl";
10544 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10545 esac;
10546 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10547 '
10548 export as_echo_n_body
10549 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10550 fi
ec6a6fbe
AK
10551 export as_echo_body
10552 as_echo='sh -c $as_echo_body as_echo'
10553fi
10554
10555# The user is always right.
10556if test "${PATH_SEPARATOR+set}" != set; then
10557 PATH_SEPARATOR=:
10558 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10559 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10560 PATH_SEPARATOR=';'
10561 }
ad6254c5
AK
10562fi
10563
ad6254c5 10564
7a197a62
AK
10565# IFS
10566# We need space, tab and new line, in precisely that order. Quoting is
10567# there to prevent editors from complaining about space-tab.
10568# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10569# splitting by setting IFS to empty value.)
7a197a62
AK
10570IFS=" "" $as_nl"
10571
10572# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10573case $0 in #((
7a197a62
AK
10574 *[\\/]* ) as_myself=$0 ;;
10575 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576for as_dir in $PATH
10577do
10578 IFS=$as_save_IFS
10579 test -z "$as_dir" && as_dir=.
f11781c5
AK
10580 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10581 done
7a197a62
AK
10582IFS=$as_save_IFS
10583
10584 ;;
10585esac
10586# We did not find ourselves, most probably we were run as `sh COMMAND'
10587# in which case we are not to be found in the path.
10588if test "x$as_myself" = x; then
10589 as_myself=$0
10590fi
10591if test ! -f "$as_myself"; then
ec6a6fbe 10592 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10593 exit 1
7a197a62
AK
10594fi
10595
f11781c5
AK
10596# Unset variables that we do not need and which cause bugs (e.g. in
10597# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10598# suppresses any "Segmentation fault" message there. '((' could
10599# trigger a bug in pdksh 5.2.14.
10600for as_var in BASH_ENV ENV MAIL MAILPATH
10601do eval test x\${$as_var+set} = xset \
10602 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10603done
ad6254c5
AK
10604PS1='$ '
10605PS2='> '
10606PS4='+ '
10607
10608# NLS nuisances.
ec6a6fbe
AK
10609LC_ALL=C
10610export LC_ALL
10611LANGUAGE=C
10612export LANGUAGE
8106cdd5 10613
f11781c5
AK
10614# CDPATH.
10615(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10616
10617
10618# as_fn_error STATUS ERROR [LINENO LOG_FD]
10619# ----------------------------------------
10620# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10621# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10622# script with STATUS, using 1 if that was 0.
10623as_fn_error ()
10624{
10625 as_status=$1; test $as_status -eq 0 && as_status=1
10626 if test "$4"; then
10627 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10628 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10629 fi
10630 $as_echo "$as_me: error: $2" >&2
10631 as_fn_exit $as_status
10632} # as_fn_error
10633
10634
10635# as_fn_set_status STATUS
10636# -----------------------
10637# Set $? to STATUS, without forking.
10638as_fn_set_status ()
10639{
10640 return $1
10641} # as_fn_set_status
10642
10643# as_fn_exit STATUS
10644# -----------------
10645# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10646as_fn_exit ()
10647{
10648 set +e
10649 as_fn_set_status $1
10650 exit $1
10651} # as_fn_exit
10652
10653# as_fn_unset VAR
10654# ---------------
10655# Portably unset VAR.
10656as_fn_unset ()
10657{
10658 { eval $1=; unset $1;}
10659}
10660as_unset=as_fn_unset
10661# as_fn_append VAR VALUE
10662# ----------------------
10663# Append the text in VALUE to the end of the definition contained in VAR. Take
10664# advantage of any shell optimizations that allow amortized linear growth over
10665# repeated appends, instead of the typical quadratic growth present in naive
10666# implementations.
10667if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10668 eval 'as_fn_append ()
10669 {
10670 eval $1+=\$2
10671 }'
10672else
10673 as_fn_append ()
10674 {
10675 eval $1=\$$1\$2
10676 }
10677fi # as_fn_append
10678
10679# as_fn_arith ARG...
10680# ------------------
10681# Perform arithmetic evaluation on the ARGs, and store the result in the
10682# global $as_val. Take advantage of shells that can avoid forks. The arguments
10683# must be portable across $(()) and expr.
10684if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10685 eval 'as_fn_arith ()
10686 {
10687 as_val=$(( $* ))
10688 }'
10689else
10690 as_fn_arith ()
10691 {
10692 as_val=`expr "$@" || test $? -eq 1`
10693 }
10694fi # as_fn_arith
10695
10696
7a197a62
AK
10697if expr a : '\(a\)' >/dev/null 2>&1 &&
10698 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10699 as_expr=expr
10700else
10701 as_expr=false
10702fi
8106cdd5 10703
7a197a62 10704if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10705 as_basename=basename
10706else
10707 as_basename=false
10708fi
10709
f11781c5
AK
10710if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10711 as_dirname=dirname
10712else
10713 as_dirname=false
10714fi
ad6254c5 10715
7a197a62 10716as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10717$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10718 X"$0" : 'X\(//\)$' \| \
7a197a62 10719 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10720$as_echo X/"$0" |
7a197a62
AK
10721 sed '/^.*\/\([^/][^/]*\)\/*$/{
10722 s//\1/
10723 q
10724 }
10725 /^X\/\(\/\/\)$/{
10726 s//\1/
10727 q
10728 }
10729 /^X\/\(\/\).*/{
10730 s//\1/
10731 q
10732 }
10733 s/.*/./; q'`
ad6254c5 10734
f11781c5
AK
10735# Avoid depending upon Character Ranges.
10736as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10737as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10738as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10739as_cr_digits='0123456789'
10740as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10741
10742ECHO_C= ECHO_N= ECHO_T=
f11781c5 10743case `echo -n x` in #(((((
7a197a62 10744-n*)
f11781c5 10745 case `echo 'xy\c'` in
7a197a62 10746 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10747 xy) ECHO_C='\c';;
10748 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10749 ECHO_T=' ';;
7a197a62
AK
10750 esac;;
10751*)
10752 ECHO_N='-n';;
ad6254c5 10753esac
80992638 10754
ad6254c5 10755rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10756if test -d conf$$.dir; then
10757 rm -f conf$$.dir/conf$$.file
10758else
10759 rm -f conf$$.dir
ec6a6fbe
AK
10760 mkdir conf$$.dir 2>/dev/null
10761fi
10762if (echo >conf$$.file) 2>/dev/null; then
10763 if ln -s conf$$.file conf$$ 2>/dev/null; then
10764 as_ln_s='ln -s'
10765 # ... but there are two gotchas:
10766 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10767 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10768 # In both cases, we have to default to `cp -p'.
10769 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10770 as_ln_s='cp -p'
10771 elif ln conf$$.file conf$$ 2>/dev/null; then
10772 as_ln_s=ln
10773 else
ad6254c5 10774 as_ln_s='cp -p'
ec6a6fbe 10775 fi
ad6254c5
AK
10776else
10777 as_ln_s='cp -p'
10778fi
7a197a62
AK
10779rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10780rmdir conf$$.dir 2>/dev/null
8106cdd5 10781
f11781c5
AK
10782
10783# as_fn_mkdir_p
10784# -------------
10785# Create "$as_dir" as a directory, including parents if necessary.
10786as_fn_mkdir_p ()
10787{
10788
10789 case $as_dir in #(
10790 -*) as_dir=./$as_dir;;
10791 esac
10792 test -d "$as_dir" || eval $as_mkdir_p || {
10793 as_dirs=
10794 while :; do
10795 case $as_dir in #(
10796 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10797 *) as_qdir=$as_dir;;
10798 esac
10799 as_dirs="'$as_qdir' $as_dirs"
10800 as_dir=`$as_dirname -- "$as_dir" ||
10801$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10802 X"$as_dir" : 'X\(//\)[^/]' \| \
10803 X"$as_dir" : 'X\(//\)$' \| \
10804 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10805$as_echo X"$as_dir" |
10806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10807 s//\1/
10808 q
10809 }
10810 /^X\(\/\/\)[^/].*/{
10811 s//\1/
10812 q
10813 }
10814 /^X\(\/\/\)$/{
10815 s//\1/
10816 q
10817 }
10818 /^X\(\/\).*/{
10819 s//\1/
10820 q
10821 }
10822 s/.*/./; q'`
10823 test -d "$as_dir" && break
10824 done
10825 test -z "$as_dirs" || eval "mkdir $as_dirs"
10826 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10827
10828
10829} # as_fn_mkdir_p
ad6254c5 10830if mkdir -p . 2>/dev/null; then
f11781c5 10831 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 10832else
8a2fc586 10833 test -d ./-p && rmdir ./-p
ad6254c5
AK
10834 as_mkdir_p=false
10835fi
10836
25fbec5b
AK
10837if test -x / >/dev/null 2>&1; then
10838 as_test_x='test -x'
7a197a62 10839else
25fbec5b
AK
10840 if ls -dL / >/dev/null 2>&1; then
10841 as_ls_L_option=L
10842 else
10843 as_ls_L_option=
10844 fi
10845 as_test_x='
10846 eval sh -c '\''
10847 if test -d "$1"; then
ec6a6fbe 10848 test -d "$1/.";
25fbec5b 10849 else
f11781c5 10850 case $1 in #(
ec6a6fbe 10851 -*)set "./$1";;
25fbec5b 10852 esac;
f11781c5 10853 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
10854 ???[sx]*):;;*)false;;esac;fi
10855 '\'' sh
10856 '
7a197a62 10857fi
25fbec5b 10858as_executable_p=$as_test_x
ad6254c5
AK
10859
10860# Sed expression to map a string onto a valid CPP name.
8a2fc586 10861as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10862
10863# Sed expression to map a string onto a valid variable name.
8a2fc586 10864as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10865
10866
ad6254c5 10867exec 6>&1
f11781c5
AK
10868## ----------------------------------- ##
10869## Main body of $CONFIG_STATUS script. ##
10870## ----------------------------------- ##
10871_ASEOF
10872test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 10873
f11781c5
AK
10874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10875# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 10876# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
10877# values after options handling.
10878ac_log="
ad6254c5 10879This file was extended by $as_me, which was
f11781c5 10880generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
10881
10882 CONFIG_FILES = $CONFIG_FILES
10883 CONFIG_HEADERS = $CONFIG_HEADERS
10884 CONFIG_LINKS = $CONFIG_LINKS
10885 CONFIG_COMMANDS = $CONFIG_COMMANDS
10886 $ $0 $@
10887
7a197a62
AK
10888on `(hostname || uname -n) 2>/dev/null | sed 1q`
10889"
10890
ad6254c5
AK
10891_ACEOF
10892
ec6a6fbe
AK
10893case $ac_config_files in *"
10894"*) set x $ac_config_files; shift; ac_config_files=$*;;
10895esac
10896
10897case $ac_config_headers in *"
10898"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10899esac
10900
10901
10902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10903# Files that config.status was made for.
68f2de6d
AK
10904config_files="$ac_config_files"
10905config_headers="$ac_config_headers"
ad6254c5 10906
7a197a62 10907_ACEOF
ad6254c5 10908
ec6a6fbe 10909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 10910ac_cs_usage="\
f11781c5
AK
10911\`$as_me' instantiates files and other configuration actions
10912from templates according to the current configuration. Unless the files
10913and actions are specified as TAGs, all are instantiated by default.
ad6254c5 10914
f11781c5 10915Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
10916
10917 -h, --help print this help, then exit
25fbec5b 10918 -V, --version print version number and configuration settings, then exit
f11781c5 10919 --config print configuration, then exit
ec6a6fbe
AK
10920 -q, --quiet, --silent
10921 do not print progress messages
ad6254c5
AK
10922 -d, --debug don't remove temporary files
10923 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
10924 --file=FILE[:TEMPLATE]
10925 instantiate the configuration file FILE
10926 --header=FILE[:TEMPLATE]
10927 instantiate the configuration header FILE
ad6254c5
AK
10928
10929Configuration files:
10930$config_files
10931
72b2cb61
AK
10932Configuration headers:
10933$config_headers
10934
f11781c5 10935Report bugs to the package provider."
ad6254c5 10936
7a197a62 10937_ACEOF
ec6a6fbe 10938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 10939ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
10940ac_cs_version="\\
10941config.status
f11781c5
AK
10942configured by $0, generated by GNU Autoconf 2.66,
10943 with options \\"\$ac_cs_config\\"
ad6254c5 10944
f11781c5 10945Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
10946This config.status script is free software; the Free Software Foundation
10947gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
10948
10949ac_pwd='$ac_pwd'
10950srcdir='$srcdir'
10951INSTALL='$INSTALL'
fddafd51 10952MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
10953AWK='$AWK'
10954test -n "\$AWK" || AWK=awk
ad6254c5
AK
10955_ACEOF
10956
ec6a6fbe
AK
10957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10958# The default lists apply if the user does not specify any file.
ad6254c5
AK
10959ac_need_defaults=:
10960while test $# != 0
10961do
10962 case $1 in
10963 --*=*)
7a197a62
AK
10964 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10965 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
10966 ac_shift=:
10967 ;;
7a197a62 10968 *)
ad6254c5
AK
10969 ac_option=$1
10970 ac_optarg=$2
10971 ac_shift=shift
10972 ;;
ad6254c5
AK
10973 esac
10974
10975 case $ac_option in
10976 # Handling of the options.
ad6254c5
AK
10977 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10978 ac_cs_recheck=: ;;
7a197a62 10979 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 10980 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
10981 --config | --confi | --conf | --con | --co | --c )
10982 $as_echo "$ac_cs_config"; exit ;;
7a197a62 10983 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
10984 debug=: ;;
10985 --file | --fil | --fi | --f )
10986 $ac_shift
ec6a6fbe
AK
10987 case $ac_optarg in
10988 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10989 esac
f11781c5 10990 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
10991 ac_need_defaults=false;;
10992 --header | --heade | --head | --hea )
10993 $ac_shift
ec6a6fbe
AK
10994 case $ac_optarg in
10995 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10996 esac
f11781c5 10997 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 10998 ac_need_defaults=false;;
7a197a62
AK
10999 --he | --h)
11000 # Conflict between --help and --header
f11781c5
AK
11001 as_fn_error $? "ambiguous option: \`$1'
11002Try \`$0 --help' for more information.";;
7a197a62 11003 --help | --hel | -h )
ec6a6fbe 11004 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
11005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11006 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11007 ac_cs_silent=: ;;
11008
11009 # This is an error.
f11781c5
AK
11010 -*) as_fn_error $? "unrecognized option: \`$1'
11011Try \`$0 --help' for more information." ;;
ad6254c5 11012
f11781c5 11013 *) as_fn_append ac_config_targets " $1"
7a197a62 11014 ac_need_defaults=false ;;
ad6254c5
AK
11015
11016 esac
11017 shift
11018done
11019
11020ac_configure_extra_args=
11021
11022if $ac_cs_silent; then
11023 exec 6>/dev/null
11024 ac_configure_extra_args="$ac_configure_extra_args --silent"
11025fi
11026
11027_ACEOF
ec6a6fbe 11028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 11029if \$ac_cs_recheck; then
ec6a6fbe
AK
11030 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11031 shift
11032 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11033 CONFIG_SHELL='$SHELL'
7a197a62 11034 export CONFIG_SHELL
ec6a6fbe 11035 exec "\$@"
ad6254c5
AK
11036fi
11037
11038_ACEOF
ec6a6fbe 11039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11040exec 5>>config.log
11041{
11042 echo
11043 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11044## Running $as_me. ##
11045_ASBOX
ec6a6fbe 11046 $as_echo "$ac_log"
7a197a62 11047} >&5
ad6254c5 11048
7a197a62 11049_ACEOF
ec6a6fbe 11050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 11051_ACEOF
ad6254c5 11052
ec6a6fbe 11053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11054
11055# Handling of arguments.
ad6254c5
AK
11056for ac_config_target in $ac_config_targets
11057do
7a197a62
AK
11058 case $ac_config_target in
11059 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11060 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11061 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11062 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11063 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 11064 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
13dd3138 11065 "daemons/common/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/common/Makefile" ;;
93bd259b
AK
11066 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11067 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 11068 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 11069 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
3041b72f 11070 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
93bd259b
AK
11071 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11072 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
2bc1d759 11073 "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
cdd50823 11074 "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
7a197a62 11075 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 11076 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 11077 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
11078 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11079 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
11080 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11081 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11082 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11083 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 11084 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 11085 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
40dbaac8 11086 "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;;
7a197a62 11087 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
3ba4a195 11088 "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;;
93bd259b
AK
11089 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11090 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 11091 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 11092 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
11093 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11094 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 11095 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 11096 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 11097 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
6e5c1f75
PR
11098 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11099 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
7a197a62 11100 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 11101 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 11102 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
9493f1df 11103 "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;;
7a197a62 11104 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 11105 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
11106 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11107 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 11108 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 11109
f11781c5 11110 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 11111 esac
ad6254c5
AK
11112done
11113
7a197a62 11114
ad6254c5
AK
11115# If the user did not use the arguments to specify the items to instantiate,
11116# then the envvar interface is used. Set only those that are not.
11117# We use the long form for the default assignment because of an extremely
11118# bizarre bug on SunOS 4.1.3.
11119if $ac_need_defaults; then
11120 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 11121 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
11122fi
11123
11124# Have a temporary directory for convenience. Make it in the build tree
7a197a62 11125# simply because there is no reason against having it here, and in addition,
ad6254c5 11126# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
11127# Hook for its removal unless debugging.
11128# Note that there is a small window in which the directory will not be cleaned:
11129# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
11130$debug ||
11131{
7a197a62
AK
11132 tmp=
11133 trap 'exit_status=$?
11134 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11135' 0
f11781c5 11136 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 11137}
ad6254c5
AK
11138# Create a (secure) tmp directory for tmp files.
11139
11140{
7a197a62 11141 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
11142 test -n "$tmp" && test -d "$tmp"
11143} ||
11144{
7a197a62
AK
11145 tmp=./conf$$-$RANDOM
11146 (umask 077 && mkdir "$tmp")
f11781c5 11147} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 11148
ec6a6fbe
AK
11149# Set up the scripts for CONFIG_FILES section.
11150# No need to generate them if there are no CONFIG_FILES.
11151# This happens for instance with `./config.status config.h'.
1995c9ff 11152if test -n "$CONFIG_FILES"; then
7a197a62 11153
68f2de6d 11154
f11781c5
AK
11155ac_cr=`echo X | tr X '\015'`
11156# On cygwin, bash can eat \r inside `` if the user requested igncr.
11157# But we know of no other shell where ac_cr would be empty at this
11158# point, so we can use a bashism as a fallback.
11159if test "x$ac_cr" = x; then
11160 eval ac_cr=\$\'\\r\'
11161fi
ec6a6fbe
AK
11162ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11163if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11164 ac_cs_awk_cr='\\r'
11165else
11166 ac_cs_awk_cr=$ac_cr
1995c9ff 11167fi
7a197a62 11168
ec6a6fbe 11169echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 11170_ACEOF
7a197a62 11171
8106cdd5 11172
ec6a6fbe
AK
11173{
11174 echo "cat >conf$$subs.awk <<_ACEOF" &&
11175 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11176 echo "_ACEOF"
11177} >conf$$subs.sh ||
f11781c5
AK
11178 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11179ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
11180ac_delim='%!_!# '
11181for ac_last_try in false false false false false :; do
ec6a6fbe 11182 . ./conf$$subs.sh ||
f11781c5 11183 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
11184
11185 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11186 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
11187 break
11188 elif $ac_last_try; then
f11781c5 11189 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
11190 else
11191 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11192 fi
11193done
ec6a6fbe
AK
11194rm -f conf$$subs.sh
11195
11196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11197cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11198_ACEOF
11199sed -n '
11200h
11201s/^/S["/; s/!.*/"]=/
11202p
11203g
11204s/^[^!]*!//
11205:repl
11206t repl
11207s/'"$ac_delim"'$//
11208t delim
11209:nl
11210h
f11781c5 11211s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11212t more1
11213s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11214p
11215n
11216b repl
11217:more1
11218s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11219p
11220g
11221s/.\{148\}//
11222t nl
11223:delim
11224h
f11781c5 11225s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11226t more2
11227s/["\\]/\\&/g; s/^/"/; s/$/"/
11228p
11229b
11230:more2
11231s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11232p
11233g
11234s/.\{148\}//
11235t delim
11236' <conf$$subs.awk | sed '
11237/^[^""]/{
11238 N
11239 s/\n//
11240}
11241' >>$CONFIG_STATUS || ac_write_fail=1
11242rm -f conf$$subs.awk
11243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11244_ACAWK
11245cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11246 for (key in S) S_is_set[key] = 1
11247 FS = "\a"
7a197a62 11248
ec6a6fbe
AK
11249}
11250{
11251 line = $ 0
11252 nfields = split(line, field, "@")
11253 substed = 0
11254 len = length(field[1])
11255 for (i = 2; i < nfields; i++) {
11256 key = field[i]
11257 keylen = length(key)
11258 if (S_is_set[key]) {
11259 value = S[key]
11260 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11261 len += length(value) + length(field[++i])
11262 substed = 1
11263 } else
11264 len += 1 + keylen
11265 }
11266
11267 print line
11268}
fddafd51 11269
ec6a6fbe 11270_ACAWK
1995c9ff 11271_ACEOF
ec6a6fbe
AK
11272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11273if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11274 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11275else
11276 cat
11277fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11278 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11279_ACEOF
11280
f11781c5
AK
11281# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11282# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11283# trailing colons and then remove the whole line if VPATH becomes empty
11284# (actually we leave an empty line to preserve line numbers).
11285if test "x$srcdir" = x.; then
f11781c5
AK
11286 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11287h
11288s///
11289s/^/:/
11290s/[ ]*$/:/
11291s/:\$(srcdir):/:/g
11292s/:\${srcdir}:/:/g
11293s/:@srcdir@:/:/g
11294s/^:*//
7a197a62 11295s/:*$//
f11781c5
AK
11296x
11297s/\(=[ ]*\).*/\1/
11298G
11299s/\n//
7a197a62
AK
11300s/^[^=]*=[ ]*$//
11301}'
11302fi
11303
ec6a6fbe 11304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11305fi # test -n "$CONFIG_FILES"
11306
ec6a6fbe
AK
11307# Set up the scripts for CONFIG_HEADERS section.
11308# No need to generate them if there are no CONFIG_HEADERS.
11309# This happens for instance with `./config.status Makefile'.
11310if test -n "$CONFIG_HEADERS"; then
11311cat >"$tmp/defines.awk" <<\_ACAWK ||
11312BEGIN {
11313_ACEOF
11314
11315# Transform confdefs.h into an awk script `defines.awk', embedded as
11316# here-document in config.status, that substitutes the proper values into
11317# config.h.in to produce config.h.
11318
11319# Create a delimiter string that does not exist in confdefs.h, to ease
11320# handling of long lines.
11321ac_delim='%!_!# '
11322for ac_last_try in false false :; do
11323 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11324 if test -z "$ac_t"; then
11325 break
11326 elif $ac_last_try; then
f11781c5 11327 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11328 else
11329 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11330 fi
11331done
11332
11333# For the awk script, D is an array of macro values keyed by name,
11334# likewise P contains macro parameters if any. Preserve backslash
11335# newline sequences.
11336
11337ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11338sed -n '
11339s/.\{148\}/&'"$ac_delim"'/g
11340t rset
11341:rset
11342s/^[ ]*#[ ]*define[ ][ ]*/ /
11343t def
11344d
11345:def
11346s/\\$//
11347t bsnl
11348s/["\\]/\\&/g
11349s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11350D["\1"]=" \3"/p
11351s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11352d
11353:bsnl
11354s/["\\]/\\&/g
11355s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11356D["\1"]=" \3\\\\\\n"\\/p
11357t cont
11358s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11359t cont
11360d
11361:cont
11362n
11363s/.\{148\}/&'"$ac_delim"'/g
11364t clear
11365:clear
11366s/\\$//
11367t bsnlc
11368s/["\\]/\\&/g; s/^/"/; s/$/"/p
11369d
11370:bsnlc
11371s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11372b cont
11373' <confdefs.h | sed '
11374s/'"$ac_delim"'/"\\\
11375"/g' >>$CONFIG_STATUS || ac_write_fail=1
11376
11377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11378 for (key in D) D_is_set[key] = 1
11379 FS = "\a"
11380}
11381/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11382 line = \$ 0
11383 split(line, arg, " ")
11384 if (arg[1] == "#") {
11385 defundef = arg[2]
11386 mac1 = arg[3]
11387 } else {
11388 defundef = substr(arg[1], 2)
11389 mac1 = arg[2]
11390 }
11391 split(mac1, mac2, "(") #)
11392 macro = mac2[1]
11393 prefix = substr(line, 1, index(line, defundef) - 1)
11394 if (D_is_set[macro]) {
11395 # Preserve the white space surrounding the "#".
11396 print prefix "define", macro P[macro] D[macro]
11397 next
11398 } else {
11399 # Replace #undef with comments. This is necessary, for example,
11400 # in the case of _POSIX_SOURCE, which is predefined and required
11401 # on some systems where configure will not decide to define it.
11402 if (defundef == "undef") {
11403 print "/*", prefix defundef, macro, "*/"
11404 next
11405 }
11406 }
11407}
11408{ print }
11409_ACAWK
11410_ACEOF
11411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11412 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11413fi # test -n "$CONFIG_HEADERS"
11414
7a197a62 11415
ec6a6fbe
AK
11416eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11417shift
11418for ac_tag
7a197a62
AK
11419do
11420 case $ac_tag in
11421 :[FHLC]) ac_mode=$ac_tag; continue;;
11422 esac
11423 case $ac_mode$ac_tag in
11424 :[FHL]*:*);;
f11781c5 11425 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11426 :[FH]-) ac_tag=-:-;;
11427 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11428 esac
11429 ac_save_IFS=$IFS
11430 IFS=:
11431 set x $ac_tag
11432 IFS=$ac_save_IFS
11433 shift
11434 ac_file=$1
11435 shift
11436
11437 case $ac_mode in
11438 :L) ac_source=$1;;
11439 :[FH])
11440 ac_file_inputs=
11441 for ac_f
11442 do
11443 case $ac_f in
11444 -) ac_f="$tmp/stdin";;
11445 *) # Look for the file first in the build tree, then in the source tree
11446 # (if the path is not absolute). The absolute path cannot be DOS-style,
11447 # because $ac_f cannot contain `:'.
11448 test -f "$ac_f" ||
11449 case $ac_f in
11450 [\\/$]*) false;;
11451 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11452 esac ||
f11781c5 11453 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11454 esac
ec6a6fbe 11455 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11456 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11457 done
11458
11459 # Let's still pretend it is `configure' which instantiates (i.e., don't
11460 # use $as_me), people would be surprised to read:
11461 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11462 configure_input='Generated from '`
11463 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11464 `' by configure.'
7a197a62
AK
11465 if test x"$ac_file" != x-; then
11466 configure_input="$ac_file. $configure_input"
f11781c5 11467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11468$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11469 fi
ec6a6fbe
AK
11470 # Neutralize special characters interpreted by sed in replacement strings.
11471 case $configure_input in #(
11472 *\&* | *\|* | *\\* )
11473 ac_sed_conf_input=`$as_echo "$configure_input" |
11474 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11475 *) ac_sed_conf_input=$configure_input;;
11476 esac
7a197a62
AK
11477
11478 case $ac_tag in
ec6a6fbe 11479 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11480 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11481 esac
11482 ;;
80992638 11483 esac
8106cdd5 11484
7a197a62 11485 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11486$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11487 X"$ac_file" : 'X\(//\)[^/]' \| \
11488 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11489 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11490$as_echo X"$ac_file" |
7a197a62
AK
11491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11492 s//\1/
11493 q
11494 }
11495 /^X\(\/\/\)[^/].*/{
11496 s//\1/
11497 q
11498 }
11499 /^X\(\/\/\)$/{
11500 s//\1/
11501 q
11502 }
11503 /^X\(\/\).*/{
11504 s//\1/
11505 q
11506 }
11507 s/.*/./; q'`
f11781c5 11508 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11509 ac_builddir=.
11510
7a197a62
AK
11511case "$ac_dir" in
11512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11513*)
ec6a6fbe 11514 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11515 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11516 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11517 case $ac_top_builddir_sub in
11518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11520 esac ;;
11521esac
11522ac_abs_top_builddir=$ac_pwd
11523ac_abs_builddir=$ac_pwd$ac_dir_suffix
11524# for backward compatibility:
11525ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11526
11527case $srcdir in
7a197a62 11528 .) # We are building in place.
ad6254c5 11529 ac_srcdir=.
7a197a62
AK
11530 ac_top_srcdir=$ac_top_builddir_sub
11531 ac_abs_top_srcdir=$ac_pwd ;;
11532 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11533 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11534 ac_top_srcdir=$srcdir
11535 ac_abs_top_srcdir=$srcdir ;;
11536 *) # Relative name.
11537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11538 ac_top_srcdir=$ac_top_build_prefix$srcdir
11539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11540esac
7a197a62 11541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11542
ad6254c5 11543
7a197a62
AK
11544 case $ac_mode in
11545 :F)
11546 #
11547 # CONFIG_FILE
11548 #
ad6254c5
AK
11549
11550 case $INSTALL in
11551 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11552 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11553 esac
fddafd51
ZK
11554 ac_MKDIR_P=$MKDIR_P
11555 case $MKDIR_P in
11556 [\\/$]* | ?:[\\/]* ) ;;
11557 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11558 esac
7a197a62 11559_ACEOF
795ca3e5 11560
ec6a6fbe 11561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11562# If the template does not know about datarootdir, expand it.
11563# FIXME: This hack should be removed a few years after 2.60.
11564ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11565ac_sed_dataroot='
11566/datarootdir/ {
7a197a62
AK
11567 p
11568 q
11569}
11570/@datadir@/p
11571/@docdir@/p
11572/@infodir@/p
11573/@localedir@/p
f11781c5 11574/@mandir@/p'
ec6a6fbe 11575case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11576*datarootdir*) ac_datarootdir_seen=yes;;
11577*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11579$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11580_ACEOF
ec6a6fbe 11581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11582 ac_datarootdir_hack='
11583 s&@datadir@&$datadir&g
11584 s&@docdir@&$docdir&g
11585 s&@infodir@&$infodir&g
11586 s&@localedir@&$localedir&g
11587 s&@mandir@&$mandir&g
f11781c5 11588 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11589esac
11590_ACEOF
11591
11592# Neutralize VPATH when `$srcdir' = `.'.
11593# Shell code in configure.ac might set extrasub.
11594# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11596ac_sed_extra="$ac_vpsub
ad6254c5
AK
11597$extrasub
11598_ACEOF
ec6a6fbe 11599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11600:t
11601/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11602s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11603s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11604s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11605s&@srcdir@&$ac_srcdir&;t t
11606s&@abs_srcdir@&$ac_abs_srcdir&;t t
11607s&@top_srcdir@&$ac_top_srcdir&;t t
11608s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11609s&@builddir@&$ac_builddir&;t t
11610s&@abs_builddir@&$ac_abs_builddir&;t t
11611s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11612s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11613s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11614$ac_datarootdir_hack
ec6a6fbe
AK
11615"
11616eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11618
11619test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11620 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11621 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11623which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11624$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11625which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11626
11627 rm -f "$tmp/stdin"
72b2cb61 11628 case $ac_file in
ec6a6fbe
AK
11629 -) cat "$tmp/out" && rm -f "$tmp/out";;
11630 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11631 esac \
f11781c5 11632 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11633 ;;
11634 :H)
11635 #
11636 # CONFIG_HEADER
11637 #
72b2cb61 11638 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11639 {
11640 $as_echo "/* $configure_input */" \
11641 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11642 } >"$tmp/config.h" \
f11781c5 11643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11644 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11645 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11646$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11647 else
ec6a6fbe
AK
11648 rm -f "$ac_file"
11649 mv "$tmp/config.h" "$ac_file" \
f11781c5 11650 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11651 fi
11652 else
ec6a6fbe
AK
11653 $as_echo "/* $configure_input */" \
11654 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11655 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11656 fi
7a197a62
AK
11657 ;;
11658
11659
11660 esac
11661
11662done # for ac_tag
795ca3e5 11663
795ca3e5 11664
f11781c5 11665as_fn_exit 0
ad6254c5 11666_ACEOF
ad6254c5
AK
11667ac_clean_files=$ac_clean_files_save
11668
ec6a6fbe 11669test $ac_write_fail = 0 ||
f11781c5 11670 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11671
ad6254c5
AK
11672
11673# configure is writing to config.log, and then calls config.status.
11674# config.status does its own redirection, appending to config.log.
11675# Unfortunately, on DOS this fails, as config.log is still kept open
11676# by configure, so config.status won't be able to write to it; its
11677# output is simply discarded. So we exec the FD to /dev/null,
11678# effectively closing config.log, so it can be properly (re)opened and
11679# appended to by config.status. When coming back to configure, we
11680# need to make the FD available again.
11681if test "$no_create" != yes; then
11682 ac_cs_success=:
11683 ac_config_status_args=
11684 test "$silent" = yes &&
11685 ac_config_status_args="$ac_config_status_args --quiet"
11686 exec 5>/dev/null
11687 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11688 exec 5>>config.log
11689 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11690 # would make configure fail if this is the last instruction.
f11781c5 11691 $ac_cs_success || as_fn_exit 1
ad6254c5 11692fi
ec6a6fbe 11693if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11695$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11696fi
795ca3e5 11697
2dc95e1c
AK
11698
11699if test x$ODIRECT != xyes; then
f11781c5 11700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11701$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11702fi
This page took 1.69752 seconds and 5 git commands to generate.