]> sourceware.org Git - lvm2.git/blame - configure
Remove obsoleted GULM clvmd cluster locking support.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
f11781c5
AK
3# Generated by GNU Autoconf 2.66.
4#
795ca3e5 5#
7a197a62 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
f11781c5
AK
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
795ca3e5
AK
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
f11781c5
AK
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
ad6254c5 16
25fbec5b
AK
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
20 emulate sh
21 NULLCMD=:
ec6a6fbe 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
25 setopt NO_GLOB_SUBST
26else
f11781c5
AK
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25fbec5b 32esac
7a197a62 33fi
25fbec5b
AK
34
35
ec6a6fbe
AK
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
68f2de6d 56 else
ec6a6fbe
AK
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
f11781c5 60 case $arg in #(
ec6a6fbe
AK
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 69 fi
ec6a6fbe
AK
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
ad6254c5
AK
81fi
82
ad6254c5 83
7a197a62
AK
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
7a197a62
AK
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
f11781c5 92case $0 in #((
7a197a62
AK
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
f11781c5
AK
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
7a197a62
AK
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
ec6a6fbe 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 112 exit 1
7a197a62
AK
113fi
114
f11781c5
AK
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 122done
ad6254c5
AK
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
ec6a6fbe
AK
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
ad6254c5 132
f11781c5
AK
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error STATUS ERROR [LINENO LOG_FD]
360# ----------------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with STATUS, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
7a197a62
AK
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
377 as_expr=expr
378else
379 as_expr=false
380fi
381
7a197a62 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
383 as_basename=basename
384else
385 as_basename=false
386fi
387
f11781c5
AK
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
ad6254c5 393
7a197a62 394as_me=`$as_basename -- "$0" ||
ad6254c5
AK
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
7a197a62 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 398$as_echo X/"$0" |
7a197a62
AK
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
ad6254c5 412
f11781c5
AK
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
ad6254c5 419
ad6254c5 420
f11781c5
AK
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
ad6254c5 443
f11781c5
AK
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
7a197a62 450}
ad6254c5 451
f11781c5
AK
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461*)
462 ECHO_N='-n';;
463esac
ad6254c5 464
f11781c5
AK
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
7a197a62 471fi
f11781c5
AK
472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
7a197a62 486else
f11781c5 487 as_ln_s='cp -p'
7a197a62 488fi
f11781c5
AK
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
7a197a62 491
f11781c5
AK
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
7a197a62
AK
497fi
498
f11781c5
AK
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
7a197a62 501else
f11781c5
AK
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
7a197a62 519fi
f11781c5 520as_executable_p=$as_test_x
7a197a62 521
f11781c5
AK
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7a197a62 524
f11781c5
AK
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7a197a62
AK
527
528
f11781c5
AK
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
ad6254c5
AK
531
532# Name of the host.
f11781c5 533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
ad6254c5
AK
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
ad6254c5
AK
537#
538# Initializations.
539#
795ca3e5 540ac_default_prefix=/usr/local
7a197a62 541ac_clean_files=
ad6254c5 542ac_config_libobj_dir=.
7a197a62 543LIBOBJS=
ad6254c5
AK
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
ad6254c5 548
ad6254c5
AK
549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
f11781c5 555PACKAGE_URL=
ad6254c5
AK
556
557ac_unique_file="lib/device/dev-cache.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
25fbec5b 561#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
562# include <sys/types.h>
563#endif
25fbec5b 564#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
565# include <sys/stat.h>
566#endif
25fbec5b 567#ifdef STDC_HEADERS
ad6254c5
AK
568# include <stdlib.h>
569# include <stddef.h>
570#else
25fbec5b 571# ifdef HAVE_STDLIB_H
ad6254c5
AK
572# include <stdlib.h>
573# endif
574#endif
25fbec5b
AK
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
577# include <memory.h>
578# endif
579# include <string.h>
580#endif
25fbec5b 581#ifdef HAVE_STRINGS_H
ad6254c5
AK
582# include <strings.h>
583#endif
25fbec5b 584#ifdef HAVE_INTTYPES_H
ad6254c5 585# include <inttypes.h>
ad6254c5 586#endif
25fbec5b 587#ifdef HAVE_STDINT_H
7a197a62
AK
588# include <stdint.h>
589#endif
25fbec5b 590#ifdef HAVE_UNISTD_H
ad6254c5
AK
591# include <unistd.h>
592#endif"
593
f11781c5 594ac_header_list=
795ca3e5 595ac_default_prefix=/usr
ec6a6fbe 596ac_subst_vars='LTLIBOBJS
68f2de6d 597usrsbindir
ec6a6fbe 598usrlibdir
a5f46f6a
AK
599udevdir
600udev_prefix
ec6a6fbe
AK
601tmpdir
602kernelvsn
603missingkernel
604kerneldir
605interface
6e5c1f75 606DMEVENTD_PIDFILE
23b059e7 607WRITE_INSTALL
0878503f 608UDEV_SYNC
a5f46f6a 609UDEV_RULES
f7f0854e 610UDEV_PC
54b362f9 611TESTING
ec6a6fbe
AK
612STATIC_LINK
613STATICDIR
614SNAPSHOTS
f7f0854e 615SELINUX_PC
e1b8a236 616SELINUX_LIBS
cac52ca4 617REPLICATORS
539f4a77 618READLINE_LIBS
cac52ca4 619RAID
f30875db 620PTHREAD_LIBS
ec6a6fbe
AK
621POOL
622PKGCONFIG
606d0858 623OCFDIR
37ddf259 624OCF
ec6a6fbe
AK
625MIRRORS
626LVM_RELEASE_DATE
627LVM_RELEASE
628LVM_PATCHLEVEL
629LVM_MINOR
630LVM_MAJOR
bf456146 631LVM_LIBAPI
ec6a6fbe 632LVM_VERSION
ec6a6fbe
AK
633LVM1_FALLBACK
634LVM1
635LOCALEDIR
636LIB_SUFFIX
637LDDEPS
638JOBS
639INTL_PACKAGE
640INTL
ec6a6fbe
AK
641HAVE_REALTIME
642HAVE_LIBDL
ec6a6fbe
AK
643FSADM
644DM_LIB_PATCHLEVEL
645DM_LIB_VERSION
646DM_IOCTLS
647DM_DEVICE_UID
648DM_DEVICE_MODE
649DM_DEVICE_GID
650DM_COMPAT
d1e8046f 651DMEVENTD_PATH
ec6a6fbe 652DMEVENTD
19a2c6e0 653DL_LIBS
ec6a6fbe 654DEVMAPPER
b1f08e51 655DEFAULT_RUN_DIR
3399ae32 656DEFAULT_LOCK_DIR
fea55602 657DEFAULT_DATA_ALIGNMENT
3399ae32
AK
658DEFAULT_CACHE_SUBDIR
659DEFAULT_BACKUP_SUBDIR
660DEFAULT_ARCHIVE_SUBDIR
661DEFAULT_SYS_DIR
ec6a6fbe
AK
662DEBUG
663COPTIMISE_FLAG
e2997b73 664CONFDIR
ec6a6fbe 665CMDLIB
c89bc357 666CLVMD_CMANAGERS
ec6a6fbe
AK
667CLVMD
668CLUSTER
669CLDWHOLEARCHIVE
670CLDNOWHOLEARCHIVE
671CLDFLAGS
672BUILD_DMEVENTD
66fd4529 673BUILD_CMIRRORD
572fefeb 674APPLIB
ec6a6fbe
AK
675MODPROBE_CMD
676MSGFMT
677LVM2CMD_LIB
572fefeb 678LVM2APP_LIB
d93275eb
PR
679UDEV_LIBS
680UDEV_CFLAGS
54b362f9
AK
681VALGRIND
682RUBY19
fd4728e1 683GENPNG
ec6a6fbe
AK
684GENHTML
685LCOV
90c80887
AK
686SACKPT_LIBS
687SACKPT_CFLAGS
a946372e
AK
688DLM_LIBS
689DLM_CFLAGS
e2997b73
AK
690CPG_LIBS
691CPG_CFLAGS
692CONFDB_LIBS
693CONFDB_CFLAGS
a946372e
AK
694SALCK_LIBS
695SALCK_CFLAGS
e2997b73
AK
696QUORUM_LIBS
697QUORUM_CFLAGS
a946372e
AK
698COROSYNC_LIBS
699COROSYNC_CFLAGS
700CMAN_LIBS
701CMAN_CFLAGS
702GULM_LIBS
703GULM_CFLAGS
704CCS_LIBS
705CCS_CFLAGS
706PKGCONFIGINIT_LIBS
707PKGCONFIGINIT_CFLAGS
f11781c5
AK
708PKG_CONFIG_LIBDIR
709PKG_CONFIG_PATH
e2997b73 710PKG_CONFIG
ec6a6fbe
AK
711POW_LIB
712LIBOBJS
713ALLOCA
714CSCOPE_CMD
715CFLOW_CMD
716RANLIB
717MKDIR_P
718SET_MAKE
719LN_S
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723EGREP
724GREP
725CPP
726OBJEXT
727EXEEXT
728ac_ct_CC
729CPPFLAGS
730LDFLAGS
731CFLAGS
732CC
733AWK
734SED
735target_os
736target_vendor
737target_cpu
738target
739host_os
740host_vendor
741host_cpu
742host
743build_os
744build_vendor
745build_cpu
746build
747target_alias
748host_alias
749build_alias
750LIBS
751ECHO_T
752ECHO_N
753ECHO_C
754DEFS
755mandir
756localedir
757libdir
758psdir
759pdfdir
760dvidir
761htmldir
762infodir
763docdir
764oldincludedir
765includedir
766localstatedir
767sharedstatedir
768sysconfdir
769datadir
770datarootdir
771libexecdir
772sbindir
773bindir
774program_transform_name
775prefix
776exec_prefix
f11781c5 777PACKAGE_URL
ec6a6fbe
AK
778PACKAGE_BUGREPORT
779PACKAGE_STRING
780PACKAGE_VERSION
781PACKAGE_TARNAME
782PACKAGE_NAME
783PATH_SEPARATOR
784SHELL'
ad6254c5 785ac_subst_files=''
ec6a6fbe
AK
786ac_user_opts='
787enable_option_checking
788enable_static_link
789with_user
790with_group
791with_device_uid
792with_device_gid
793with_device_mode
d0df875d 794with_device_nodes_on
ec6a6fbe
AK
795enable_lvm1_fallback
796with_lvm1
797with_pool
798with_cluster
799with_snapshots
800with_mirrors
cac52ca4 801with_raid
8fea97b7 802with_replicators
ec6a6fbe
AK
803enable_readline
804enable_realtime
37ddf259 805enable_ocf
606d0858 806with_ocfdir
ec6a6fbe 807with_clvmd
8c4e8a18 808with_clvmd_pidfile
66fd4529
AK
809enable_cmirrord
810with_cmirrord_pidfile
ec6a6fbe
AK
811enable_debug
812with_optimisation
813enable_profiling
54b362f9 814enable_testing
d1e8046f 815enable_valgrind_pool
ec6a6fbe 816enable_devmapper
a5f46f6a
AK
817enable_udev_sync
818enable_udev_rules
ec6a6fbe 819enable_compat
95eaa683 820enable_units_compat
ec6a6fbe
AK
821enable_ioctl
822enable_o_direct
572fefeb 823enable_applib
ec6a6fbe
AK
824enable_cmdlib
825enable_pkgconfig
23b059e7 826enable_write_install
ec6a6fbe
AK
827enable_fsadm
828enable_dmeventd
829enable_selinux
830enable_nls
831with_localedir
832with_confdir
833with_staticdir
834with_usrlibdir
835with_usrsbindir
a5f46f6a 836with_udev_prefix
78ce7acc 837with_udevdir
ec6a6fbe
AK
838with_dmeventd_pidfile
839with_dmeventd_path
8bae0a1e 840with_default_run_dir
3399ae32
AK
841with_default_system_dir
842with_default_archive_subdir
843with_default_backup_subdir
844with_default_cache_subdir
845with_default_locking_dir
fea55602 846with_default_data_alignment
ec6a6fbe
AK
847with_interface
848'
7a197a62
AK
849 ac_precious_vars='build_alias
850host_alias
851target_alias
852CC
853CFLAGS
854LDFLAGS
25fbec5b 855LIBS
7a197a62 856CPPFLAGS
e2997b73
AK
857CPP
858PKG_CONFIG
f11781c5
AK
859PKG_CONFIG_PATH
860PKG_CONFIG_LIBDIR
a946372e
AK
861PKGCONFIGINIT_CFLAGS
862PKGCONFIGINIT_LIBS
863CCS_CFLAGS
864CCS_LIBS
865GULM_CFLAGS
866GULM_LIBS
867CMAN_CFLAGS
868CMAN_LIBS
869COROSYNC_CFLAGS
870COROSYNC_LIBS
e2997b73
AK
871QUORUM_CFLAGS
872QUORUM_LIBS
a946372e
AK
873SALCK_CFLAGS
874SALCK_LIBS
e2997b73
AK
875CONFDB_CFLAGS
876CONFDB_LIBS
877CPG_CFLAGS
a946372e
AK
878CPG_LIBS
879DLM_CFLAGS
90c80887
AK
880DLM_LIBS
881SACKPT_CFLAGS
d93275eb
PR
882SACKPT_LIBS
883UDEV_CFLAGS
884UDEV_LIBS'
7a197a62 885
795ca3e5
AK
886
887# Initialize some variables set by options.
ad6254c5
AK
888ac_init_help=
889ac_init_version=false
ec6a6fbe
AK
890ac_unrecognized_opts=
891ac_unrecognized_sep=
795ca3e5
AK
892# The variables have the same names as the options, with
893# dashes changed to underlines.
ad6254c5 894cache_file=/dev/null
795ca3e5 895exec_prefix=NONE
795ca3e5 896no_create=
795ca3e5
AK
897no_recursion=
898prefix=NONE
899program_prefix=NONE
900program_suffix=NONE
901program_transform_name=s,x,x,
902silent=
903site=
904srcdir=
795ca3e5
AK
905verbose=
906x_includes=NONE
907x_libraries=NONE
ad6254c5
AK
908
909# Installation directory options.
910# These are left unexpanded so users can "make install exec_prefix=/foo"
911# and all the variables that are supposed to be based on exec_prefix
912# by default will actually change.
913# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 914# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
915bindir='${exec_prefix}/bin'
916sbindir='${exec_prefix}/sbin'
917libexecdir='${exec_prefix}/libexec'
7a197a62
AK
918datarootdir='${prefix}/share'
919datadir='${datarootdir}'
795ca3e5
AK
920sysconfdir='${prefix}/etc'
921sharedstatedir='${prefix}/com'
922localstatedir='${prefix}/var'
795ca3e5
AK
923includedir='${prefix}/include'
924oldincludedir='/usr/include'
7a197a62
AK
925docdir='${datarootdir}/doc/${PACKAGE}'
926infodir='${datarootdir}/info'
927htmldir='${docdir}'
928dvidir='${docdir}'
929pdfdir='${docdir}'
930psdir='${docdir}'
931libdir='${exec_prefix}/lib'
932localedir='${datarootdir}/locale'
933mandir='${datarootdir}/man'
795ca3e5 934
795ca3e5 935ac_prev=
7a197a62 936ac_dashdash=
795ca3e5
AK
937for ac_option
938do
795ca3e5
AK
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
7a197a62 941 eval $ac_prev=\$ac_option
795ca3e5
AK
942 ac_prev=
943 continue
944 fi
945
7a197a62
AK
946 case $ac_option in
947 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *) ac_optarg=yes ;;
949 esac
795ca3e5
AK
950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
7a197a62
AK
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
795ca3e5
AK
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 960 bindir=$ac_optarg ;;
795ca3e5
AK
961
962 -build | --build | --buil | --bui | --bu)
ad6254c5 963 ac_prev=build_alias ;;
795ca3e5 964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 965 build_alias=$ac_optarg ;;
795ca3e5
AK
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
795ca3e5 976
7a197a62 977 -datadir | --datadir | --datadi | --datad)
795ca3e5 978 ac_prev=datadir ;;
7a197a62 979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 980 datadir=$ac_optarg ;;
795ca3e5 981
7a197a62
AK
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
795ca3e5 989 -disable-* | --disable-*)
ec6a6fbe 990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 991 # Reject names that are not valid shell variable names.
ec6a6fbe 992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 993 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998"enable_$ac_useropt"
999"*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
7a197a62
AK
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
795ca3e5
AK
1014
1015 -enable-* | --enable-*)
ec6a6fbe 1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1017 # Reject names that are not valid shell variable names.
ec6a6fbe 1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1019 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024"enable_$ac_useropt"
1025"*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
ad6254c5 1038 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
ad6254c5
AK
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
795ca3e5
AK
1050
1051 -host | --host | --hos | --ho)
ad6254c5 1052 ac_prev=host_alias ;;
795ca3e5 1053 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1054 host_alias=$ac_optarg ;;
795ca3e5 1055
7a197a62
AK
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
795ca3e5
AK
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1067 includedir=$ac_optarg ;;
795ca3e5
AK
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1072 infodir=$ac_optarg ;;
795ca3e5
AK
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1077 libdir=$ac_optarg ;;
795ca3e5
AK
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1084 libexecdir=$ac_optarg ;;
795ca3e5 1085
7a197a62
AK
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
795ca3e5 1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1092 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1096 localstatedir=$ac_optarg ;;
795ca3e5
AK
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1101 mandir=$ac_optarg ;;
795ca3e5
AK
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1108 | --no-cr | --no-c | -n)
795ca3e5
AK
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1122 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1127 prefix=$ac_optarg ;;
795ca3e5
AK
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1134 program_prefix=$ac_optarg ;;
795ca3e5
AK
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1141 program_suffix=$ac_optarg ;;
795ca3e5
AK
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1158 program_transform_name=$ac_optarg ;;
795ca3e5 1159
7a197a62
AK
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
795ca3e5
AK
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
ad6254c5 1178 sbindir=$ac_optarg ;;
795ca3e5
AK
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
ad6254c5 1189 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
ad6254c5 1194 site=$ac_optarg ;;
795ca3e5
AK
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1199 srcdir=$ac_optarg ;;
795ca3e5
AK
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1206 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1209 ac_prev=target_alias ;;
795ca3e5 1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1211 target_alias=$ac_optarg ;;
795ca3e5
AK
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
ad6254c5
AK
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
795ca3e5
AK
1218
1219 -with-* | --with-*)
ec6a6fbe 1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1221 # Reject names that are not valid shell variable names.
ec6a6fbe 1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1223 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228"with_$ac_useropt"
1229"*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1234
1235 -without-* | --without-*)
ec6a6fbe 1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1237 # Reject names that are not valid shell variable names.
ec6a6fbe 1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1239 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244"with_$ac_useropt"
1245"*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=no ;;
795ca3e5
AK
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1260 x_includes=$ac_optarg ;;
795ca3e5
AK
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1267 x_libraries=$ac_optarg ;;
795ca3e5 1268
f11781c5
AK
1269 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1270Try \`$0 --help' for more information"
795ca3e5
AK
1271 ;;
1272
ad6254c5
AK
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
f11781c5
AK
1276 case $ac_envvar in #(
1277 '' | [0-9]* | *[!_$as_cr_alnum]* )
1278 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1279 esac
7a197a62 1280 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1281 export $ac_envvar ;;
1282
795ca3e5 1283 *)
ad6254c5 1284 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1288 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1289 ;;
1290
1291 esac
1292done
1293
1294if test -n "$ac_prev"; then
ad6254c5 1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1296 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1297fi
795ca3e5 1298
ec6a6fbe
AK
1299if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1301 no) ;;
f11781c5 1302 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1303 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 esac
1305fi
1306
1307# Check all directory arguments for consistency.
7a197a62
AK
1308for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
795ca3e5 1312do
7a197a62 1313 eval ac_val=\$$ac_var
ec6a6fbe
AK
1314 # Remove trailing slashes.
1315 case $ac_val in
1316 */ )
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1319 esac
1320 # Be sure to have absolute directory names.
ad6254c5 1321 case $ac_val in
7a197a62
AK
1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1324 esac
f11781c5 1325 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1326done
1327
ad6254c5
AK
1328# There might be people who depend on the old broken behavior: `$host'
1329# used to hold the argument of --host etc.
1330# FIXME: To remove some day.
1331build=$build_alias
1332host=$host_alias
1333target=$target_alias
1334
1335# FIXME: To remove some day.
1336if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
f11781c5
AK
1339 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1340 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1341 elif test "x$build_alias" != "x$host_alias"; then
1342 cross_compiling=yes
1343 fi
1344fi
8106cdd5 1345
ad6254c5
AK
1346ac_tool_prefix=
1347test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348
1349test "$silent" = yes && exec 6>/dev/null
795ca3e5 1350
795ca3e5 1351
7a197a62
AK
1352ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353ac_ls_di=`ls -di .` &&
1354ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1355 as_fn_error $? "working directory cannot be determined"
7a197a62 1356test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1357 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1358
1359
795ca3e5
AK
1360# Find the source files, if location was not specified.
1361if test -z "$srcdir"; then
1362 ac_srcdir_defaulted=yes
7a197a62 1363 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1364 ac_confdir=`$as_dirname -- "$as_myself" ||
1365$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$as_myself" : 'X\(//\)[^/]' \| \
1367 X"$as_myself" : 'X\(//\)$' \| \
1368 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369$as_echo X"$as_myself" |
7a197a62
AK
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)[^/].*/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\/\)$/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\).*/{
1383 s//\1/
1384 q
1385 }
1386 s/.*/./; q'`
795ca3e5 1387 srcdir=$ac_confdir
7a197a62 1388 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1389 srcdir=..
1390 fi
1391else
1392 ac_srcdir_defaulted=no
1393fi
7a197a62
AK
1394if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1396 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1397fi
7a197a62
AK
1398ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399ac_abs_confdir=`(
f11781c5 1400 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1401 pwd)`
1402# When building in place, set srcdir=.
1403if test "$ac_abs_confdir" = "$ac_pwd"; then
1404 srcdir=.
1405fi
1406# Remove unnecessary trailing slashes from srcdir.
1407# Double slashes in file names in object file debugging info
1408# mess up M-x gdb in Emacs.
1409case $srcdir in
1410*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411esac
1412for ac_var in $ac_precious_vars; do
1413 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_env_${ac_var}_value=\$${ac_var}
1415 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1417done
ad6254c5
AK
1418
1419#
1420# Report the --help message.
1421#
1422if test "$ac_init_help" = "long"; then
1423 # Omit some internal or obsolete options to make the list less imposing.
1424 # This message is too long to be a string in the A/UX 3.1 sh.
1425 cat <<_ACEOF
1426\`configure' configures this package to adapt to many kinds of systems.
1427
1428Usage: $0 [OPTION]... [VAR=VALUE]...
1429
1430To assign environment variables (e.g., CC, CFLAGS...), specify them as
1431VAR=VALUE. See below for descriptions of some of the useful variables.
1432
1433Defaults for the options are specified in brackets.
1434
1435Configuration:
1436 -h, --help display this help and exit
1437 --help=short display options specific to this package
1438 --help=recursive display the short help of all the included packages
1439 -V, --version display version information and exit
f11781c5 1440 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1441 --cache-file=FILE cache test results in FILE [disabled]
1442 -C, --config-cache alias for \`--cache-file=config.cache'
1443 -n, --no-create do not create output files
1444 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1445
ad6254c5
AK
1446Installation directories:
1447 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1448 [$ac_default_prefix]
ad6254c5 1449 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1450 [PREFIX]
ad6254c5
AK
1451
1452By default, \`make install' will install all the files in
1453\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1454an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1455for instance \`--prefix=\$HOME'.
1456
1457For better control, use the options below.
1458
1459Fine tuning of the installation directories:
ec6a6fbe
AK
1460 --bindir=DIR user executables [EPREFIX/bin]
1461 --sbindir=DIR system admin executables [EPREFIX/sbin]
1462 --libexecdir=DIR program executables [EPREFIX/libexec]
1463 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1464 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1465 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1466 --libdir=DIR object code libraries [EPREFIX/lib]
1467 --includedir=DIR C header files [PREFIX/include]
1468 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1469 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1470 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1471 --infodir=DIR info documentation [DATAROOTDIR/info]
1472 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1473 --mandir=DIR man documentation [DATAROOTDIR/man]
1474 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1475 --htmldir=DIR html documentation [DOCDIR]
1476 --dvidir=DIR dvi documentation [DOCDIR]
1477 --pdfdir=DIR pdf documentation [DOCDIR]
1478 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1479_ACEOF
1480
1481 cat <<\_ACEOF
1482
1483System types:
1484 --build=BUILD configure for building on BUILD [guessed]
1485 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1486 --target=TARGET configure for building compilers for TARGET [HOST]
1487_ACEOF
1488fi
1489
1490if test -n "$ac_init_help"; then
1491
1492 cat <<\_ACEOF
1493
1494Optional Features:
ec6a6fbe 1495 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1498 --enable-static_link use this to link the tools to their libraries
1499 statically (default is dynamic linking
1500 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1501 device-mapper is missing from the kernel
71082be4
ZK
1502 --disable-readline disable readline support
1503 --enable-realtime enable realtime clock support
37ddf259
AK
1504 --enable-ocf enable Open Cluster Framework (OCF) compliant
1505 resource agents
71082be4
ZK
1506 --enable-cmirrord enable the cluster mirror log daemon
1507 --enable-debug enable debugging
1508 --enable-profiling gather gcov profiling data
54b362f9 1509 --enable-testing enable testing targets in the makefile
d1e8046f 1510 --enable-valgrind-pool enable valgrind awareness of pools
71082be4
ZK
1511 --disable-devmapper disable LVM2 device-mapper interaction
1512 --enable-udev_sync enable synchronisation with udev processing
1513 --enable-udev_rules install rule files needed for udev synchronisation
1514 --enable-compat enable support for old device-mapper versions
1515 --enable-units-compat enable output compatibility with old versions that
1516 that do not use KiB-style unit suffixes
1517 --disable-driver disable calls to device-mapper in the kernel
1518 --disable-o_direct disable O_DIRECT
1519 --enable-applib build application library
1520 --enable-cmdlib build shared command library
1521 --enable-pkgconfig install pkgconfig support
1522 --enable-write_install install user writable files
1523 --disable-fsadm disable fsadm
1524 --enable-dmeventd enable the device-mapper event daemon
1525 --disable-selinux disable selinux support
1526 --enable-nls enable Native Language Support
ad6254c5
AK
1527
1528Optional Packages:
1529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1531 --with-user=USER set the owner of installed files [[USER=]]
1532 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1533 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1534 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1535 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
d0df875d
ZK
1536 --with-device-nodes-on=ON
1537 create nodes on resume or create [[ON=resume]]
ad6254c5 1538 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1539 [[TYPE=internal]]
ad6254c5 1540 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1541 [[TYPE=internal]]
71082be4 1542 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1543 [[TYPE=internal]]
71082be4 1544 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1545 [[TYPE=internal]]
71082be4 1546 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1547 [[TYPE=internal]]
cac52ca4
JEB
1548 --with-raid=TYPE mirror support: internal/shared/none
1549 [[TYPE=internal]]
71082be4 1550 --with-replicators=TYPE replicator support: internal/shared/none
f11781c5 1551 [[TYPE=none]]
606d0858
AK
1552 --with-ocfdir=DIR install OCF files in DIR
1553 [[PREFIX/lib/ocf/resource.d/lvm2]]
71082be4 1554 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1555 The following cluster manager combinations are valid:
a946372e
AK
1556 * cman,gulm (RHEL4 or equivalent)
1557 * cman (RHEL5 or equivalent)
1558 * cman,corosync,openais (or selection of them)
1091650a 1559 * singlenode (localhost only)
a946372e
AK
1560 * all (autodetect)
1561 * none (disable build)
71082be4 1562 [TYPE=none]
8c4e8a18 1563 --with-clvmd-pidfile=PATH
f11781c5 1564 clvmd pidfile [[/var/run/clvmd.pid]]
71082be4 1565 --with-cmirrord-pidfile=PATH
f11781c5
AK
1566 cmirrord pidfile [[/var/run/cmirrord.pid]]
1567 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1568 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1569 --with-confdir=DIR configuration files in DIR [[/etc]]
1570 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1571 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1572 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1573 --with-udev-prefix=UPREFIX
f11781c5
AK
1574 install udev rule files in UPREFIX [[EPREFIX]]
1575 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
71082be4 1576 --with-dmeventd-pidfile=PATH
f11781c5 1577 dmeventd pidfile [[/var/run/dmeventd.pid]]
71082be4 1578 --with-dmeventd-path=PATH
f11781c5 1579 dmeventd path [[EPREFIX/sbin/dmeventd]]
8bae0a1e 1580 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4 1581 --with-default-system-dir=DIR
f11781c5 1582 default LVM system directory [[/etc/lvm]]
71082be4 1583 --with-default-archive-subdir=SUBDIR
f11781c5 1584 default metadata archive subdir [[archive]]
71082be4 1585 --with-default-backup-subdir=SUBDIR
f11781c5 1586 default metadata backup subdir [[backup]]
71082be4 1587 --with-default-cache-subdir=SUBDIR
f11781c5 1588 default metadata cache subdir [[cache]]
71082be4 1589 --with-default-locking-dir=DIR
f11781c5 1590 default locking directory [[/var/lock/lvm]]
fea55602 1591 --with-default-data-alignment=NUM
f11781c5
AK
1592 set the default data alignment in MiB [[1]]
1593 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1594
1595Some influential environment variables:
1596 CC C compiler command
1597 CFLAGS C compiler flags
1598 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1599 nonstandard directory <lib dir>
25fbec5b 1600 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1601 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1602 you have headers in a nonstandard directory <include dir>
ad6254c5 1603 CPP C preprocessor
e2997b73 1604 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1605 PKG_CONFIG_PATH
1606 directories to add to pkg-config's search path
1607 PKG_CONFIG_LIBDIR
1608 path overriding pkg-config's built-in search path
a946372e
AK
1609 PKGCONFIGINIT_CFLAGS
1610 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1611 PKGCONFIGINIT_LIBS
1612 linker flags for PKGCONFIGINIT, overriding pkg-config
1613 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1614 CCS_LIBS linker flags for CCS, overriding pkg-config
1615 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1616 GULM_LIBS linker flags for GULM, overriding pkg-config
1617 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1618 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1619 COROSYNC_CFLAGS
1620 C compiler flags for COROSYNC, overriding pkg-config
1621 COROSYNC_LIBS
1622 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1623 QUORUM_CFLAGS
1624 C compiler flags for QUORUM, overriding pkg-config
1625 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1626 SALCK_CFLAGS
1627 C compiler flags for SALCK, overriding pkg-config
1628 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1629 CONFDB_CFLAGS
1630 C compiler flags for CONFDB, overriding pkg-config
1631 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1632 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1633 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1634 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1635 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1636 SACKPT_CFLAGS
1637 C compiler flags for SACKPT, overriding pkg-config
1638 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
d93275eb
PR
1639 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1640 UDEV_LIBS linker flags for UDEV, overriding pkg-config
ad6254c5
AK
1641
1642Use these variables to override the choices made by `configure' or to help
1643it to find libraries and programs with nonstandard names/locations.
1644
f11781c5 1645Report bugs to the package provider.
ad6254c5 1646_ACEOF
7a197a62 1647ac_status=$?
ad6254c5
AK
1648fi
1649
1650if test "$ac_init_help" = "recursive"; then
1651 # If there are subdirs, report their specific --help.
ad6254c5 1652 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1653 test -d "$ac_dir" ||
1654 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1655 continue
ad6254c5
AK
1656 ac_builddir=.
1657
7a197a62
AK
1658case "$ac_dir" in
1659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660*)
ec6a6fbe 1661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1662 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1664 case $ac_top_builddir_sub in
1665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667 esac ;;
1668esac
1669ac_abs_top_builddir=$ac_pwd
1670ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671# for backward compatibility:
1672ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1673
1674case $srcdir in
7a197a62 1675 .) # We are building in place.
ad6254c5 1676 ac_srcdir=.
7a197a62
AK
1677 ac_top_srcdir=$ac_top_builddir_sub
1678 ac_abs_top_srcdir=$ac_pwd ;;
1679 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1680 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1681 ac_top_srcdir=$srcdir
1682 ac_abs_top_srcdir=$srcdir ;;
1683 *) # Relative name.
1684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685 ac_top_srcdir=$ac_top_build_prefix$srcdir
1686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1687esac
7a197a62
AK
1688ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1689
1690 cd "$ac_dir" || { ac_status=$?; continue; }
1691 # Check for guested configure.
1692 if test -f "$ac_srcdir/configure.gnu"; then
1693 echo &&
1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695 elif test -f "$ac_srcdir/configure"; then
1696 echo &&
1697 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1698 else
ec6a6fbe 1699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1700 fi || ac_status=$?
1701 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1702 done
1703fi
1704
7a197a62 1705test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1706if $ac_init_version; then
1707 cat <<\_ACEOF
7a197a62 1708configure
f11781c5 1709generated by GNU Autoconf 2.66
ad6254c5 1710
f11781c5 1711Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1712This configure script is free software; the Free Software Foundation
1713gives unlimited permission to copy, distribute and modify it.
1714_ACEOF
7a197a62 1715 exit
ad6254c5 1716fi
ad6254c5 1717
f11781c5
AK
1718## ------------------------ ##
1719## Autoconf initialization. ##
1720## ------------------------ ##
ad6254c5 1721
f11781c5
AK
1722# ac_fn_c_try_compile LINENO
1723# --------------------------
1724# Try to compile conftest.$ac_ext, and return whether this succeeded.
1725ac_fn_c_try_compile ()
ad6254c5 1726{
f11781c5
AK
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext
1729 if { { ac_try="$ac_compile"
1730case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_compile") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1742 fi
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest.$ac_objext; then :
1748 ac_retval=0
1749else
1750 $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1752
f11781c5
AK
1753 ac_retval=1
1754fi
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 as_fn_set_status $ac_retval
ad6254c5 1757
f11781c5 1758} # ac_fn_c_try_compile
ad6254c5 1759
f11781c5
AK
1760# ac_fn_c_try_cpp LINENO
1761# ----------------------
1762# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1763ac_fn_c_try_cpp ()
1764{
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if { { ac_try="$ac_cpp conftest.$ac_ext"
1767case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770esac
1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772$as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1779 fi
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } >/dev/null && {
1782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 }; then :
1785 ac_retval=0
1786else
1787 $as_echo "$as_me: failed program was:" >&5
1788sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1789
f11781c5
AK
1790 ac_retval=1
1791fi
1792 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793 as_fn_set_status $ac_retval
ad6254c5 1794
f11781c5 1795} # ac_fn_c_try_cpp
d911ec67 1796
f11781c5
AK
1797# ac_fn_c_try_link LINENO
1798# -----------------------
1799# Try to link conftest.$ac_ext, and return whether this succeeded.
1800ac_fn_c_try_link ()
d911ec67 1801{
f11781c5
AK
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext conftest$ac_exeext
1804 if { { ac_try="$ac_link"
d911ec67
AK
1805case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808esac
f11781c5
AK
1809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810$as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_link") 2>conftest.err
d911ec67 1812 ac_status=$?
f11781c5
AK
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1817 fi
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_c_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest$ac_exeext && {
1823 test "$cross_compiling" = yes ||
1824 $as_test_x conftest$ac_exeext
1825 }; then :
1826 ac_retval=0
d911ec67 1827else
f11781c5 1828 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
f11781c5 1831 ac_retval=1
d911ec67 1832fi
f11781c5
AK
1833 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1834 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1835 # interfere with the next link command; also delete a directory that is
1836 # left behind by Apple's compiler. We do this before executing the actions.
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839 as_fn_set_status $ac_retval
d911ec67 1840
f11781c5 1841} # ac_fn_c_try_link
d911ec67 1842
f11781c5
AK
1843# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1844# -------------------------------------------------------
1845# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1846# the include files in INCLUDES and setting the cache variable VAR
1847# accordingly.
1848ac_fn_c_check_header_mongrel ()
1849{
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if eval "test \"\${$3+set}\"" = set; then :
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853$as_echo_n "checking for $2... " >&6; }
1854if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1855 $as_echo_n "(cached) " >&6
1856fi
f11781c5
AK
1857eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1859$as_echo "$ac_res" >&6; }
1860else
1861 # Is the header compilable?
f11781c5
AK
1862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1863$as_echo_n "checking $2 usability... " >&6; }
1864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1865/* end confdefs.h. */
f11781c5
AK
1866$4
1867#include <$2>
d911ec67 1868_ACEOF
f11781c5 1869if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1870 ac_header_compiler=yes
1871else
f11781c5 1872 ac_header_compiler=no
d911ec67 1873fi
d911ec67 1874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1876$as_echo "$ac_header_compiler" >&6; }
1877
1878# Is the header present?
f11781c5
AK
1879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1880$as_echo_n "checking $2 presence... " >&6; }
1881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1882/* end confdefs.h. */
f11781c5 1883#include <$2>
d911ec67 1884_ACEOF
f11781c5 1885if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1886 ac_header_preproc=yes
1887else
d911ec67
AK
1888 ac_header_preproc=no
1889fi
d911ec67 1890rm -f conftest.err conftest.$ac_ext
f11781c5 1891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1892$as_echo "$ac_header_preproc" >&6; }
1893
1894# So? What about this header?
f11781c5 1895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1896 yes:no: )
f11781c5
AK
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1898$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1901 ;;
1902 no:yes:* )
f11781c5
AK
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1904$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1906$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1908$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1910$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 ;;
1914esac
f11781c5
AK
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916$as_echo_n "checking for $2... " >&6; }
1917if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1918 $as_echo_n "(cached) " >&6
1919else
f11781c5 1920 eval "$3=\$ac_header_compiler"
d911ec67 1921fi
f11781c5
AK
1922eval ac_res=\$$3
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1924$as_echo "$ac_res" >&6; }
ad6254c5 1925fi
f11781c5 1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1927
f11781c5 1928} # ac_fn_c_check_header_mongrel
ad6254c5 1929
f11781c5
AK
1930# ac_fn_c_try_run LINENO
1931# ----------------------
1932# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1933# that executables *can* be run.
1934ac_fn_c_try_run ()
ad6254c5 1935{
f11781c5
AK
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_link"
7a197a62
AK
1938case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941esac
f11781c5
AK
1942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943$as_echo "$ac_try_echo"; } >&5
7a197a62 1944 (eval "$ac_link") 2>&5
ad6254c5 1945 ac_status=$?
f11781c5
AK
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1948 { { case "(($ac_try" in
7a197a62
AK
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1951esac
f11781c5
AK
1952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953$as_echo "$ac_try_echo"; } >&5
7a197a62 1954 (eval "$ac_try") 2>&5
ad6254c5 1955 ac_status=$?
f11781c5
AK
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; }; }; then :
1958 ac_retval=0
ad6254c5 1959else
ec6a6fbe 1960 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 1961 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
1962sed 's/^/| /' conftest.$ac_ext >&5
1963
f11781c5 1964 ac_retval=$ac_status
ad6254c5 1965fi
f11781c5
AK
1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968 as_fn_set_status $ac_retval
ad6254c5 1969
f11781c5 1970} # ac_fn_c_try_run
ad6254c5 1971
f11781c5
AK
1972# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1973# -------------------------------------------------------
1974# Tests whether HEADER exists and can be compiled using the include files in
1975# INCLUDES, setting the cache variable VAR accordingly.
1976ac_fn_c_check_header_compile ()
1977{
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980$as_echo_n "checking for $2... " >&6; }
1981if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 1982 $as_echo_n "(cached) " >&6
ad6254c5 1983else
f11781c5 1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 1985/* end confdefs.h. */
f11781c5
AK
1986$4
1987#include <$2>
ad6254c5 1988_ACEOF
f11781c5
AK
1989if ac_fn_c_try_compile "$LINENO"; then :
1990 eval "$3=yes"
ad6254c5 1991else
f11781c5 1992 eval "$3=no"
ad6254c5 1993fi
7a197a62 1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 1995fi
f11781c5
AK
1996eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 1998$as_echo "$ac_res" >&6; }
f11781c5 1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2000
f11781c5 2001} # ac_fn_c_check_header_compile
ad6254c5 2002
f11781c5
AK
2003# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2004# ----------------------------------------------------
2005# Tries to find if the field MEMBER exists in type AGGR, after including
2006# INCLUDES, setting cache variable VAR accordingly.
2007ac_fn_c_check_member ()
2008{
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2011$as_echo_n "checking for $2.$3... " >&6; }
2012if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2013 $as_echo_n "(cached) " >&6
795ca3e5 2014else
f11781c5
AK
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017$5
2018int
2019main ()
2020{
2021static $2 ac_aggr;
2022if (ac_aggr.$3)
2023return 0;
2024 ;
2025 return 0;
2026}
ad6254c5 2027_ACEOF
f11781c5
AK
2028if ac_fn_c_try_compile "$LINENO"; then :
2029 eval "$4=yes"
2030else
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2032/* end confdefs.h. */
f11781c5
AK
2033$5
2034int
2035main ()
2036{
2037static $2 ac_aggr;
2038if (sizeof ac_aggr.$3)
2039return 0;
2040 ;
2041 return 0;
2042}
2043_ACEOF
2044if ac_fn_c_try_compile "$LINENO"; then :
2045 eval "$4=yes"
2046else
2047 eval "$4=no"
2048fi
2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052fi
2053eval ac_res=\$$4
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055$as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057
2058} # ac_fn_c_check_member
795ca3e5 2059
f11781c5
AK
2060# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2061# -------------------------------------------
2062# Tests whether TYPE exists after having included INCLUDES, setting cache
2063# variable VAR accordingly.
2064ac_fn_c_check_type ()
2065{
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068$as_echo_n "checking for $2... " >&6; }
2069if eval "test \"\${$3+set}\"" = set; then :
2070 $as_echo_n "(cached) " >&6
2071else
2072 eval "$3=no"
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h. */
2075$4
ad6254c5
AK
2076int
2077main ()
2078{
f11781c5
AK
2079if (sizeof ($2))
2080 return 0;
ad6254c5
AK
2081 ;
2082 return 0;
2083}
2084_ACEOF
f11781c5
AK
2085if ac_fn_c_try_compile "$LINENO"; then :
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h. */
2088$4
2089int
2090main ()
2091{
2092if (sizeof (($2)))
2093 return 0;
2094 ;
2095 return 0;
2096}
2097_ACEOF
2098if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2099
f11781c5
AK
2100else
2101 eval "$3=yes"
795ca3e5 2102fi
f11781c5
AK
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104fi
2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2106fi
f11781c5
AK
2107eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2109$as_echo "$ac_res" >&6; }
f11781c5 2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2111
f11781c5 2112} # ac_fn_c_check_type
ad6254c5 2113
f11781c5
AK
2114# ac_fn_c_find_intX_t LINENO BITS VAR
2115# -----------------------------------
2116# Finds a signed integer type with width BITS, setting cache variable VAR
2117# accordingly.
2118ac_fn_c_find_intX_t ()
2119{
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2122$as_echo_n "checking for int$2_t... " >&6; }
2123if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2124 $as_echo_n "(cached) " >&6
ad6254c5 2125else
f11781c5
AK
2126 eval "$3=no"
2127 # Order is important - never check a type that is potentially smaller
2128 # than half of the expected target width.
2129 for ac_type in int$2_t 'int' 'long int' \
2130 'long long int' 'short int' 'signed char'; do
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2132/* end confdefs.h. */
2133$ac_includes_default
f11781c5 2134 enum { N = $2 / 2 - 1 };
7a197a62
AK
2135int
2136main ()
2137{
f11781c5
AK
2138static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2139test_array [0] = 0
7a197a62 2140
f11781c5
AK
2141 ;
2142 return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_compile "$LINENO"; then :
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147/* end confdefs.h. */
2148$ac_includes_default
2149 enum { N = $2 / 2 - 1 };
2150int
2151main ()
2152{
2153static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2154 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2155test_array [0] = 0
7a197a62
AK
2156
2157 ;
2158 return 0;
2159}
ad6254c5 2160_ACEOF
f11781c5 2161if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2162
f11781c5
AK
2163else
2164 case $ac_type in #(
2165 int$2_t) :
2166 eval "$3=yes" ;; #(
2167 *) :
2168 eval "$3=\$ac_type" ;;
2169esac
ad6254c5 2170fi
f11781c5 2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2172fi
f11781c5
AK
2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2175
2176else
f11781c5 2177 break
ad6254c5 2178fi
f11781c5 2179 done
ad6254c5 2180fi
f11781c5
AK
2181eval ac_res=\$$3
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183$as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2185
2186} # ac_fn_c_find_intX_t
2187
2188# ac_fn_c_find_uintX_t LINENO BITS VAR
2189# ------------------------------------
2190# Finds an unsigned integer type with width BITS, setting cache variable VAR
2191# accordingly.
2192ac_fn_c_find_uintX_t ()
2193{
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2196$as_echo_n "checking for uint$2_t... " >&6; }
2197if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2198 $as_echo_n "(cached) " >&6
ad6254c5 2199else
f11781c5
AK
2200 eval "$3=no"
2201 # Order is important - never check a type that is potentially smaller
2202 # than half of the expected target width.
2203 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2204 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2206/* end confdefs.h. */
7a197a62 2207$ac_includes_default
ad6254c5
AK
2208int
2209main ()
2210{
f11781c5
AK
2211static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2212test_array [0] = 0
ad6254c5 2213
f11781c5
AK
2214 ;
2215 return 0;
ad6254c5
AK
2216}
2217_ACEOF
f11781c5
AK
2218if ac_fn_c_try_compile "$LINENO"; then :
2219 case $ac_type in #(
2220 uint$2_t) :
2221 eval "$3=yes" ;; #(
2222 *) :
2223 eval "$3=\$ac_type" ;;
7a197a62 2224esac
ad6254c5 2225fi
f11781c5
AK
2226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2228
f11781c5
AK
2229else
2230 break
ad6254c5 2231fi
f11781c5 2232 done
ad6254c5 2233fi
f11781c5
AK
2234eval ac_res=\$$3
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236$as_echo "$ac_res" >&6; }
2237 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2238
f11781c5 2239} # ac_fn_c_find_uintX_t
ad6254c5 2240
f11781c5
AK
2241# ac_fn_c_check_func LINENO FUNC VAR
2242# ----------------------------------
2243# Tests whether FUNC exists, setting the cache variable VAR accordingly
2244ac_fn_c_check_func ()
2245{
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248$as_echo_n "checking for $2... " >&6; }
2249if eval "test \"\${$3+set}\"" = set; then :
2250 $as_echo_n "(cached) " >&6
ad6254c5 2251else
f11781c5
AK
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253/* end confdefs.h. */
2254/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2256#define $2 innocuous_$2
ad6254c5 2257
f11781c5
AK
2258/* System header to define __stub macros and hopefully few prototypes,
2259 which can conflict with char $2 (); below.
2260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2261 <limits.h> exists even on freestanding compilers. */
ad6254c5 2262
f11781c5
AK
2263#ifdef __STDC__
2264# include <limits.h>
2265#else
2266# include <assert.h>
2267#endif
ad6254c5 2268
f11781c5
AK
2269#undef $2
2270
2271/* Override any GCC internal prototype to avoid an error.
2272 Use char because int might match the return type of a GCC
2273 builtin and then its argument prototype would still apply. */
2274#ifdef __cplusplus
2275extern "C"
2276#endif
2277char $2 ();
2278/* The GNU C library defines this for functions which it implements
2279 to always fail with ENOSYS. Some functions are actually named
2280 something starting with __ and the normal name is an alias. */
2281#if defined __stub_$2 || defined __stub___$2
2282choke me
2283#endif
ad6254c5 2284
ad6254c5
AK
2285int
2286main ()
2287{
f11781c5 2288return $2 ();
ad6254c5
AK
2289 ;
2290 return 0;
2291}
2292_ACEOF
f11781c5
AK
2293if ac_fn_c_try_link "$LINENO"; then :
2294 eval "$3=yes"
ad6254c5 2295else
f11781c5 2296 eval "$3=no"
ad6254c5 2297fi
f11781c5
AK
2298rm -f core conftest.err conftest.$ac_objext \
2299 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2300fi
f11781c5
AK
2301eval ac_res=\$$3
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303$as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2305
f11781c5
AK
2306} # ac_fn_c_check_func
2307cat >config.log <<_ACEOF
2308This file contains any messages produced by compilers while
2309running configure, to aid debugging if configure makes a mistake.
7a197a62 2310
f11781c5
AK
2311It was created by $as_me, which was
2312generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2313
f11781c5 2314 $ $0 $@
ad6254c5 2315
ad6254c5 2316_ACEOF
f11781c5
AK
2317exec 5>>config.log
2318{
2319cat <<_ASUNAME
2320## --------- ##
2321## Platform. ##
2322## --------- ##
ad6254c5 2323
f11781c5
AK
2324hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2325uname -m = `(uname -m) 2>/dev/null || echo unknown`
2326uname -r = `(uname -r) 2>/dev/null || echo unknown`
2327uname -s = `(uname -s) 2>/dev/null || echo unknown`
2328uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2329
f11781c5
AK
2330/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2331/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2332
f11781c5
AK
2333/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2334/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2335/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2336/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2337/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2338/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2339/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2340
2341_ASUNAME
2342
2343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344for as_dir in $PATH
2345do
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 $as_echo "PATH: $as_dir"
2349 done
2350IFS=$as_save_IFS
2351
2352} >&5
2353
2354cat >&5 <<_ACEOF
2355
2356
2357## ----------- ##
2358## Core tests. ##
2359## ----------- ##
ad6254c5 2360
ad6254c5 2361_ACEOF
ad6254c5 2362
7a197a62 2363
f11781c5
AK
2364# Keep a trace of the command line.
2365# Strip out --no-create and --no-recursion so they do not pile up.
2366# Strip out --silent because we don't want to record it for future runs.
2367# Also quote any args containing shell meta-characters.
2368# Make two passes to allow for proper duplicate-argument suppression.
2369ac_configure_args=
2370ac_configure_args0=
2371ac_configure_args1=
2372ac_must_keep_next=false
2373for ac_pass in 1 2
2374do
2375 for ac_arg
2376 do
2377 case $ac_arg in
2378 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2380 | -silent | --silent | --silen | --sile | --sil)
2381 continue ;;
2382 *\'*)
2383 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2384 esac
2385 case $ac_pass in
2386 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2387 2)
2388 as_fn_append ac_configure_args1 " '$ac_arg'"
2389 if test $ac_must_keep_next = true; then
2390 ac_must_keep_next=false # Got value, back to normal.
2391 else
2392 case $ac_arg in
2393 *=* | --config-cache | -C | -disable-* | --disable-* \
2394 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2395 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2396 | -with-* | --with-* | -without-* | --without-* | --x)
2397 case "$ac_configure_args0 " in
2398 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2399 esac
2400 ;;
2401 -* ) ac_must_keep_next=true ;;
2402 esac
2403 fi
2404 as_fn_append ac_configure_args " '$ac_arg'"
2405 ;;
2406 esac
2407 done
2408done
2409{ ac_configure_args0=; unset ac_configure_args0;}
2410{ ac_configure_args1=; unset ac_configure_args1;}
2411
2412# When interrupted or exit'd, cleanup temporary files, and complete
2413# config.log. We remove comments because anyway the quotes in there
2414# would cause problems or look ugly.
2415# WARNING: Use '\'' to represent an apostrophe within the trap.
2416# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2417trap 'exit_status=$?
2418 # Save into config.log some information that might help in debugging.
2419 {
2420 echo
2421
2422 $as_echo "## ---------------- ##
2423## Cache variables. ##
2424## ---------------- ##"
2425 echo
2426 # The following way of writing the cache mishandles newlines in values,
2427(
2428 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2429 eval ac_val=\$$ac_var
2430 case $ac_val in #(
2431 *${as_nl}*)
2432 case $ac_var in #(
2433 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2434$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2435 esac
2436 case $ac_var in #(
2437 _ | IFS | as_nl) ;; #(
2438 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2439 *) { eval $ac_var=; unset $ac_var;} ;;
2440 esac ;;
2441 esac
2442 done
2443 (set) 2>&1 |
2444 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2445 *${as_nl}ac_space=\ *)
2446 sed -n \
2447 "s/'\''/'\''\\\\'\'''\''/g;
2448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2449 ;; #(
2450 *)
2451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2452 ;;
2453 esac |
2454 sort
2455)
2456 echo
2457
2458 $as_echo "## ----------------- ##
2459## Output variables. ##
2460## ----------------- ##"
2461 echo
2462 for ac_var in $ac_subst_vars
2463 do
2464 eval ac_val=\$$ac_var
2465 case $ac_val in
2466 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467 esac
2468 $as_echo "$ac_var='\''$ac_val'\''"
2469 done | sort
2470 echo
2471
2472 if test -n "$ac_subst_files"; then
2473 $as_echo "## ------------------- ##
2474## File substitutions. ##
2475## ------------------- ##"
2476 echo
2477 for ac_var in $ac_subst_files
2478 do
2479 eval ac_val=\$$ac_var
2480 case $ac_val in
2481 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2482 esac
2483 $as_echo "$ac_var='\''$ac_val'\''"
2484 done | sort
2485 echo
2486 fi
2487
2488 if test -s confdefs.h; then
2489 $as_echo "## ----------- ##
2490## confdefs.h. ##
2491## ----------- ##"
2492 echo
2493 cat confdefs.h
2494 echo
2495 fi
2496 test "$ac_signal" != 0 &&
2497 $as_echo "$as_me: caught signal $ac_signal"
2498 $as_echo "$as_me: exit $exit_status"
2499 } >&5
2500 rm -f core *.core core.conftest.* &&
2501 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2502 exit $exit_status
2503' 0
2504for ac_signal in 1 2 13 15; do
2505 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2506done
2507ac_signal=0
2508
2509# confdefs.h avoids OS command line length limits that DEFS can exceed.
2510rm -f -r conftest* confdefs.h
7a197a62 2511
f11781c5 2512$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2513
f11781c5 2514# Predefined preprocessor variables.
ad6254c5
AK
2515
2516cat >>confdefs.h <<_ACEOF
f11781c5 2517#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2518_ACEOF
2519
f11781c5
AK
2520cat >>confdefs.h <<_ACEOF
2521#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2522_ACEOF
ad6254c5 2523
f11781c5
AK
2524cat >>confdefs.h <<_ACEOF
2525#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2526_ACEOF
f11781c5
AK
2527
2528cat >>confdefs.h <<_ACEOF
2529#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2530_ACEOF
ad6254c5 2531
f11781c5
AK
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2534_ACEOF
7a197a62 2535
f11781c5
AK
2536cat >>confdefs.h <<_ACEOF
2537#define PACKAGE_URL "$PACKAGE_URL"
2538_ACEOF
ad6254c5 2539
7a197a62 2540
f11781c5
AK
2541# Let the site file select an alternate cache file if it wants to.
2542# Prefer an explicitly selected file to automatically selected ones.
2543ac_site_file1=NONE
2544ac_site_file2=NONE
2545if test -n "$CONFIG_SITE"; then
2546 # We do not want a PATH search for config.site.
2547 case $CONFIG_SITE in #((
2548 -*) ac_site_file1=./$CONFIG_SITE;;
2549 */*) ac_site_file1=$CONFIG_SITE;;
2550 *) ac_site_file1=./$CONFIG_SITE;;
2551 esac
2552elif test "x$prefix" != xNONE; then
2553 ac_site_file1=$prefix/share/config.site
2554 ac_site_file2=$prefix/etc/config.site
ad6254c5 2555else
f11781c5
AK
2556 ac_site_file1=$ac_default_prefix/share/config.site
2557 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2558fi
f11781c5
AK
2559for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2560do
2561 test "x$ac_site_file" = xNONE && continue
2562 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2564$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2565 sed 's/^/| /' "$ac_site_file" >&5
2566 . "$ac_site_file" \
2567 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569as_fn_error $? "failed to load site script $ac_site_file
2570See \`config.log' for more details" "$LINENO" 5; }
2571 fi
2572done
ad6254c5 2573
f11781c5
AK
2574if test -r "$cache_file"; then
2575 # Some versions of bash will fail to source /dev/null (special files
2576 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2577 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2579$as_echo "$as_me: loading cache $cache_file" >&6;}
2580 case $cache_file in
2581 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2582 *) . "./$cache_file";;
2583 esac
2584 fi
2585else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2587$as_echo "$as_me: creating cache $cache_file" >&6;}
2588 >$cache_file
ad6254c5 2589fi
ad6254c5 2590
f11781c5
AK
2591as_fn_append ac_header_list " stdlib.h"
2592as_fn_append ac_header_list " unistd.h"
2593as_fn_append ac_header_list " sys/param.h"
2594# Check that the precious variables saved in the cache have kept the same
2595# value.
2596ac_cache_corrupted=false
2597for ac_var in $ac_precious_vars; do
2598 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2599 eval ac_new_set=\$ac_env_${ac_var}_set
2600 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2601 eval ac_new_val=\$ac_env_${ac_var}_value
2602 case $ac_old_set,$ac_new_set in
2603 set,)
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2605$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2606 ac_cache_corrupted=: ;;
2607 ,set)
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2609$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2610 ac_cache_corrupted=: ;;
2611 ,);;
2612 *)
2613 if test "x$ac_old_val" != "x$ac_new_val"; then
2614 # differences in whitespace do not lead to failure.
2615 ac_old_val_w=`echo x $ac_old_val`
2616 ac_new_val_w=`echo x $ac_new_val`
2617 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2619$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2620 ac_cache_corrupted=:
2621 else
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2623$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2624 eval $ac_var=\$ac_old_val
2625 fi
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2627$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2629$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2630 fi;;
2631 esac
2632 # Pass precious variables to config.status.
2633 if test "$ac_new_set" = set; then
2634 case $ac_new_val in
2635 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2636 *) ac_arg=$ac_var=$ac_new_val ;;
2637 esac
2638 case " $ac_configure_args " in
2639 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2640 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2641 esac
2642 fi
2643done
2644if $ac_cache_corrupted; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2648$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2649 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2650fi
f11781c5
AK
2651## -------------------- ##
2652## Main body of script. ##
2653## -------------------- ##
ad6254c5 2654
f11781c5
AK
2655ac_ext=c
2656ac_cpp='$CPP $CPPFLAGS'
2657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2660
ad6254c5 2661
ad6254c5 2662
f11781c5 2663ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2664
2665
f11781c5
AK
2666################################################################################
2667ac_aux_dir=
2668for ac_dir in autoconf "$srcdir"/autoconf; do
2669 if test -f "$ac_dir/install-sh"; then
2670 ac_aux_dir=$ac_dir
2671 ac_install_sh="$ac_aux_dir/install-sh -c"
2672 break
2673 elif test -f "$ac_dir/install.sh"; then
2674 ac_aux_dir=$ac_dir
2675 ac_install_sh="$ac_aux_dir/install.sh -c"
2676 break
2677 elif test -f "$ac_dir/shtool"; then
2678 ac_aux_dir=$ac_dir
2679 ac_install_sh="$ac_aux_dir/shtool install -c"
2680 break
2681 fi
2682done
2683if test -z "$ac_aux_dir"; then
2684 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2685fi
ad6254c5 2686
f11781c5
AK
2687# These three variables are undocumented and unsupported,
2688# and are intended to be withdrawn in a future Autoconf release.
2689# They can cause serious problems if a builder's source tree is in a directory
2690# whose full name contains unusual characters.
2691ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2692ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2693ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2694
ad6254c5 2695
8a2fc586 2696
f11781c5
AK
2697################################################################################
2698# Make sure we can run config.sub.
2699$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2700 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2701
f11781c5
AK
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2703$as_echo_n "checking build system type... " >&6; }
2704if test "${ac_cv_build+set}" = set; then :
2705 $as_echo_n "(cached) " >&6
2706else
2707 ac_build_alias=$build_alias
2708test "x$ac_build_alias" = x &&
2709 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2710test "x$ac_build_alias" = x &&
2711 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2712ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2713 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2714
2715fi
f11781c5
AK
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2717$as_echo "$ac_cv_build" >&6; }
2718case $ac_cv_build in
2719*-*-*) ;;
2720*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2721esac
2722build=$ac_cv_build
2723ac_save_IFS=$IFS; IFS='-'
2724set x $ac_cv_build
2725shift
2726build_cpu=$1
2727build_vendor=$2
2728shift; shift
2729# Remember, the first character of IFS is used to create $*,
2730# except with old shells:
2731build_os=$*
2732IFS=$ac_save_IFS
2733case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2734
2735
f11781c5
AK
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2737$as_echo_n "checking host system type... " >&6; }
2738if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2739 $as_echo_n "(cached) " >&6
ad6254c5 2740else
f11781c5
AK
2741 if test "x$host_alias" = x; then
2742 ac_cv_host=$ac_cv_build
ad6254c5 2743else
f11781c5
AK
2744 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2745 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2746fi
ad6254c5 2747
f11781c5
AK
2748fi
2749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2750$as_echo "$ac_cv_host" >&6; }
2751case $ac_cv_host in
2752*-*-*) ;;
2753*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2754esac
2755host=$ac_cv_host
2756ac_save_IFS=$IFS; IFS='-'
2757set x $ac_cv_host
2758shift
2759host_cpu=$1
2760host_vendor=$2
2761shift; shift
2762# Remember, the first character of IFS is used to create $*,
2763# except with old shells:
2764host_os=$*
2765IFS=$ac_save_IFS
2766case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2767
ad6254c5 2768
f11781c5
AK
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2770$as_echo_n "checking target system type... " >&6; }
2771if test "${ac_cv_target+set}" = set; then :
2772 $as_echo_n "(cached) " >&6
ad6254c5 2773else
f11781c5
AK
2774 if test "x$target_alias" = x; then
2775 ac_cv_target=$ac_cv_host
2776else
2777 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2778 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2779fi
7a197a62 2780
ad6254c5 2781fi
f11781c5
AK
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2783$as_echo "$ac_cv_target" >&6; }
2784case $ac_cv_target in
2785*-*-*) ;;
2786*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2787esac
f11781c5
AK
2788target=$ac_cv_target
2789ac_save_IFS=$IFS; IFS='-'
2790set x $ac_cv_target
2791shift
2792target_cpu=$1
2793target_vendor=$2
2794shift; shift
2795# Remember, the first character of IFS is used to create $*,
2796# except with old shells:
2797target_os=$*
2798IFS=$ac_save_IFS
2799case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2800
ad6254c5 2801
f11781c5
AK
2802# The aliases save the names the user supplied, while $host etc.
2803# will get canonicalized.
2804test -n "$target_alias" &&
2805 test "$program_prefix$program_suffix$program_transform_name" = \
2806 NONENONEs,x,x, &&
2807 program_prefix=${target_alias}-
ad6254c5 2808
f11781c5
AK
2809case "$host_os" in
2810 linux*)
2811 CFLAGS="$CFLAGS"
2812 COPTIMISE_FLAG="-O2"
2813 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2814 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2815 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2816 LDDEPS="$LDDEPS .export.sym"
2817 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2818 LIB_SUFFIX=so
2819 DEVMAPPER=yes
2820 ODIRECT=yes
2821 DM_IOCTLS=yes
2822 SELINUX=yes
2823 CLUSTER=internal
2824 FSADM=yes
2825 ;;
2826 darwin*)
2827 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2828 COPTIMISE_FLAG="-O2"
2829 CLDFLAGS="$CLDFLAGS"
2830 CLDWHOLEARCHIVE="-all_load"
2831 CLDNOWHOLEARCHIVE=
2832 LIB_SUFFIX=dylib
2833 DEVMAPPER=yes
2834 ODIRECT=no
2835 DM_IOCTLS=no
2836 SELINUX=no
2837 CLUSTER=none
2838 FSADM=no
2839 ;;
2840esac
ad6254c5 2841
f11781c5
AK
2842################################################################################
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2844$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2845if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2846 $as_echo_n "(cached) " >&6
ad6254c5 2847else
f11781c5
AK
2848 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2849 for ac_i in 1 2 3 4 5 6 7; do
2850 ac_script="$ac_script$as_nl$ac_script"
2851 done
2852 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2853 { ac_script=; unset ac_script;}
2854 if test -z "$SED"; then
2855 ac_path_SED_found=false
2856 # Loop through the user's path and test for each of PROGNAME-LIST
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_prog in sed gsed; do
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2865 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2866# Check for GNU ac_path_SED and select it if it is found.
2867 # Check for GNU $ac_path_SED
2868case `"$ac_path_SED" --version 2>&1` in
2869*GNU*)
2870 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2871*)
2872 ac_count=0
2873 $as_echo_n 0123456789 >"conftest.in"
2874 while :
2875 do
2876 cat "conftest.in" "conftest.in" >"conftest.tmp"
2877 mv "conftest.tmp" "conftest.in"
2878 cp "conftest.in" "conftest.nl"
2879 $as_echo '' >> "conftest.nl"
2880 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2882 as_fn_arith $ac_count + 1 && ac_count=$as_val
2883 if test $ac_count -gt ${ac_path_SED_max-0}; then
2884 # Best one so far, save it but keep looking for a better one
2885 ac_cv_path_SED="$ac_path_SED"
2886 ac_path_SED_max=$ac_count
2887 fi
2888 # 10*(2^10) chars as input seems more than enough
2889 test $ac_count -gt 10 && break
2890 done
2891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2892esac
ad6254c5 2893
f11781c5
AK
2894 $ac_path_SED_found && break 3
2895 done
2896 done
2897 done
2898IFS=$as_save_IFS
2899 if test -z "$ac_cv_path_SED"; then
2900 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2901 fi
2902else
2903 ac_cv_path_SED=$SED
ad6254c5 2904fi
7a197a62 2905
f11781c5
AK
2906fi
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2908$as_echo "$ac_cv_path_SED" >&6; }
2909 SED="$ac_cv_path_SED"
2910 rm -f conftest.sed
ad6254c5 2911
f11781c5
AK
2912for ac_prog in gawk mawk nawk awk
2913do
2914 # Extract the first word of "$ac_prog", so it can be a program name with args.
2915set dummy $ac_prog; ac_word=$2
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917$as_echo_n "checking for $ac_word... " >&6; }
2918if test "${ac_cv_prog_AWK+set}" = set; then :
2919 $as_echo_n "(cached) " >&6
ad6254c5 2920else
f11781c5
AK
2921 if test -n "$AWK"; then
2922 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2923else
2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925for as_dir in $PATH
2926do
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 ac_cv_prog_AWK="$ac_prog"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2934 fi
2935done
2936 done
2937IFS=$as_save_IFS
ad6254c5 2938
ad6254c5 2939fi
ad6254c5 2940fi
f11781c5
AK
2941AWK=$ac_cv_prog_AWK
2942if test -n "$AWK"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2944$as_echo "$AWK" >&6; }
2945else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947$as_echo "no" >&6; }
ad6254c5 2948fi
ad6254c5 2949
ad6254c5 2950
f11781c5 2951 test -n "$AWK" && break
ad6254c5
AK
2952done
2953
f11781c5
AK
2954ac_ext=c
2955ac_cpp='$CPP $CPPFLAGS'
2956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959if test -n "$ac_tool_prefix"; then
2960 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2961set dummy ${ac_tool_prefix}gcc; ac_word=$2
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963$as_echo_n "checking for $ac_word... " >&6; }
2964if test "${ac_cv_prog_CC+set}" = set; then :
ec6a6fbe 2965 $as_echo_n "(cached) " >&6
ad6254c5 2966else
f11781c5
AK
2967 if test -n "$CC"; then
2968 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 2969else
f11781c5
AK
2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971for as_dir in $PATH
2972do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981done
2982 done
2983IFS=$as_save_IFS
ad6254c5 2984
ad6254c5 2985fi
ad6254c5 2986fi
f11781c5
AK
2987CC=$ac_cv_prog_CC
2988if test -n "$CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2990$as_echo "$CC" >&6; }
2991else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993$as_echo "no" >&6; }
ad6254c5 2994fi
ad6254c5 2995
f11781c5
AK
2996
2997fi
2998if test -z "$ac_cv_prog_CC"; then
2999 ac_ct_CC=$CC
3000 # Extract the first word of "gcc", so it can be a program name with args.
3001set dummy gcc; ac_word=$2
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003$as_echo_n "checking for $ac_word... " >&6; }
3004if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 3005 $as_echo_n "(cached) " >&6
ad6254c5 3006else
f11781c5
AK
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 3009else
f11781c5
AK
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
3012do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_ac_ct_CC="gcc"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021done
3022 done
3023IFS=$as_save_IFS
d911ec67 3024
d911ec67 3025fi
d911ec67 3026fi
f11781c5
AK
3027ac_ct_CC=$ac_cv_prog_ac_ct_CC
3028if test -n "$ac_ct_CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3030$as_echo "$ac_ct_CC" >&6; }
3031else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033$as_echo "no" >&6; }
d911ec67 3034fi
d911ec67 3035
f11781c5
AK
3036 if test "x$ac_ct_CC" = x; then
3037 CC=""
3038 else
3039 case $cross_compiling:$ac_tool_warned in
3040yes:)
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3043ac_tool_warned=yes ;;
3044esac
3045 CC=$ac_ct_CC
3046 fi
3047else
3048 CC="$ac_cv_prog_CC"
d911ec67 3049fi
d911ec67 3050
f11781c5
AK
3051if test -z "$CC"; then
3052 if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3054set dummy ${ac_tool_prefix}cc; ac_word=$2
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056$as_echo_n "checking for $ac_word... " >&6; }
3057if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67 3058 $as_echo_n "(cached) " >&6
d911ec67 3059else
f11781c5
AK
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 3062else
f11781c5
AK
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_CC="${ac_tool_prefix}cc"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074done
3075 done
3076IFS=$as_save_IFS
d911ec67 3077
f11781c5
AK
3078fi
3079fi
3080CC=$ac_cv_prog_CC
3081if test -n "$CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083$as_echo "$CC" >&6; }
3084else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086$as_echo "no" >&6; }
d911ec67
AK
3087fi
3088
d911ec67 3089
f11781c5
AK
3090 fi
3091fi
3092if test -z "$CC"; then
3093 # Extract the first word of "cc", so it can be a program name with args.
3094set dummy cc; ac_word=$2
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096$as_echo_n "checking for $ac_word... " >&6; }
3097if test "${ac_cv_prog_CC+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
d911ec67 3099else
f11781c5
AK
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102else
3103 ac_prog_rejected=no
3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3112 ac_prog_rejected=yes
3113 continue
3114 fi
3115 ac_cv_prog_CC="cc"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119done
3120 done
3121IFS=$as_save_IFS
d911ec67 3122
f11781c5
AK
3123if test $ac_prog_rejected = yes; then
3124 # We found a bogon in the path, so make sure we never use it.
3125 set dummy $ac_cv_prog_CC
3126 shift
3127 if test $# != 0; then
3128 # We chose a different compiler from the bogus one.
3129 # However, it has the same basename, so the bogon will be chosen
3130 # first if we set CC to just the basename; use the full file name.
3131 shift
3132 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3133 fi
3134fi
3135fi
3136fi
3137CC=$ac_cv_prog_CC
3138if test -n "$CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140$as_echo "$CC" >&6; }
3141else
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143$as_echo "no" >&6; }
d911ec67
AK
3144fi
3145
d911ec67 3146
f11781c5
AK
3147fi
3148if test -z "$CC"; then
3149 if test -n "$ac_tool_prefix"; then
3150 for ac_prog in cl.exe
3151 do
3152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3153set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155$as_echo_n "checking for $ac_word... " >&6; }
3156if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3157 $as_echo_n "(cached) " >&6
3158else
f11781c5
AK
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161else
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173done
3174 done
3175IFS=$as_save_IFS
d911ec67
AK
3176
3177fi
f11781c5
AK
3178fi
3179CC=$ac_cv_prog_CC
3180if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182$as_echo "$CC" >&6; }
3183else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
d911ec67
AK
3186fi
3187
d911ec67 3188
f11781c5
AK
3189 test -n "$CC" && break
3190 done
3191fi
3192if test -z "$CC"; then
3193 ac_ct_CC=$CC
3194 for ac_prog in cl.exe
3195do
3196 # Extract the first word of "$ac_prog", so it can be a program name with args.
3197set dummy $ac_prog; ac_word=$2
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199$as_echo_n "checking for $ac_word... " >&6; }
3200if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d911ec67
AK
3201 $as_echo_n "(cached) " >&6
3202else
f11781c5
AK
3203 if test -n "$ac_ct_CC"; then
3204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3205else
f11781c5
AK
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213 ac_cv_prog_ac_ct_CC="$ac_prog"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217done
3218 done
3219IFS=$as_save_IFS
ad6254c5 3220
ad6254c5 3221fi
ad6254c5 3222fi
f11781c5
AK
3223ac_ct_CC=$ac_cv_prog_ac_ct_CC
3224if test -n "$ac_ct_CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3226$as_echo "$ac_ct_CC" >&6; }
3227else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229$as_echo "no" >&6; }
ad6254c5 3230fi
ad6254c5 3231
d911ec67 3232
f11781c5
AK
3233 test -n "$ac_ct_CC" && break
3234done
d911ec67 3235
f11781c5
AK
3236 if test "x$ac_ct_CC" = x; then
3237 CC=""
3238 else
3239 case $cross_compiling:$ac_tool_warned in
3240yes:)
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3243ac_tool_warned=yes ;;
d911ec67 3244esac
f11781c5
AK
3245 CC=$ac_ct_CC
3246 fi
3247fi
ad6254c5
AK
3248
3249fi
d911ec67
AK
3250
3251
f11781c5
AK
3252test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254as_fn_error $? "no acceptable C compiler found in \$PATH
3255See \`config.log' for more details" "$LINENO" 5; }
3256
3257# Provide some information about the compiler.
3258$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3259set X $ac_compile
3260ac_compiler=$2
3261for ac_option in --version -v -V -qversion; do
3262 { { ac_try="$ac_compiler $ac_option >&5"
3263case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266esac
3267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268$as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3270 ac_status=$?
3271 if test -s conftest.err; then
3272 sed '10a\
3273... rest of stderr output deleted ...
3274 10q' conftest.err >conftest.er1
3275 cat conftest.er1 >&5
3276 fi
3277 rm -f conftest.er1 conftest.err
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }
3280done
ad6254c5 3281
f11781c5 3282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3283/* end confdefs.h. */
f11781c5 3284
ad6254c5
AK
3285int
3286main ()
3287{
f11781c5 3288
ad6254c5
AK
3289 ;
3290 return 0;
3291}
3292_ACEOF
f11781c5
AK
3293ac_clean_files_save=$ac_clean_files
3294ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3295# Try to create an executable without -o first, disregard a.out.
3296# It will help us diagnose broken compilers, and finding out an intuition
3297# of exeext.
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3299$as_echo_n "checking whether the C compiler works... " >&6; }
3300ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3301
3302# The possible output files:
3303ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3304
3305ac_rmfiles=
3306for ac_file in $ac_files
3307do
3308 case $ac_file in
3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3310 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3311 esac
3312done
3313rm -f $ac_rmfiles
3314
3315if { { ac_try="$ac_link_default"
7a197a62
AK
3316case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319esac
f11781c5
AK
3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321$as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link_default") 2>&5
ad6254c5 3323 ac_status=$?
f11781c5
AK
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
3326 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3327# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3328# in a Makefile. We should not override ac_cv_exeext if it was cached,
3329# so that the user can short-circuit this test for compilers unknown to
3330# Autoconf.
3331for ac_file in $ac_files ''
3332do
3333 test -f "$ac_file" || continue
3334 case $ac_file in
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3336 ;;
3337 [ab].out )
3338 # We found the default executable, but exeext='' is most
3339 # certainly right.
3340 break;;
3341 *.* )
3342 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3343 then :; else
3344 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345 fi
3346 # We set ac_cv_exeext here because the later test for it is not
3347 # safe: cross compilers may not add the suffix if given an `-o'
3348 # argument, so we may need to know it at that point already.
3349 # Even if this section looks crufty: it has the advantage of
3350 # actually working.
3351 break;;
3352 * )
3353 break;;
3354 esac
3355done
3356test "$ac_cv_exeext" = no && ac_cv_exeext=
3357
ad6254c5 3358else
f11781c5
AK
3359 ac_file=''
3360fi
3361if test -z "$ac_file"; then :
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363$as_echo "no" >&6; }
ec6a6fbe 3364$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3365sed 's/^/| /' conftest.$ac_ext >&5
3366
f11781c5
AK
3367{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369as_fn_error 77 "C compiler cannot create executables
3370See \`config.log' for more details" "$LINENO" 5; }
3371else
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3373$as_echo "yes" >&6; }
ad6254c5 3374fi
f11781c5
AK
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3376$as_echo_n "checking for C compiler default output file name... " >&6; }
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3378$as_echo "$ac_file" >&6; }
3379ac_exeext=$ac_cv_exeext
7a197a62 3380
f11781c5
AK
3381rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3382ac_clean_files=$ac_clean_files_save
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3384$as_echo_n "checking for suffix of executables... " >&6; }
3385if { { ac_try="$ac_link"
3386case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
8a2fc586 3389esac
f11781c5
AK
3390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391$as_echo "$ac_try_echo"; } >&5
3392 (eval "$ac_link") 2>&5
3393 ac_status=$?
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }; then :
3396 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3397# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3398# work properly (i.e., refer to `conftest.exe'), while it won't with
3399# `rm'.
3400for ac_file in conftest.exe conftest conftest.*; do
3401 test -f "$ac_file" || continue
3402 case $ac_file in
3403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3404 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3405 break;;
3406 * ) break;;
3407 esac
3408done
3409else
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3413See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3414fi
f11781c5
AK
3415rm -f conftest conftest$ac_cv_exeext
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3417$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3418
f11781c5
AK
3419rm -f conftest.$ac_ext
3420EXEEXT=$ac_cv_exeext
3421ac_exeext=$EXEEXT
3422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3423/* end confdefs.h. */
f11781c5 3424#include <stdio.h>
ad6254c5 3425int
f11781c5 3426main ()
ad6254c5 3427{
f11781c5
AK
3428FILE *f = fopen ("conftest.out", "w");
3429 return ferror (f) || fclose (f) != 0;
ad6254c5 3430
f11781c5 3431 ;
7a197a62 3432 return 0;
ad6254c5 3433}
ad6254c5 3434_ACEOF
f11781c5
AK
3435ac_clean_files="$ac_clean_files conftest.out"
3436# Check that the compiler produces executables we can run. If not, either
3437# the compiler is broken, or we cross compile.
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3439$as_echo_n "checking whether we are cross compiling... " >&6; }
3440if test "$cross_compiling" != yes; then
3441 { { ac_try="$ac_link"
7a197a62
AK
3442case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445esac
f11781c5
AK
3446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447$as_echo "$ac_try_echo"; } >&5
7a197a62 3448 (eval "$ac_link") 2>&5
ad6254c5 3449 ac_status=$?
f11781c5
AK
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }
3452 if { ac_try='./conftest$ac_cv_exeext'
3453 { { case "(($ac_try" in
7a197a62
AK
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456esac
f11781c5
AK
3457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458$as_echo "$ac_try_echo"; } >&5
7a197a62 3459 (eval "$ac_try") 2>&5
ad6254c5 3460 ac_status=$?
f11781c5
AK
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }; }; then
3463 cross_compiling=no
3464 else
3465 if test "$cross_compiling" = maybe; then
3466 cross_compiling=yes
3467 else
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470as_fn_error $? "cannot run C compiled programs.
3471If you meant to cross compile, use \`--host'.
3472See \`config.log' for more details" "$LINENO" 5; }
3473 fi
3474 fi
3475fi
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3477$as_echo "$cross_compiling" >&6; }
3478
3479rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3480ac_clean_files=$ac_clean_files_save
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3482$as_echo_n "checking for suffix of object files... " >&6; }
3483if test "${ac_cv_objext+set}" = set; then :
3484 $as_echo_n "(cached) " >&6
3485else
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487/* end confdefs.h. */
ad6254c5
AK
3488
3489int
3490main ()
3491{
f11781c5 3492
ad6254c5
AK
3493 ;
3494 return 0;
3495}
3496_ACEOF
f11781c5
AK
3497rm -f conftest.o conftest.obj
3498if { { ac_try="$ac_compile"
7a197a62
AK
3499case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502esac
f11781c5
AK
3503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504$as_echo "$ac_try_echo"; } >&5
3505 (eval "$ac_compile") 2>&5
ad6254c5 3506 ac_status=$?
f11781c5
AK
3507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508 test $ac_status = 0; }; then :
3509 for ac_file in conftest.o conftest.obj conftest.*; do
3510 test -f "$ac_file" || continue;
3511 case $ac_file in
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3513 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3514 break;;
3515 esac
3516done
ad6254c5 3517else
ec6a6fbe 3518 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
f11781c5
AK
3521{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523as_fn_error $? "cannot compute suffix of object files: cannot compile
3524See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3525fi
f11781c5 3526rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3527fi
f11781c5
AK
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3529$as_echo "$ac_cv_objext" >&6; }
3530OBJEXT=$ac_cv_objext
3531ac_objext=$OBJEXT
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3533$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3534if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3535 $as_echo_n "(cached) " >&6
ad6254c5 3536else
f11781c5 3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3538/* end confdefs.h. */
3539
ad6254c5
AK
3540int
3541main ()
3542{
f11781c5
AK
3543#ifndef __GNUC__
3544 choke me
3545#endif
3546
ad6254c5
AK
3547 ;
3548 return 0;
3549}
3550_ACEOF
f11781c5
AK
3551if ac_fn_c_try_compile "$LINENO"; then :
3552 ac_compiler_gnu=yes
ad6254c5 3553else
f11781c5 3554 ac_compiler_gnu=no
ad6254c5 3555fi
f11781c5
AK
3556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3558
d0191583 3559fi
f11781c5
AK
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3561$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3562if test $ac_compiler_gnu = yes; then
3563 GCC=yes
d0191583 3564else
f11781c5 3565 GCC=
d0191583 3566fi
f11781c5
AK
3567ac_test_CFLAGS=${CFLAGS+set}
3568ac_save_CFLAGS=$CFLAGS
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3570$as_echo_n "checking whether $CC accepts -g... " >&6; }
3571if test "${ac_cv_prog_cc_g+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3573else
3574 ac_save_c_werror_flag=$ac_c_werror_flag
3575 ac_c_werror_flag=yes
3576 ac_cv_prog_cc_g=no
3577 CFLAGS="-g"
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579/* end confdefs.h. */
72b2cb61 3580
f11781c5
AK
3581int
3582main ()
3583{
72b2cb61 3584
f11781c5
AK
3585 ;
3586 return 0;
3587}
3588_ACEOF
3589if ac_fn_c_try_compile "$LINENO"; then :
3590 ac_cv_prog_cc_g=yes
3591else
3592 CFLAGS=""
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594/* end confdefs.h. */
ad6254c5 3595
f11781c5
AK
3596int
3597main ()
3598{
ad6254c5 3599
f11781c5
AK
3600 ;
3601 return 0;
3602}
d0191583 3603_ACEOF
f11781c5
AK
3604if ac_fn_c_try_compile "$LINENO"; then :
3605
3606else
3607 ac_c_werror_flag=$ac_save_c_werror_flag
3608 CFLAGS="-g"
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3610/* end confdefs.h. */
7a197a62 3611
f11781c5
AK
3612int
3613main ()
3614{
ad6254c5 3615
f11781c5
AK
3616 ;
3617 return 0;
3618}
3619_ACEOF
3620if ac_fn_c_try_compile "$LINENO"; then :
3621 ac_cv_prog_cc_g=yes
3622fi
3623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624fi
3625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626fi
3627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 ac_c_werror_flag=$ac_save_c_werror_flag
3629fi
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3631$as_echo "$ac_cv_prog_cc_g" >&6; }
3632if test "$ac_test_CFLAGS" = set; then
3633 CFLAGS=$ac_save_CFLAGS
3634elif test $ac_cv_prog_cc_g = yes; then
3635 if test "$GCC" = yes; then
3636 CFLAGS="-g -O2"
3637 else
3638 CFLAGS="-g"
3639 fi
3640else
3641 if test "$GCC" = yes; then
3642 CFLAGS="-O2"
3643 else
3644 CFLAGS=
3645 fi
3646fi
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3648$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3649if test "${ac_cv_prog_cc_c89+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3651else
3652 ac_cv_prog_cc_c89=no
3653ac_save_CC=$CC
3654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655/* end confdefs.h. */
3656#include <stdarg.h>
3657#include <stdio.h>
3658#include <sys/types.h>
3659#include <sys/stat.h>
3660/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3661struct buf { int x; };
3662FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663static char *e (p, i)
3664 char **p;
3665 int i;
3666{
3667 return p[i];
3668}
3669static char *f (char * (*g) (char **, int), char **p, ...)
3670{
3671 char *s;
3672 va_list v;
3673 va_start (v,p);
3674 s = g (p, va_arg (v,int));
3675 va_end (v);
3676 return s;
3677}
ad6254c5 3678
f11781c5
AK
3679/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3680 function prototypes and stuff, but not '\xHH' hex character constants.
3681 These don't provoke an error unfortunately, instead are silently treated
3682 as 'x'. The following induces an error, until -std is added to get
3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3684 array size at least. It's necessary to write '\x00'==0 to get something
3685 that's true only with -std. */
3686int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3687
f11781c5
AK
3688/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3689 inside strings and character constants. */
3690#define FOO(x) 'x'
3691int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3692
f11781c5
AK
3693int test (int i, double x);
3694struct s1 {int (*f) (int a);};
3695struct s2 {int (*f) (double a);};
3696int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3697int argc;
3698char **argv;
d0191583
JM
3699int
3700main ()
3701{
f11781c5 3702return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3703 ;
3704 return 0;
3705}
72b2cb61 3706_ACEOF
f11781c5
AK
3707for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3708 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3709do
3710 CC="$ac_save_CC $ac_arg"
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712 ac_cv_prog_cc_c89=$ac_arg
3713fi
3714rm -f core conftest.err conftest.$ac_objext
3715 test "x$ac_cv_prog_cc_c89" != "xno" && break
3716done
3717rm -f conftest.$ac_ext
3718CC=$ac_save_CC
3719
3720fi
3721# AC_CACHE_VAL
3722case "x$ac_cv_prog_cc_c89" in
3723 x)
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3725$as_echo "none needed" >&6; } ;;
3726 xno)
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3728$as_echo "unsupported" >&6; } ;;
3729 *)
3730 CC="$CC $ac_cv_prog_cc_c89"
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3732$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3733esac
f11781c5
AK
3734if test "x$ac_cv_prog_cc_c89" != xno; then :
3735
3736fi
3737
3738ac_ext=c
3739ac_cpp='$CPP $CPPFLAGS'
3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3743
ad6254c5 3744
7a197a62 3745
f11781c5
AK
3746ac_ext=c
3747ac_cpp='$CPP $CPPFLAGS'
3748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3752$as_echo_n "checking how to run the C preprocessor... " >&6; }
3753# On Suns, sometimes $CPP names a directory.
3754if test -n "$CPP" && test -d "$CPP"; then
3755 CPP=
3756fi
3757if test -z "$CPP"; then
3758 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3759 $as_echo_n "(cached) " >&6
ad6254c5 3760else
f11781c5
AK
3761 # Double quotes because CPP needs to be expanded
3762 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3763 do
3764 ac_preproc_ok=false
3765for ac_c_preproc_warn_flag in '' yes
3766do
3767 # Use a header file that comes with gcc, so configuring glibc
3768 # with a fresh cross-compiler works.
3769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3770 # <limits.h> exists even on freestanding compilers.
3771 # On the NeXT, cc -E runs the code through the compiler's parser,
3772 # not just through cpp. "Syntax error" is here to catch this case.
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3774/* end confdefs.h. */
d0191583
JM
3775#ifdef __STDC__
3776# include <limits.h>
3777#else
3778# include <assert.h>
3779#endif
f11781c5
AK
3780 Syntax error
3781_ACEOF
3782if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3783
f11781c5
AK
3784else
3785 # Broken: fails on valid input.
3786continue
3787fi
3788rm -f conftest.err conftest.$ac_ext
d0191583 3789
f11781c5
AK
3790 # OK, works on sane cases. Now check whether nonexistent headers
3791 # can be detected and how.
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793/* end confdefs.h. */
3794#include <ac_nonexistent.h>
72b2cb61 3795_ACEOF
f11781c5
AK
3796if ac_fn_c_try_cpp "$LINENO"; then :
3797 # Broken: success on invalid input.
3798continue
d0191583 3799else
f11781c5
AK
3800 # Passes both tests.
3801ac_preproc_ok=:
3802break
ad6254c5 3803fi
f11781c5 3804rm -f conftest.err conftest.$ac_ext
ad6254c5 3805
f11781c5
AK
3806done
3807# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3808rm -f conftest.err conftest.$ac_ext
3809if $ac_preproc_ok; then :
3810 break
7a197a62
AK
3811fi
3812
f11781c5
AK
3813 done
3814 ac_cv_prog_CPP=$CPP
ad6254c5 3815
7a197a62 3816fi
f11781c5
AK
3817 CPP=$ac_cv_prog_CPP
3818else
3819 ac_cv_prog_CPP=$CPP
d0191583 3820fi
f11781c5
AK
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3822$as_echo "$CPP" >&6; }
3823ac_preproc_ok=false
3824for ac_c_preproc_warn_flag in '' yes
3825do
3826 # Use a header file that comes with gcc, so configuring glibc
3827 # with a fresh cross-compiler works.
3828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829 # <limits.h> exists even on freestanding compilers.
3830 # On the NeXT, cc -E runs the code through the compiler's parser,
3831 # not just through cpp. "Syntax error" is here to catch this case.
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h. */
3834#ifdef __STDC__
3835# include <limits.h>
3836#else
3837# include <assert.h>
3838#endif
3839 Syntax error
3840_ACEOF
3841if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3842
9c961554 3843else
f11781c5
AK
3844 # Broken: fails on valid input.
3845continue
9c961554 3846fi
f11781c5 3847rm -f conftest.err conftest.$ac_ext
9c961554 3848
f11781c5
AK
3849 # OK, works on sane cases. Now check whether nonexistent headers
3850 # can be detected and how.
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852/* end confdefs.h. */
3853#include <ac_nonexistent.h>
3854_ACEOF
3855if ac_fn_c_try_cpp "$LINENO"; then :
3856 # Broken: success on invalid input.
3857continue
3858else
3859 # Passes both tests.
3860ac_preproc_ok=:
3861break
3862fi
3863rm -f conftest.err conftest.$ac_ext
ad6254c5 3864
f11781c5
AK
3865done
3866# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867rm -f conftest.err conftest.$ac_ext
3868if $ac_preproc_ok; then :
d0191583 3869
f11781c5
AK
3870else
3871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3874See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3875fi
3876
f11781c5
AK
3877ac_ext=c
3878ac_cpp='$CPP $CPPFLAGS'
3879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3882
ad6254c5 3883
f11781c5
AK
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3885$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3886if test "${ac_cv_path_GREP+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
3888else
3889 if test -z "$GREP"; then
3890 ac_path_GREP_found=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3894do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_prog in grep ggrep; do
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3900 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3901# Check for GNU ac_path_GREP and select it if it is found.
3902 # Check for GNU $ac_path_GREP
3903case `"$ac_path_GREP" --version 2>&1` in
3904*GNU*)
3905 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3906*)
3907 ac_count=0
3908 $as_echo_n 0123456789 >"conftest.in"
3909 while :
3910 do
3911 cat "conftest.in" "conftest.in" >"conftest.tmp"
3912 mv "conftest.tmp" "conftest.in"
3913 cp "conftest.in" "conftest.nl"
3914 $as_echo 'GREP' >> "conftest.nl"
3915 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917 as_fn_arith $ac_count + 1 && ac_count=$as_val
3918 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3919 # Best one so far, save it but keep looking for a better one
3920 ac_cv_path_GREP="$ac_path_GREP"
3921 ac_path_GREP_max=$ac_count
3922 fi
3923 # 10*(2^10) chars as input seems more than enough
3924 test $ac_count -gt 10 && break
3925 done
3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3927esac
ad6254c5 3928
f11781c5
AK
3929 $ac_path_GREP_found && break 3
3930 done
3931 done
3932 done
3933IFS=$as_save_IFS
3934 if test -z "$ac_cv_path_GREP"; then
3935 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3936 fi
3937else
3938 ac_cv_path_GREP=$GREP
7a197a62
AK
3939fi
3940
d0191583 3941fi
f11781c5
AK
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3943$as_echo "$ac_cv_path_GREP" >&6; }
3944 GREP="$ac_cv_path_GREP"
ad6254c5 3945
24bbc4d7 3946
f11781c5
AK
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3948$as_echo_n "checking for egrep... " >&6; }
3949if test "${ac_cv_path_EGREP+set}" = set; then :
3950 $as_echo_n "(cached) " >&6
3951else
3952 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3953 then ac_cv_path_EGREP="$GREP -E"
3954 else
3955 if test -z "$EGREP"; then
3956 ac_path_EGREP_found=false
3957 # Loop through the user's path and test for each of PROGNAME-LIST
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3960do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_prog in egrep; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3966 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3967# Check for GNU ac_path_EGREP and select it if it is found.
3968 # Check for GNU $ac_path_EGREP
3969case `"$ac_path_EGREP" --version 2>&1` in
3970*GNU*)
3971 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3972*)
3973 ac_count=0
3974 $as_echo_n 0123456789 >"conftest.in"
3975 while :
3976 do
3977 cat "conftest.in" "conftest.in" >"conftest.tmp"
3978 mv "conftest.tmp" "conftest.in"
3979 cp "conftest.in" "conftest.nl"
3980 $as_echo 'EGREP' >> "conftest.nl"
3981 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3983 as_fn_arith $ac_count + 1 && ac_count=$as_val
3984 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3985 # Best one so far, save it but keep looking for a better one
3986 ac_cv_path_EGREP="$ac_path_EGREP"
3987 ac_path_EGREP_max=$ac_count
3988 fi
3989 # 10*(2^10) chars as input seems more than enough
3990 test $ac_count -gt 10 && break
3991 done
3992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3993esac
24bbc4d7 3994
f11781c5
AK
3995 $ac_path_EGREP_found && break 3
3996 done
3997 done
3998 done
3999IFS=$as_save_IFS
4000 if test -z "$ac_cv_path_EGREP"; then
4001 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4002 fi
24bbc4d7 4003else
f11781c5 4004 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
4005fi
4006
f11781c5 4007 fi
24bbc4d7 4008fi
f11781c5
AK
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4010$as_echo "$ac_cv_path_EGREP" >&6; }
4011 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
4012
4013
f11781c5
AK
4014if test $ac_cv_c_compiler_gnu = yes; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4016$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4017if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4018 $as_echo_n "(cached) " >&6
93bd259b 4019else
f11781c5
AK
4020 ac_pattern="Autoconf.*'x'"
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022/* end confdefs.h. */
4023#include <sgtty.h>
4024Autoconf TIOCGETP
4025_ACEOF
4026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4027 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4028 ac_cv_prog_gcc_traditional=yes
d0191583 4029else
f11781c5 4030 ac_cv_prog_gcc_traditional=no
7a197a62 4031fi
f11781c5 4032rm -f conftest*
7a197a62 4033
72b2cb61 4034
f11781c5
AK
4035 if test $ac_cv_prog_gcc_traditional = no; then
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037/* end confdefs.h. */
4038#include <termio.h>
4039Autoconf TCGETA
72b2cb61 4040_ACEOF
f11781c5
AK
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
ad6254c5 4044fi
f11781c5 4045rm -f conftest*
ad6254c5 4046
f11781c5 4047 fi
7a197a62 4048fi
f11781c5
AK
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4050$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4051 if test $ac_cv_prog_gcc_traditional = yes; then
4052 CC="$CC -traditional"
4053 fi
ad6254c5
AK
4054fi
4055
f11781c5
AK
4056# Find a good install program. We prefer a C program (faster),
4057# so one script is as good as another. But avoid the broken or
4058# incompatible versions:
4059# SysV /etc/install, /usr/sbin/install
4060# SunOS /usr/etc/install
4061# IRIX /sbin/install
4062# AIX /bin/install
4063# AmigaOS /C/install, which installs bootblocks on floppy discs
4064# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4065# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4066# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4067# OS/2's system install, which has a completely different semantic
4068# ./install, which can be erroneously created by make from ./install.sh.
4069# Reject install programs that cannot install multiple files.
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4071$as_echo_n "checking for a BSD-compatible install... " >&6; }
4072if test -z "$INSTALL"; then
4073if test "${ac_cv_path_install+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
ad6254c5 4075else
f11781c5
AK
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077for as_dir in $PATH
4078do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 # Account for people who put trailing slashes in PATH elements.
4082case $as_dir/ in #((
4083 ./ | .// | /[cC]/* | \
4084 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4085 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4086 /usr/ucb/* ) ;;
4087 *)
4088 # OSF1 and SCO ODT 3.0 have their own names for install.
4089 # Don't use installbsd from OSF since it installs stuff as root
4090 # by default.
4091 for ac_prog in ginstall scoinst install; do
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4094 if test $ac_prog = install &&
4095 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4096 # AIX install. It has an incompatible calling convention.
4097 :
4098 elif test $ac_prog = install &&
4099 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4100 # program-specific install script used by HP pwplus--don't use.
4101 :
4102 else
4103 rm -rf conftest.one conftest.two conftest.dir
4104 echo one > conftest.one
4105 echo two > conftest.two
4106 mkdir conftest.dir
4107 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4108 test -s conftest.one && test -s conftest.two &&
4109 test -s conftest.dir/conftest.one &&
4110 test -s conftest.dir/conftest.two
4111 then
4112 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4113 break 3
4114 fi
4115 fi
4116 fi
4117 done
4118 done
4119 ;;
4120esac
7a197a62 4121
f11781c5
AK
4122 done
4123IFS=$as_save_IFS
d0191583 4124
f11781c5 4125rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4126
4127fi
f11781c5
AK
4128 if test "${ac_cv_path_install+set}" = set; then
4129 INSTALL=$ac_cv_path_install
4130 else
4131 # As a last resort, use the slow shell script. Don't cache a
4132 # value for INSTALL within a source directory, because that will
4133 # break other packages using the cache if that directory is
4134 # removed, or if the value is a relative name.
4135 INSTALL=$ac_install_sh
4136 fi
7a197a62 4137fi
f11781c5
AK
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4139$as_echo "$INSTALL" >&6; }
7a197a62 4140
f11781c5
AK
4141# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4142# It thinks the first close brace ends the variable substitution.
4143test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4144
f11781c5 4145test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4146
f11781c5 4147test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4148
f11781c5
AK
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4150$as_echo_n "checking whether ln -s works... " >&6; }
4151LN_S=$as_ln_s
4152if test "$LN_S" = "ln -s"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4154$as_echo "yes" >&6; }
4155else
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4157$as_echo "no, using $LN_S" >&6; }
15d91f5a 4158fi
ad6254c5 4159
f11781c5
AK
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4161$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4162set x ${MAKE-make}
4163ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4164if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4165 $as_echo_n "(cached) " >&6
d0191583 4166else
f11781c5
AK
4167 cat >conftest.make <<\_ACEOF
4168SHELL = /bin/sh
4169all:
4170 @echo '@@@%%%=$(MAKE)=@@@%%%'
4171_ACEOF
4172# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4173case `${MAKE-make} -f conftest.make 2>/dev/null` in
4174 *@@@%%%=?*=@@@%%%*)
4175 eval ac_cv_prog_make_${ac_make}_set=yes;;
4176 *)
4177 eval ac_cv_prog_make_${ac_make}_set=no;;
4178esac
4179rm -f conftest.make
4180fi
4181if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4183$as_echo "yes" >&6; }
4184 SET_MAKE=
4185else
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187$as_echo "no" >&6; }
4188 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4189fi
4190
f11781c5
AK
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4192$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4193if test -z "$MKDIR_P"; then
4194 if test "${ac_cv_path_mkdir+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4196else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_prog in mkdir gmkdir; do
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4205 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4206 'mkdir (GNU coreutils) '* | \
4207 'mkdir (coreutils) '* | \
4208 'mkdir (fileutils) '4.1*)
4209 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4210 break 3;;
4211 esac
4212 done
4213 done
4214 done
4215IFS=$as_save_IFS
d0191583 4216
f11781c5 4217fi
ad6254c5 4218
f11781c5
AK
4219 test -d ./--version && rmdir ./--version
4220 if test "${ac_cv_path_mkdir+set}" = set; then
4221 MKDIR_P="$ac_cv_path_mkdir -p"
4222 else
4223 # As a last resort, use the slow shell script. Don't cache a
4224 # value for MKDIR_P within a source directory, because that will
4225 # break other packages using the cache if that directory is
4226 # removed, or if the value is a relative name.
4227 MKDIR_P="$ac_install_sh -d"
4228 fi
ad6254c5 4229fi
f11781c5
AK
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4231$as_echo "$MKDIR_P" >&6; }
7a197a62 4232
f11781c5
AK
4233if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4235set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237$as_echo_n "checking for $ac_word... " >&6; }
4238if test "${ac_cv_prog_RANLIB+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240else
4241 if test -n "$RANLIB"; then
4242 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4243else
4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH
4246do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4254 fi
4255done
4256 done
4257IFS=$as_save_IFS
d0191583 4258
f11781c5
AK
4259fi
4260fi
4261RANLIB=$ac_cv_prog_RANLIB
4262if test -n "$RANLIB"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4264$as_echo "$RANLIB" >&6; }
d0191583 4265else
f11781c5
AK
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267$as_echo "no" >&6; }
ad6254c5 4268fi
ad6254c5 4269
8a2fc586 4270
d0191583 4271fi
f11781c5
AK
4272if test -z "$ac_cv_prog_RANLIB"; then
4273 ac_ct_RANLIB=$RANLIB
4274 # Extract the first word of "ranlib", so it can be a program name with args.
4275set dummy ranlib; ac_word=$2
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277$as_echo_n "checking for $ac_word... " >&6; }
4278if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4279 $as_echo_n "(cached) " >&6
4280else
4281 if test -n "$ac_ct_RANLIB"; then
4282 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4283else
4284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285for as_dir in $PATH
4286do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291 ac_cv_prog_ac_ct_RANLIB="ranlib"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4294 fi
4295done
4296 done
4297IFS=$as_save_IFS
8a2fc586 4298
f11781c5
AK
4299fi
4300fi
4301ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4302if test -n "$ac_ct_RANLIB"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4304$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4305else
f11781c5
AK
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307$as_echo "no" >&6; }
8fea97b7
ZK
4308fi
4309
f11781c5
AK
4310 if test "x$ac_ct_RANLIB" = x; then
4311 RANLIB=":"
4312 else
4313 case $cross_compiling:$ac_tool_warned in
4314yes:)
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317ac_tool_warned=yes ;;
8fea97b7 4318esac
f11781c5
AK
4319 RANLIB=$ac_ct_RANLIB
4320 fi
d0191583 4321else
f11781c5 4322 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4323fi
8a2fc586 4324
f11781c5
AK
4325# Extract the first word of "cflow", so it can be a program name with args.
4326set dummy cflow; ac_word=$2
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328$as_echo_n "checking for $ac_word... " >&6; }
4329if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4331else
4332 case $CFLOW_CMD in
4333 [\\/]* | ?:[\\/]*)
4334 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4335 ;;
4336 *)
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338for as_dir in $PATH
4339do
4340 IFS=$as_save_IFS
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 break 2
4347 fi
4348done
4349 done
4350IFS=$as_save_IFS
8a2fc586 4351
f11781c5
AK
4352 ;;
4353esac
ad6254c5 4354fi
f11781c5
AK
4355CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4356if test -n "$CFLOW_CMD"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4358$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4359else
f11781c5
AK
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361$as_echo "no" >&6; }
37ddf259
AK
4362fi
4363
e2997b73 4364
f11781c5
AK
4365# Extract the first word of "cscope", so it can be a program name with args.
4366set dummy cscope; ac_word=$2
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4368$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4369if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4370 $as_echo_n "(cached) " >&6
4371else
f11781c5 4372 case $CSCOPE_CMD in
e2997b73 4373 [\\/]* | ?:[\\/]*)
f11781c5 4374 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4375 ;;
4376 *)
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378for as_dir in $PATH
4379do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
f11781c5 4382 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4384 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4386 break 2
4387 fi
4388done
f11781c5 4389 done
e2997b73
AK
4390IFS=$as_save_IFS
4391
4392 ;;
4393esac
4394fi
f11781c5
AK
4395CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4396if test -n "$CSCOPE_CMD"; then
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4398$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4399else
f11781c5 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4401$as_echo "no" >&6; }
4402fi
f11781c5
AK
4403
4404
4405
4406################################################################################
4407ac_header_dirent=no
4408for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4409 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4411$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4412if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4413 $as_echo_n "(cached) " >&6
4414else
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416/* end confdefs.h. */
4417#include <sys/types.h>
4418#include <$ac_hdr>
4419
4420int
4421main ()
4422{
4423if ((DIR *) 0)
4424return 0;
4425 ;
4426 return 0;
4427}
4428_ACEOF
4429if ac_fn_c_try_compile "$LINENO"; then :
4430 eval "$as_ac_Header=yes"
4431else
4432 eval "$as_ac_Header=no"
4433fi
4434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435fi
4436eval ac_res=\$$as_ac_Header
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4438$as_echo "$ac_res" >&6; }
4439if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4440 cat >>confdefs.h <<_ACEOF
4441#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4442_ACEOF
4443
4444ac_header_dirent=$ac_hdr; break
4445fi
4446
4447done
4448# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4449if test $ac_header_dirent = dirent.h; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4451$as_echo_n "checking for library containing opendir... " >&6; }
4452if test "${ac_cv_search_opendir+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454else
4455 ac_func_search_save_LIBS=$LIBS
4456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457/* end confdefs.h. */
4458
4459/* Override any GCC internal prototype to avoid an error.
4460 Use char because int might match the return type of a GCC
4461 builtin and then its argument prototype would still apply. */
4462#ifdef __cplusplus
4463extern "C"
4464#endif
4465char opendir ();
4466int
4467main ()
4468{
4469return opendir ();
4470 ;
4471 return 0;
4472}
4473_ACEOF
4474for ac_lib in '' dir; do
4475 if test -z "$ac_lib"; then
4476 ac_res="none required"
4477 else
4478 ac_res=-l$ac_lib
4479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4480 fi
4481 if ac_fn_c_try_link "$LINENO"; then :
4482 ac_cv_search_opendir=$ac_res
4483fi
4484rm -f core conftest.err conftest.$ac_objext \
4485 conftest$ac_exeext
4486 if test "${ac_cv_search_opendir+set}" = set; then :
4487 break
4488fi
4489done
4490if test "${ac_cv_search_opendir+set}" = set; then :
4491
4492else
4493 ac_cv_search_opendir=no
4494fi
4495rm conftest.$ac_ext
4496LIBS=$ac_func_search_save_LIBS
4497fi
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4499$as_echo "$ac_cv_search_opendir" >&6; }
4500ac_res=$ac_cv_search_opendir
4501if test "$ac_res" != no; then :
4502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4503
4504fi
f11781c5
AK
4505
4506else
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4508$as_echo_n "checking for library containing opendir... " >&6; }
4509if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4510 $as_echo_n "(cached) " >&6
4511else
f11781c5
AK
4512 ac_func_search_save_LIBS=$LIBS
4513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514/* end confdefs.h. */
e2997b73 4515
f11781c5
AK
4516/* Override any GCC internal prototype to avoid an error.
4517 Use char because int might match the return type of a GCC
4518 builtin and then its argument prototype would still apply. */
4519#ifdef __cplusplus
4520extern "C"
4521#endif
4522char opendir ();
4523int
4524main ()
4525{
4526return opendir ();
4527 ;
4528 return 0;
4529}
4530_ACEOF
4531for ac_lib in '' x; do
4532 if test -z "$ac_lib"; then
4533 ac_res="none required"
4534 else
4535 ac_res=-l$ac_lib
4536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4537 fi
4538 if ac_fn_c_try_link "$LINENO"; then :
4539 ac_cv_search_opendir=$ac_res
e2997b73 4540fi
f11781c5
AK
4541rm -f core conftest.err conftest.$ac_objext \
4542 conftest$ac_exeext
4543 if test "${ac_cv_search_opendir+set}" = set; then :
4544 break
e2997b73 4545fi
f11781c5
AK
4546done
4547if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4548
e2997b73 4549else
f11781c5
AK
4550 ac_cv_search_opendir=no
4551fi
4552rm conftest.$ac_ext
4553LIBS=$ac_func_search_save_LIBS
e2997b73 4554fi
f11781c5
AK
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4556$as_echo "$ac_cv_search_opendir" >&6; }
4557ac_res=$ac_cv_search_opendir
4558if test "$ac_res" != no; then :
4559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4560
4561fi
8c4e8a18 4562
e2997b73
AK
4563fi
4564
f11781c5
AK
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4566$as_echo_n "checking for ANSI C header files... " >&6; }
4567if test "${ac_cv_header_stdc+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569else
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571/* end confdefs.h. */
4572#include <stdlib.h>
4573#include <stdarg.h>
4574#include <string.h>
4575#include <float.h>
e2997b73 4576
f11781c5
AK
4577int
4578main ()
4579{
4580
4581 ;
4582 return 0;
4583}
4584_ACEOF
4585if ac_fn_c_try_compile "$LINENO"; then :
4586 ac_cv_header_stdc=yes
e2997b73 4587else
f11781c5 4588 ac_cv_header_stdc=no
e2997b73 4589fi
f11781c5
AK
4590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591
4592if test $ac_cv_header_stdc = yes; then
4593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595/* end confdefs.h. */
4596#include <string.h>
4597
4598_ACEOF
4599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600 $EGREP "memchr" >/dev/null 2>&1; then :
4601
e2997b73 4602else
f11781c5 4603 ac_cv_header_stdc=no
e2997b73 4604fi
f11781c5 4605rm -f conftest*
e2997b73 4606
f11781c5 4607fi
e2997b73 4608
f11781c5
AK
4609if test $ac_cv_header_stdc = yes; then
4610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612/* end confdefs.h. */
4613#include <stdlib.h>
e2997b73 4614
f11781c5
AK
4615_ACEOF
4616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4618
e2997b73 4619else
f11781c5 4620 ac_cv_header_stdc=no
e2997b73 4621fi
f11781c5 4622rm -f conftest*
e2997b73 4623
e2997b73 4624fi
90c80887 4625
f11781c5
AK
4626if test $ac_cv_header_stdc = yes; then
4627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4628 if test "$cross_compiling" = yes; then :
4629 :
4630else
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632/* end confdefs.h. */
4633#include <ctype.h>
4634#include <stdlib.h>
4635#if ((' ' & 0x0FF) == 0x020)
4636# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4637# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4638#else
4639# define ISLOWER(c) \
4640 (('a' <= (c) && (c) <= 'i') \
4641 || ('j' <= (c) && (c) <= 'r') \
4642 || ('s' <= (c) && (c) <= 'z'))
4643# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4644#endif
4645
4646#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4647int
4648main ()
4649{
4650 int i;
4651 for (i = 0; i < 256; i++)
4652 if (XOR (islower (i), ISLOWER (i))
4653 || toupper (i) != TOUPPER (i))
4654 return 2;
4655 return 0;
4656}
4657_ACEOF
4658if ac_fn_c_try_run "$LINENO"; then :
90c80887 4659
90c80887 4660else
f11781c5 4661 ac_cv_header_stdc=no
90c80887 4662fi
f11781c5
AK
4663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4664 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4665fi
90c80887 4666
90c80887 4667fi
90c80887 4668fi
f11781c5
AK
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4670$as_echo "$ac_cv_header_stdc" >&6; }
4671if test $ac_cv_header_stdc = yes; then
90c80887 4672
f11781c5 4673$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4674
90c80887 4675fi
f11781c5
AK
4676
4677# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4678for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4679 inttypes.h stdint.h unistd.h
4680do :
4681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4682ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4683"
4684if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4685 cat >>confdefs.h <<_ACEOF
4686#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4687_ACEOF
4688
90c80887 4689fi
f11781c5
AK
4690
4691done
4692
4693
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4695$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4696if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698else
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700/* end confdefs.h. */
4701#include <sys/types.h>
4702int
4703main ()
4704{
4705return makedev(0, 0);
4706 ;
4707 return 0;
4708}
4709_ACEOF
4710if ac_fn_c_try_link "$LINENO"; then :
4711 ac_cv_header_sys_types_h_makedev=yes
4712else
4713 ac_cv_header_sys_types_h_makedev=no
90c80887 4714fi
f11781c5
AK
4715rm -f core conftest.err conftest.$ac_objext \
4716 conftest$ac_exeext conftest.$ac_ext
4717
90c80887 4718fi
f11781c5
AK
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4720$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4721
4722if test $ac_cv_header_sys_types_h_makedev = no; then
4723ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4724if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4725
4726$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4727
a946372e 4728fi
e2997b73 4729
e2997b73 4730
a946372e 4731
f11781c5
AK
4732 if test $ac_cv_header_sys_mkdev_h = no; then
4733 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4734if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4735
4736$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4737
e2997b73 4738fi
a946372e 4739
a946372e 4740
f11781c5
AK
4741 fi
4742fi
4743
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4745$as_echo_n "checking for ANSI C header files... " >&6; }
4746if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4747 $as_echo_n "(cached) " >&6
4748else
f11781c5 4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4750/* end confdefs.h. */
f11781c5
AK
4751#include <stdlib.h>
4752#include <stdarg.h>
4753#include <string.h>
4754#include <float.h>
a946372e 4755
a946372e
AK
4756int
4757main ()
4758{
f11781c5 4759
a946372e
AK
4760 ;
4761 return 0;
4762}
4763_ACEOF
f11781c5
AK
4764if ac_fn_c_try_compile "$LINENO"; then :
4765 ac_cv_header_stdc=yes
e2997b73 4766else
f11781c5
AK
4767 ac_cv_header_stdc=no
4768fi
4769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770
4771if test $ac_cv_header_stdc = yes; then
4772 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h. */
4775#include <string.h>
4776
4777_ACEOF
4778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4780
f11781c5
AK
4781else
4782 ac_cv_header_stdc=no
a946372e 4783fi
f11781c5 4784rm -f conftest*
e2997b73 4785
a946372e 4786fi
e2997b73 4787
f11781c5
AK
4788if test $ac_cv_header_stdc = yes; then
4789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791/* end confdefs.h. */
4792#include <stdlib.h>
4793
4794_ACEOF
4795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4796 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4797
e2997b73 4798else
f11781c5 4799 ac_cv_header_stdc=no
e2997b73 4800fi
f11781c5 4801rm -f conftest*
e2997b73 4802
f11781c5 4803fi
a946372e 4804
f11781c5
AK
4805if test $ac_cv_header_stdc = yes; then
4806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4807 if test "$cross_compiling" = yes; then :
4808 :
4809else
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811/* end confdefs.h. */
4812#include <ctype.h>
4813#include <stdlib.h>
4814#if ((' ' & 0x0FF) == 0x020)
4815# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4816# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4817#else
4818# define ISLOWER(c) \
4819 (('a' <= (c) && (c) <= 'i') \
4820 || ('j' <= (c) && (c) <= 'r') \
4821 || ('s' <= (c) && (c) <= 'z'))
4822# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4823#endif
e2997b73 4824
f11781c5
AK
4825#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4826int
4827main ()
4828{
4829 int i;
4830 for (i = 0; i < 256; i++)
4831 if (XOR (islower (i), ISLOWER (i))
4832 || toupper (i) != TOUPPER (i))
4833 return 2;
4834 return 0;
4835}
4836_ACEOF
4837if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4838
e2997b73 4839else
f11781c5 4840 ac_cv_header_stdc=no
e2997b73 4841fi
f11781c5
AK
4842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4843 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4844fi
f11781c5 4845
e2997b73 4846fi
e2997b73 4847fi
f11781c5
AK
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4849$as_echo "$ac_cv_header_stdc" >&6; }
4850if test $ac_cv_header_stdc = yes; then
e2997b73 4851
f11781c5 4852$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4853
f11781c5 4854fi
e2997b73 4855
f11781c5
AK
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4857$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4858if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860else
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862/* end confdefs.h. */
4863#include <sys/types.h>
4864#include <sys/wait.h>
4865#ifndef WEXITSTATUS
4866# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4867#endif
4868#ifndef WIFEXITED
4869# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4870#endif
e2997b73 4871
f11781c5
AK
4872int
4873main ()
4874{
4875 int s;
4876 wait (&s);
4877 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4878 ;
4879 return 0;
4880}
4881_ACEOF
4882if ac_fn_c_try_compile "$LINENO"; then :
4883 ac_cv_header_sys_wait_h=yes
e2997b73 4884else
f11781c5 4885 ac_cv_header_sys_wait_h=no
e2997b73 4886fi
f11781c5
AK
4887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888fi
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4890$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4891if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4892
f11781c5 4893$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4894
d0191583 4895fi
f11781c5
AK
4896
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4898$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4899if test "${ac_cv_header_time+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
fc54be10 4901else
f11781c5 4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4903/* end confdefs.h. */
f11781c5
AK
4904#include <sys/types.h>
4905#include <sys/time.h>
4906#include <time.h>
4907
4908int
4909main ()
4910{
4911if ((struct tm *) 0)
4912return 0;
4913 ;
4914 return 0;
4915}
a946372e 4916_ACEOF
f11781c5
AK
4917if ac_fn_c_try_compile "$LINENO"; then :
4918 ac_cv_header_time=yes
a946372e 4919else
f11781c5
AK
4920 ac_cv_header_time=no
4921fi
4922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923fi
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4925$as_echo "$ac_cv_header_time" >&6; }
4926if test $ac_cv_header_time = yes; then
4927
4928$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4929
4930fi
4931
4932
4933for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4934 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4935 sys/wait.h time.h
4936do :
4937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4938ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4939if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4940 cat >>confdefs.h <<_ACEOF
4941#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4942_ACEOF
d0191583 4943
f11781c5
AK
4944else
4945 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4946fi
4947
f11781c5 4948done
fddafd51 4949
f11781c5
AK
4950
4951case "$host_os" in
4952 linux*)
4953 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4954do :
4955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4956ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4957if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4958 cat >>confdefs.h <<_ACEOF
4959#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a946372e 4960_ACEOF
a946372e 4961
f11781c5
AK
4962else
4963 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
4964fi
4965
f11781c5
AK
4966done
4967 ;;
4968 darwin*)
4969 for ac_header in machine/endian.h sys/disk.h
4970do :
4971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4972ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4973if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4974 cat >>confdefs.h <<_ACEOF
4975#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4976_ACEOF
a946372e 4977
f11781c5
AK
4978else
4979 as_fn_error $? "bailing out" "$LINENO" 5
4980fi
a946372e 4981
f11781c5
AK
4982done
4983 ;;
a946372e 4984esac
f11781c5
AK
4985
4986for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4987 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4988 sys/types.h unistd.h
4989do :
4990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4991ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4992if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4993 cat >>confdefs.h <<_ACEOF
4994#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4995_ACEOF
4996
a946372e 4997else
f11781c5 4998 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 4999fi
a946372e 5000
f11781c5
AK
5001done
5002
5003for ac_header in termios.h sys/statvfs.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 :
a946372e
AK
5008 cat >>confdefs.h <<_ACEOF
5009#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5010_ACEOF
5011
a946372e
AK
5012fi
5013
5014done
5015
a946372e 5016
f11781c5
AK
5017################################################################################
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5019$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5020if test "${ac_cv_c_const+set}" = set; then :
a946372e 5021 $as_echo_n "(cached) " >&6
a946372e 5022else
f11781c5 5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5024/* end confdefs.h. */
a946372e 5025
f11781c5
AK
5026int
5027main ()
5028{
5029/* FIXME: Include the comments suggested by Paul. */
5030#ifndef __cplusplus
5031 /* Ultrix mips cc rejects this. */
5032 typedef int charset[2];
5033 const charset cs;
5034 /* SunOS 4.1.1 cc rejects this. */
5035 char const *const *pcpcc;
5036 char **ppc;
5037 /* NEC SVR4.0.2 mips cc rejects this. */
5038 struct point {int x, y;};
5039 static struct point const zero = {0,0};
5040 /* AIX XL C 1.02.0.0 rejects this.
5041 It does not let you subtract one const X* pointer from another in
5042 an arm of an if-expression whose if-part is not a constant
5043 expression */
5044 const char *g = "string";
5045 pcpcc = &g + (g ? g-g : 0);
5046 /* HPUX 7.0 cc rejects these. */
5047 ++pcpcc;
5048 ppc = (char**) pcpcc;
5049 pcpcc = (char const *const *) ppc;
5050 { /* SCO 3.2v4 cc rejects this. */
5051 char *t;
5052 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5053
f11781c5
AK
5054 *t++ = 0;
5055 if (s) return 0;
5056 }
5057 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5058 int x[] = {25, 17};
5059 const int *foo = &x[0];
5060 ++foo;
5061 }
5062 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5063 typedef const int *iptr;
5064 iptr p = 0;
5065 ++p;
5066 }
5067 { /* AIX XL C 1.02.0.0 rejects this saying
5068 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5069 struct s { int j; const int *ap[3]; };
5070 struct s *b; b->j = 5;
5071 }
5072 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5073 const int foo = 10;
5074 if (!foo) return 0;
5075 }
5076 return !cs[0] && !zero.x;
5077#endif
a946372e 5078
f11781c5
AK
5079 ;
5080 return 0;
5081}
a946372e 5082_ACEOF
f11781c5
AK
5083if ac_fn_c_try_compile "$LINENO"; then :
5084 ac_cv_c_const=yes
a946372e 5085else
f11781c5
AK
5086 ac_cv_c_const=no
5087fi
5088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5089fi
f11781c5
AK
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5091$as_echo "$ac_cv_c_const" >&6; }
5092if test $ac_cv_c_const = no; then
a946372e 5093
f11781c5 5094$as_echo "#define const /**/" >>confdefs.h
a946372e 5095
f11781c5 5096fi
a946372e 5097
f11781c5
AK
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5099$as_echo_n "checking for inline... " >&6; }
5100if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5101 $as_echo_n "(cached) " >&6
5102else
f11781c5
AK
5103 ac_cv_c_inline=no
5104for ac_kw in inline __inline__ __inline; do
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106/* end confdefs.h. */
5107#ifndef __cplusplus
5108typedef int foo_t;
5109static $ac_kw foo_t static_foo () {return 0; }
5110$ac_kw foo_t foo () {return 0; }
5111#endif
5112
5113_ACEOF
5114if ac_fn_c_try_compile "$LINENO"; then :
5115 ac_cv_c_inline=$ac_kw
a946372e 5116fi
f11781c5
AK
5117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 test "$ac_cv_c_inline" != no && break
5119done
a946372e
AK
5120
5121fi
f11781c5
AK
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5123$as_echo "$ac_cv_c_inline" >&6; }
5124
5125case $ac_cv_c_inline in
5126 inline | yes) ;;
5127 *)
5128 case $ac_cv_c_inline in
5129 no) ac_val=;;
5130 *) ac_val=$ac_cv_c_inline;;
5131 esac
5132 cat >>confdefs.h <<_ACEOF
5133#ifndef __cplusplus
5134#define inline $ac_val
5135#endif
5136_ACEOF
5137 ;;
5138esac
5139
5140ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5141if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5142
5143cat >>confdefs.h <<_ACEOF
5144#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5145_ACEOF
5146
f11781c5 5147
a946372e
AK
5148fi
5149
f11781c5
AK
5150ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5151if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5152
a946372e 5153else
f11781c5
AK
5154
5155cat >>confdefs.h <<_ACEOF
5156#define off_t long int
5157_ACEOF
5158
a946372e
AK
5159fi
5160
f11781c5
AK
5161ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5162if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5163
a946372e 5164else
f11781c5
AK
5165
5166cat >>confdefs.h <<_ACEOF
5167#define pid_t int
5168_ACEOF
5169
5170fi
5171
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5173$as_echo_n "checking return type of signal handlers... " >&6; }
5174if test "${ac_cv_type_signal+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
a946372e 5176else
f11781c5
AK
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178/* end confdefs.h. */
5179#include <sys/types.h>
5180#include <signal.h>
5181
5182int
5183main ()
5184{
5185return *(signal (0, 0)) (0) == 1;
5186 ;
5187 return 0;
5188}
5189_ACEOF
5190if ac_fn_c_try_compile "$LINENO"; then :
5191 ac_cv_type_signal=int
5192else
5193 ac_cv_type_signal=void
a946372e 5194fi
f11781c5 5195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5196fi
f11781c5
AK
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5198$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5199
f11781c5
AK
5200cat >>confdefs.h <<_ACEOF
5201#define RETSIGTYPE $ac_cv_type_signal
5202_ACEOF
a946372e
AK
5203
5204
f11781c5
AK
5205ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5206if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5207
a946372e 5208else
a946372e 5209
f11781c5
AK
5210cat >>confdefs.h <<_ACEOF
5211#define size_t unsigned int
5212_ACEOF
a946372e 5213
a946372e 5214fi
f11781c5
AK
5215
5216ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5217if test "x$ac_cv_type_mode_t" = x""yes; then :
5218
a946372e 5219else
f11781c5
AK
5220
5221cat >>confdefs.h <<_ACEOF
5222#define mode_t int
a946372e 5223_ACEOF
a946372e 5224
a946372e
AK
5225fi
5226
f11781c5
AK
5227ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5228case $ac_cv_c_int8_t in #(
5229 no|yes) ;; #(
5230 *)
a946372e 5231
f11781c5
AK
5232cat >>confdefs.h <<_ACEOF
5233#define int8_t $ac_cv_c_int8_t
a946372e 5234_ACEOF
f11781c5 5235;;
a946372e 5236esac
a946372e 5237
f11781c5
AK
5238ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5239case $ac_cv_c_int16_t in #(
5240 no|yes) ;; #(
5241 *)
a946372e 5242
f11781c5
AK
5243cat >>confdefs.h <<_ACEOF
5244#define int16_t $ac_cv_c_int16_t
5245_ACEOF
5246;;
5247esac
a946372e 5248
f11781c5
AK
5249ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5250case $ac_cv_c_int32_t in #(
5251 no|yes) ;; #(
5252 *)
a946372e 5253
f11781c5
AK
5254cat >>confdefs.h <<_ACEOF
5255#define int32_t $ac_cv_c_int32_t
5256_ACEOF
5257;;
a946372e 5258esac
a946372e 5259
f11781c5
AK
5260ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5261case $ac_cv_c_int64_t in #(
5262 no|yes) ;; #(
5263 *)
5264
5265cat >>confdefs.h <<_ACEOF
5266#define int64_t $ac_cv_c_int64_t
a946372e 5267_ACEOF
f11781c5
AK
5268;;
5269esac
5270
5271ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5272if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5273
5274else
a946372e 5275
f11781c5
AK
5276cat >>confdefs.h <<_ACEOF
5277#define ssize_t int
5278_ACEOF
a946372e 5279
f11781c5 5280fi
a946372e 5281
f11781c5
AK
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5283$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5284if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5285 $as_echo_n "(cached) " >&6
a946372e 5286else
f11781c5 5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5288/* end confdefs.h. */
f11781c5
AK
5289#include <sys/types.h>
5290
a946372e 5291_ACEOF
f11781c5
AK
5292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5293 $EGREP "uid_t" >/dev/null 2>&1; then :
5294 ac_cv_type_uid_t=yes
a946372e 5295else
f11781c5
AK
5296 ac_cv_type_uid_t=no
5297fi
5298rm -f conftest*
a946372e 5299
a946372e 5300fi
f11781c5
AK
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5302$as_echo "$ac_cv_type_uid_t" >&6; }
5303if test $ac_cv_type_uid_t = no; then
a946372e 5304
f11781c5 5305$as_echo "#define uid_t int" >>confdefs.h
a946372e 5306
f11781c5
AK
5307
5308$as_echo "#define gid_t int" >>confdefs.h
5309
5310fi
5311
5312ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5313case $ac_cv_c_uint8_t in #(
5314 no|yes) ;; #(
5315 *)
5316
5317$as_echo "#define _UINT8_T 1" >>confdefs.h
5318
5319
5320cat >>confdefs.h <<_ACEOF
5321#define uint8_t $ac_cv_c_uint8_t
a946372e 5322_ACEOF
f11781c5
AK
5323;;
5324 esac
5325
5326ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5327case $ac_cv_c_uint16_t in #(
5328 no|yes) ;; #(
5329 *)
5330
5331
5332cat >>confdefs.h <<_ACEOF
5333#define uint16_t $ac_cv_c_uint16_t
a946372e 5334_ACEOF
f11781c5
AK
5335;;
5336 esac
a946372e 5337
f11781c5
AK
5338ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5339case $ac_cv_c_uint32_t in #(
5340 no|yes) ;; #(
5341 *)
a946372e 5342
f11781c5 5343$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5344
a946372e 5345
f11781c5
AK
5346cat >>confdefs.h <<_ACEOF
5347#define uint32_t $ac_cv_c_uint32_t
5348_ACEOF
5349;;
5350 esac
5351
5352ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5353case $ac_cv_c_uint64_t in #(
5354 no|yes) ;; #(
5355 *)
5356
5357$as_echo "#define _UINT64_T 1" >>confdefs.h
5358
5359
5360cat >>confdefs.h <<_ACEOF
5361#define uint64_t $ac_cv_c_uint64_t
5362_ACEOF
5363;;
5364 esac
5365
5366ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5367if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5368
5369cat >>confdefs.h <<_ACEOF
5370#define HAVE_STRUCT_STAT_ST_RDEV 1
5371_ACEOF
5372
5373
5374fi
5375
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5377$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5378if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5379 $as_echo_n "(cached) " >&6
5380else
f11781c5
AK
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382/* end confdefs.h. */
5383#include <sys/types.h>
5384#include <time.h>
5385
5386int
5387main ()
5388{
5389struct tm tm;
5390 int *p = &tm.tm_sec;
5391 return !p;
5392 ;
5393 return 0;
5394}
5395_ACEOF
5396if ac_fn_c_try_compile "$LINENO"; then :
5397 ac_cv_struct_tm=time.h
5398else
5399 ac_cv_struct_tm=sys/time.h
a946372e 5400fi
f11781c5
AK
5401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402fi
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5404$as_echo "$ac_cv_struct_tm" >&6; }
5405if test $ac_cv_struct_tm = sys/time.h; then
5406
5407$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5408
5409fi
f11781c5
AK
5410
5411
5412################################################################################
5413for ac_func in ftruncate gethostname getpagesize \
5414 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5415 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5416 strstr strtol strtoul uname
5417do :
5418 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5419ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5420if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5421 cat >>confdefs.h <<_ACEOF
f11781c5 5422#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5423_ACEOF
5424
5425else
f11781c5 5426 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5427fi
a946372e
AK
5428done
5429
f11781c5
AK
5430for ac_func in siginterrupt
5431do :
5432 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5433if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5434 cat >>confdefs.h <<_ACEOF
5435#define HAVE_SIGINTERRUPT 1
5436_ACEOF
a946372e 5437
f11781c5
AK
5438fi
5439done
a946372e 5440
f11781c5
AK
5441# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5442# for constant arguments. Useless!
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5444$as_echo_n "checking for working alloca.h... " >&6; }
5445if test "${ac_cv_working_alloca_h+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
a946372e 5447else
f11781c5
AK
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h. */
5450#include <alloca.h>
5451int
5452main ()
5453{
5454char *p = (char *) alloca (2 * sizeof (int));
5455 if (p) return 0;
5456 ;
5457 return 0;
5458}
5459_ACEOF
5460if ac_fn_c_try_link "$LINENO"; then :
5461 ac_cv_working_alloca_h=yes
a946372e 5462else
f11781c5 5463 ac_cv_working_alloca_h=no
a946372e 5464fi
f11781c5
AK
5465rm -f core conftest.err conftest.$ac_objext \
5466 conftest$ac_exeext conftest.$ac_ext
a946372e 5467fi
f11781c5
AK
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5469$as_echo "$ac_cv_working_alloca_h" >&6; }
5470if test $ac_cv_working_alloca_h = yes; then
a946372e 5471
f11781c5 5472$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5473
a946372e 5474fi
a946372e 5475
f11781c5
AK
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5477$as_echo_n "checking for alloca... " >&6; }
5478if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5479 $as_echo_n "(cached) " >&6
a946372e 5480else
f11781c5 5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5482/* end confdefs.h. */
f11781c5
AK
5483#ifdef __GNUC__
5484# define alloca __builtin_alloca
5485#else
5486# ifdef _MSC_VER
5487# include <malloc.h>
5488# define alloca _alloca
5489# else
5490# ifdef HAVE_ALLOCA_H
5491# include <alloca.h>
5492# else
5493# ifdef _AIX
5494 #pragma alloca
5495# else
5496# ifndef alloca /* predefined by HP cc +Olibcalls */
5497char *alloca ();
5498# endif
5499# endif
5500# endif
5501# endif
5502#endif
a946372e 5503
f11781c5
AK
5504int
5505main ()
5506{
5507char *p = (char *) alloca (1);
5508 if (p) return 0;
5509 ;
5510 return 0;
5511}
a946372e 5512_ACEOF
f11781c5
AK
5513if ac_fn_c_try_link "$LINENO"; then :
5514 ac_cv_func_alloca_works=yes
a946372e 5515else
f11781c5 5516 ac_cv_func_alloca_works=no
a946372e 5517fi
f11781c5
AK
5518rm -f core conftest.err conftest.$ac_objext \
5519 conftest$ac_exeext conftest.$ac_ext
5520fi
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5522$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5523
f11781c5 5524if test $ac_cv_func_alloca_works = yes; then
a946372e 5525
f11781c5 5526$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5527
a946372e 5528else
f11781c5
AK
5529 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5530# that cause trouble. Some versions do not even contain alloca or
5531# contain a buggy version. If you still want to use their alloca,
5532# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5533
f11781c5 5534ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5535
f11781c5 5536$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5537
a946372e 5538
f11781c5
AK
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5540$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5541if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5542 $as_echo_n "(cached) " >&6
a946372e 5543else
f11781c5 5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5545/* end confdefs.h. */
f11781c5
AK
5546#if defined CRAY && ! defined CRAY2
5547webecray
5548#else
5549wenotbecray
5550#endif
5551
a946372e 5552_ACEOF
f11781c5
AK
5553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5554 $EGREP "webecray" >/dev/null 2>&1; then :
5555 ac_cv_os_cray=yes
a946372e 5556else
f11781c5 5557 ac_cv_os_cray=no
a946372e 5558fi
f11781c5 5559rm -f conftest*
a946372e 5560
f11781c5
AK
5561fi
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5563$as_echo "$ac_cv_os_cray" >&6; }
5564if test $ac_cv_os_cray = yes; then
5565 for ac_func in _getb67 GETB67 getb67; do
5566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5567ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5568if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5569
f11781c5
AK
5570cat >>confdefs.h <<_ACEOF
5571#define CRAY_STACKSEG_END $ac_func
a946372e 5572_ACEOF
a946372e 5573
f11781c5 5574 break
a946372e
AK
5575fi
5576
f11781c5
AK
5577 done
5578fi
a946372e 5579
f11781c5
AK
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5581$as_echo_n "checking stack direction for C alloca... " >&6; }
5582if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5583 $as_echo_n "(cached) " >&6
5584else
f11781c5
AK
5585 if test "$cross_compiling" = yes; then :
5586 ac_cv_c_stack_direction=0
5587else
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589/* end confdefs.h. */
5590$ac_includes_default
5591int
5592find_stack_direction ()
5593{
5594 static char *addr = 0;
5595 auto char dummy;
5596 if (addr == 0)
5597 {
5598 addr = &dummy;
5599 return find_stack_direction ();
5600 }
5601 else
5602 return (&dummy > addr) ? 1 : -1;
5603}
5604
5605int
5606main ()
5607{
5608 return find_stack_direction () < 0;
5609}
5610_ACEOF
5611if ac_fn_c_try_run "$LINENO"; then :
5612 ac_cv_c_stack_direction=1
5613else
5614 ac_cv_c_stack_direction=-1
5615fi
5616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5617 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5618fi
a946372e
AK
5619
5620fi
f11781c5
AK
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5622$as_echo "$ac_cv_c_stack_direction" >&6; }
5623cat >>confdefs.h <<_ACEOF
5624#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5625_ACEOF
5626
f11781c5 5627
a946372e
AK
5628fi
5629
f11781c5
AK
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5631$as_echo_n "checking whether closedir returns void... " >&6; }
5632if test "${ac_cv_func_closedir_void+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5634else
5635 if test "$cross_compiling" = yes; then :
5636 ac_cv_func_closedir_void=yes
5637else
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639/* end confdefs.h. */
5640$ac_includes_default
5641#include <$ac_header_dirent>
5642#ifndef __cplusplus
5643int closedir ();
5644#endif
a946372e 5645
f11781c5
AK
5646int
5647main ()
5648{
5649return closedir (opendir (".")) != 0;
5650 ;
5651 return 0;
5652}
5653_ACEOF
5654if ac_fn_c_try_run "$LINENO"; then :
5655 ac_cv_func_closedir_void=no
a946372e 5656else
f11781c5 5657 ac_cv_func_closedir_void=yes
a946372e 5658fi
f11781c5
AK
5659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5660 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5661fi
5662
f11781c5
AK
5663fi
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5665$as_echo "$ac_cv_func_closedir_void" >&6; }
5666if test $ac_cv_func_closedir_void = yes; then
a946372e 5667
f11781c5 5668$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5669
a946372e
AK
5670fi
5671
f11781c5
AK
5672for ac_header in unistd.h
5673do :
5674 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5675if test "x$ac_cv_header_unistd_h" = x""yes; then :
5676 cat >>confdefs.h <<_ACEOF
5677#define HAVE_UNISTD_H 1
5678_ACEOF
a946372e 5679
f11781c5 5680fi
a946372e 5681
f11781c5 5682done
a946372e 5683
f11781c5
AK
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5685$as_echo_n "checking for working chown... " >&6; }
5686if test "${ac_cv_func_chown_works+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
a946372e 5688else
f11781c5
AK
5689 if test "$cross_compiling" = yes; then :
5690 ac_cv_func_chown_works=no
a946372e 5691else
f11781c5
AK
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h. */
5694$ac_includes_default
5695#include <fcntl.h>
a946372e 5696
f11781c5
AK
5697int
5698main ()
5699{
5700 char *f = "conftest.chown";
5701 struct stat before, after;
a946372e 5702
f11781c5
AK
5703 if (creat (f, 0600) < 0)
5704 return 1;
5705 if (stat (f, &before) < 0)
5706 return 1;
5707 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5708 return 1;
5709 if (stat (f, &after) < 0)
5710 return 1;
5711 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5712
f11781c5
AK
5713 ;
5714 return 0;
5715}
5716_ACEOF
5717if ac_fn_c_try_run "$LINENO"; then :
5718 ac_cv_func_chown_works=yes
a946372e 5719else
f11781c5 5720 ac_cv_func_chown_works=no
a946372e 5721fi
f11781c5
AK
5722rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5723 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5724fi
5725
f11781c5 5726rm -f conftest.chown
a946372e 5727
f11781c5
AK
5728fi
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5730$as_echo "$ac_cv_func_chown_works" >&6; }
5731if test $ac_cv_func_chown_works = yes; then
a946372e 5732
f11781c5 5733$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5734
a946372e 5735fi
a946372e 5736
f11781c5
AK
5737for ac_header in vfork.h
5738do :
5739 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5740if test "x$ac_cv_header_vfork_h" = x""yes; then :
5741 cat >>confdefs.h <<_ACEOF
5742#define HAVE_VFORK_H 1
5743_ACEOF
a946372e 5744
f11781c5 5745fi
a946372e 5746
f11781c5 5747done
a946372e 5748
f11781c5
AK
5749for ac_func in fork vfork
5750do :
5751 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5752ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5753if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5754 cat >>confdefs.h <<_ACEOF
5755#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5756_ACEOF
a946372e 5757
f11781c5
AK
5758fi
5759done
a946372e 5760
f11781c5
AK
5761if test "x$ac_cv_func_fork" = xyes; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5763$as_echo_n "checking for working fork... " >&6; }
5764if test "${ac_cv_func_fork_works+set}" = set; then :
5765 $as_echo_n "(cached) " >&6
5766else
5767 if test "$cross_compiling" = yes; then :
5768 ac_cv_func_fork_works=cross
5769else
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h. */
5772$ac_includes_default
5773int
5774main ()
5775{
a946372e 5776
f11781c5
AK
5777 /* By Ruediger Kuhlmann. */
5778 return fork () < 0;
a946372e 5779
f11781c5
AK
5780 ;
5781 return 0;
5782}
5783_ACEOF
5784if ac_fn_c_try_run "$LINENO"; then :
5785 ac_cv_func_fork_works=yes
a946372e 5786else
f11781c5
AK
5787 ac_cv_func_fork_works=no
5788fi
5789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5790 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5791fi
a946372e 5792
f11781c5
AK
5793fi
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5795$as_echo "$ac_cv_func_fork_works" >&6; }
5796
a946372e 5797else
f11781c5 5798 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5799fi
f11781c5
AK
5800if test "x$ac_cv_func_fork_works" = xcross; then
5801 case $host in
5802 *-*-amigaos* | *-*-msdosdjgpp*)
5803 # Override, as these systems have only a dummy fork() stub
5804 ac_cv_func_fork_works=no
5805 ;;
5806 *)
5807 ac_cv_func_fork_works=yes
5808 ;;
5809 esac
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5811$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5812fi
f11781c5
AK
5813ac_cv_func_vfork_works=$ac_cv_func_vfork
5814if test "x$ac_cv_func_vfork" = xyes; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5816$as_echo_n "checking for working vfork... " >&6; }
5817if test "${ac_cv_func_vfork_works+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5819else
5820 if test "$cross_compiling" = yes; then :
5821 ac_cv_func_vfork_works=cross
5822else
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824/* end confdefs.h. */
5825/* Thanks to Paul Eggert for this test. */
5826$ac_includes_default
5827#include <sys/wait.h>
5828#ifdef HAVE_VFORK_H
5829# include <vfork.h>
5830#endif
5831/* On some sparc systems, changes by the child to local and incoming
5832 argument registers are propagated back to the parent. The compiler
5833 is told about this with #include <vfork.h>, but some compilers
5834 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5835 static variable whose address is put into a register that is
5836 clobbered by the vfork. */
5837static void
5838#ifdef __cplusplus
5839sparc_address_test (int arg)
5840# else
5841sparc_address_test (arg) int arg;
5842#endif
5843{
5844 static pid_t child;
5845 if (!child) {
5846 child = vfork ();
5847 if (child < 0) {
5848 perror ("vfork");
5849 _exit(2);
5850 }
5851 if (!child) {
5852 arg = getpid();
5853 write(-1, "", 0);
5854 _exit (arg);
5855 }
5856 }
5857}
a946372e 5858
f11781c5
AK
5859int
5860main ()
5861{
5862 pid_t parent = getpid ();
5863 pid_t child;
a946372e 5864
f11781c5 5865 sparc_address_test (0);
a946372e 5866
f11781c5 5867 child = vfork ();
a946372e 5868
f11781c5
AK
5869 if (child == 0) {
5870 /* Here is another test for sparc vfork register problems. This
5871 test uses lots of local variables, at least as many local
5872 variables as main has allocated so far including compiler
5873 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5874 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5875 reuse the register of parent for one of the local variables,
5876 since it will think that parent can't possibly be used any more
5877 in this routine. Assigning to the local variable will thus
5878 munge parent in the parent process. */
5879 pid_t
5880 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5881 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5882 /* Convince the compiler that p..p7 are live; otherwise, it might
5883 use the same hardware register for all 8 local variables. */
5884 if (p != p1 || p != p2 || p != p3 || p != p4
5885 || p != p5 || p != p6 || p != p7)
5886 _exit(1);
a946372e 5887
f11781c5
AK
5888 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5889 from child file descriptors. If the child closes a descriptor
5890 before it execs or exits, this munges the parent's descriptor
5891 as well. Test for this by closing stdout in the child. */
5892 _exit(close(fileno(stdout)) != 0);
5893 } else {
5894 int status;
5895 struct stat st;
5896
5897 while (wait(&status) != child)
5898 ;
5899 return (
5900 /* Was there some problem with vforking? */
5901 child < 0
5902
5903 /* Did the child fail? (This shouldn't happen.) */
5904 || status
5905
5906 /* Did the vfork/compiler bug occur? */
5907 || parent != getpid()
5908
5909 /* Did the file descriptor bug occur? */
5910 || fstat(fileno(stdout), &st) != 0
5911 );
5912 }
5913}
5914_ACEOF
5915if ac_fn_c_try_run "$LINENO"; then :
5916 ac_cv_func_vfork_works=yes
a946372e 5917else
f11781c5 5918 ac_cv_func_vfork_works=no
a946372e 5919fi
f11781c5
AK
5920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5921 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5922fi
f11781c5 5923
a946372e 5924fi
f11781c5
AK
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5926$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5927
f11781c5
AK
5928fi;
5929if test "x$ac_cv_func_fork_works" = xcross; then
5930 ac_cv_func_vfork_works=$ac_cv_func_vfork
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5932$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5933fi
a946372e 5934
f11781c5 5935if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5936
f11781c5 5937$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5938
a946372e 5939else
a946372e 5940
f11781c5
AK
5941$as_echo "#define vfork fork" >>confdefs.h
5942
a946372e 5943fi
f11781c5 5944if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5945
f11781c5 5946$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5947
a946372e 5948fi
f11781c5
AK
5949
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5951$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5952if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
a946372e 5954else
f11781c5
AK
5955 rm -f conftest.sym conftest.file
5956echo >conftest.file
5957if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5958 if test "$cross_compiling" = yes; then :
5959 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5960else
f11781c5 5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5962/* end confdefs.h. */
f11781c5
AK
5963$ac_includes_default
5964int
5965main ()
5966{
5967struct stat sbuf;
5968 /* Linux will dereference the symlink and fail, as required by POSIX.
5969 That is better in the sense that it means we will not
5970 have to compile and use the lstat wrapper. */
5971 return lstat ("conftest.sym/", &sbuf) == 0;
5972 ;
5973 return 0;
5974}
a946372e 5975_ACEOF
f11781c5
AK
5976if ac_fn_c_try_run "$LINENO"; then :
5977 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 5978else
f11781c5 5979 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5980fi
f11781c5
AK
5981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5982 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5983fi
a946372e 5984
a946372e 5985else
f11781c5
AK
5986 # If the `ln -s' command failed, then we probably don't even
5987 # have an lstat function.
5988 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5989fi
f11781c5 5990rm -f conftest.sym conftest.file
a946372e 5991
f11781c5
AK
5992fi
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5994$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 5995
f11781c5 5996test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 5997
f11781c5
AK
5998cat >>confdefs.h <<_ACEOF
5999#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6000_ACEOF
a946372e 6001
a946372e 6002
f11781c5
AK
6003if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6004 case " $LIBOBJS " in
6005 *" lstat.$ac_objext "* ) ;;
6006 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6007 ;;
6008esac
a946372e 6009
f11781c5 6010fi
a946372e 6011
f11781c5
AK
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6013$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6014if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6015 $as_echo_n "(cached) " >&6
a946372e 6016else
f11781c5
AK
6017 if test "$cross_compiling" = yes; then :
6018 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6019else
f11781c5
AK
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021/* end confdefs.h. */
6022$ac_includes_default
6023int
6024main ()
6025{
6026struct stat sbuf;
6027 return lstat ("", &sbuf) == 0;
6028 ;
6029 return 0;
6030}
6031_ACEOF
6032if ac_fn_c_try_run "$LINENO"; then :
6033 ac_cv_func_lstat_empty_string_bug=no
6034else
6035 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6036fi
f11781c5
AK
6037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6038 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6039fi
6040
f11781c5
AK
6041fi
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6043$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6044if test $ac_cv_func_lstat_empty_string_bug = yes; then
6045 case " $LIBOBJS " in
6046 *" lstat.$ac_objext "* ) ;;
6047 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6048 ;;
6049esac
a946372e
AK
6050
6051
f11781c5
AK
6052cat >>confdefs.h <<_ACEOF
6053#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6054_ACEOF
a946372e 6055
a946372e 6056fi
a946372e 6057
f11781c5
AK
6058for ac_header in stdlib.h
6059do :
6060 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6061if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6062 cat >>confdefs.h <<_ACEOF
6063#define HAVE_STDLIB_H 1
6064_ACEOF
6065
a946372e
AK
6066fi
6067
f11781c5 6068done
a946372e 6069
f11781c5
AK
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6071$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6072if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6074else
6075 if test "$cross_compiling" = yes; then :
6076 ac_cv_func_malloc_0_nonnull=no
6077else
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h. */
6080#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6081# include <stdlib.h>
6082#else
6083char *malloc ();
6084#endif
a946372e 6085
f11781c5
AK
6086int
6087main ()
6088{
6089return ! malloc (0);
6090 ;
6091 return 0;
6092}
6093_ACEOF
6094if ac_fn_c_try_run "$LINENO"; then :
6095 ac_cv_func_malloc_0_nonnull=yes
a946372e 6096else
f11781c5 6097 ac_cv_func_malloc_0_nonnull=no
a946372e 6098fi
f11781c5
AK
6099rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6100 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6101fi
f11781c5 6102
a946372e 6103fi
f11781c5
AK
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6105$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6106if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6107
f11781c5 6108$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6109
f11781c5
AK
6110else
6111 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6112
f11781c5
AK
6113 case " $LIBOBJS " in
6114 *" malloc.$ac_objext "* ) ;;
6115 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6116 ;;
6117esac
6118
6119
6120$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6121
a946372e 6122fi
a946372e 6123
a946372e 6124
f11781c5
AK
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6126$as_echo_n "checking for working memcmp... " >&6; }
6127if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6128 $as_echo_n "(cached) " >&6
a946372e 6129else
f11781c5
AK
6130 if test "$cross_compiling" = yes; then :
6131 ac_cv_func_memcmp_working=no
6132else
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6134/* end confdefs.h. */
6135$ac_includes_default
f11781c5
AK
6136int
6137main ()
6138{
a946372e 6139
f11781c5
AK
6140 /* Some versions of memcmp are not 8-bit clean. */
6141 char c0 = '\100', c1 = '\200', c2 = '\201';
6142 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6143 return 1;
a946372e 6144
f11781c5
AK
6145 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6146 or more and with at least one buffer not starting on a 4-byte boundary.
6147 William Lewis provided this test program. */
6148 {
6149 char foo[21];
6150 char bar[21];
6151 int i;
6152 for (i = 0; i < 4; i++)
6153 {
6154 char *a = foo + i;
6155 char *b = bar + i;
6156 strcpy (a, "--------01111111");
6157 strcpy (b, "--------10000000");
6158 if (memcmp (a, b, 16) >= 0)
6159 return 1;
6160 }
6161 return 0;
6162 }
a946372e 6163
f11781c5
AK
6164 ;
6165 return 0;
6166}
a946372e 6167_ACEOF
f11781c5
AK
6168if ac_fn_c_try_run "$LINENO"; then :
6169 ac_cv_func_memcmp_working=yes
a946372e 6170else
f11781c5
AK
6171 ac_cv_func_memcmp_working=no
6172fi
6173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6174 conftest.$ac_objext conftest.beam conftest.$ac_ext
6175fi
a946372e 6176
a946372e 6177fi
f11781c5
AK
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6179$as_echo "$ac_cv_func_memcmp_working" >&6; }
6180test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6181 *" memcmp.$ac_objext "* ) ;;
6182 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6183 ;;
6184esac
a946372e 6185
a946372e 6186
a946372e 6187
a946372e 6188
f11781c5
AK
6189
6190 for ac_header in $ac_header_list
6191do :
6192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6193ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6194"
6195if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6196 cat >>confdefs.h <<_ACEOF
6197#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6198_ACEOF
6199
a946372e
AK
6200fi
6201
6202done
6203
a946372e 6204
f11781c5
AK
6205
6206
6207
6208
6209
6210
6211for ac_func in getpagesize
6212do :
6213 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6214if test "x$ac_cv_func_getpagesize" = x""yes; then :
6215 cat >>confdefs.h <<_ACEOF
6216#define HAVE_GETPAGESIZE 1
6217_ACEOF
6218
a946372e 6219fi
f11781c5
AK
6220done
6221
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6223$as_echo_n "checking for working mmap... " >&6; }
6224if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6225 $as_echo_n "(cached) " >&6
a946372e 6226else
f11781c5
AK
6227 if test "$cross_compiling" = yes; then :
6228 ac_cv_func_mmap_fixed_mapped=no
6229else
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6231/* end confdefs.h. */
6232$ac_includes_default
f11781c5
AK
6233/* malloc might have been renamed as rpl_malloc. */
6234#undef malloc
6235
6236/* Thanks to Mike Haertel and Jim Avera for this test.
6237 Here is a matrix of mmap possibilities:
6238 mmap private not fixed
6239 mmap private fixed at somewhere currently unmapped
6240 mmap private fixed at somewhere already mapped
6241 mmap shared not fixed
6242 mmap shared fixed at somewhere currently unmapped
6243 mmap shared fixed at somewhere already mapped
6244 For private mappings, we should verify that changes cannot be read()
6245 back from the file, nor mmap's back from the file at a different
6246 address. (There have been systems where private was not correctly
6247 implemented like the infamous i386 svr4.0, and systems where the
6248 VM page cache was not coherent with the file system buffer cache
6249 like early versions of FreeBSD and possibly contemporary NetBSD.)
6250 For shared mappings, we should conversely verify that changes get
6251 propagated back to all the places they're supposed to be.
6252
6253 Grep wants private fixed already mapped.
6254 The main things grep needs to know about mmap are:
6255 * does it exist and is it safe to write into the mmap'd area
6256 * how to use it (BSD variants) */
6257
6258#include <fcntl.h>
6259#include <sys/mman.h>
6260
6261#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6262char *malloc ();
6263#endif
6264
6265/* This mess was copied from the GNU getpagesize.h. */
6266#ifndef HAVE_GETPAGESIZE
6267# ifdef _SC_PAGESIZE
6268# define getpagesize() sysconf(_SC_PAGESIZE)
6269# else /* no _SC_PAGESIZE */
6270# ifdef HAVE_SYS_PARAM_H
6271# include <sys/param.h>
6272# ifdef EXEC_PAGESIZE
6273# define getpagesize() EXEC_PAGESIZE
6274# else /* no EXEC_PAGESIZE */
6275# ifdef NBPG
6276# define getpagesize() NBPG * CLSIZE
6277# ifndef CLSIZE
6278# define CLSIZE 1
6279# endif /* no CLSIZE */
6280# else /* no NBPG */
6281# ifdef NBPC
6282# define getpagesize() NBPC
6283# else /* no NBPC */
6284# ifdef PAGESIZE
6285# define getpagesize() PAGESIZE
6286# endif /* PAGESIZE */
6287# endif /* no NBPC */
6288# endif /* no NBPG */
6289# endif /* no EXEC_PAGESIZE */
6290# else /* no HAVE_SYS_PARAM_H */
6291# define getpagesize() 8192 /* punt totally */
6292# endif /* no HAVE_SYS_PARAM_H */
6293# endif /* no _SC_PAGESIZE */
6294
6295#endif /* no HAVE_GETPAGESIZE */
6296
6297int
6298main ()
6299{
6300 char *data, *data2, *data3;
6301 const char *cdata2;
6302 int i, pagesize;
6303 int fd, fd2;
6304
6305 pagesize = getpagesize ();
6306
6307 /* First, make a file with some known garbage in it. */
6308 data = (char *) malloc (pagesize);
6309 if (!data)
6310 return 1;
6311 for (i = 0; i < pagesize; ++i)
6312 *(data + i) = rand ();
6313 umask (0);
6314 fd = creat ("conftest.mmap", 0600);
6315 if (fd < 0)
6316 return 2;
6317 if (write (fd, data, pagesize) != pagesize)
6318 return 3;
6319 close (fd);
6320
6321 /* Next, check that the tail of a page is zero-filled. File must have
6322 non-zero length, otherwise we risk SIGBUS for entire page. */
6323 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6324 if (fd2 < 0)
6325 return 4;
6326 cdata2 = "";
6327 if (write (fd2, cdata2, 1) != 1)
6328 return 5;
6329 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6330 if (data2 == MAP_FAILED)
6331 return 6;
6332 for (i = 0; i < pagesize; ++i)
6333 if (*(data2 + i))
6334 return 7;
6335 close (fd2);
6336 if (munmap (data2, pagesize))
6337 return 8;
6338
6339 /* Next, try to mmap the file at a fixed address which already has
6340 something else allocated at it. If we can, also make sure that
6341 we see the same garbage. */
6342 fd = open ("conftest.mmap", O_RDWR);
6343 if (fd < 0)
6344 return 9;
6345 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6346 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6347 return 10;
6348 for (i = 0; i < pagesize; ++i)
6349 if (*(data + i) != *(data2 + i))
6350 return 11;
6351
6352 /* Finally, make sure that changes to the mapped area do not
6353 percolate back to the file as seen by read(). (This is a bug on
6354 some variants of i386 svr4.0.) */
6355 for (i = 0; i < pagesize; ++i)
6356 *(data2 + i) = *(data2 + i) + 1;
6357 data3 = (char *) malloc (pagesize);
6358 if (!data3)
6359 return 12;
6360 if (read (fd, data3, pagesize) != pagesize)
6361 return 13;
6362 for (i = 0; i < pagesize; ++i)
6363 if (*(data + i) != *(data3 + i))
6364 return 14;
6365 close (fd);
6366 return 0;
6367}
a946372e 6368_ACEOF
f11781c5
AK
6369if ac_fn_c_try_run "$LINENO"; then :
6370 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6371else
f11781c5
AK
6372 ac_cv_func_mmap_fixed_mapped=no
6373fi
6374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6375 conftest.$ac_objext conftest.beam conftest.$ac_ext
6376fi
a946372e 6377
a946372e 6378fi
f11781c5
AK
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6380$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6381if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6382
f11781c5 6383$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6384
f11781c5
AK
6385fi
6386rm -f conftest.mmap conftest.txt
6387
6388for ac_header in stdlib.h
6389do :
6390 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6391if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6392 cat >>confdefs.h <<_ACEOF
6393#define HAVE_STDLIB_H 1
a946372e 6394_ACEOF
f11781c5
AK
6395
6396fi
6397
6398done
6399
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6401$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6402if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6404else
6405 if test "$cross_compiling" = yes; then :
6406 ac_cv_func_realloc_0_nonnull=no
6407else
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6409/* end confdefs.h. */
f11781c5
AK
6410#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6411# include <stdlib.h>
6412#else
6413char *realloc ();
6414#endif
6415
6416int
6417main ()
6418{
6419return ! realloc (0, 0);
6420 ;
6421 return 0;
6422}
a946372e 6423_ACEOF
f11781c5
AK
6424if ac_fn_c_try_run "$LINENO"; then :
6425 ac_cv_func_realloc_0_nonnull=yes
a946372e 6426else
f11781c5
AK
6427 ac_cv_func_realloc_0_nonnull=no
6428fi
6429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6430 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6431fi
6432
f11781c5
AK
6433fi
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6435$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6436if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6437
f11781c5 6438$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6439
a946372e 6440else
f11781c5
AK
6441 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6442
6443 case " $LIBOBJS " in
6444 *" realloc.$ac_objext "* ) ;;
6445 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6446 ;;
6447esac
a946372e 6448
a946372e 6449
f11781c5
AK
6450$as_echo "#define realloc rpl_realloc" >>confdefs.h
6451
a946372e
AK
6452fi
6453
a946372e 6454
f11781c5
AK
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6456$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6457if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
a946372e 6459else
f11781c5
AK
6460 if test "$cross_compiling" = yes; then :
6461 ac_cv_func_stat_empty_string_bug=yes
6462else
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464/* end confdefs.h. */
6465$ac_includes_default
6466int
6467main ()
6468{
6469struct stat sbuf;
6470 return stat ("", &sbuf) == 0;
6471 ;
6472 return 0;
6473}
6474_ACEOF
6475if ac_fn_c_try_run "$LINENO"; then :
6476 ac_cv_func_stat_empty_string_bug=no
6477else
6478 ac_cv_func_stat_empty_string_bug=yes
a946372e 6479fi
f11781c5
AK
6480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6481 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6482fi
6483
8c4e8a18 6484fi
f11781c5
AK
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6486$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6487if test $ac_cv_func_stat_empty_string_bug = yes; then
6488 case " $LIBOBJS " in
6489 *" stat.$ac_objext "* ) ;;
6490 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6491 ;;
6492esac
8c4e8a18
FDN
6493
6494
6495cat >>confdefs.h <<_ACEOF
f11781c5 6496#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6497_ACEOF
6498
6499fi
6500
f11781c5
AK
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6502$as_echo_n "checking for working strtod... " >&6; }
6503if test "${ac_cv_func_strtod+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
66fd4529 6505else
f11781c5
AK
6506 if test "$cross_compiling" = yes; then :
6507 ac_cv_func_strtod=no
6508else
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510/* end confdefs.h. */
66fd4529 6511
f11781c5
AK
6512$ac_includes_default
6513#ifndef strtod
6514double strtod ();
6515#endif
6516int
6517main()
6518{
6519 {
6520 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6521 char *string = " +69";
6522 char *term;
6523 double value;
6524 value = strtod (string, &term);
6525 if (value != 69 || term != (string + 4))
6526 return 1;
6527 }
66fd4529 6528
f11781c5
AK
6529 {
6530 /* Under Solaris 2.4, strtod returns the wrong value for the
6531 terminating character under some conditions. */
6532 char *string = "NaN";
6533 char *term;
6534 strtod (string, &term);
6535 if (term != string && *(term - 1) == 0)
6536 return 1;
6537 }
6538 return 0;
6539}
66fd4529 6540
f11781c5
AK
6541_ACEOF
6542if ac_fn_c_try_run "$LINENO"; then :
6543 ac_cv_func_strtod=yes
66fd4529 6544else
f11781c5
AK
6545 ac_cv_func_strtod=no
6546fi
6547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6548 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6549fi
6550
f11781c5
AK
6551fi
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6553$as_echo "$ac_cv_func_strtod" >&6; }
6554if test $ac_cv_func_strtod = no; then
6555 case " $LIBOBJS " in
6556 *" strtod.$ac_objext "* ) ;;
6557 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6558 ;;
6559esac
71082be4 6560
f11781c5
AK
6561ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6562if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6563
66fd4529 6564fi
a946372e 6565
f11781c5
AK
6566if test $ac_cv_func_pow = no; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6568$as_echo_n "checking for pow in -lm... " >&6; }
6569if test "${ac_cv_lib_m_pow+set}" = set; then :
6570 $as_echo_n "(cached) " >&6
6571else
6572 ac_check_lib_save_LIBS=$LIBS
6573LIBS="-lm $LIBS"
6574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h. */
90c80887 6576
f11781c5
AK
6577/* Override any GCC internal prototype to avoid an error.
6578 Use char because int might match the return type of a GCC
6579 builtin and then its argument prototype would still apply. */
6580#ifdef __cplusplus
6581extern "C"
6582#endif
6583char pow ();
6584int
6585main ()
6586{
6587return pow ();
6588 ;
6589 return 0;
6590}
6591_ACEOF
6592if ac_fn_c_try_link "$LINENO"; then :
6593 ac_cv_lib_m_pow=yes
90c80887 6594else
f11781c5 6595 ac_cv_lib_m_pow=no
90c80887 6596fi
f11781c5
AK
6597rm -f core conftest.err conftest.$ac_objext \
6598 conftest$ac_exeext conftest.$ac_ext
6599LIBS=$ac_check_lib_save_LIBS
90c80887 6600fi
f11781c5
AK
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6602$as_echo "$ac_cv_lib_m_pow" >&6; }
6603if test "x$ac_cv_lib_m_pow" = x""yes; then :
6604 POW_LIB=-lm
90c80887 6605else
f11781c5
AK
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6607$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6608fi
f11781c5 6609
90c80887
AK
6610fi
6611
f11781c5
AK
6612fi
6613
6614for ac_func in vprintf
6615do :
6616 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6617if test "x$ac_cv_func_vprintf" = x""yes; then :
6618 cat >>confdefs.h <<_ACEOF
6619#define HAVE_VPRINTF 1
6620_ACEOF
90c80887 6621
f11781c5
AK
6622ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6623if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6624
f11781c5 6625$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6626
90c80887 6627fi
90c80887 6628
f11781c5
AK
6629fi
6630done
90c80887 6631
90c80887 6632
90c80887 6633
f11781c5
AK
6634################################################################################
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6636$as_echo_n "checking whether to use static linking... " >&6; }
6637# Check whether --enable-static_link was given.
6638if test "${enable_static_link+set}" = set; then :
6639 enableval=$enable_static_link; STATIC_LINK=$enableval
6640else
6641 STATIC_LINK=no
6642fi
90c80887 6643
f11781c5
AK
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6645$as_echo "$STATIC_LINK" >&6; }
90c80887 6646
f11781c5 6647################################################################################
90c80887 6648
90c80887 6649
f11781c5
AK
6650################################################################################
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6652$as_echo_n "checking file owner... " >&6; }
90c80887 6653
f11781c5
AK
6654# Check whether --with-user was given.
6655if test "${with_user+set}" = set; then :
6656 withval=$with_user; OWNER=$withval
6657fi
90c80887 6658
f11781c5
AK
6659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6660$as_echo "$OWNER" >&6; }
90c80887 6661
f11781c5
AK
6662if test x$OWNER != x; then
6663 INSTALL="$INSTALL -o $OWNER"
90c80887 6664fi
a946372e 6665
f11781c5
AK
6666################################################################################
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6668$as_echo_n "checking group owner... " >&6; }
a946372e 6669
f11781c5
AK
6670# Check whether --with-group was given.
6671if test "${with_group+set}" = set; then :
6672 withval=$with_group; GROUP=$withval
a946372e 6673fi
f11781c5
AK
6674
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6676$as_echo "$GROUP" >&6; }
6677
6678if test x$GROUP != x; then
6679 INSTALL="$INSTALL -g $GROUP"
a946372e 6680fi
f11781c5
AK
6681
6682################################################################################
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6684$as_echo_n "checking device node uid... " >&6; }
6685
6686
6687# Check whether --with-device-uid was given.
6688if test "${with_device_uid+set}" = set; then :
6689 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6690else
f11781c5 6691 DM_DEVICE_UID=0
a946372e
AK
6692fi
6693
f11781c5
AK
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6695$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6696
f11781c5
AK
6697################################################################################
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6699$as_echo_n "checking device node gid... " >&6; }
a946372e 6700
a946372e 6701
f11781c5
AK
6702# Check whether --with-device-gid was given.
6703if test "${with_device_gid+set}" = set; then :
6704 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6705else
f11781c5 6706 DM_DEVICE_GID=0
a946372e 6707fi
a946372e 6708
f11781c5
AK
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6710$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6711
f11781c5
AK
6712################################################################################
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6714$as_echo_n "checking device node mode... " >&6; }
90c80887 6715
90c80887 6716
f11781c5
AK
6717# Check whether --with-device-mode was given.
6718if test "${with_device_mode+set}" = set; then :
6719 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6720else
6721 DM_DEVICE_MODE=0600
6722fi
90c80887 6723
f11781c5
AK
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6725$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6726
d0df875d
ZK
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6728$as_echo_n "checking when to create device nodes... " >&6; }
6729
6730# Check whether --with-device-nodes-on was given.
6731if test "${with_device_nodes_on+set}" = set; then :
6732 withval=$with_device_nodes_on; ADD_NODE=$withval
6733else
6734 ADD_NODE=resume
6735fi
6736
6737case "$ADD_NODE" in
6738 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6739 create) add_on=DM_ADD_NODE_ON_CREATE;;
6740 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6741esac
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6743$as_echo "on $ADD_NODE" >&6; }
6744
6745cat >>confdefs.h <<_ACEOF
6746#define DEFAULT_DM_ADD_NODE $add_on
6747_ACEOF
6748
6749
f11781c5
AK
6750################################################################################
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6752$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6753# Check whether --enable-lvm1_fallback was given.
6754if test "${enable_lvm1_fallback+set}" = set; then :
6755 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6756else
6757 LVM1_FALLBACK=no
6758fi
90c80887 6759
f11781c5
AK
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6761$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6762
f11781c5 6763if test x$LVM1_FALLBACK = xyes; then
90c80887 6764
f11781c5 6765$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6766
f11781c5 6767fi
90c80887 6768
f11781c5
AK
6769################################################################################
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6771$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6772
6773# Check whether --with-lvm1 was given.
6774if test "${with_lvm1+set}" = set; then :
6775 withval=$with_lvm1; LVM1=$withval
a946372e 6776else
f11781c5 6777 LVM1=internal
a946372e 6778fi
f11781c5
AK
6779
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6781$as_echo "$LVM1" >&6; }
6782
6783if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6784 then as_fn_error $? "--with-lvm1 parameter invalid
6785" "$LINENO" 5
6786fi;
6787
6788if test x$LVM1 = xinternal; then
6789
6790$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6791
a946372e
AK
6792fi
6793
6794################################################################################
f11781c5
AK
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6796$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6797
6798# Check whether --with-pool was given.
6799if test "${with_pool+set}" = set; then :
6800 withval=$with_pool; POOL=$withval
a946372e 6801else
f11781c5 6802 POOL=internal
a946372e
AK
6803fi
6804
f11781c5
AK
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6806$as_echo "$POOL" >&6; }
6807
6808if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6809 then as_fn_error $? "--with-pool parameter invalid
6810" "$LINENO" 5
6811fi;
6812
6813if test x$POOL = xinternal; then
6814
6815$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6816
a946372e
AK
6817fi
6818
6819################################################################################
f11781c5
AK
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6821$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6822
f11781c5
AK
6823# Check whether --with-cluster was given.
6824if test "${with_cluster+set}" = set; then :
6825 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6826fi
6827
f11781c5
AK
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6829$as_echo "$CLUSTER" >&6; }
a946372e 6830
f11781c5
AK
6831if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6832 then as_fn_error $? "--with-cluster parameter invalid
6833" "$LINENO" 5
6834fi;
fddafd51 6835
f11781c5 6836if test x$CLUSTER = xinternal; then
5556819a 6837
f11781c5 6838$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6839
fddafd51 6840fi
f11781c5
AK
6841
6842################################################################################
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6844$as_echo_n "checking whether to include snapshots... " >&6; }
6845
6846# Check whether --with-snapshots was given.
6847if test "${with_snapshots+set}" = set; then :
6848 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6849else
f11781c5 6850 SNAPSHOTS=internal
fddafd51
ZK
6851fi
6852
f11781c5
AK
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6854$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6855
f11781c5
AK
6856if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6857 then as_fn_error $? "--with-snapshots parameter invalid
6858" "$LINENO" 5
6859fi;
fddafd51 6860
f11781c5
AK
6861if test x$SNAPSHOTS = xinternal; then
6862
6863$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6864
6865fi
6866
6867################################################################################
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6869$as_echo_n "checking whether to include mirrors... " >&6; }
6870
6871# Check whether --with-mirrors was given.
6872if test "${with_mirrors+set}" = set; then :
6873 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6874else
f11781c5 6875 MIRRORS=internal
fddafd51
ZK
6876fi
6877
f11781c5
AK
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6879$as_echo "$MIRRORS" >&6; }
fddafd51 6880
f11781c5
AK
6881if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6882 then as_fn_error $? "--with-mirrors parameter invalid
6883" "$LINENO" 5
6884fi;
6885
6886if test x$MIRRORS = xinternal; then
6887
6888$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6889
6890fi
6891
cac52ca4
JEB
6892################################################################################
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6894$as_echo_n "checking whether to include raid... " >&6; }
6895
6896# Check whether --with-raid was given.
6897if test "${with_raid+set}" = set; then :
6898 withval=$with_raid; RAID=$withval
6899else
6900 RAID=internal
6901fi
6902
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6904$as_echo "$RAID" >&6; }
6905
6906if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6907 then as_fn_error $? "--with-raid parameter invalid
6908" "$LINENO" 5
6909fi;
6910
6911if test x$RAID = xinternal; then
6912
6913$as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6914
6915fi
6916
f11781c5
AK
6917################################################################################
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6919$as_echo_n "checking whether to include replicators... " >&6; }
6920
6921# Check whether --with-replicators was given.
6922if test "${with_replicators+set}" = set; then :
6923 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6924else
f11781c5
AK
6925 REPLICATORS=none
6926fi
fd4728e1 6927
f11781c5
AK
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6929$as_echo "$REPLICATORS" >&6; }
6930
6931case "$REPLICATORS" in
6932 none|shared) ;;
6933 internal)
6934$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6935 ;;
6936 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 6937esac
f11781c5
AK
6938
6939################################################################################
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6941$as_echo_n "checking whether to enable readline... " >&6; }
6942# Check whether --enable-readline was given.
6943if test "${enable_readline+set}" = set; then :
6944 enableval=$enable_readline; READLINE=$enableval
fd4728e1 6945else
f11781c5 6946 READLINE=maybe
fd4728e1
ZK
6947fi
6948
f11781c5
AK
6949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6950$as_echo "$READLINE" >&6; }
fd4728e1 6951
f11781c5
AK
6952################################################################################
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6954$as_echo_n "checking whether to enable realtime support... " >&6; }
6955# Check whether --enable-realtime was given.
6956if test "${enable_realtime+set}" = set; then :
6957 enableval=$enable_realtime; REALTIME=$enableval
5556819a 6958fi
d0191583 6959
f11781c5
AK
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6961$as_echo "$REALTIME" >&6; }
6962
54b362f9 6963################################################################################
f11781c5
AK
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6965$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6966# Check whether --enable-ocf was given.
6967if test "${enable_ocf+set}" = set; then :
6968 enableval=$enable_ocf; OCF=$enableval
54b362f9 6969else
f11781c5 6970 OCF=no
54b362f9
AK
6971fi
6972
f11781c5
AK
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6974$as_echo "$OCF" >&6; }
54b362f9 6975
606d0858
AK
6976# Check whether --with-ocfdir was given.
6977if test "${with_ocfdir+set}" = set; then :
6978 withval=$with_ocfdir; OCFDIR=$withval
6979else
6980 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
6981fi
6982
6983
f11781c5
AK
6984################################################################################
6985pkg_config_init() {
6986
6987
6988
6989
6990
6991
6992if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6993 if test -n "$ac_tool_prefix"; then
6994 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6995set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 6997$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 6998if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
6999 $as_echo_n "(cached) " >&6
7000else
f11781c5 7001 case $PKG_CONFIG in
54b362f9 7002 [\\/]* | ?:[\\/]*)
f11781c5 7003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7004 ;;
7005 *)
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007for as_dir in $PATH
7008do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
f11781c5 7011 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7015 break 2
7016 fi
7017done
f11781c5 7018 done
54b362f9
AK
7019IFS=$as_save_IFS
7020
7021 ;;
7022esac
7023fi
f11781c5
AK
7024PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7025if test -n "$PKG_CONFIG"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7027$as_echo "$PKG_CONFIG" >&6; }
54b362f9 7028else
f11781c5 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7030$as_echo "no" >&6; }
7031fi
7032
7033
f11781c5
AK
7034fi
7035if test -z "$ac_cv_path_PKG_CONFIG"; then
7036 ac_pt_PKG_CONFIG=$PKG_CONFIG
7037 # Extract the first word of "pkg-config", so it can be a program name with args.
7038set dummy pkg-config; ac_word=$2
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7040$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7041if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7042 $as_echo_n "(cached) " >&6
7043else
f11781c5 7044 case $ac_pt_PKG_CONFIG in
54b362f9 7045 [\\/]* | ?:[\\/]*)
f11781c5 7046 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7047 ;;
7048 *)
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050for as_dir in $PATH
7051do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
f11781c5 7054 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7056 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7058 break 2
7059 fi
7060done
f11781c5 7061 done
54b362f9
AK
7062IFS=$as_save_IFS
7063
7064 ;;
7065esac
7066fi
f11781c5
AK
7067ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7068if test -n "$ac_pt_PKG_CONFIG"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7070$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7071else
f11781c5 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7073$as_echo "no" >&6; }
7074fi
7075
f11781c5
AK
7076 if test "x$ac_pt_PKG_CONFIG" = x; then
7077 PKG_CONFIG=""
7078 else
7079 case $cross_compiling:$ac_tool_warned in
7080yes:)
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083ac_tool_warned=yes ;;
7084esac
7085 PKG_CONFIG=$ac_pt_PKG_CONFIG
7086 fi
d1e8046f 7087else
f11781c5 7088 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7089fi
7090
f11781c5
AK
7091fi
7092if test -n "$PKG_CONFIG"; then
7093 _pkg_min_version=0.9.0
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7095$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7096 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7098$as_echo "yes" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101$as_echo "no" >&6; }
7102 PKG_CONFIG=""
7103 fi
7104fi
d1e8046f 7105
f11781c5
AK
7106pkg_failed=no
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7108$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7109
f11781c5
AK
7110if test -n "$PKGCONFIGINIT_CFLAGS"; then
7111 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7112 elif test -n "$PKG_CONFIG"; then
7113 if test -n "$PKG_CONFIG" && \
7114 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7115 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7116 ac_status=$?
7117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7118 test $ac_status = 0; }; then
7119 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7120else
f11781c5
AK
7121 pkg_failed=yes
7122fi
7123 else
7124 pkg_failed=untried
7125fi
7126if test -n "$PKGCONFIGINIT_LIBS"; then
7127 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7128 elif test -n "$PKG_CONFIG"; then
7129 if test -n "$PKG_CONFIG" && \
7130 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7131 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7132 ac_status=$?
f11781c5
AK
7133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7134 test $ac_status = 0; }; then
7135 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7136else
f11781c5
AK
7137 pkg_failed=yes
7138fi
7139 else
7140 pkg_failed=untried
d1e8046f
AK
7141fi
7142
d1e8046f 7143
f11781c5
AK
7144
7145if test $pkg_failed = yes; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147$as_echo "no" >&6; }
7148
7149if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7150 _pkg_short_errors_supported=yes
7151else
7152 _pkg_short_errors_supported=no
7153fi
7154 if test $_pkg_short_errors_supported = yes; then
7155 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7156 else
7157 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7158 fi
7159 # Put the nasty error message in config.log where it belongs
7160 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7161
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7163$as_echo "pkg-config initialized" >&6; }
7164elif test $pkg_failed = untried; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166$as_echo "no" >&6; }
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7168$as_echo "pkg-config initialized" >&6; }
d1e8046f 7169else
f11781c5
AK
7170 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7171 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7173$as_echo "yes" >&6; }
d1e8046f 7174
d1e8046f 7175fi
f11781c5
AK
7176 PKGCONFIG_INIT=1
7177}
d1e8046f 7178
f11781c5
AK
7179################################################################################
7180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7181$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7182
f11781c5
AK
7183# Check whether --with-clvmd was given.
7184if test "${with_clvmd+set}" = set; then :
7185 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7186else
f11781c5 7187 CLVMD=none
d1e8046f 7188fi
d1e8046f 7189
f11781c5
AK
7190if test x$CLVMD = xyes; then
7191 CLVMD=all
d1e8046f 7192fi
f11781c5
AK
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7194$as_echo "$CLVMD" >&6; }
d1e8046f 7195
f11781c5
AK
7196if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7197 CLUSTER=internal
d1e8046f
AK
7198fi
7199
f11781c5
AK
7200if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7201 pkg_config_init
7202fi
d1e8046f 7203
f11781c5
AK
7204CLVMD_CMANAGERS=""
7205CLVMD_NEEDS_QDISKD=no
d1e8046f 7206
f11781c5
AK
7207if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7208 BUILDGULM=yes
7209 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
7210 CLVMD_NEEDS_QDISKD=yes
d1e8046f 7211fi
f11781c5
AK
7212if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7213 BUILDCMAN=yes
7214 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7215 CLVMD_NEEDS_QDISKD=yes
7216fi
7217if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7218 BUILDCOROSYNC=yes
7219 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7220fi
7221if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7222 BUILDOPENAIS=yes
7223 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7224fi
7225if test x$CLVMD_NEEDS_QDISKD != xno; then
7226 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7227fi
7228
f11781c5
AK
7229if test x$BUILDGULM = xyes; then
7230 if test x$BUILDCOROSYNC = xyes || \
7231 test x$BUILDOPENAIS = xyes; then
7232 as_fn_error $? "requested clvmd configuration is not valid" "$LINENO" 5
7233 fi
7234fi
ad6254c5 7235
f11781c5
AK
7236soft_bailout() {
7237 NOTFOUND=1
7238}
ad6254c5 7239
f11781c5
AK
7240hard_bailout() {
7241 as_fn_error $? "bailing out" "$LINENO" 5
7242}
ad6254c5 7243
f11781c5
AK
7244if test x$CLVMD = xall; then
7245 bailout=soft_bailout
7246 BUILDGULM=yes
7247 BUILDCMAN=yes
7248 BUILDCOROSYNC=yes
7249 BUILDOPENAIS=yes
a5f46f6a 7250else
f11781c5 7251 bailout=hard_bailout
a5f46f6a
AK
7252fi
7253
f11781c5
AK
7254check_lib_no_libs() {
7255 lib_no_libs_arg1=$1
7256 shift
7257 lib_no_libs_arg2=$1
7258 shift
7259 lib_no_libs_args=$@
7260 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7262$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7263if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7264 $as_echo_n "(cached) " >&6
7265else
7266 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7267LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7269/* end confdefs.h. */
7270
7271/* Override any GCC internal prototype to avoid an error.
7272 Use char because int might match the return type of a GCC
7273 builtin and then its argument prototype would still apply. */
7274#ifdef __cplusplus
7275extern "C"
7276#endif
f11781c5 7277char $lib_no_libs_arg2 ();
90c80887
AK
7278int
7279main ()
7280{
f11781c5 7281return $lib_no_libs_arg2 ();
90c80887
AK
7282 ;
7283 return 0;
7284}
7285_ACEOF
f11781c5
AK
7286if ac_fn_c_try_link "$LINENO"; then :
7287 eval "$as_ac_Lib=yes"
90c80887 7288else
f11781c5 7289 eval "$as_ac_Lib=no"
90c80887 7290fi
f11781c5
AK
7291rm -f core conftest.err conftest.$ac_objext \
7292 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7293LIBS=$ac_check_lib_save_LIBS
7294fi
f11781c5
AK
7295eval ac_res=\$$as_ac_Lib
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7297$as_echo "$ac_res" >&6; }
7298if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7299 cat >>confdefs.h <<_ACEOF
7300#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7301_ACEOF
7302
7303 LIBS="-l$lib_no_libs_arg1 $LIBS"
7304
90c80887 7305else
f11781c5 7306 $bailout
90c80887
AK
7307fi
7308
f11781c5
AK
7309 LIBS=$ac_check_lib_save_LIBS
7310}
90c80887 7311
f11781c5 7312if test x$BUILDGULM = xyes; then
90c80887 7313
f11781c5
AK
7314pkg_failed=no
7315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCS" >&5
7316$as_echo_n "checking for CCS... " >&6; }
90c80887 7317
f11781c5
AK
7318if test -n "$CCS_CFLAGS"; then
7319 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
7320 elif test -n "$PKG_CONFIG"; then
7321 if test -n "$PKG_CONFIG" && \
7322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7323 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7324 ac_status=$?
7325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326 test $ac_status = 0; }; then
7327 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
5161ecb9 7328else
f11781c5
AK
7329 pkg_failed=yes
7330fi
7331 else
7332 pkg_failed=untried
7333fi
7334if test -n "$CCS_LIBS"; then
7335 pkg_cv_CCS_LIBS="$CCS_LIBS"
7336 elif test -n "$PKG_CONFIG"; then
7337 if test -n "$PKG_CONFIG" && \
7338 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7339 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7340 ac_status=$?
7341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7342 test $ac_status = 0; }; then
7343 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
7344else
7345 pkg_failed=yes
7346fi
7347 else
7348 pkg_failed=untried
5161ecb9
PR
7349fi
7350
5161ecb9 7351
f11781c5
AK
7352
7353if test $pkg_failed = yes; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355$as_echo "no" >&6; }
7356
7357if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7358 _pkg_short_errors_supported=yes
93bd259b 7359else
f11781c5 7360 _pkg_short_errors_supported=no
93bd259b 7361fi
f11781c5
AK
7362 if test $_pkg_short_errors_supported = yes; then
7363 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
7364 else
7365 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
7366 fi
7367 # Put the nasty error message in config.log where it belongs
7368 echo "$CCS_PKG_ERRORS" >&5
93bd259b 7369
f11781c5
AK
7370 NOTFOUND=0
7371 for ac_header in ccs.h
7372do :
7373 ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7374if test "x$ac_cv_header_ccs_h" = x""yes; then :
7375 cat >>confdefs.h <<_ACEOF
7376#define HAVE_CCS_H 1
7377_ACEOF
93bd259b 7378
95eaa683 7379else
f11781c5 7380 $bailout
95eaa683
AK
7381fi
7382
f11781c5 7383done
95eaa683 7384
f11781c5
AK
7385 check_lib_no_libs ccs ccs_connect
7386 if test $NOTFOUND = 0; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7388$as_echo "no pkg for libccs, using -lccs" >&6; }
7389 CCS_LIBS="-lccs"
7390 HAVE_CCS=yes
7391 fi
7392elif test $pkg_failed = untried; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394$as_echo "no" >&6; }
7395 NOTFOUND=0
7396 for ac_header in ccs.h
7397do :
7398 ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7399if test "x$ac_cv_header_ccs_h" = x""yes; then :
7400 cat >>confdefs.h <<_ACEOF
7401#define HAVE_CCS_H 1
95eaa683
AK
7402_ACEOF
7403
f11781c5
AK
7404else
7405 $bailout
95eaa683
AK
7406fi
7407
f11781c5
AK
7408done
7409
7410 check_lib_no_libs ccs ccs_connect
7411 if test $NOTFOUND = 0; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7413$as_echo "no pkg for libccs, using -lccs" >&6; }
7414 CCS_LIBS="-lccs"
7415 HAVE_CCS=yes
7416 fi
7417else
7418 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
7419 CCS_LIBS=$pkg_cv_CCS_LIBS
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7421$as_echo "yes" >&6; }
7422 HAVE_CCS=yes
7423fi
7424
7425pkg_failed=no
7426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GULM" >&5
7427$as_echo_n "checking for GULM... " >&6; }
7428
7429if test -n "$GULM_CFLAGS"; then
7430 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
7431 elif test -n "$PKG_CONFIG"; then
7432 if test -n "$PKG_CONFIG" && \
7433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7434 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7435 ac_status=$?
7436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7437 test $ac_status = 0; }; then
7438 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
7439else
7440 pkg_failed=yes
7441fi
7442 else
7443 pkg_failed=untried
7444fi
7445if test -n "$GULM_LIBS"; then
7446 pkg_cv_GULM_LIBS="$GULM_LIBS"
7447 elif test -n "$PKG_CONFIG"; then
7448 if test -n "$PKG_CONFIG" && \
7449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7450 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7451 ac_status=$?
7452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7453 test $ac_status = 0; }; then
7454 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
7455else
7456 pkg_failed=yes
93bd259b 7457fi
f11781c5
AK
7458 else
7459 pkg_failed=untried
ad6254c5 7460fi
ad6254c5 7461
ad6254c5
AK
7462
7463
f11781c5
AK
7464if test $pkg_failed = yes; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466$as_echo "no" >&6; }
ad6254c5 7467
f11781c5
AK
7468if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7469 _pkg_short_errors_supported=yes
572fefeb 7470else
f11781c5 7471 _pkg_short_errors_supported=no
572fefeb 7472fi
f11781c5
AK
7473 if test $_pkg_short_errors_supported = yes; then
7474 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
7475 else
7476 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
7477 fi
7478 # Put the nasty error message in config.log where it belongs
7479 echo "$GULM_PKG_ERRORS" >&5
572fefeb 7480
f11781c5
AK
7481 NOTFOUND=0
7482 for ac_header in libgulm.h
7483do :
7484 ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7485if test "x$ac_cv_header_libgulm_h" = x""yes; then :
7486 cat >>confdefs.h <<_ACEOF
7487#define HAVE_LIBGULM_H 1
7488_ACEOF
572fefeb 7489
ad6254c5 7490else
f11781c5 7491 $bailout
d0191583 7492fi
8a2fc586 7493
f11781c5 7494done
8a2fc586 7495
f11781c5
AK
7496 check_lib_no_libs gulm lg_core_login
7497 if test $NOTFOUND = 0; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7499$as_echo "no pkg for libgulm, using -lgulm" >&6; }
7500 GULM_LIBS="-lgulm"
7501 HAVE_GULM=yes
7502 fi
7503elif test $pkg_failed = untried; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505$as_echo "no" >&6; }
7506 NOTFOUND=0
7507 for ac_header in libgulm.h
7508do :
7509 ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7510if test "x$ac_cv_header_libgulm_h" = x""yes; then :
7511 cat >>confdefs.h <<_ACEOF
7512#define HAVE_LIBGULM_H 1
7513_ACEOF
d179cc7a 7514
93bd259b 7515else
f11781c5 7516 $bailout
93bd259b
AK
7517fi
7518
f11781c5 7519done
2a9a80c9 7520
f11781c5
AK
7521 check_lib_no_libs gulm lg_core_login
7522 if test $NOTFOUND = 0; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7524$as_echo "no pkg for libgulm, using -lgulm" >&6; }
7525 GULM_LIBS="-lgulm"
7526 HAVE_GULM=yes
7527 fi
23b059e7 7528else
f11781c5
AK
7529 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
7530 GULM_LIBS=$pkg_cv_GULM_LIBS
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7532$as_echo "yes" >&6; }
7533 HAVE_GULM=yes
d0191583 7534fi
d0191583 7535fi
ad6254c5 7536
f11781c5 7537if test x$BUILDCMAN = xyes; then
ad6254c5 7538
f11781c5
AK
7539pkg_failed=no
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7541$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7542
f11781c5
AK
7543if test -n "$CMAN_CFLAGS"; then
7544 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7545 elif test -n "$PKG_CONFIG"; then
7546 if test -n "$PKG_CONFIG" && \
7547 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7548 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7549 ac_status=$?
7550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7551 test $ac_status = 0; }; then
7552 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7553else
7554 pkg_failed=yes
ad6254c5 7555fi
f11781c5
AK
7556 else
7557 pkg_failed=untried
ad6254c5 7558fi
f11781c5
AK
7559if test -n "$CMAN_LIBS"; then
7560 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7561 elif test -n "$PKG_CONFIG"; then
7562 if test -n "$PKG_CONFIG" && \
7563 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7564 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 7565 ac_status=$?
f11781c5
AK
7566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7567 test $ac_status = 0; }; then
7568 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7569else
f11781c5
AK
7570 pkg_failed=yes
7571fi
7572 else
7573 pkg_failed=untried
93bd259b
AK
7574fi
7575
f11781c5
AK
7576
7577
7578if test $pkg_failed = yes; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580$as_echo "no" >&6; }
7581
7582if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7583 _pkg_short_errors_supported=yes
7584else
7585 _pkg_short_errors_supported=no
93bd259b 7586fi
f11781c5
AK
7587 if test $_pkg_short_errors_supported = yes; then
7588 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7589 else
7590 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7591 fi
7592 # Put the nasty error message in config.log where it belongs
7593 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7594
f11781c5
AK
7595 NOTFOUND=0
7596 for ac_header in libcman.h
7597do :
7598 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7599if test "x$ac_cv_header_libcman_h" = x""yes; then :
7600 cat >>confdefs.h <<_ACEOF
7601#define HAVE_LIBCMAN_H 1
93bd259b
AK
7602_ACEOF
7603
f11781c5
AK
7604else
7605 $bailout
93bd259b
AK
7606fi
7607
f11781c5 7608done
93bd259b 7609
f11781c5
AK
7610 check_lib_no_libs cman cman_init
7611 if test $NOTFOUND = 0; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7613$as_echo "no pkg for libcman, using -lcman" >&6; }
7614 CMAN_LIBS="-lcman"
7615 HAVE_CMAN=yes
7616 fi
7617elif test $pkg_failed = untried; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619$as_echo "no" >&6; }
7620 NOTFOUND=0
7621 for ac_header in libcman.h
7622do :
7623 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7624if test "x$ac_cv_header_libcman_h" = x""yes; then :
7625 cat >>confdefs.h <<_ACEOF
7626#define HAVE_LIBCMAN_H 1
93bd259b 7627_ACEOF
93bd259b 7628
93bd259b 7629else
f11781c5 7630 $bailout
93bd259b
AK
7631fi
7632
f11781c5
AK
7633done
7634
7635 check_lib_no_libs cman cman_init
7636 if test $NOTFOUND = 0; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7638$as_echo "no pkg for libcman, using -lcman" >&6; }
7639 CMAN_LIBS="-lcman"
7640 HAVE_CMAN=yes
7641 fi
7642else
7643 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7644 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7646$as_echo "yes" >&6; }
7647 HAVE_CMAN=yes
93bd259b 7648fi
f11781c5
AK
7649 CHECKCONFDB=yes
7650 CHECKDLM=yes
93bd259b
AK
7651fi
7652
f11781c5
AK
7653if test x$BUILDCOROSYNC = xyes || \
7654 test x$BUILDOPENAIS = xyes; then
93bd259b 7655
f11781c5
AK
7656pkg_failed=no
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7658$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7659
f11781c5
AK
7660if test -n "$COROSYNC_CFLAGS"; then
7661 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7662 elif test -n "$PKG_CONFIG"; then
7663 if test -n "$PKG_CONFIG" && \
7664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7665 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7666 ac_status=$?
7667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7668 test $ac_status = 0; }; then
7669 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7670else
f11781c5
AK
7671 pkg_failed=yes
7672fi
7673 else
7674 pkg_failed=untried
7675fi
7676if test -n "$COROSYNC_LIBS"; then
7677 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7678 elif test -n "$PKG_CONFIG"; then
7679 if test -n "$PKG_CONFIG" && \
7680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7681 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7682 ac_status=$?
f11781c5
AK
7683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7684 test $ac_status = 0; }; then
7685 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7686else
f11781c5 7687 pkg_failed=yes
ad6254c5 7688fi
f11781c5
AK
7689 else
7690 pkg_failed=untried
ad6254c5 7691fi
ad6254c5 7692
72b2cb61 7693
72b2cb61 7694
f11781c5
AK
7695if test $pkg_failed = yes; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697$as_echo "no" >&6; }
19a2c6e0 7698
f11781c5
AK
7699if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7700 _pkg_short_errors_supported=yes
7701else
7702 _pkg_short_errors_supported=no
ad6254c5 7703fi
f11781c5
AK
7704 if test $_pkg_short_errors_supported = yes; then
7705 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7706 else
7707 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7708 fi
7709 # Put the nasty error message in config.log where it belongs
7710 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7711
f11781c5
AK
7712 $bailout
7713elif test $pkg_failed = untried; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715$as_echo "no" >&6; }
7716 $bailout
7717else
7718 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7719 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7721$as_echo "yes" >&6; }
7722 HAVE_COROSYNC=yes
7723fi
7724 CHECKCONFDB=yes
ad6254c5
AK
7725fi
7726
f11781c5 7727if test x$BUILDCOROSYNC = xyes; then
f30875db 7728
f11781c5
AK
7729pkg_failed=no
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7731$as_echo_n "checking for QUORUM... " >&6; }
7732
7733if test -n "$QUORUM_CFLAGS"; then
7734 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7735 elif test -n "$PKG_CONFIG"; then
7736 if test -n "$PKG_CONFIG" && \
7737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7738 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7739 ac_status=$?
f11781c5
AK
7740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7741 test $ac_status = 0; }; then
7742 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7743else
f11781c5 7744 pkg_failed=yes
f30875db 7745fi
f11781c5
AK
7746 else
7747 pkg_failed=untried
f30875db 7748fi
f11781c5
AK
7749if test -n "$QUORUM_LIBS"; then
7750 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7751 elif test -n "$PKG_CONFIG"; then
7752 if test -n "$PKG_CONFIG" && \
7753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7754 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7755 ac_status=$?
7756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7757 test $ac_status = 0; }; then
7758 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7759else
f11781c5 7760 pkg_failed=yes
f30875db 7761fi
f11781c5
AK
7762 else
7763 pkg_failed=untried
7764fi
7765
f30875db 7766
f11781c5
AK
7767
7768if test $pkg_failed = yes; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770$as_echo "no" >&6; }
7771
7772if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7773 _pkg_short_errors_supported=yes
7774else
7775 _pkg_short_errors_supported=no
f30875db 7776fi
f11781c5
AK
7777 if test $_pkg_short_errors_supported = yes; then
7778 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7779 else
7780 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7781 fi
7782 # Put the nasty error message in config.log where it belongs
7783 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7784
f11781c5
AK
7785 $bailout
7786elif test $pkg_failed = untried; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788$as_echo "no" >&6; }
7789 $bailout
7790else
7791 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7792 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7794$as_echo "yes" >&6; }
7795 HAVE_QUORUM=yes
7796fi
7797 CHECKCPG=yes
7798 CHECKDLM=yes
d0191583
JM
7799fi
7800
f11781c5 7801if test x$BUILDOPENAIS = xyes; then
d0191583 7802
f11781c5
AK
7803pkg_failed=no
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7805$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7806
f11781c5
AK
7807if test -n "$SALCK_CFLAGS"; then
7808 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7809 elif test -n "$PKG_CONFIG"; then
7810 if test -n "$PKG_CONFIG" && \
7811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7812 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7813 ac_status=$?
7814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7815 test $ac_status = 0; }; then
7816 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7817else
7818 pkg_failed=yes
7819fi
7820 else
7821 pkg_failed=untried
7822fi
7823if test -n "$SALCK_LIBS"; then
7824 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7825 elif test -n "$PKG_CONFIG"; then
7826 if test -n "$PKG_CONFIG" && \
7827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7828 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7829 ac_status=$?
f11781c5
AK
7830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7831 test $ac_status = 0; }; then
7832 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7833else
f11781c5 7834 pkg_failed=yes
8a2fc586 7835fi
f11781c5
AK
7836 else
7837 pkg_failed=untried
8a2fc586 7838fi
d0191583 7839
d0191583 7840
f8f6ec92 7841
f11781c5
AK
7842if test $pkg_failed = yes; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844$as_echo "no" >&6; }
8a2fc586 7845
f11781c5
AK
7846if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7847 _pkg_short_errors_supported=yes
ad6254c5 7848else
f11781c5
AK
7849 _pkg_short_errors_supported=no
7850fi
7851 if test $_pkg_short_errors_supported = yes; then
7852 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7853 else
7854 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7855 fi
7856 # Put the nasty error message in config.log where it belongs
7857 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7858
f11781c5
AK
7859 $bailout
7860elif test $pkg_failed = untried; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862$as_echo "no" >&6; }
7863 $bailout
ad6254c5 7864else
f11781c5
AK
7865 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7866 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7868$as_echo "yes" >&6; }
7869 HAVE_SALCK=yes
ad6254c5 7870fi
f11781c5 7871 CHECKCPG=yes
ad6254c5 7872fi
ad6254c5 7873
72b2cb61 7874
f8f6ec92 7875
f11781c5 7876if test x$CHECKCONFDB = xyes; then
f8f6ec92 7877
f11781c5
AK
7878pkg_failed=no
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7880$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7881
f11781c5
AK
7882if test -n "$CONFDB_CFLAGS"; then
7883 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7884 elif test -n "$PKG_CONFIG"; then
7885 if test -n "$PKG_CONFIG" && \
7886 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7887 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7888 ac_status=$?
f11781c5
AK
7889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7890 test $ac_status = 0; }; then
7891 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7892else
f11781c5
AK
7893 pkg_failed=yes
7894fi
7895 else
7896 pkg_failed=untried
7897fi
7898if test -n "$CONFDB_LIBS"; then
7899 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7900 elif test -n "$PKG_CONFIG"; then
7901 if test -n "$PKG_CONFIG" && \
7902 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7903 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7904 ac_status=$?
7905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7906 test $ac_status = 0; }; then
7907 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7908else
7909 pkg_failed=yes
7910fi
7911 else
7912 pkg_failed=untried
f8f6ec92
ZK
7913fi
7914
f8f6ec92 7915
66e941e8 7916
f11781c5
AK
7917if test $pkg_failed = yes; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919$as_echo "no" >&6; }
7920
7921if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7922 _pkg_short_errors_supported=yes
f8f6ec92 7923else
f11781c5 7924 _pkg_short_errors_supported=no
66e941e8 7925fi
f11781c5
AK
7926 if test $_pkg_short_errors_supported = yes; then
7927 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7928 else
7929 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7930 fi
7931 # Put the nasty error message in config.log where it belongs
7932 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7933
f11781c5
AK
7934 HAVE_CONFDB=no
7935elif test $pkg_failed = untried; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937$as_echo "no" >&6; }
7938 HAVE_CONFDB=no
7939else
7940 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7941 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7943$as_echo "yes" >&6; }
7944 HAVE_CONFDB=yes
66e941e8 7945fi
f11781c5
AK
7946
7947 for ac_header in corosync/confdb.h
7948do :
7949 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7950if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7951 cat >>confdefs.h <<_ACEOF
f11781c5 7952#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7953_ACEOF
f11781c5 7954 HAVE_CONFDB_H=yes
66e941e8 7955else
f11781c5 7956 HAVE_CONFDB_H=no
66e941e8 7957fi
dd1f2c09
MB
7958
7959done
7960
7961
f11781c5
AK
7962 if test x$HAVE_CONFDB != xyes && \
7963 test x$HAVE_CONFDB_H = xyes; then
7964 check_lib_no_libs confdb confdb_initialize
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7966$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7967 CONFDB_LIBS="-lconfdb"
7968 HAVE_CONFDB=yes
7969 fi
7970
7971 if test x$BUILDCOROSYNC = xyes && \
7972 test x$HAVE_CONFDB != xyes &&
7973 test x$CLVMD != xall; then
7974 as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5
7975 fi
dd1f2c09 7976fi
f11781c5
AK
7977
7978if test x$CHECKCPG = xyes; then
7979
7980pkg_failed=no
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7982$as_echo_n "checking for CPG... " >&6; }
7983
7984if test -n "$CPG_CFLAGS"; then
7985 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7986 elif test -n "$PKG_CONFIG"; then
7987 if test -n "$PKG_CONFIG" && \
7988 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7989 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7990 ac_status=$?
7991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7992 test $ac_status = 0; }; then
7993 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 7994else
f11781c5
AK
7995 pkg_failed=yes
7996fi
7997 else
7998 pkg_failed=untried
7999fi
8000if test -n "$CPG_LIBS"; then
8001 pkg_cv_CPG_LIBS="$CPG_LIBS"
8002 elif test -n "$PKG_CONFIG"; then
8003 if test -n "$PKG_CONFIG" && \
8004 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8005 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 8006 ac_status=$?
f11781c5
AK
8007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8008 test $ac_status = 0; }; then
8009 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 8010else
f11781c5
AK
8011 pkg_failed=yes
8012fi
8013 else
8014 pkg_failed=untried
8015fi
8016
8017
8018
8019if test $pkg_failed = yes; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021$as_echo "no" >&6; }
8022
8023if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8024 _pkg_short_errors_supported=yes
8025else
8026 _pkg_short_errors_supported=no
8027fi
8028 if test $_pkg_short_errors_supported = yes; then
8029 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8030 else
8031 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8032 fi
8033 # Put the nasty error message in config.log where it belongs
8034 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 8035
f11781c5
AK
8036 $bailout
8037elif test $pkg_failed = untried; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039$as_echo "no" >&6; }
8040 $bailout
8041else
8042 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8043 CPG_LIBS=$pkg_cv_CPG_LIBS
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8045$as_echo "yes" >&6; }
8046 HAVE_CPG=yes
8047fi
dd1f2c09
MB
8048fi
8049
f11781c5 8050if test x$CHECKDLM = xyes; then
dd1f2c09 8051
f11781c5
AK
8052pkg_failed=no
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
8054$as_echo_n "checking for DLM... " >&6; }
8055
8056if test -n "$DLM_CFLAGS"; then
8057 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
8058 elif test -n "$PKG_CONFIG"; then
8059 if test -n "$PKG_CONFIG" && \
8060 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8061 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 8062 ac_status=$?
f11781c5
AK
8063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8064 test $ac_status = 0; }; then
8065 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 8066else
f11781c5
AK
8067 pkg_failed=yes
8068fi
8069 else
8070 pkg_failed=untried
8071fi
8072if test -n "$DLM_LIBS"; then
8073 pkg_cv_DLM_LIBS="$DLM_LIBS"
8074 elif test -n "$PKG_CONFIG"; then
8075 if test -n "$PKG_CONFIG" && \
8076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8077 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8078 ac_status=$?
8079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8080 test $ac_status = 0; }; then
8081 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8082else
8083 pkg_failed=yes
8084fi
8085 else
8086 pkg_failed=untried
dd1f2c09
MB
8087fi
8088
dd1f2c09 8089
dd1f2c09 8090
f11781c5
AK
8091if test $pkg_failed = yes; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093$as_echo "no" >&6; }
8094
8095if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8096 _pkg_short_errors_supported=yes
dd1f2c09 8097else
f11781c5 8098 _pkg_short_errors_supported=no
dd1f2c09 8099fi
f11781c5
AK
8100 if test $_pkg_short_errors_supported = yes; then
8101 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8102 else
8103 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8104 fi
8105 # Put the nasty error message in config.log where it belongs
8106 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 8107
f11781c5
AK
8108 NOTFOUND=0
8109 for ac_header in libdlm.h
8110do :
8111 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8112if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 8113 cat >>confdefs.h <<_ACEOF
f11781c5 8114#define HAVE_LIBDLM_H 1
dd1f2c09
MB
8115_ACEOF
8116
f11781c5
AK
8117else
8118 $bailout
dd1f2c09 8119fi
f8f6ec92
ZK
8120
8121done
8122
f11781c5
AK
8123 check_lib_no_libs dlm dlm_lock -lpthread
8124 if test $NOTFOUND = 0; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8126$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8127 DLM_LIBS="-ldlm -lpthread"
8128 HAVE_DLM=yes
8129 fi
8130elif test $pkg_failed = untried; then
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132$as_echo "no" >&6; }
8133 NOTFOUND=0
8134 for ac_header in libdlm.h
8135do :
8136 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8137if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8138 cat >>confdefs.h <<_ACEOF
8139#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
8140_ACEOF
8141
f8f6ec92 8142else
f11781c5 8143 $bailout
ad6254c5
AK
8144fi
8145
f11781c5 8146done
8b1a3214 8147
f11781c5
AK
8148 check_lib_no_libs dlm dlm_lock -lpthread
8149 if test $NOTFOUND = 0; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8151$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8152 DLM_LIBS="-ldlm -lpthread"
8153 HAVE_DLM=yes
8154 fi
8b1a3214 8155else
f11781c5
AK
8156 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8157 DLM_LIBS=$pkg_cv_DLM_LIBS
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8159$as_echo "yes" >&6; }
8160 HAVE_DLM=yes
8b1a3214 8161fi
8b1a3214
AK
8162fi
8163
f11781c5
AK
8164if test x$CLVMD = xall; then
8165 CLVMD=none
8166 CLVMD_CMANAGERS=""
8167 CLVMD_NEEDS_QDISKD=no
8168 if test x$HAVE_CCS = xyes && \
8169 test x$HAVE_GULM = xyes; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd gulm cluster manager" >&5
8171$as_echo "Enabling clvmd gulm cluster manager" >&6; }
8172 CLVMD="$CLVMD,gulm"
8173 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
8174 CLVMD_NEEDS_QDISKD=yes
8175 fi
8176 if test x$HAVE_CMAN = xyes && \
8177 test x$HAVE_DLM = xyes; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8179$as_echo "Enabling clvmd cman cluster manager" >&6; }
8180 CLVMD="$CLVMD,cman"
8181 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8182 CLVMD_NEEDS_QDISKD=yes
8183 fi
8184 if test x$HAVE_COROSYNC = xyes && \
8185 test x$HAVE_QUORUM = xyes && \
8186 test x$HAVE_CPG = xyes && \
8187 test x$HAVE_DLM = xyes && \
8188 test x$HAVE_CONFDB = xyes; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8190$as_echo "Enabling clvmd corosync cluster manager" >&6; }
8191 CLVMD="$CLVMD,corosync"
8192 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
8193 fi
8194 if test x$HAVE_COROSYNC = xyes && \
8195 test x$HAVE_CPG = xyes && \
8196 test x$HAVE_SALCK = xyes; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8198$as_echo "Enabling clvmd openais cluster manager" >&6; }
8199 CLVMD="$CLVMD,openais"
8200 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8201 fi
8202 if test x$CLVMD_NEEDS_QDISKD != xno; then
8203 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8204 fi
8205 if test x$CLVMD = xnone; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8207$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
8208 fi
8209fi
8210
ad6254c5 8211################################################################################
f11781c5 8212if test "x$CLVMD" != xnone; then
ad6254c5 8213
f11781c5
AK
8214# Check whether --with-clvmd-pidfile was given.
8215if test "${with_clvmd_pidfile+set}" = set; then :
8216 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 8217else
f11781c5 8218 CLVMD_PIDFILE="/var/run/clvmd.pid"
ad6254c5 8219fi
7a197a62 8220
ad6254c5 8221
f11781c5
AK
8222cat >>confdefs.h <<_ACEOF
8223#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 8224_ACEOF
ad6254c5 8225
ad6254c5 8226fi
7a197a62 8227
f11781c5
AK
8228################################################################################
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8230$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8231# Check whether --enable-cmirrord was given.
8232if test "${enable_cmirrord+set}" = set; then :
8233 enableval=$enable_cmirrord; CMIRRORD=$enableval
8234else
8235 CMIRRORD=no
8236fi
8237
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8239$as_echo "$CMIRRORD" >&6; }
ad6254c5 8240
f11781c5 8241BUILD_CMIRRORD=$CMIRRORD
7a197a62 8242
f11781c5
AK
8243################################################################################
8244if test "x$BUILD_CMIRRORD" = xyes; then
8245
8246# Check whether --with-cmirrord-pidfile was given.
8247if test "${with_cmirrord_pidfile+set}" = set; then :
8248 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 8249else
f11781c5 8250 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
ad6254c5 8251fi
ad6254c5 8252
72b2cb61 8253
f11781c5
AK
8254cat >>confdefs.h <<_ACEOF
8255#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8256_ACEOF
8257
ad6254c5
AK
8258fi
8259
f11781c5
AK
8260################################################################################
8261if [ "x$BUILD_CMIRRORD" = xyes ]; then
8262 if test x$PKGCONFIG_INIT != x1; then
8263 pkg_config_init
8264 fi
ad6254c5 8265
f11781c5
AK
8266pkg_failed=no
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8268$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8269
f11781c5
AK
8270if test -n "$SACKPT_CFLAGS"; then
8271 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8272 elif test -n "$PKG_CONFIG"; then
8273 if test -n "$PKG_CONFIG" && \
8274 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8275 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8276 ac_status=$?
8277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8278 test $ac_status = 0; }; then
8279 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8280else
f11781c5
AK
8281 pkg_failed=yes
8282fi
8283 else
8284 pkg_failed=untried
8285fi
8286if test -n "$SACKPT_LIBS"; then
8287 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8288 elif test -n "$PKG_CONFIG"; then
8289 if test -n "$PKG_CONFIG" && \
8290 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8291 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 8292 ac_status=$?
f11781c5
AK
8293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8294 test $ac_status = 0; }; then
8295 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8296else
f11781c5
AK
8297 pkg_failed=yes
8298fi
8299 else
8300 pkg_failed=untried
8301fi
539f4a77
ZK
8302
8303
539f4a77 8304
f11781c5
AK
8305if test $pkg_failed = yes; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307$as_echo "no" >&6; }
8308
8309if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8310 _pkg_short_errors_supported=yes
539f4a77 8311else
f11781c5 8312 _pkg_short_errors_supported=no
539f4a77 8313fi
f11781c5
AK
8314 if test $_pkg_short_errors_supported = yes; then
8315 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8316 else
8317 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8318 fi
8319 # Put the nasty error message in config.log where it belongs
8320 echo "$SACKPT_PKG_ERRORS" >&5
8321
8322 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8323
8324$SACKPT_PKG_ERRORS
8325
8326Consider adjusting the PKG_CONFIG_PATH environment variable if you
8327installed software in a non-standard prefix.
8328
8329Alternatively, you may set the environment variables SACKPT_CFLAGS
8330and SACKPT_LIBS to avoid the need to call pkg-config.
8331See the pkg-config man page for more details." "$LINENO" 5
8332
8333elif test $pkg_failed = untried; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335$as_echo "no" >&6; }
8336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8338as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8339is in your PATH or set the PKG_CONFIG environment variable to the full
8340path to pkg-config.
8341
8342Alternatively, you may set the environment variables SACKPT_CFLAGS
8343and SACKPT_LIBS to avoid the need to call pkg-config.
8344See the pkg-config man page for more details.
8345
8346To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8347See \`config.log' for more details" "$LINENO" 5; }
8348
539f4a77 8349else
f11781c5
AK
8350 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8351 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8353$as_echo "yes" >&6; }
539f4a77 8354
539f4a77 8355fi
f11781c5 8356 if test x$HAVE_CPG != xyes; then
539f4a77 8357
f11781c5
AK
8358pkg_failed=no
8359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8360$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8361
f11781c5
AK
8362if test -n "$CPG_CFLAGS"; then
8363 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8364 elif test -n "$PKG_CONFIG"; then
8365 if test -n "$PKG_CONFIG" && \
8366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8367 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8368 ac_status=$?
f11781c5
AK
8369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8370 test $ac_status = 0; }; then
8371 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8372else
f11781c5
AK
8373 pkg_failed=yes
8374fi
8375 else
8376 pkg_failed=untried
8377fi
8378if test -n "$CPG_LIBS"; then
8379 pkg_cv_CPG_LIBS="$CPG_LIBS"
8380 elif test -n "$PKG_CONFIG"; then
8381 if test -n "$PKG_CONFIG" && \
8382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8383 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8384 ac_status=$?
8385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8386 test $ac_status = 0; }; then
8387 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8388else
8389 pkg_failed=yes
8390fi
8391 else
8392 pkg_failed=untried
8393fi
8394
8395
8396
8397if test $pkg_failed = yes; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399$as_echo "no" >&6; }
ad6254c5 8400
f11781c5
AK
8401if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8402 _pkg_short_errors_supported=yes
8403else
8404 _pkg_short_errors_supported=no
ad6254c5 8405fi
f11781c5
AK
8406 if test $_pkg_short_errors_supported = yes; then
8407 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8408 else
8409 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8410 fi
8411 # Put the nasty error message in config.log where it belongs
8412 echo "$CPG_PKG_ERRORS" >&5
8413
8414 as_fn_error $? "Package requirements (libcpg) were not met:
8415
8416$CPG_PKG_ERRORS
8417
8418Consider adjusting the PKG_CONFIG_PATH environment variable if you
8419installed software in a non-standard prefix.
8420
8421Alternatively, you may set the environment variables CPG_CFLAGS
8422and CPG_LIBS to avoid the need to call pkg-config.
8423See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8424
f11781c5
AK
8425elif test $pkg_failed = untried; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427$as_echo "no" >&6; }
8428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8430as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8431is in your PATH or set the PKG_CONFIG environment variable to the full
8432path to pkg-config.
539f4a77 8433
f11781c5
AK
8434Alternatively, you may set the environment variables CPG_CFLAGS
8435and CPG_LIBS to avoid the need to call pkg-config.
8436See the pkg-config man page for more details.
539f4a77 8437
f11781c5
AK
8438To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8439See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8440
539f4a77 8441else
f11781c5
AK
8442 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8443 CPG_LIBS=$pkg_cv_CPG_LIBS
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8445$as_echo "yes" >&6; }
bc1024f8 8446
f11781c5
AK
8447fi
8448 fi
8449fi
8450
8451################################################################################
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8453$as_echo_n "checking whether to enable debugging... " >&6; }
8454# Check whether --enable-debug was given.
8455if test "${enable_debug+set}" = set; then :
8456 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8457else
f11781c5
AK
8458 DEBUG=no
8459fi
8460
8461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8462$as_echo "$DEBUG" >&6; }
539f4a77 8463
f11781c5
AK
8464if test x$DEBUG = xyes; then
8465 COPTIMISE_FLAG=
8466else
8467 CSCOPE_CMD=
06e459df
JM
8468fi
8469
f11781c5
AK
8470################################################################################
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8472$as_echo_n "checking for C optimisation flag... " >&6; }
8473
8474# Check whether --with-optimisation was given.
8475if test "${with_optimisation+set}" = set; then :
8476 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8477fi
539f4a77 8478
f11781c5
AK
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8480$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8481
f11781c5
AK
8482################################################################################
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8484$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8485# Check whether --enable-profiling was given.
8486if test "${enable_profiling+set}" = set; then :
8487 enableval=$enable_profiling; PROFILING=$enableval
8488else
8489 PROFILING=no
539f4a77
ZK
8490fi
8491
f11781c5
AK
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8493$as_echo "$PROFILING" >&6; }
8494
8495if test "x$PROFILING" = xyes; then
8496 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8497 # Extract the first word of "lcov", so it can be a program name with args.
8498set dummy lcov; ac_word=$2
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500$as_echo_n "checking for $ac_word... " >&6; }
8501if test "${ac_cv_path_LCOV+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
539f4a77 8503else
f11781c5
AK
8504 case $LCOV in
8505 [\\/]* | ?:[\\/]*)
8506 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8507 ;;
8508 *)
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510for as_dir in $PATH
8511do
8512 IFS=$as_save_IFS
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8516 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 break 2
8519 fi
8520done
8521 done
8522IFS=$as_save_IFS
539f4a77 8523
f11781c5
AK
8524 ;;
8525esac
8526fi
8527LCOV=$ac_cv_path_LCOV
8528if test -n "$LCOV"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8530$as_echo "$LCOV" >&6; }
8531else
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533$as_echo "no" >&6; }
539f4a77
ZK
8534fi
8535
bc1024f8 8536
f11781c5
AK
8537 # Extract the first word of "genhtml", so it can be a program name with args.
8538set dummy genhtml; ac_word=$2
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540$as_echo_n "checking for $ac_word... " >&6; }
8541if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8542 $as_echo_n "(cached) " >&6
ad6254c5 8543else
f11781c5
AK
8544 case $GENHTML in
8545 [\\/]* | ?:[\\/]*)
8546 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8547 ;;
8548 *)
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550for as_dir in $PATH
8551do
8552 IFS=$as_save_IFS
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 break 2
8559 fi
8560done
8561 done
8562IFS=$as_save_IFS
8a2fc586 8563
f11781c5
AK
8564 ;;
8565esac
8566fi
8567GENHTML=$ac_cv_path_GENHTML
8568if test -n "$GENHTML"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8570$as_echo "$GENHTML" >&6; }
8571else
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573$as_echo "no" >&6; }
8574fi
8a2fc586 8575
8a2fc586 8576
f11781c5
AK
8577 if test -z "$LCOV" -o -z "$GENHTML"; then
8578 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8579 fi
8580 # Extract the first word of "genpng", so it can be a program name with args.
8581set dummy genpng; ac_word=$2
8582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583$as_echo_n "checking for $ac_word... " >&6; }
8584if test "${ac_cv_path_GENPNG+set}" = set; then :
8585 $as_echo_n "(cached) " >&6
8586else
8587 case $GENPNG in
8588 [\\/]* | ?:[\\/]*)
8589 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8590 ;;
8591 *)
8592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593for as_dir in $PATH
8594do
8595 IFS=$as_save_IFS
8596 test -z "$as_dir" && as_dir=.
8597 for ac_exec_ext in '' $ac_executable_extensions; do
8598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8599 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8601 break 2
8602 fi
8603done
8604 done
8605IFS=$as_save_IFS
ad6254c5 8606
f11781c5 8607 ;;
7a197a62 8608esac
f11781c5
AK
8609fi
8610GENPNG=$ac_cv_path_GENPNG
8611if test -n "$GENPNG"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8613$as_echo "$GENPNG" >&6; }
ad6254c5 8614else
f11781c5
AK
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616$as_echo "no" >&6; }
8617fi
8618
8619
8620 if test -n "$GENPNG"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8622$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8623 if $GENPNG --help > /dev/null 2>&1 ; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8625$as_echo "ok" >&6; }
8626 GENHTML="$GENHTML --frames"
8627 else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8629$as_echo "not supported" >&6; }
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8631$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8632 GENPNG=
8633 fi
8634 fi
8635fi
ad6254c5 8636
f11781c5
AK
8637################################################################################
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8639$as_echo_n "checking whether to enable unit testing... " >&6; }
8640# Check whether --enable-testing was given.
8641if test "${enable_testing+set}" = set; then :
8642 enableval=$enable_testing; TESTING=$enableval
8643else
8644 TESTING=no
ad6254c5 8645fi
7a197a62 8646
f11781c5
AK
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8648$as_echo "$TESTING" >&6; }
72b2cb61 8649
f11781c5
AK
8650if test "$TESTING" = yes; then
8651 # Extract the first word of "ruby1.9", so it can be a program name with args.
8652set dummy ruby1.9; ac_word=$2
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8654$as_echo_n "checking for $ac_word... " >&6; }
8655if test "${ac_cv_path_RUBY19+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
8657else
8658 case $RUBY19 in
8659 [\\/]* | ?:[\\/]*)
8660 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
8661 ;;
8662 *)
8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664for as_dir in $PATH
8665do
8666 IFS=$as_save_IFS
8667 test -z "$as_dir" && as_dir=.
8668 for ac_exec_ext in '' $ac_executable_extensions; do
8669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8670 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 break 2
8673 fi
bc1024f8 8674done
f11781c5
AK
8675 done
8676IFS=$as_save_IFS
ad6254c5 8677
f11781c5
AK
8678 ;;
8679esac
ad6254c5 8680fi
f11781c5
AK
8681RUBY19=$ac_cv_path_RUBY19
8682if test -n "$RUBY19"; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8684$as_echo "$RUBY19" >&6; }
ad6254c5 8685else
f11781c5
AK
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687$as_echo "no" >&6; }
7a197a62
AK
8688fi
8689
ad6254c5 8690
f11781c5
AK
8691 # Extract the first word of "valgrind", so it can be a program name with args.
8692set dummy valgrind; ac_word=$2
8693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 8694$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 8695if test "${ac_cv_path_VALGRIND+set}" = set; then :
ec6a6fbe 8696 $as_echo_n "(cached) " >&6
ad6254c5 8697else
f11781c5 8698 case $VALGRIND in
ad6254c5 8699 [\\/]* | ?:[\\/]*)
f11781c5 8700 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
ad6254c5
AK
8701 ;;
8702 *)
8703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704for as_dir in $PATH
8705do
8706 IFS=$as_save_IFS
8707 test -z "$as_dir" && as_dir=.
f11781c5 8708 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 8709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
8710 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
8711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
8712 break 2
8713 fi
8714done
f11781c5 8715 done
7a197a62 8716IFS=$as_save_IFS
ad6254c5
AK
8717
8718 ;;
8719esac
8720fi
f11781c5
AK
8721VALGRIND=$ac_cv_path_VALGRIND
8722if test -n "$VALGRIND"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8724$as_echo "$VALGRIND" >&6; }
ad6254c5 8725else
f11781c5 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 8727$as_echo "no" >&6; }
ad6254c5
AK
8728fi
8729
7a197a62 8730
f11781c5
AK
8731 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8732 as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5
8733 fi
8734fi
ad6254c5 8735
f11781c5
AK
8736################################################################################
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8738$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8739# Check whether --enable-valgrind_pool was given.
8740if test "${enable_valgrind_pool+set}" = set; then :
8741 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8742else
8743 VALGRIND_POOL=no
8744fi
8745
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8747$as_echo "$VALGRIND_POOL" >&6; }
8748
8749if test "$VALGRIND_POOL" = yes; then
8750 for ac_header in valgrind/memcheck.h
8751do :
8752 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8753if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8754 cat >>confdefs.h <<_ACEOF
8755#define HAVE_VALGRIND_MEMCHECK_H 1
8756_ACEOF
ad6254c5 8757
ad6254c5 8758else
f11781c5 8759 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8760fi
8761
f11781c5
AK
8762done
8763
8764
8765$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8766
ad6254c5
AK
8767fi
8768
8769################################################################################
f11781c5
AK
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8771$as_echo_n "checking whether to use device-mapper... " >&6; }
8772# Check whether --enable-devmapper was given.
8773if test "${enable_devmapper+set}" = set; then :
8774 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8775fi
8776
f11781c5
AK
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8778$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8779
f11781c5 8780if test x$DEVMAPPER = xyes; then
ad6254c5 8781
f11781c5
AK
8782$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8783
8784fi
8785
8786################################################################################
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8788$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8789# Check whether --enable-udev_sync was given.
8790if test "${enable_udev_sync+set}" = set; then :
8791 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8792else
f11781c5 8793 UDEV_SYNC=no
7a197a62 8794fi
ad6254c5 8795
f11781c5
AK
8796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8797$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8798
f11781c5 8799if test x$UDEV_SYNC = xyes; then
86ba564a
AK
8800 if test x$PKGCONFIG_INIT != x1; then
8801 pkg_config_init
8802 fi
7a197a62 8803
d93275eb
PR
8804pkg_failed=no
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8806$as_echo_n "checking for UDEV... " >&6; }
8807
8808if test -n "$UDEV_CFLAGS"; then
8809 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8810 elif test -n "$PKG_CONFIG"; then
8811 if test -n "$PKG_CONFIG" && \
8812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8813 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8814 ac_status=$?
8815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8816 test $ac_status = 0; }; then
8817 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
68f2de6d 8818else
d93275eb 8819 pkg_failed=yes
f11781c5 8820fi
d93275eb
PR
8821 else
8822 pkg_failed=untried
f11781c5 8823fi
d93275eb
PR
8824if test -n "$UDEV_LIBS"; then
8825 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8826 elif test -n "$PKG_CONFIG"; then
8827 if test -n "$PKG_CONFIG" && \
8828 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8829 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8830 ac_status=$?
8831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8832 test $ac_status = 0; }; then
8833 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
f11781c5 8834else
d93275eb 8835 pkg_failed=yes
68f2de6d 8836fi
d93275eb
PR
8837 else
8838 pkg_failed=untried
8839fi
8840
8841
8842
8843if test $pkg_failed = yes; then
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845$as_echo "no" >&6; }
8846
8847if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8848 _pkg_short_errors_supported=yes
8849else
8850 _pkg_short_errors_supported=no
8851fi
8852 if test $_pkg_short_errors_supported = yes; then
8853 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8854 else
8855 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8856 fi
8857 # Put the nasty error message in config.log where it belongs
8858 echo "$UDEV_PKG_ERRORS" >&5
8859
8860 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8861
8862$UDEV_PKG_ERRORS
8863
8864Consider adjusting the PKG_CONFIG_PATH environment variable if you
8865installed software in a non-standard prefix.
8866
8867Alternatively, you may set the environment variables UDEV_CFLAGS
8868and UDEV_LIBS to avoid the need to call pkg-config.
8869See the pkg-config man page for more details." "$LINENO" 5
68f2de6d 8870
d93275eb
PR
8871elif test $pkg_failed = untried; then
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873$as_echo "no" >&6; }
8874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8876as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8877is in your PATH or set the PKG_CONFIG environment variable to the full
8878path to pkg-config.
8879
8880Alternatively, you may set the environment variables UDEV_CFLAGS
8881and UDEV_LIBS to avoid the need to call pkg-config.
8882See the pkg-config man page for more details.
8883
8884To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8885See \`config.log' for more details" "$LINENO" 5; }
8886
8887else
8888 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8889 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8891$as_echo "yes" >&6; }
8892 UDEV_PC="libudev"
8893fi
68f2de6d 8894
f11781c5 8895$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8896
f11781c5
AK
8897fi
8898
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8900$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8901# Check whether --enable-udev_rules was given.
8902if test "${enable_udev_rules+set}" = set; then :
8903 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 8904else
f11781c5 8905 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
8906fi
8907
f11781c5
AK
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8909$as_echo "$UDEV_RULES" >&6; }
68f2de6d 8910
a5f46f6a 8911################################################################################
f11781c5
AK
8912# Check whether --enable-compat was given.
8913if test "${enable_compat+set}" = set; then :
8914 enableval=$enable_compat; DM_COMPAT=$enableval
8915else
8916 DM_COMPAT=no
8917fi
a5f46f6a 8918
f11781c5 8919
2061c0ec
AK
8920if test x$DM_COMPAT = xyes; then
8921 as_fn_error $? "--enable-compat is not currently supported.
8922Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8923ioctl protocol is supported.
8924 " "$LINENO" 5
8925fi
8926
f11781c5
AK
8927################################################################################
8928# Check whether --enable-units-compat was given.
8929if test "${enable_units_compat+set}" = set; then :
8930 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 8931else
f11781c5 8932 UNITS_COMPAT=no
a5f46f6a
AK
8933fi
8934
8935
f11781c5 8936if test x$UNITS_COMPAT = xyes; then
78ce7acc 8937
f11781c5
AK
8938$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8939
8940fi
8941
8942################################################################################
8943# Check whether --enable-ioctl was given.
8944if test "${enable_ioctl+set}" = set; then :
8945 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
8946fi
8947
a5f46f6a 8948
ad6254c5 8949################################################################################
f11781c5
AK
8950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8951$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8952# Check whether --enable-o_direct was given.
8953if test "${enable_o_direct+set}" = set; then :
8954 enableval=$enable_o_direct; ODIRECT=$enableval
8955fi
ad6254c5 8956
f11781c5
AK
8957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8958$as_echo "$ODIRECT" >&6; }
8959
8960if test x$ODIRECT = xyes; then
8961
8962$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 8963
ad6254c5 8964fi
ad6254c5 8965
f11781c5
AK
8966################################################################################
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8968$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8969# Check whether --enable-applib was given.
8970if test "${enable_applib+set}" = set; then :
8971 enableval=$enable_applib; APPLIB=$enableval
8972else
8973 APPLIB=no
ad6254c5 8974fi
7a197a62 8975
f11781c5
AK
8976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8977$as_echo "$APPLIB" >&6; }
ad6254c5 8978
f11781c5
AK
8979test x$APPLIB = xyes \
8980 && LVM2APP_LIB=-llvm2app \
8981 || LVM2APP_LIB=
ad6254c5 8982
f11781c5
AK
8983################################################################################
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8985$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8986# Check whether --enable-cmdlib was given.
8987if test "${enable_cmdlib+set}" = set; then :
8988 enableval=$enable_cmdlib; CMDLIB=$enableval
8989else
8990 CMDLIB=no
ad6254c5 8991fi
7a197a62 8992
f11781c5
AK
8993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8994$as_echo "$CMDLIB" >&6; }
7a197a62 8995
f11781c5
AK
8996test x$CMDLIB = xyes \
8997 && LVM2CMD_LIB=-llvm2cmd \
8998 || LVM2CMD_LIB=
8999
9000################################################################################
9001# Check whether --enable-pkgconfig was given.
9002if test "${enable_pkgconfig+set}" = set; then :
9003 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 9004else
f11781c5 9005 PKGCONFIG=no
ad6254c5 9006fi
ad6254c5 9007
ad6254c5 9008
f11781c5
AK
9009################################################################################
9010# Check whether --enable-write_install was given.
9011if test "${enable_write_install+set}" = set; then :
9012 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 9013else
f11781c5 9014 WRITE_INSTALL=no
ad6254c5
AK
9015fi
9016
ad6254c5 9017
f11781c5
AK
9018################################################################################
9019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
9020$as_echo_n "checking whether to install fsadm... " >&6; }
9021# Check whether --enable-fsadm was given.
9022if test "${enable_fsadm+set}" = set; then :
9023 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
9024fi
9025
f11781c5
AK
9026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
9027$as_echo "$FSADM" >&6; }
ad6254c5 9028
f11781c5
AK
9029################################################################################
9030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
9031$as_echo_n "checking whether to use dmeventd... " >&6; }
9032# Check whether --enable-dmeventd was given.
9033if test "${enable_dmeventd+set}" = set; then :
9034 enableval=$enable_dmeventd; DMEVENTD=$enableval
9035fi
ad6254c5 9036
f11781c5
AK
9037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
9038$as_echo "$DMEVENTD" >&6; }
ad6254c5 9039
f11781c5 9040BUILD_DMEVENTD=$DMEVENTD
ad6254c5 9041
f11781c5
AK
9042if test x$DMEVENTD = xyes; then
9043 if test x$MIRRORS != xinternal; then
9044 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
9045 " "$LINENO" 5
9046 fi
9047 if test x$CMDLIB = xno; then
9048 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
9049 " "$LINENO" 5
9050 fi
9051fi
ad6254c5 9052
f11781c5 9053if test x$DMEVENTD = xyes; then
ad6254c5 9054
f11781c5 9055$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 9056
f11781c5 9057fi
ad6254c5 9058
f11781c5 9059################################################################################
ad6254c5 9060
f11781c5
AK
9061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
9062$as_echo_n "checking for getline in -lc... " >&6; }
9063if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 9064 $as_echo_n "(cached) " >&6
ad6254c5 9065else
f11781c5
AK
9066 ac_check_lib_save_LIBS=$LIBS
9067LIBS="-lc $LIBS"
9068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9069/* end confdefs.h. */
f11781c5
AK
9070
9071/* Override any GCC internal prototype to avoid an error.
9072 Use char because int might match the return type of a GCC
9073 builtin and then its argument prototype would still apply. */
9074#ifdef __cplusplus
9075extern "C"
9076#endif
9077char getline ();
9078int
9079main ()
9080{
9081return getline ();
9082 ;
9083 return 0;
9084}
ad6254c5 9085_ACEOF
f11781c5
AK
9086if ac_fn_c_try_link "$LINENO"; then :
9087 ac_cv_lib_c_getline=yes
ad6254c5 9088else
f11781c5
AK
9089 ac_cv_lib_c_getline=no
9090fi
9091rm -f core conftest.err conftest.$ac_objext \
9092 conftest$ac_exeext conftest.$ac_ext
9093LIBS=$ac_check_lib_save_LIBS
9094fi
9095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9096$as_echo "$ac_cv_lib_c_getline" >&6; }
9097if test "x$ac_cv_lib_c_getline" = x""yes; then :
9098
9099$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 9100
ad6254c5 9101fi
7a197a62 9102
ad6254c5 9103
f11781c5
AK
9104################################################################################
9105
9106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9107$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9108if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
9110else
9111 ac_check_lib_save_LIBS=$LIBS
9112LIBS="-lc $LIBS"
9113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9114/* end confdefs.h. */
f11781c5
AK
9115
9116/* Override any GCC internal prototype to avoid an error.
9117 Use char because int might match the return type of a GCC
9118 builtin and then its argument prototype would still apply. */
9119#ifdef __cplusplus
9120extern "C"
9121#endif
9122char canonicalize_file_name ();
9123int
9124main ()
9125{
9126return canonicalize_file_name ();
9127 ;
9128 return 0;
9129}
ad6254c5 9130_ACEOF
f11781c5
AK
9131if ac_fn_c_try_link "$LINENO"; then :
9132 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 9133else
f11781c5
AK
9134 ac_cv_lib_c_canonicalize_file_name=no
9135fi
9136rm -f core conftest.err conftest.$ac_objext \
9137 conftest$ac_exeext conftest.$ac_ext
9138LIBS=$ac_check_lib_save_LIBS
9139fi
9140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9141$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9142if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9143
9144$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 9145
ad6254c5 9146fi
7a197a62 9147
ad6254c5 9148
f11781c5
AK
9149################################################################################
9150if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9151 then exec_prefix="";
9152fi;
7a197a62 9153
f11781c5
AK
9154################################################################################
9155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9156$as_echo_n "checking for dlopen in -ldl... " >&6; }
9157if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 9158 $as_echo_n "(cached) " >&6
ad6254c5 9159else
f11781c5
AK
9160 ac_check_lib_save_LIBS=$LIBS
9161LIBS="-ldl $LIBS"
9162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163/* end confdefs.h. */
ad6254c5 9164
f11781c5
AK
9165/* Override any GCC internal prototype to avoid an error.
9166 Use char because int might match the return type of a GCC
9167 builtin and then its argument prototype would still apply. */
9168#ifdef __cplusplus
9169extern "C"
9170#endif
9171char dlopen ();
9172int
9173main ()
9174{
9175return dlopen ();
9176 ;
9177 return 0;
9178}
ad6254c5 9179_ACEOF
f11781c5
AK
9180if ac_fn_c_try_link "$LINENO"; then :
9181 ac_cv_lib_dl_dlopen=yes
ad6254c5 9182else
f11781c5 9183 ac_cv_lib_dl_dlopen=no
795ca3e5 9184fi
f11781c5
AK
9185rm -f core conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187LIBS=$ac_check_lib_save_LIBS
9188fi
9189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9190$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9191if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 9192
ad6254c5 9193
f11781c5 9194$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 9195
f11781c5
AK
9196 DL_LIBS="-ldl"
9197 HAVE_LIBDL=yes
9198else
795ca3e5 9199
f11781c5
AK
9200 DL_LIBS=
9201 HAVE_LIBDL=no
9202fi
8106cdd5 9203
ad6254c5 9204
f11781c5
AK
9205################################################################################
9206if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9207 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
cac52ca4 9208 -o "x$RAID" = xshared \
f11781c5
AK
9209 \) -a "x$STATIC_LINK" = xyes ];
9210 then as_fn_error $? "Features cannot be 'shared' when building statically
9211" "$LINENO" 5
9212fi
ad6254c5 9213
f11781c5
AK
9214################################################################################
9215if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9217$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9218if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 9219 $as_echo_n "(cached) " >&6
795ca3e5 9220else
f11781c5
AK
9221 ac_check_lib_save_LIBS=$LIBS
9222LIBS="-lpthread $LIBS"
9223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9224/* end confdefs.h. */
8a2fc586 9225
f11781c5
AK
9226/* Override any GCC internal prototype to avoid an error.
9227 Use char because int might match the return type of a GCC
9228 builtin and then its argument prototype would still apply. */
9229#ifdef __cplusplus
9230extern "C"
ad6254c5 9231#endif
f11781c5
AK
9232char pthread_mutex_lock ();
9233int
9234main ()
9235{
9236return pthread_mutex_lock ();
9237 ;
9238 return 0;
9239}
9240_ACEOF
9241if ac_fn_c_try_link "$LINENO"; then :
9242 ac_cv_lib_pthread_pthread_mutex_lock=yes
9243else
9244 ac_cv_lib_pthread_pthread_mutex_lock=no
9245fi
9246rm -f core conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
9248LIBS=$ac_check_lib_save_LIBS
9249fi
9250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9251$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9252if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9253 PTHREAD_LIBS="-lpthread"
9254else
9255 hard_bailout
9256fi
9257
9258fi
9259
9260################################################################################
9261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9262$as_echo_n "checking whether to enable selinux support... " >&6; }
9263# Check whether --enable-selinux was given.
9264if test "${enable_selinux+set}" = set; then :
9265 enableval=$enable_selinux; SELINUX=$enableval
9266fi
9267
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9269$as_echo "$SELINUX" >&6; }
8a2fc586 9270
f11781c5
AK
9271################################################################################
9272if test x$SELINUX = xyes; then
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9274$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9275if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9277else
9278 ac_check_lib_save_LIBS=$LIBS
9279LIBS="-lsepol $LIBS"
9280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281/* end confdefs.h. */
8a2fc586 9282
7a197a62
AK
9283/* Override any GCC internal prototype to avoid an error.
9284 Use char because int might match the return type of a GCC
9285 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9286#ifdef __cplusplus
9287extern "C"
ad6254c5 9288#endif
f11781c5 9289char sepol_check_context ();
ad6254c5
AK
9290int
9291main ()
9292{
f11781c5 9293return sepol_check_context ();
ad6254c5
AK
9294 ;
9295 return 0;
9296}
9297_ACEOF
f11781c5
AK
9298if ac_fn_c_try_link "$LINENO"; then :
9299 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9300else
f11781c5
AK
9301 ac_cv_lib_sepol_sepol_check_context=no
9302fi
9303rm -f core conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9305LIBS=$ac_check_lib_save_LIBS
80992638 9306fi
f11781c5
AK
9307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9308$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9309if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9310
80992638 9311
f11781c5
AK
9312$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9313
9314 SELINUX_LIBS="-lsepol"
8106cdd5 9315fi
795ca3e5 9316
f11781c5
AK
9317
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9319$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9320if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9321 $as_echo_n "(cached) " >&6
25fbec5b 9322else
f11781c5
AK
9323 ac_check_lib_save_LIBS=$LIBS
9324LIBS="-lselinux $LIBS"
9325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9326/* end confdefs.h. */
80992638 9327
7a197a62
AK
9328/* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
ad6254c5 9330 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9331#ifdef __cplusplus
9332extern "C"
9333#endif
f11781c5 9334char is_selinux_enabled ();
ad6254c5
AK
9335int
9336main ()
9337{
f11781c5 9338return is_selinux_enabled ();
ad6254c5
AK
9339 ;
9340 return 0;
9341}
9342_ACEOF
f11781c5
AK
9343if ac_fn_c_try_link "$LINENO"; then :
9344 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9345else
f11781c5 9346 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9347fi
f11781c5
AK
9348rm -f core conftest.err conftest.$ac_objext \
9349 conftest$ac_exeext conftest.$ac_ext
9350LIBS=$ac_check_lib_save_LIBS
25fbec5b 9351fi
f11781c5
AK
9352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9353$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9354if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9355
f11781c5
AK
9356 for ac_header in selinux/selinux.h
9357do :
9358 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9359if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9360 cat >>confdefs.h <<_ACEOF
9361#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9362_ACEOF
795ca3e5 9363
25fbec5b 9364else
f11781c5 9365 hard_bailout
795ca3e5 9366fi
795ca3e5 9367
f11781c5 9368done
795ca3e5 9369
f11781c5
AK
9370 for ac_header in selinux/label.h
9371do :
9372 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9373if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9374 cat >>confdefs.h <<_ACEOF
9375#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9376_ACEOF
ad6254c5 9377
ad6254c5 9378fi
7a197a62 9379
f11781c5 9380done
7a197a62 9381
ad6254c5 9382
f11781c5 9383$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9384
f11781c5
AK
9385 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9386 SELINUX_PC="libselinux"
9387 HAVE_SELINUX=yes
ad6254c5 9388else
8106cdd5 9389
f11781c5
AK
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9391$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9392 SELINUX_LIBS=
9393 SELINUX_PC=
9394 HAVE_SELINUX=no
795ca3e5 9395fi
ad6254c5 9396
795ca3e5
AK
9397fi
9398
f11781c5
AK
9399################################################################################
9400if test x$REALTIME = xyes; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9402$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9403if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9404 $as_echo_n "(cached) " >&6
26e7f2e0 9405else
f11781c5
AK
9406 ac_check_lib_save_LIBS=$LIBS
9407LIBS="-lrt $LIBS"
9408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9409/* end confdefs.h. */
ad6254c5 9410
f11781c5
AK
9411/* Override any GCC internal prototype to avoid an error.
9412 Use char because int might match the return type of a GCC
9413 builtin and then its argument prototype would still apply. */
9414#ifdef __cplusplus
9415extern "C"
9416#endif
9417char clock_gettime ();
ad6254c5
AK
9418int
9419main ()
9420{
f11781c5 9421return clock_gettime ();
ad6254c5
AK
9422 ;
9423 return 0;
9424}
9425_ACEOF
f11781c5
AK
9426if ac_fn_c_try_link "$LINENO"; then :
9427 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9428else
f11781c5 9429 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9430fi
f11781c5
AK
9431rm -f core conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9433LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9434fi
f11781c5
AK
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9436$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9437if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9438 HAVE_REALTIME=yes
9439else
9440 HAVE_REALTIME=no
8106cdd5 9441fi
ad6254c5 9442
ad6254c5 9443
f11781c5 9444 if test x$HAVE_REALTIME = xyes; then
7a197a62 9445
f11781c5 9446$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9447
f11781c5
AK
9448 LIBS="-lrt $LIBS"
9449 else
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9451$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9452 fi
9453fi
9454
9455################################################################################
9456for ac_header in getopt.h
9457do :
9458 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9459if test "x$ac_cv_header_getopt_h" = x""yes; then :
9460 cat >>confdefs.h <<_ACEOF
9461#define HAVE_GETOPT_H 1
9462_ACEOF
9463
9464$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9465
ad6254c5 9466fi
7a197a62 9467
f11781c5 9468done
ad6254c5 9469
7a197a62 9470
f11781c5
AK
9471################################################################################
9472if test x$READLINE != xno; then
9473 lvm_saved_libs=$LIBS
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9475$as_echo_n "checking for library containing tgetent... " >&6; }
9476if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9477 $as_echo_n "(cached) " >&6
ad6254c5 9478else
f11781c5
AK
9479 ac_func_search_save_LIBS=$LIBS
9480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481/* end confdefs.h. */
ad6254c5 9482
f11781c5
AK
9483/* Override any GCC internal prototype to avoid an error.
9484 Use char because int might match the return type of a GCC
9485 builtin and then its argument prototype would still apply. */
9486#ifdef __cplusplus
9487extern "C"
9488#endif
9489char tgetent ();
9490int
9491main ()
9492{
9493return tgetent ();
9494 ;
9495 return 0;
9496}
ad6254c5 9497_ACEOF
f11781c5
AK
9498for ac_lib in '' tinfo ncurses curses termcap termlib; do
9499 if test -z "$ac_lib"; then
9500 ac_res="none required"
9501 else
9502 ac_res=-l$ac_lib
9503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9504 fi
9505 if ac_fn_c_try_link "$LINENO"; then :
9506 ac_cv_search_tgetent=$ac_res
9507fi
9508rm -f core conftest.err conftest.$ac_objext \
9509 conftest$ac_exeext
9510 if test "${ac_cv_search_tgetent+set}" = set; then :
9511 break
9512fi
9513done
9514if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9515
80992638 9516else
f11781c5 9517 ac_cv_search_tgetent=no
b896caa1 9518fi
f11781c5
AK
9519rm conftest.$ac_ext
9520LIBS=$ac_func_search_save_LIBS
9521fi
9522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9523$as_echo "$ac_cv_search_tgetent" >&6; }
9524ac_res=$ac_cv_search_tgetent
9525if test "$ac_res" != no; then :
9526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9527 READLINE_LIBS=$ac_cv_search_tgetent
9528else
ad6254c5 9529
f11781c5
AK
9530 if test "$READLINE" = yes; then
9531 as_fn_error $? "termcap could not be found which is required for the
9532--enable-readline option (which is enabled by default). Either disable readline
9533support with --disable-readline or download and install termcap from:
9534 ftp.gnu.org/gnu/termcap
9535Note: if you are using precompiled packages you will also need the development
9536 package as well (which may be called termcap-devel or something similar).
9537Note: (n)curses also seems to work as a substitute for termcap. This was
9538 not found either - but you could try installing that as well." "$LINENO" 5
9539 fi
9540fi
b896caa1 9541
f11781c5
AK
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9543$as_echo_n "checking for readline in -lreadline... " >&6; }
9544if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9545 $as_echo_n "(cached) " >&6
795ca3e5 9546else
f11781c5
AK
9547 ac_check_lib_save_LIBS=$LIBS
9548LIBS="-lreadline $LIBS"
9549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9550/* end confdefs.h. */
8a2fc586 9551
f11781c5
AK
9552/* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
9555#ifdef __cplusplus
9556extern "C"
ad6254c5 9557#endif
f11781c5
AK
9558char readline ();
9559int
9560main ()
9561{
9562return readline ();
9563 ;
9564 return 0;
9565}
9566_ACEOF
9567if ac_fn_c_try_link "$LINENO"; then :
9568 ac_cv_lib_readline_readline=yes
9569else
9570 ac_cv_lib_readline_readline=no
9571fi
9572rm -f core conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9574LIBS=$ac_check_lib_save_LIBS
9575fi
9576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9577$as_echo "$ac_cv_lib_readline_readline" >&6; }
9578if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9579
8a2fc586 9580
f11781c5
AK
9581$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9582
9583 LIBS=$lvm_saved_libs
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9585$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9586if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9587 $as_echo_n "(cached) " >&6
9588else
9589 ac_check_lib_save_LIBS=$LIBS
9590LIBS="-lreadline $LIBS"
9591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592/* end confdefs.h. */
8a2fc586 9593
7a197a62
AK
9594/* Override any GCC internal prototype to avoid an error.
9595 Use char because int might match the return type of a GCC
9596 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9597#ifdef __cplusplus
9598extern "C"
ad6254c5 9599#endif
f11781c5 9600char rl_line_buffer ();
ad6254c5
AK
9601int
9602main ()
9603{
f11781c5 9604return rl_line_buffer ();
ad6254c5
AK
9605 ;
9606 return 0;
9607}
9608_ACEOF
f11781c5
AK
9609if ac_fn_c_try_link "$LINENO"; then :
9610 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9611else
f11781c5
AK
9612 ac_cv_lib_readline_rl_line_buffer=no
9613fi
9614rm -f core conftest.err conftest.$ac_objext \
9615 conftest$ac_exeext conftest.$ac_ext
9616LIBS=$ac_check_lib_save_LIBS
9617fi
9618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9619$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9620if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9621 READLINE_LIBS="-lreadline"
9622else
9623
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9625$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9626 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9627
ad6254c5 9628fi
7a197a62 9629
f11781c5
AK
9630else
9631
9632 READLINE_LIBS=
9633 if test "$READLINE" = yes; then
9634 as_fn_error $? "GNU Readline could not be found which is required for the
9635--enable-readline option (which is enabled by default). Either disable readline
9636support with --disable-readline or download and install readline from:
9637 ftp.gnu.org/gnu/readline
9638Note: if you are using precompiled packages you will also need the development
9639package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9640 fi
ad6254c5 9641fi
f11781c5
AK
9642
9643 LIBS="$READLINE_LIBS $lvm_saved_libs"
9644 for ac_func in rl_completion_matches
9645do :
9646 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9647if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9648 cat >>confdefs.h <<_ACEOF
f11781c5 9649#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9650_ACEOF
9651
ad6254c5
AK
9652fi
9653done
9654
f11781c5 9655 LIBS=$lvm_saved_libs
ad6254c5
AK
9656fi
9657
f11781c5
AK
9658################################################################################
9659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9660$as_echo_n "checking whether to enable internationalisation... " >&6; }
9661# Check whether --enable-nls was given.
9662if test "${enable_nls+set}" = set; then :
9663 enableval=$enable_nls; INTL=$enableval
9664else
9665 INTL=no
9666fi
d911ec67 9667
f11781c5
AK
9668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9669$as_echo "$INTL" >&6; }
9670
9671if test x$INTL = xyes; then
9672# FIXME - Move this - can be device-mapper too
9673 INTL_PACKAGE="lvm2"
9674 # Extract the first word of "msgfmt", so it can be a program name with args.
9675set dummy msgfmt; ac_word=$2
9676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677$as_echo_n "checking for $ac_word... " >&6; }
9678if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9679 $as_echo_n "(cached) " >&6
d911ec67 9680else
f11781c5
AK
9681 case $MSGFMT in
9682 [\\/]* | ?:[\\/]*)
9683 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9684 ;;
9685 *)
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687for as_dir in $PATH
9688do
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 break 2
9696 fi
9697done
9698 done
9699IFS=$as_save_IFS
9700
9701 ;;
d911ec67 9702esac
f11781c5
AK
9703fi
9704MSGFMT=$ac_cv_path_MSGFMT
9705if test -n "$MSGFMT"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9707$as_echo "$MSGFMT" >&6; }
d911ec67 9708else
f11781c5
AK
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710$as_echo "no" >&6; }
9711fi
d911ec67 9712
f11781c5
AK
9713
9714 if [ "x$MSGFMT" == x ];
9715 then as_fn_error $? "msgfmt not found in path $PATH
9716 " "$LINENO" 5
9717 fi;
9718
9719
9720# Check whether --with-localedir was given.
9721if test "${with_localedir+set}" = set; then :
9722 withval=$with_localedir; LOCALEDIR=$withval
9723else
9724 LOCALEDIR='${prefix}/share/locale'
9725fi
9726
9727fi
9728
9729################################################################################
9730
9731# Check whether --with-confdir was given.
9732if test "${with_confdir+set}" = set; then :
9733 withval=$with_confdir; CONFDIR=$withval
9734else
9735 CONFDIR="/etc"
9736fi
9737
9738
9739
9740# Check whether --with-staticdir was given.
9741if test "${with_staticdir+set}" = set; then :
9742 withval=$with_staticdir; STATICDIR=$withval
9743else
9744 STATICDIR='${exec_prefix}/sbin'
9745fi
9746
9747
9748
9749# Check whether --with-usrlibdir was given.
9750if test "${with_usrlibdir+set}" = set; then :
9751 withval=$with_usrlibdir; usrlibdir=$withval
9752else
9753 usrlibdir='${prefix}/lib'
d911ec67
AK
9754fi
9755
d911ec67 9756
d911ec67 9757
f11781c5
AK
9758# Check whether --with-usrsbindir was given.
9759if test "${with_usrsbindir+set}" = set; then :
9760 withval=$with_usrsbindir; usrsbindir=$withval
9761else
9762 usrsbindir='${prefix}/sbin'
d911ec67
AK
9763fi
9764
d911ec67 9765
f11781c5 9766################################################################################
d911ec67 9767
f11781c5
AK
9768# Check whether --with-udev_prefix was given.
9769if test "${with_udev_prefix+set}" = set; then :
9770 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9771else
f11781c5 9772 udev_prefix='${exec_prefix}'
d911ec67 9773fi
d911ec67 9774
f11781c5
AK
9775
9776
9777# Check whether --with-udevdir was given.
9778if test "${with_udevdir+set}" = set; then :
9779 withval=$with_udevdir; udevdir=$withval
9780else
9781 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9782fi
f11781c5
AK
9783
9784
9785################################################################################
9786if test x$READLINE = xyes; then
9787 for ac_header in readline/readline.h readline/history.h
9788do :
9789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9790ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9791if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9792 cat >>confdefs.h <<_ACEOF
9793#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9794_ACEOF
9795
9796else
f11781c5 9797 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9798fi
9799
9800done
9801
9802fi
9803
f11781c5
AK
9804if test x$CLVMD != xnone; then
9805 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
9806do :
9807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9808ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9809if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9810 cat >>confdefs.h <<_ACEOF
9811#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9812_ACEOF
ad6254c5 9813
f11781c5
AK
9814else
9815 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9816fi
7a197a62 9817
f11781c5 9818done
ad6254c5 9819
f11781c5
AK
9820 for ac_func in dup2 getmntent memmove select socket
9821do :
9822 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9823ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9824if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9825 cat >>confdefs.h <<_ACEOF
9826#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9827_ACEOF
ad6254c5 9828
f11781c5
AK
9829else
9830 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9831fi
f11781c5 9832done
7a197a62 9833
f11781c5
AK
9834 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9835# -lseq on Dynix/PTX, -lgen on Unixware.
9836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9837$as_echo_n "checking for library containing getmntent... " >&6; }
9838if test "${ac_cv_search_getmntent+set}" = set; then :
9839 $as_echo_n "(cached) " >&6
9840else
9841 ac_func_search_save_LIBS=$LIBS
9842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843/* end confdefs.h. */
ad6254c5 9844
f11781c5
AK
9845/* Override any GCC internal prototype to avoid an error.
9846 Use char because int might match the return type of a GCC
9847 builtin and then its argument prototype would still apply. */
9848#ifdef __cplusplus
9849extern "C"
9850#endif
9851char getmntent ();
9852int
9853main ()
9854{
9855return getmntent ();
9856 ;
9857 return 0;
9858}
9859_ACEOF
9860for ac_lib in '' sun seq gen; do
9861 if test -z "$ac_lib"; then
9862 ac_res="none required"
9863 else
9864 ac_res=-l$ac_lib
9865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9866 fi
9867 if ac_fn_c_try_link "$LINENO"; then :
9868 ac_cv_search_getmntent=$ac_res
9869fi
9870rm -f core conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext
9872 if test "${ac_cv_search_getmntent+set}" = set; then :
9873 break
9874fi
9875done
9876if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 9877
ad6254c5 9878else
f11781c5 9879 ac_cv_search_getmntent=no
795ca3e5 9880fi
f11781c5
AK
9881rm conftest.$ac_ext
9882LIBS=$ac_func_search_save_LIBS
9883fi
9884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9885$as_echo "$ac_cv_search_getmntent" >&6; }
9886ac_res=$ac_cv_search_getmntent
9887if test "$ac_res" != no; then :
9888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9889 ac_cv_func_getmntent=yes
9890
9891$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 9892
f11781c5
AK
9893else
9894 ac_cv_func_getmntent=no
8106cdd5 9895fi
f11781c5
AK
9896
9897
9898 for ac_header in sys/select.h sys/socket.h
9899do :
9900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9901ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9902if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 9903 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9904#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9905_ACEOF
795ca3e5 9906
795ca3e5
AK
9907fi
9908
ad6254c5 9909done
80992638 9910
f11781c5
AK
9911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9912$as_echo_n "checking types of arguments for select... " >&6; }
9913if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 9914 $as_echo_n "(cached) " >&6
83912faa 9915else
f11781c5
AK
9916 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9917 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9918 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
9920/* end confdefs.h. */
9921$ac_includes_default
f11781c5
AK
9922#ifdef HAVE_SYS_SELECT_H
9923# include <sys/select.h>
9924#endif
9925#ifdef HAVE_SYS_SOCKET_H
9926# include <sys/socket.h>
9927#endif
9928
9929int
9930main ()
9931{
9932extern int select ($ac_arg1,
9933 $ac_arg234, $ac_arg234, $ac_arg234,
9934 $ac_arg5);
9935 ;
9936 return 0;
9937}
ad6254c5 9938_ACEOF
f11781c5
AK
9939if ac_fn_c_try_compile "$LINENO"; then :
9940 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9941fi
9942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9943 done
9944 done
9945done
9946# Provide a safe default value.
9947: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 9948
ad6254c5 9949fi
f11781c5
AK
9950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9951$as_echo "$ac_cv_func_select_args" >&6; }
9952ac_save_IFS=$IFS; IFS=','
9953set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9954IFS=$ac_save_IFS
9955shift
7a197a62 9956
f11781c5
AK
9957cat >>confdefs.h <<_ACEOF
9958#define SELECT_TYPE_ARG1 $1
9959_ACEOF
ad6254c5 9960
f11781c5
AK
9961
9962cat >>confdefs.h <<_ACEOF
9963#define SELECT_TYPE_ARG234 ($2)
ad6254c5 9964_ACEOF
f11781c5
AK
9965
9966
9967cat >>confdefs.h <<_ACEOF
9968#define SELECT_TYPE_ARG5 ($3)
ad6254c5 9969_ACEOF
ad6254c5 9970
f11781c5
AK
9971rm -f conftest*
9972
ad6254c5 9973fi
7a197a62 9974
f11781c5
AK
9975if test x$CLUSTER != xnone; then
9976 for ac_header in sys/socket.h sys/un.h
9977do :
9978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9979ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9980if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9981 cat >>confdefs.h <<_ACEOF
9982#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9983_ACEOF
ad6254c5 9984
f11781c5
AK
9985else
9986 as_fn_error $? "bailing out" "$LINENO" 5
9987fi
9988
9989done
9990
9991 for ac_func in socket
9992do :
9993 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9994if test "x$ac_cv_func_socket" = x""yes; then :
9995 cat >>confdefs.h <<_ACEOF
9996#define HAVE_SOCKET 1
9997_ACEOF
7a197a62 9998
80992638 9999else
f11781c5 10000 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 10001fi
f11781c5 10002done
83912faa 10003
69792976 10004fi
f11781c5
AK
10005
10006if test x$DMEVENTD = xyes; then
10007 for ac_header in arpa/inet.h
10008do :
10009 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
10010if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 10011 cat >>confdefs.h <<_ACEOF
f11781c5 10012#define HAVE_ARPA_INET_H 1
ad6254c5 10013_ACEOF
69792976 10014
69792976 10015else
f11781c5 10016 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
10017fi
10018
ad6254c5 10019done
69792976 10020
ad6254c5
AK
10021fi
10022
f11781c5
AK
10023if test x$HAVE_LIBDL = xyes; then
10024 for ac_header in dlfcn.h
10025do :
10026 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10027if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10028 cat >>confdefs.h <<_ACEOF
10029#define HAVE_DLFCN_H 1
a5f46f6a 10030_ACEOF
a5f46f6a 10031
f11781c5
AK
10032else
10033 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
10034fi
10035
f11781c5 10036done
a5f46f6a 10037
a5f46f6a
AK
10038fi
10039
f11781c5
AK
10040if test x$INTL = xyes; then
10041 for ac_header in libintl.h
10042do :
10043 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10044if test "x$ac_cv_header_libintl_h" = x""yes; then :
10045 cat >>confdefs.h <<_ACEOF
10046#define HAVE_LIBINTL_H 1
10047_ACEOF
a5f46f6a 10048
a5f46f6a 10049else
f11781c5 10050 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 10051fi
f11781c5
AK
10052
10053done
a5f46f6a
AK
10054
10055fi
f11781c5
AK
10056
10057if test x$UDEV_SYNC = xyes; then
10058 for ac_header in sys/ipc.h sys/sem.h
10059do :
10060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10061ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10062if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
10063 cat >>confdefs.h <<_ACEOF
10064#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10065_ACEOF
10066
10067else
f11781c5 10068 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
10069fi
10070
10071done
10072
10073fi
10074
a653923f
AK
10075################################################################################
10076# Extract the first word of "modprobe", so it can be a program name with args.
10077set dummy modprobe; ac_word=$2
f11781c5 10078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 10079$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 10080if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 10081 $as_echo_n "(cached) " >&6
72b2cb61
AK
10082else
10083 case $MODPROBE_CMD in
10084 [\\/]* | ?:[\\/]*)
10085 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10086 ;;
10087 *)
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089for as_dir in $PATH
10090do
10091 IFS=$as_save_IFS
10092 test -z "$as_dir" && as_dir=.
f11781c5 10093 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 10095 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
10097 break 2
10098 fi
10099done
f11781c5 10100 done
7a197a62 10101IFS=$as_save_IFS
72b2cb61
AK
10102
10103 ;;
10104esac
10105fi
10106MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 10107if test -n "$MODPROBE_CMD"; then
f11781c5 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 10109$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 10110else
f11781c5 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 10112$as_echo "no" >&6; }
72b2cb61
AK
10113fi
10114
a653923f 10115
7a197a62 10116
a653923f 10117if test x$MODPROBE_CMD != x; then
72b2cb61
AK
10118
10119cat >>confdefs.h <<_ACEOF
10120#define MODPROBE_CMD "$MODPROBE_CMD"
10121_ACEOF
10122
a653923f
AK
10123fi
10124
b5c2529b 10125
a9b601e2
ZK
10126lvm_exec_prefix=$exec_prefix
10127test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10128test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
10129
b5c2529b 10130cat >>confdefs.h <<_ACEOF
a9b601e2 10131#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
10132_ACEOF
10133
10134
10135if test "$CLVMD" != none; then
10136 clvmd_prefix=$ac_default_prefix
10137 test "$prefix" != NONE && clvmd_prefix=$prefix
10138
10139cat >>confdefs.h <<_ACEOF
10140#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
10141_ACEOF
10142
10143fi
10144
80992638 10145################################################################################
93bd259b
AK
10146if test "$BUILD_DMEVENTD" = yes; then
10147
10148# Check whether --with-dmeventd-pidfile was given.
f11781c5 10149if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 10150 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 10151else
71082be4 10152 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
10153fi
10154
93bd259b 10155
71082be4
ZK
10156cat >>confdefs.h <<_ACEOF
10157#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10158_ACEOF
93bd259b 10159
71082be4 10160fi
93bd259b
AK
10161
10162if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
10163
10164# Check whether --with-dmeventd-path was given.
f11781c5 10165if test "${with_dmeventd_path+set}" = set; then :
71082be4 10166 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 10167else
71082be4 10168 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
10169fi
10170
93bd259b 10171
71082be4
ZK
10172cat >>confdefs.h <<_ACEOF
10173#define DMEVENTD_PATH "$DMEVENTD_PATH"
10174_ACEOF
3399ae32 10175
71082be4 10176fi
3399ae32 10177
8bae0a1e
AK
10178
10179
8bae0a1e 10180# Check whether --with-default-run-dir was given.
f11781c5 10181if test "${with_default_run_dir+set}" = set; then :
8bae0a1e
AK
10182 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
10183else
10184 DEFAULT_RUN_DIR="/var/run/lvm"
10185fi
10186
10187cat >>confdefs.h <<_ACEOF
10188#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10189_ACEOF
10190
10191
71082be4 10192################################################################################
3399ae32
AK
10193
10194# Check whether --with-default-system-dir was given.
f11781c5 10195if test "${with_default_system_dir+set}" = set; then :
71082be4 10196 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 10197else
71082be4 10198 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
10199fi
10200
71082be4 10201
3399ae32
AK
10202cat >>confdefs.h <<_ACEOF
10203#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10204_ACEOF
10205
10206
10207
3399ae32 10208# Check whether --with-default-archive-subdir was given.
f11781c5 10209if test "${with_default_archive_subdir+set}" = set; then :
71082be4 10210 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 10211else
71082be4 10212 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
10213fi
10214
71082be4 10215
3399ae32
AK
10216cat >>confdefs.h <<_ACEOF
10217#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10218_ACEOF
10219
10220
10221
3399ae32 10222# Check whether --with-default-backup-subdir was given.
f11781c5 10223if test "${with_default_backup_subdir+set}" = set; then :
71082be4 10224 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 10225else
71082be4 10226 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
10227fi
10228
71082be4 10229
3399ae32
AK
10230cat >>confdefs.h <<_ACEOF
10231#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10232_ACEOF
10233
10234
10235
3399ae32 10236# Check whether --with-default-cache-subdir was given.
f11781c5 10237if test "${with_default_cache_subdir+set}" = set; then :
71082be4 10238 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 10239else
71082be4 10240 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
10241fi
10242
71082be4 10243
3399ae32
AK
10244cat >>confdefs.h <<_ACEOF
10245#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10246_ACEOF
10247
10248
10249
3399ae32 10250# Check whether --with-default-locking-dir was given.
f11781c5 10251if test "${with_default_locking_dir+set}" = set; then :
71082be4 10252 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 10253else
71082be4 10254 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
10255fi
10256
71082be4 10257
3399ae32
AK
10258cat >>confdefs.h <<_ACEOF
10259#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10260_ACEOF
10261
10262
fea55602
DW
10263################################################################################
10264
10265# Check whether --with-default-data-alignment was given.
f11781c5 10266if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
10267 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10268else
10269 DEFAULT_DATA_ALIGNMENT=1
10270fi
10271
10272
10273cat >>confdefs.h <<_ACEOF
10274#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10275_ACEOF
10276
10277
93bd259b 10278################################################################################
f11781c5 10279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10280$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10281
10282# Check whether --with-interface was given.
f11781c5 10283if test "${with_interface+set}" = set; then :
71082be4 10284 withval=$with_interface; interface=$withval
93bd259b 10285else
71082be4 10286 interface=ioctl
93bd259b
AK
10287fi
10288
10289if [ "x$interface" != xioctl ];
10290then
f11781c5 10291 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10292fi
f11781c5 10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10294$as_echo "$interface" >&6; }
93bd259b
AK
10295
10296################################################################################
db8b5af9 10297DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10298
10299cat >>confdefs.h <<_ACEOF
10300#define DM_LIB_VERSION $DM_LIB_VERSION
10301_ACEOF
10302
10303
db8b5af9 10304DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10305
db8b5af9 10306LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10307
db8b5af9 10308VER=`cat "$srcdir"/VERSION`
bf456146 10309LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10310VER=`echo "$VER" | $AWK '{print $1}'`
10311LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10312VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10313LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10314LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10315LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10316LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10317
80992638 10318################################################################################
fae0c576 10319
83912faa 10320
795ca3e5
AK
10321
10322
10323
10324
10325
10326
5a52dca9 10327
8ef2b021 10328
199e490e 10329
69792976
AK
10330
10331
10332
d0191583 10333
69792976 10334
8106cdd5
AK
10335
10336
10337
10338
10339
d68a82ec 10340
036f273a 10341
7d1552c9 10342
8106cdd5 10343
0a62c911 10344
8106cdd5 10345
4a7f3eb2 10346
4922197a
AK
10347
10348
d8ac0fbc 10349
1a9ea74d 10350
8a2fc586
AK
10351
10352
d0191583 10353
93bd259b
AK
10354
10355
10356
10357
10358
d0191583
JM
10359
10360
10361
10362
10363
8a2fc586 10364
19a2c6e0 10365
f7f0854e
ZK
10366
10367
3ceb7608 10368
8ce0cbda 10369
8b1a3214 10370
ec6a6fbe
AK
10371
10372
10373
10374
e2997b73
AK
10375
10376
10377
10378
10379
10380
a946372e
AK
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
ec6a6fbe 10392
33f732c5 10393
66e941e8 10394
cac52ca4 10395
d3c8211f 10396
7e3fe830 10397
a5f46f6a
AK
10398
10399
10400
572fefeb 10401
90c80887 10402
3399ae32
AK
10403
10404
10405
10406
10407
90c80887 10408
bf456146 10409
e1b8a236 10410
0878503f 10411
8fea97b7 10412
54b362f9 10413
b1f08e51 10414
d1e8046f 10415
fea55602 10416
c89bc357 10417
37ddf259 10418
606d0858 10419
6e5c1f75 10420
68f2de6d
AK
10421
10422
80992638 10423################################################################################
6e5c1f75 10424ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 10425
ad6254c5 10426cat >confcache <<\_ACEOF
795ca3e5
AK
10427# This file is a shell script that caches the results of configure
10428# tests run on this system so they can be shared between configure
ad6254c5
AK
10429# scripts and configure runs, see configure's option --config-cache.
10430# It is not useful on other systems. If it contains results you don't
10431# want to keep, you may remove or edit it.
795ca3e5 10432#
ad6254c5
AK
10433# config.status only pays attention to the cache file if you give it
10434# the --recheck option to rerun configure.
795ca3e5 10435#
ad6254c5
AK
10436# `ac_cv_env_foo' variables (set or unset) will be overridden when
10437# loading this file, other *unset* `ac_cv_foo' will be assigned the
10438# following values.
10439
10440_ACEOF
10441
795ca3e5
AK
10442# The following way of writing the cache mishandles newlines in values,
10443# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10444# So, we kill variables containing newlines.
795ca3e5
AK
10445# Ultrix sh set writes to stderr and can't be redirected directly,
10446# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10447(
10448 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10449 eval ac_val=\$$ac_var
10450 case $ac_val in #(
10451 *${as_nl}*)
10452 case $ac_var in #(
f11781c5 10453 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10454$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10455 esac
10456 case $ac_var in #(
10457 _ | IFS | as_nl) ;; #(
ec6a6fbe 10458 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10459 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10460 esac ;;
10461 esac
10462 done
10463
ad6254c5 10464 (set) 2>&1 |
7a197a62
AK
10465 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10466 *${as_nl}ac_space=\ *)
f11781c5
AK
10467 # `set' does not quote correctly, so add quotes: double-quote
10468 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10469 sed -n \
8a2fc586
AK
10470 "s/'/'\\\\''/g;
10471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10472 ;; #(
ad6254c5
AK
10473 *)
10474 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10476 ;;
7a197a62
AK
10477 esac |
10478 sort
10479) |
ad6254c5 10480 sed '
7a197a62 10481 /^ac_cv_env_/b end
ad6254c5 10482 t clear
7a197a62 10483 :clear
ad6254c5
AK
10484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10485 t end
7a197a62
AK
10486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10487 :end' >>confcache
10488if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10489 if test -w "$cache_file"; then
10490 test "x$cache_file" != "x/dev/null" &&
f11781c5 10491 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10492$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10493 cat confcache >$cache_file
795ca3e5 10494 else
f11781c5 10495 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10496$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10497 fi
10498fi
10499rm -f confcache
10500
795ca3e5
AK
10501test "x$prefix" = xNONE && prefix=$ac_default_prefix
10502# Let make expand exec_prefix.
10503test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10504
72b2cb61 10505DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10506
10507ac_libobjs=
10508ac_ltlibobjs=
f11781c5 10509U=
ad6254c5
AK
10510for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10511 # 1. Remove the extension, and $U if already installed.
7a197a62 10512 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10513 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10514 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10515 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10516 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10517 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10518done
10519LIBOBJS=$ac_libobjs
80992638 10520
ad6254c5
AK
10521LTLIBOBJS=$ac_ltlibobjs
10522
10523
10524
10525: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10526ac_write_fail=0
ad6254c5
AK
10527ac_clean_files_save=$ac_clean_files
10528ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10529{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10530$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10531as_write_fail=0
10532cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10533#! $SHELL
10534# Generated by $as_me.
795ca3e5 10535# Run this file to recreate the current configuration.
795ca3e5 10536# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10537# configure, is in config.log if it exists.
10538
10539debug=false
10540ac_cs_recheck=false
10541ac_cs_silent=false
ad6254c5 10542
f11781c5
AK
10543SHELL=\${CONFIG_SHELL-$SHELL}
10544export SHELL
10545_ASEOF
10546cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10547## -------------------- ##
10548## M4sh Initialization. ##
10549## -------------------- ##
ad6254c5 10550
25fbec5b
AK
10551# Be more Bourne compatible
10552DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10553if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10554 emulate sh
10555 NULLCMD=:
ec6a6fbe 10556 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10557 # is contrary to our usage. Disable this feature.
10558 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10559 setopt NO_GLOB_SUBST
10560else
f11781c5
AK
10561 case `(set -o) 2>/dev/null` in #(
10562 *posix*) :
10563 set -o posix ;; #(
10564 *) :
10565 ;;
25fbec5b 10566esac
7a197a62 10567fi
25fbec5b
AK
10568
10569
ec6a6fbe
AK
10570as_nl='
10571'
10572export as_nl
10573# Printing a long string crashes Solaris 7 /usr/bin/printf.
10574as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10575as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10576as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10577# Prefer a ksh shell builtin over an external printf program on Solaris,
10578# but without wasting forks for bash or zsh.
10579if test -z "$BASH_VERSION$ZSH_VERSION" \
10580 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10581 as_echo='print -r --'
10582 as_echo_n='print -rn --'
10583elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10584 as_echo='printf %s\n'
10585 as_echo_n='printf %s'
10586else
10587 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10588 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10589 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10590 else
ec6a6fbe
AK
10591 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10592 as_echo_n_body='eval
10593 arg=$1;
f11781c5 10594 case $arg in #(
ec6a6fbe
AK
10595 *"$as_nl"*)
10596 expr "X$arg" : "X\\(.*\\)$as_nl";
10597 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10598 esac;
10599 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10600 '
10601 export as_echo_n_body
10602 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10603 fi
ec6a6fbe
AK
10604 export as_echo_body
10605 as_echo='sh -c $as_echo_body as_echo'
10606fi
10607
10608# The user is always right.
10609if test "${PATH_SEPARATOR+set}" != set; then
10610 PATH_SEPARATOR=:
10611 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10612 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10613 PATH_SEPARATOR=';'
10614 }
ad6254c5
AK
10615fi
10616
ad6254c5 10617
7a197a62
AK
10618# IFS
10619# We need space, tab and new line, in precisely that order. Quoting is
10620# there to prevent editors from complaining about space-tab.
10621# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10622# splitting by setting IFS to empty value.)
7a197a62
AK
10623IFS=" "" $as_nl"
10624
10625# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10626case $0 in #((
7a197a62
AK
10627 *[\\/]* ) as_myself=$0 ;;
10628 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10629for as_dir in $PATH
10630do
10631 IFS=$as_save_IFS
10632 test -z "$as_dir" && as_dir=.
f11781c5
AK
10633 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10634 done
7a197a62
AK
10635IFS=$as_save_IFS
10636
10637 ;;
10638esac
10639# We did not find ourselves, most probably we were run as `sh COMMAND'
10640# in which case we are not to be found in the path.
10641if test "x$as_myself" = x; then
10642 as_myself=$0
10643fi
10644if test ! -f "$as_myself"; then
ec6a6fbe 10645 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10646 exit 1
7a197a62
AK
10647fi
10648
f11781c5
AK
10649# Unset variables that we do not need and which cause bugs (e.g. in
10650# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10651# suppresses any "Segmentation fault" message there. '((' could
10652# trigger a bug in pdksh 5.2.14.
10653for as_var in BASH_ENV ENV MAIL MAILPATH
10654do eval test x\${$as_var+set} = xset \
10655 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10656done
ad6254c5
AK
10657PS1='$ '
10658PS2='> '
10659PS4='+ '
10660
10661# NLS nuisances.
ec6a6fbe
AK
10662LC_ALL=C
10663export LC_ALL
10664LANGUAGE=C
10665export LANGUAGE
8106cdd5 10666
f11781c5
AK
10667# CDPATH.
10668(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10669
10670
10671# as_fn_error STATUS ERROR [LINENO LOG_FD]
10672# ----------------------------------------
10673# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10674# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10675# script with STATUS, using 1 if that was 0.
10676as_fn_error ()
10677{
10678 as_status=$1; test $as_status -eq 0 && as_status=1
10679 if test "$4"; then
10680 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10681 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10682 fi
10683 $as_echo "$as_me: error: $2" >&2
10684 as_fn_exit $as_status
10685} # as_fn_error
10686
10687
10688# as_fn_set_status STATUS
10689# -----------------------
10690# Set $? to STATUS, without forking.
10691as_fn_set_status ()
10692{
10693 return $1
10694} # as_fn_set_status
10695
10696# as_fn_exit STATUS
10697# -----------------
10698# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10699as_fn_exit ()
10700{
10701 set +e
10702 as_fn_set_status $1
10703 exit $1
10704} # as_fn_exit
10705
10706# as_fn_unset VAR
10707# ---------------
10708# Portably unset VAR.
10709as_fn_unset ()
10710{
10711 { eval $1=; unset $1;}
10712}
10713as_unset=as_fn_unset
10714# as_fn_append VAR VALUE
10715# ----------------------
10716# Append the text in VALUE to the end of the definition contained in VAR. Take
10717# advantage of any shell optimizations that allow amortized linear growth over
10718# repeated appends, instead of the typical quadratic growth present in naive
10719# implementations.
10720if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10721 eval 'as_fn_append ()
10722 {
10723 eval $1+=\$2
10724 }'
10725else
10726 as_fn_append ()
10727 {
10728 eval $1=\$$1\$2
10729 }
10730fi # as_fn_append
10731
10732# as_fn_arith ARG...
10733# ------------------
10734# Perform arithmetic evaluation on the ARGs, and store the result in the
10735# global $as_val. Take advantage of shells that can avoid forks. The arguments
10736# must be portable across $(()) and expr.
10737if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10738 eval 'as_fn_arith ()
10739 {
10740 as_val=$(( $* ))
10741 }'
10742else
10743 as_fn_arith ()
10744 {
10745 as_val=`expr "$@" || test $? -eq 1`
10746 }
10747fi # as_fn_arith
10748
10749
7a197a62
AK
10750if expr a : '\(a\)' >/dev/null 2>&1 &&
10751 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10752 as_expr=expr
10753else
10754 as_expr=false
10755fi
8106cdd5 10756
7a197a62 10757if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10758 as_basename=basename
10759else
10760 as_basename=false
10761fi
10762
f11781c5
AK
10763if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10764 as_dirname=dirname
10765else
10766 as_dirname=false
10767fi
ad6254c5 10768
7a197a62 10769as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10770$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10771 X"$0" : 'X\(//\)$' \| \
7a197a62 10772 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10773$as_echo X/"$0" |
7a197a62
AK
10774 sed '/^.*\/\([^/][^/]*\)\/*$/{
10775 s//\1/
10776 q
10777 }
10778 /^X\/\(\/\/\)$/{
10779 s//\1/
10780 q
10781 }
10782 /^X\/\(\/\).*/{
10783 s//\1/
10784 q
10785 }
10786 s/.*/./; q'`
ad6254c5 10787
f11781c5
AK
10788# Avoid depending upon Character Ranges.
10789as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10790as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10791as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10792as_cr_digits='0123456789'
10793as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10794
10795ECHO_C= ECHO_N= ECHO_T=
f11781c5 10796case `echo -n x` in #(((((
7a197a62 10797-n*)
f11781c5 10798 case `echo 'xy\c'` in
7a197a62 10799 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10800 xy) ECHO_C='\c';;
10801 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10802 ECHO_T=' ';;
7a197a62
AK
10803 esac;;
10804*)
10805 ECHO_N='-n';;
ad6254c5 10806esac
80992638 10807
ad6254c5 10808rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10809if test -d conf$$.dir; then
10810 rm -f conf$$.dir/conf$$.file
10811else
10812 rm -f conf$$.dir
ec6a6fbe
AK
10813 mkdir conf$$.dir 2>/dev/null
10814fi
10815if (echo >conf$$.file) 2>/dev/null; then
10816 if ln -s conf$$.file conf$$ 2>/dev/null; then
10817 as_ln_s='ln -s'
10818 # ... but there are two gotchas:
10819 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10820 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10821 # In both cases, we have to default to `cp -p'.
10822 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10823 as_ln_s='cp -p'
10824 elif ln conf$$.file conf$$ 2>/dev/null; then
10825 as_ln_s=ln
10826 else
ad6254c5 10827 as_ln_s='cp -p'
ec6a6fbe 10828 fi
ad6254c5
AK
10829else
10830 as_ln_s='cp -p'
10831fi
7a197a62
AK
10832rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10833rmdir conf$$.dir 2>/dev/null
8106cdd5 10834
f11781c5
AK
10835
10836# as_fn_mkdir_p
10837# -------------
10838# Create "$as_dir" as a directory, including parents if necessary.
10839as_fn_mkdir_p ()
10840{
10841
10842 case $as_dir in #(
10843 -*) as_dir=./$as_dir;;
10844 esac
10845 test -d "$as_dir" || eval $as_mkdir_p || {
10846 as_dirs=
10847 while :; do
10848 case $as_dir in #(
10849 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10850 *) as_qdir=$as_dir;;
10851 esac
10852 as_dirs="'$as_qdir' $as_dirs"
10853 as_dir=`$as_dirname -- "$as_dir" ||
10854$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10855 X"$as_dir" : 'X\(//\)[^/]' \| \
10856 X"$as_dir" : 'X\(//\)$' \| \
10857 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10858$as_echo X"$as_dir" |
10859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10860 s//\1/
10861 q
10862 }
10863 /^X\(\/\/\)[^/].*/{
10864 s//\1/
10865 q
10866 }
10867 /^X\(\/\/\)$/{
10868 s//\1/
10869 q
10870 }
10871 /^X\(\/\).*/{
10872 s//\1/
10873 q
10874 }
10875 s/.*/./; q'`
10876 test -d "$as_dir" && break
10877 done
10878 test -z "$as_dirs" || eval "mkdir $as_dirs"
10879 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10880
10881
10882} # as_fn_mkdir_p
ad6254c5 10883if mkdir -p . 2>/dev/null; then
f11781c5 10884 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 10885else
8a2fc586 10886 test -d ./-p && rmdir ./-p
ad6254c5
AK
10887 as_mkdir_p=false
10888fi
10889
25fbec5b
AK
10890if test -x / >/dev/null 2>&1; then
10891 as_test_x='test -x'
7a197a62 10892else
25fbec5b
AK
10893 if ls -dL / >/dev/null 2>&1; then
10894 as_ls_L_option=L
10895 else
10896 as_ls_L_option=
10897 fi
10898 as_test_x='
10899 eval sh -c '\''
10900 if test -d "$1"; then
ec6a6fbe 10901 test -d "$1/.";
25fbec5b 10902 else
f11781c5 10903 case $1 in #(
ec6a6fbe 10904 -*)set "./$1";;
25fbec5b 10905 esac;
f11781c5 10906 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
10907 ???[sx]*):;;*)false;;esac;fi
10908 '\'' sh
10909 '
7a197a62 10910fi
25fbec5b 10911as_executable_p=$as_test_x
ad6254c5
AK
10912
10913# Sed expression to map a string onto a valid CPP name.
8a2fc586 10914as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10915
10916# Sed expression to map a string onto a valid variable name.
8a2fc586 10917as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10918
10919
ad6254c5 10920exec 6>&1
f11781c5
AK
10921## ----------------------------------- ##
10922## Main body of $CONFIG_STATUS script. ##
10923## ----------------------------------- ##
10924_ASEOF
10925test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 10926
f11781c5
AK
10927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10928# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 10929# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
10930# values after options handling.
10931ac_log="
ad6254c5 10932This file was extended by $as_me, which was
f11781c5 10933generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
10934
10935 CONFIG_FILES = $CONFIG_FILES
10936 CONFIG_HEADERS = $CONFIG_HEADERS
10937 CONFIG_LINKS = $CONFIG_LINKS
10938 CONFIG_COMMANDS = $CONFIG_COMMANDS
10939 $ $0 $@
10940
7a197a62
AK
10941on `(hostname || uname -n) 2>/dev/null | sed 1q`
10942"
10943
ad6254c5
AK
10944_ACEOF
10945
ec6a6fbe
AK
10946case $ac_config_files in *"
10947"*) set x $ac_config_files; shift; ac_config_files=$*;;
10948esac
10949
10950case $ac_config_headers in *"
10951"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10952esac
10953
10954
10955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10956# Files that config.status was made for.
68f2de6d
AK
10957config_files="$ac_config_files"
10958config_headers="$ac_config_headers"
ad6254c5 10959
7a197a62 10960_ACEOF
ad6254c5 10961
ec6a6fbe 10962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 10963ac_cs_usage="\
f11781c5
AK
10964\`$as_me' instantiates files and other configuration actions
10965from templates according to the current configuration. Unless the files
10966and actions are specified as TAGs, all are instantiated by default.
ad6254c5 10967
f11781c5 10968Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
10969
10970 -h, --help print this help, then exit
25fbec5b 10971 -V, --version print version number and configuration settings, then exit
f11781c5 10972 --config print configuration, then exit
ec6a6fbe
AK
10973 -q, --quiet, --silent
10974 do not print progress messages
ad6254c5
AK
10975 -d, --debug don't remove temporary files
10976 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
10977 --file=FILE[:TEMPLATE]
10978 instantiate the configuration file FILE
10979 --header=FILE[:TEMPLATE]
10980 instantiate the configuration header FILE
ad6254c5
AK
10981
10982Configuration files:
10983$config_files
10984
72b2cb61
AK
10985Configuration headers:
10986$config_headers
10987
f11781c5 10988Report bugs to the package provider."
ad6254c5 10989
7a197a62 10990_ACEOF
ec6a6fbe 10991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 10992ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
10993ac_cs_version="\\
10994config.status
f11781c5
AK
10995configured by $0, generated by GNU Autoconf 2.66,
10996 with options \\"\$ac_cs_config\\"
ad6254c5 10997
f11781c5 10998Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
10999This config.status script is free software; the Free Software Foundation
11000gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
11001
11002ac_pwd='$ac_pwd'
11003srcdir='$srcdir'
11004INSTALL='$INSTALL'
fddafd51 11005MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
11006AWK='$AWK'
11007test -n "\$AWK" || AWK=awk
ad6254c5
AK
11008_ACEOF
11009
ec6a6fbe
AK
11010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11011# The default lists apply if the user does not specify any file.
ad6254c5
AK
11012ac_need_defaults=:
11013while test $# != 0
11014do
11015 case $1 in
11016 --*=*)
7a197a62
AK
11017 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11018 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
11019 ac_shift=:
11020 ;;
7a197a62 11021 *)
ad6254c5
AK
11022 ac_option=$1
11023 ac_optarg=$2
11024 ac_shift=shift
11025 ;;
ad6254c5
AK
11026 esac
11027
11028 case $ac_option in
11029 # Handling of the options.
ad6254c5
AK
11030 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11031 ac_cs_recheck=: ;;
7a197a62 11032 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 11033 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
11034 --config | --confi | --conf | --con | --co | --c )
11035 $as_echo "$ac_cs_config"; exit ;;
7a197a62 11036 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
11037 debug=: ;;
11038 --file | --fil | --fi | --f )
11039 $ac_shift
ec6a6fbe
AK
11040 case $ac_optarg in
11041 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11042 esac
f11781c5 11043 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
11044 ac_need_defaults=false;;
11045 --header | --heade | --head | --hea )
11046 $ac_shift
ec6a6fbe
AK
11047 case $ac_optarg in
11048 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11049 esac
f11781c5 11050 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 11051 ac_need_defaults=false;;
7a197a62
AK
11052 --he | --h)
11053 # Conflict between --help and --header
f11781c5
AK
11054 as_fn_error $? "ambiguous option: \`$1'
11055Try \`$0 --help' for more information.";;
7a197a62 11056 --help | --hel | -h )
ec6a6fbe 11057 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
11058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11059 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11060 ac_cs_silent=: ;;
11061
11062 # This is an error.
f11781c5
AK
11063 -*) as_fn_error $? "unrecognized option: \`$1'
11064Try \`$0 --help' for more information." ;;
ad6254c5 11065
f11781c5 11066 *) as_fn_append ac_config_targets " $1"
7a197a62 11067 ac_need_defaults=false ;;
ad6254c5
AK
11068
11069 esac
11070 shift
11071done
11072
11073ac_configure_extra_args=
11074
11075if $ac_cs_silent; then
11076 exec 6>/dev/null
11077 ac_configure_extra_args="$ac_configure_extra_args --silent"
11078fi
11079
11080_ACEOF
ec6a6fbe 11081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 11082if \$ac_cs_recheck; then
ec6a6fbe
AK
11083 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11084 shift
11085 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11086 CONFIG_SHELL='$SHELL'
7a197a62 11087 export CONFIG_SHELL
ec6a6fbe 11088 exec "\$@"
ad6254c5
AK
11089fi
11090
11091_ACEOF
ec6a6fbe 11092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11093exec 5>>config.log
11094{
11095 echo
11096 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11097## Running $as_me. ##
11098_ASBOX
ec6a6fbe 11099 $as_echo "$ac_log"
7a197a62 11100} >&5
ad6254c5 11101
7a197a62 11102_ACEOF
ec6a6fbe 11103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 11104_ACEOF
ad6254c5 11105
ec6a6fbe 11106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11107
11108# Handling of arguments.
ad6254c5
AK
11109for ac_config_target in $ac_config_targets
11110do
7a197a62
AK
11111 case $ac_config_target in
11112 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11113 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11114 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11115 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11116 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 11117 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
11118 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11119 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 11120 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 11121 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
11122 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11123 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 11124 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 11125 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 11126 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
11127 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11128 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
11129 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11130 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11131 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11132 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 11133 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 11134 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 11135 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
11136 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11137 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 11138 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 11139 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
11140 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11141 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 11142 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 11143 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 11144 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
6e5c1f75
PR
11145 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11146 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
7a197a62 11147 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 11148 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 11149 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 11150 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 11151 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
11152 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11153 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 11154 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 11155
f11781c5 11156 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 11157 esac
ad6254c5
AK
11158done
11159
7a197a62 11160
ad6254c5
AK
11161# If the user did not use the arguments to specify the items to instantiate,
11162# then the envvar interface is used. Set only those that are not.
11163# We use the long form for the default assignment because of an extremely
11164# bizarre bug on SunOS 4.1.3.
11165if $ac_need_defaults; then
11166 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 11167 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
11168fi
11169
11170# Have a temporary directory for convenience. Make it in the build tree
7a197a62 11171# simply because there is no reason against having it here, and in addition,
ad6254c5 11172# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
11173# Hook for its removal unless debugging.
11174# Note that there is a small window in which the directory will not be cleaned:
11175# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
11176$debug ||
11177{
7a197a62
AK
11178 tmp=
11179 trap 'exit_status=$?
11180 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11181' 0
f11781c5 11182 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 11183}
ad6254c5
AK
11184# Create a (secure) tmp directory for tmp files.
11185
11186{
7a197a62 11187 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
11188 test -n "$tmp" && test -d "$tmp"
11189} ||
11190{
7a197a62
AK
11191 tmp=./conf$$-$RANDOM
11192 (umask 077 && mkdir "$tmp")
f11781c5 11193} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 11194
ec6a6fbe
AK
11195# Set up the scripts for CONFIG_FILES section.
11196# No need to generate them if there are no CONFIG_FILES.
11197# This happens for instance with `./config.status config.h'.
1995c9ff 11198if test -n "$CONFIG_FILES"; then
7a197a62 11199
68f2de6d 11200
f11781c5
AK
11201ac_cr=`echo X | tr X '\015'`
11202# On cygwin, bash can eat \r inside `` if the user requested igncr.
11203# But we know of no other shell where ac_cr would be empty at this
11204# point, so we can use a bashism as a fallback.
11205if test "x$ac_cr" = x; then
11206 eval ac_cr=\$\'\\r\'
11207fi
ec6a6fbe
AK
11208ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11209if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11210 ac_cs_awk_cr='\\r'
11211else
11212 ac_cs_awk_cr=$ac_cr
1995c9ff 11213fi
7a197a62 11214
ec6a6fbe 11215echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 11216_ACEOF
7a197a62 11217
8106cdd5 11218
ec6a6fbe
AK
11219{
11220 echo "cat >conf$$subs.awk <<_ACEOF" &&
11221 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11222 echo "_ACEOF"
11223} >conf$$subs.sh ||
f11781c5
AK
11224 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11225ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
11226ac_delim='%!_!# '
11227for ac_last_try in false false false false false :; do
ec6a6fbe 11228 . ./conf$$subs.sh ||
f11781c5 11229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
11230
11231 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11232 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
11233 break
11234 elif $ac_last_try; then
f11781c5 11235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
11236 else
11237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11238 fi
11239done
ec6a6fbe
AK
11240rm -f conf$$subs.sh
11241
11242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11243cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11244_ACEOF
11245sed -n '
11246h
11247s/^/S["/; s/!.*/"]=/
11248p
11249g
11250s/^[^!]*!//
11251:repl
11252t repl
11253s/'"$ac_delim"'$//
11254t delim
11255:nl
11256h
f11781c5 11257s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11258t more1
11259s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11260p
11261n
11262b repl
11263:more1
11264s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11265p
11266g
11267s/.\{148\}//
11268t nl
11269:delim
11270h
f11781c5 11271s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11272t more2
11273s/["\\]/\\&/g; s/^/"/; s/$/"/
11274p
11275b
11276:more2
11277s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11278p
11279g
11280s/.\{148\}//
11281t delim
11282' <conf$$subs.awk | sed '
11283/^[^""]/{
11284 N
11285 s/\n//
11286}
11287' >>$CONFIG_STATUS || ac_write_fail=1
11288rm -f conf$$subs.awk
11289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11290_ACAWK
11291cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11292 for (key in S) S_is_set[key] = 1
11293 FS = "\a"
7a197a62 11294
ec6a6fbe
AK
11295}
11296{
11297 line = $ 0
11298 nfields = split(line, field, "@")
11299 substed = 0
11300 len = length(field[1])
11301 for (i = 2; i < nfields; i++) {
11302 key = field[i]
11303 keylen = length(key)
11304 if (S_is_set[key]) {
11305 value = S[key]
11306 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11307 len += length(value) + length(field[++i])
11308 substed = 1
11309 } else
11310 len += 1 + keylen
11311 }
11312
11313 print line
11314}
fddafd51 11315
ec6a6fbe 11316_ACAWK
1995c9ff 11317_ACEOF
ec6a6fbe
AK
11318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11319if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11320 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11321else
11322 cat
11323fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11324 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11325_ACEOF
11326
f11781c5
AK
11327# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11328# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11329# trailing colons and then remove the whole line if VPATH becomes empty
11330# (actually we leave an empty line to preserve line numbers).
11331if test "x$srcdir" = x.; then
f11781c5
AK
11332 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11333h
11334s///
11335s/^/:/
11336s/[ ]*$/:/
11337s/:\$(srcdir):/:/g
11338s/:\${srcdir}:/:/g
11339s/:@srcdir@:/:/g
11340s/^:*//
7a197a62 11341s/:*$//
f11781c5
AK
11342x
11343s/\(=[ ]*\).*/\1/
11344G
11345s/\n//
7a197a62
AK
11346s/^[^=]*=[ ]*$//
11347}'
11348fi
11349
ec6a6fbe 11350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11351fi # test -n "$CONFIG_FILES"
11352
ec6a6fbe
AK
11353# Set up the scripts for CONFIG_HEADERS section.
11354# No need to generate them if there are no CONFIG_HEADERS.
11355# This happens for instance with `./config.status Makefile'.
11356if test -n "$CONFIG_HEADERS"; then
11357cat >"$tmp/defines.awk" <<\_ACAWK ||
11358BEGIN {
11359_ACEOF
11360
11361# Transform confdefs.h into an awk script `defines.awk', embedded as
11362# here-document in config.status, that substitutes the proper values into
11363# config.h.in to produce config.h.
11364
11365# Create a delimiter string that does not exist in confdefs.h, to ease
11366# handling of long lines.
11367ac_delim='%!_!# '
11368for ac_last_try in false false :; do
11369 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11370 if test -z "$ac_t"; then
11371 break
11372 elif $ac_last_try; then
f11781c5 11373 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11374 else
11375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11376 fi
11377done
11378
11379# For the awk script, D is an array of macro values keyed by name,
11380# likewise P contains macro parameters if any. Preserve backslash
11381# newline sequences.
11382
11383ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11384sed -n '
11385s/.\{148\}/&'"$ac_delim"'/g
11386t rset
11387:rset
11388s/^[ ]*#[ ]*define[ ][ ]*/ /
11389t def
11390d
11391:def
11392s/\\$//
11393t bsnl
11394s/["\\]/\\&/g
11395s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11396D["\1"]=" \3"/p
11397s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11398d
11399:bsnl
11400s/["\\]/\\&/g
11401s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11402D["\1"]=" \3\\\\\\n"\\/p
11403t cont
11404s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11405t cont
11406d
11407:cont
11408n
11409s/.\{148\}/&'"$ac_delim"'/g
11410t clear
11411:clear
11412s/\\$//
11413t bsnlc
11414s/["\\]/\\&/g; s/^/"/; s/$/"/p
11415d
11416:bsnlc
11417s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11418b cont
11419' <confdefs.h | sed '
11420s/'"$ac_delim"'/"\\\
11421"/g' >>$CONFIG_STATUS || ac_write_fail=1
11422
11423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11424 for (key in D) D_is_set[key] = 1
11425 FS = "\a"
11426}
11427/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11428 line = \$ 0
11429 split(line, arg, " ")
11430 if (arg[1] == "#") {
11431 defundef = arg[2]
11432 mac1 = arg[3]
11433 } else {
11434 defundef = substr(arg[1], 2)
11435 mac1 = arg[2]
11436 }
11437 split(mac1, mac2, "(") #)
11438 macro = mac2[1]
11439 prefix = substr(line, 1, index(line, defundef) - 1)
11440 if (D_is_set[macro]) {
11441 # Preserve the white space surrounding the "#".
11442 print prefix "define", macro P[macro] D[macro]
11443 next
11444 } else {
11445 # Replace #undef with comments. This is necessary, for example,
11446 # in the case of _POSIX_SOURCE, which is predefined and required
11447 # on some systems where configure will not decide to define it.
11448 if (defundef == "undef") {
11449 print "/*", prefix defundef, macro, "*/"
11450 next
11451 }
11452 }
11453}
11454{ print }
11455_ACAWK
11456_ACEOF
11457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11458 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11459fi # test -n "$CONFIG_HEADERS"
11460
7a197a62 11461
ec6a6fbe
AK
11462eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11463shift
11464for ac_tag
7a197a62
AK
11465do
11466 case $ac_tag in
11467 :[FHLC]) ac_mode=$ac_tag; continue;;
11468 esac
11469 case $ac_mode$ac_tag in
11470 :[FHL]*:*);;
f11781c5 11471 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11472 :[FH]-) ac_tag=-:-;;
11473 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11474 esac
11475 ac_save_IFS=$IFS
11476 IFS=:
11477 set x $ac_tag
11478 IFS=$ac_save_IFS
11479 shift
11480 ac_file=$1
11481 shift
11482
11483 case $ac_mode in
11484 :L) ac_source=$1;;
11485 :[FH])
11486 ac_file_inputs=
11487 for ac_f
11488 do
11489 case $ac_f in
11490 -) ac_f="$tmp/stdin";;
11491 *) # Look for the file first in the build tree, then in the source tree
11492 # (if the path is not absolute). The absolute path cannot be DOS-style,
11493 # because $ac_f cannot contain `:'.
11494 test -f "$ac_f" ||
11495 case $ac_f in
11496 [\\/$]*) false;;
11497 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11498 esac ||
f11781c5 11499 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11500 esac
ec6a6fbe 11501 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11502 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11503 done
11504
11505 # Let's still pretend it is `configure' which instantiates (i.e., don't
11506 # use $as_me), people would be surprised to read:
11507 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11508 configure_input='Generated from '`
11509 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11510 `' by configure.'
7a197a62
AK
11511 if test x"$ac_file" != x-; then
11512 configure_input="$ac_file. $configure_input"
f11781c5 11513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11514$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11515 fi
ec6a6fbe
AK
11516 # Neutralize special characters interpreted by sed in replacement strings.
11517 case $configure_input in #(
11518 *\&* | *\|* | *\\* )
11519 ac_sed_conf_input=`$as_echo "$configure_input" |
11520 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11521 *) ac_sed_conf_input=$configure_input;;
11522 esac
7a197a62
AK
11523
11524 case $ac_tag in
ec6a6fbe 11525 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11527 esac
11528 ;;
80992638 11529 esac
8106cdd5 11530
7a197a62 11531 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11532$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11533 X"$ac_file" : 'X\(//\)[^/]' \| \
11534 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11536$as_echo X"$ac_file" |
7a197a62
AK
11537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11538 s//\1/
11539 q
11540 }
11541 /^X\(\/\/\)[^/].*/{
11542 s//\1/
11543 q
11544 }
11545 /^X\(\/\/\)$/{
11546 s//\1/
11547 q
11548 }
11549 /^X\(\/\).*/{
11550 s//\1/
11551 q
11552 }
11553 s/.*/./; q'`
f11781c5 11554 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11555 ac_builddir=.
11556
7a197a62
AK
11557case "$ac_dir" in
11558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11559*)
ec6a6fbe 11560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11561 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11563 case $ac_top_builddir_sub in
11564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11566 esac ;;
11567esac
11568ac_abs_top_builddir=$ac_pwd
11569ac_abs_builddir=$ac_pwd$ac_dir_suffix
11570# for backward compatibility:
11571ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11572
11573case $srcdir in
7a197a62 11574 .) # We are building in place.
ad6254c5 11575 ac_srcdir=.
7a197a62
AK
11576 ac_top_srcdir=$ac_top_builddir_sub
11577 ac_abs_top_srcdir=$ac_pwd ;;
11578 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11579 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11580 ac_top_srcdir=$srcdir
11581 ac_abs_top_srcdir=$srcdir ;;
11582 *) # Relative name.
11583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11584 ac_top_srcdir=$ac_top_build_prefix$srcdir
11585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11586esac
7a197a62 11587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11588
ad6254c5 11589
7a197a62
AK
11590 case $ac_mode in
11591 :F)
11592 #
11593 # CONFIG_FILE
11594 #
ad6254c5
AK
11595
11596 case $INSTALL in
11597 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11598 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11599 esac
fddafd51
ZK
11600 ac_MKDIR_P=$MKDIR_P
11601 case $MKDIR_P in
11602 [\\/$]* | ?:[\\/]* ) ;;
11603 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11604 esac
7a197a62 11605_ACEOF
795ca3e5 11606
ec6a6fbe 11607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11608# If the template does not know about datarootdir, expand it.
11609# FIXME: This hack should be removed a few years after 2.60.
11610ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11611ac_sed_dataroot='
11612/datarootdir/ {
7a197a62
AK
11613 p
11614 q
11615}
11616/@datadir@/p
11617/@docdir@/p
11618/@infodir@/p
11619/@localedir@/p
f11781c5 11620/@mandir@/p'
ec6a6fbe 11621case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11622*datarootdir*) ac_datarootdir_seen=yes;;
11623*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11625$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11626_ACEOF
ec6a6fbe 11627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11628 ac_datarootdir_hack='
11629 s&@datadir@&$datadir&g
11630 s&@docdir@&$docdir&g
11631 s&@infodir@&$infodir&g
11632 s&@localedir@&$localedir&g
11633 s&@mandir@&$mandir&g
f11781c5 11634 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11635esac
11636_ACEOF
11637
11638# Neutralize VPATH when `$srcdir' = `.'.
11639# Shell code in configure.ac might set extrasub.
11640# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11642ac_sed_extra="$ac_vpsub
ad6254c5
AK
11643$extrasub
11644_ACEOF
ec6a6fbe 11645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11646:t
11647/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11648s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11649s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11650s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11651s&@srcdir@&$ac_srcdir&;t t
11652s&@abs_srcdir@&$ac_abs_srcdir&;t t
11653s&@top_srcdir@&$ac_top_srcdir&;t t
11654s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11655s&@builddir@&$ac_builddir&;t t
11656s&@abs_builddir@&$ac_abs_builddir&;t t
11657s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11658s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11659s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11660$ac_datarootdir_hack
ec6a6fbe
AK
11661"
11662eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11664
11665test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11666 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11667 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11669which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11670$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11671which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11672
11673 rm -f "$tmp/stdin"
72b2cb61 11674 case $ac_file in
ec6a6fbe
AK
11675 -) cat "$tmp/out" && rm -f "$tmp/out";;
11676 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11677 esac \
f11781c5 11678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11679 ;;
11680 :H)
11681 #
11682 # CONFIG_HEADER
11683 #
72b2cb61 11684 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11685 {
11686 $as_echo "/* $configure_input */" \
11687 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11688 } >"$tmp/config.h" \
f11781c5 11689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11690 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11691 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11692$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11693 else
ec6a6fbe
AK
11694 rm -f "$ac_file"
11695 mv "$tmp/config.h" "$ac_file" \
f11781c5 11696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11697 fi
11698 else
ec6a6fbe
AK
11699 $as_echo "/* $configure_input */" \
11700 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11701 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11702 fi
7a197a62
AK
11703 ;;
11704
11705
11706 esac
11707
11708done # for ac_tag
795ca3e5 11709
795ca3e5 11710
f11781c5 11711as_fn_exit 0
ad6254c5 11712_ACEOF
ad6254c5
AK
11713ac_clean_files=$ac_clean_files_save
11714
ec6a6fbe 11715test $ac_write_fail = 0 ||
f11781c5 11716 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11717
ad6254c5
AK
11718
11719# configure is writing to config.log, and then calls config.status.
11720# config.status does its own redirection, appending to config.log.
11721# Unfortunately, on DOS this fails, as config.log is still kept open
11722# by configure, so config.status won't be able to write to it; its
11723# output is simply discarded. So we exec the FD to /dev/null,
11724# effectively closing config.log, so it can be properly (re)opened and
11725# appended to by config.status. When coming back to configure, we
11726# need to make the FD available again.
11727if test "$no_create" != yes; then
11728 ac_cs_success=:
11729 ac_config_status_args=
11730 test "$silent" = yes &&
11731 ac_config_status_args="$ac_config_status_args --quiet"
11732 exec 5>/dev/null
11733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11734 exec 5>>config.log
11735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11736 # would make configure fail if this is the last instruction.
f11781c5 11737 $ac_cs_success || as_fn_exit 1
ad6254c5 11738fi
ec6a6fbe 11739if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11741$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11742fi
795ca3e5 11743
2dc95e1c
AK
11744
11745if test x$ODIRECT != xyes; then
f11781c5 11746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11747$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11748fi
This page took 1.946002 seconds and 5 git commands to generate.