]> sourceware.org Git - lvm2.git/blame - configure
Change DEFAULT_UDEV_SYNC to 1 so udev_sync is used even without any config.
[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
539f4a77 617READLINE_LIBS
f30875db 618PTHREAD_LIBS
ec6a6fbe
AK
619POOL
620PKGCONFIG
8fea97b7 621REPLICATORS
606d0858 622OCFDIR
37ddf259 623OCF
ec6a6fbe
AK
624MIRRORS
625LVM_RELEASE_DATE
626LVM_RELEASE
627LVM_PATCHLEVEL
628LVM_MINOR
629LVM_MAJOR
bf456146 630LVM_LIBAPI
ec6a6fbe 631LVM_VERSION
ec6a6fbe
AK
632LVM1_FALLBACK
633LVM1
634LOCALEDIR
635LIB_SUFFIX
636LDDEPS
637JOBS
638INTL_PACKAGE
639INTL
ec6a6fbe
AK
640HAVE_REALTIME
641HAVE_LIBDL
ec6a6fbe
AK
642FSADM
643DM_LIB_PATCHLEVEL
644DM_LIB_VERSION
645DM_IOCTLS
646DM_DEVICE_UID
647DM_DEVICE_MODE
648DM_DEVICE_GID
649DM_COMPAT
d1e8046f 650DMEVENTD_PATH
ec6a6fbe 651DMEVENTD
19a2c6e0 652DL_LIBS
ec6a6fbe 653DEVMAPPER
b1f08e51 654DEFAULT_RUN_DIR
3399ae32 655DEFAULT_LOCK_DIR
fea55602 656DEFAULT_DATA_ALIGNMENT
3399ae32
AK
657DEFAULT_CACHE_SUBDIR
658DEFAULT_BACKUP_SUBDIR
659DEFAULT_ARCHIVE_SUBDIR
660DEFAULT_SYS_DIR
ec6a6fbe
AK
661DEBUG
662COPTIMISE_FLAG
e2997b73 663CONFDIR
ec6a6fbe 664CMDLIB
c89bc357 665CLVMD_CMANAGERS
ec6a6fbe
AK
666CLVMD
667CLUSTER
668CLDWHOLEARCHIVE
669CLDNOWHOLEARCHIVE
670CLDFLAGS
671BUILD_DMEVENTD
66fd4529 672BUILD_CMIRRORD
572fefeb 673APPLIB
ec6a6fbe
AK
674MODPROBE_CMD
675MSGFMT
676LVM2CMD_LIB
572fefeb 677LVM2APP_LIB
d93275eb
PR
678UDEV_LIBS
679UDEV_CFLAGS
54b362f9
AK
680VALGRIND
681RUBY19
fd4728e1 682GENPNG
ec6a6fbe
AK
683GENHTML
684LCOV
90c80887
AK
685SACKPT_LIBS
686SACKPT_CFLAGS
a946372e
AK
687DLM_LIBS
688DLM_CFLAGS
e2997b73
AK
689CPG_LIBS
690CPG_CFLAGS
691CONFDB_LIBS
692CONFDB_CFLAGS
a946372e
AK
693SALCK_LIBS
694SALCK_CFLAGS
e2997b73
AK
695QUORUM_LIBS
696QUORUM_CFLAGS
a946372e
AK
697COROSYNC_LIBS
698COROSYNC_CFLAGS
699CMAN_LIBS
700CMAN_CFLAGS
701GULM_LIBS
702GULM_CFLAGS
703CCS_LIBS
704CCS_CFLAGS
705PKGCONFIGINIT_LIBS
706PKGCONFIGINIT_CFLAGS
f11781c5
AK
707PKG_CONFIG_LIBDIR
708PKG_CONFIG_PATH
e2997b73 709PKG_CONFIG
ec6a6fbe
AK
710POW_LIB
711LIBOBJS
712ALLOCA
713CSCOPE_CMD
714CFLOW_CMD
715RANLIB
716MKDIR_P
717SET_MAKE
718LN_S
719INSTALL_DATA
720INSTALL_SCRIPT
721INSTALL_PROGRAM
722EGREP
723GREP
724CPP
725OBJEXT
726EXEEXT
727ac_ct_CC
728CPPFLAGS
729LDFLAGS
730CFLAGS
731CC
732AWK
733SED
734target_os
735target_vendor
736target_cpu
737target
738host_os
739host_vendor
740host_cpu
741host
742build_os
743build_vendor
744build_cpu
745build
746target_alias
747host_alias
748build_alias
749LIBS
750ECHO_T
751ECHO_N
752ECHO_C
753DEFS
754mandir
755localedir
756libdir
757psdir
758pdfdir
759dvidir
760htmldir
761infodir
762docdir
763oldincludedir
764includedir
765localstatedir
766sharedstatedir
767sysconfdir
768datadir
769datarootdir
770libexecdir
771sbindir
772bindir
773program_transform_name
774prefix
775exec_prefix
f11781c5 776PACKAGE_URL
ec6a6fbe
AK
777PACKAGE_BUGREPORT
778PACKAGE_STRING
779PACKAGE_VERSION
780PACKAGE_TARNAME
781PACKAGE_NAME
782PATH_SEPARATOR
783SHELL'
ad6254c5 784ac_subst_files=''
ec6a6fbe
AK
785ac_user_opts='
786enable_option_checking
787enable_static_link
788with_user
789with_group
790with_device_uid
791with_device_gid
792with_device_mode
d0df875d 793with_device_nodes_on
ec6a6fbe
AK
794enable_lvm1_fallback
795with_lvm1
796with_pool
797with_cluster
798with_snapshots
799with_mirrors
8fea97b7 800with_replicators
ec6a6fbe
AK
801enable_readline
802enable_realtime
37ddf259 803enable_ocf
606d0858 804with_ocfdir
ec6a6fbe 805with_clvmd
8c4e8a18 806with_clvmd_pidfile
66fd4529
AK
807enable_cmirrord
808with_cmirrord_pidfile
ec6a6fbe
AK
809enable_debug
810with_optimisation
811enable_profiling
54b362f9 812enable_testing
d1e8046f 813enable_valgrind_pool
ec6a6fbe 814enable_devmapper
a5f46f6a
AK
815enable_udev_sync
816enable_udev_rules
ec6a6fbe 817enable_compat
95eaa683 818enable_units_compat
ec6a6fbe
AK
819enable_ioctl
820enable_o_direct
572fefeb 821enable_applib
ec6a6fbe
AK
822enable_cmdlib
823enable_pkgconfig
23b059e7 824enable_write_install
ec6a6fbe
AK
825enable_fsadm
826enable_dmeventd
827enable_selinux
828enable_nls
829with_localedir
830with_confdir
831with_staticdir
832with_usrlibdir
833with_usrsbindir
a5f46f6a 834with_udev_prefix
78ce7acc 835with_udevdir
ec6a6fbe
AK
836with_dmeventd_pidfile
837with_dmeventd_path
8bae0a1e 838with_default_run_dir
3399ae32
AK
839with_default_system_dir
840with_default_archive_subdir
841with_default_backup_subdir
842with_default_cache_subdir
843with_default_locking_dir
fea55602 844with_default_data_alignment
ec6a6fbe
AK
845with_interface
846'
7a197a62
AK
847 ac_precious_vars='build_alias
848host_alias
849target_alias
850CC
851CFLAGS
852LDFLAGS
25fbec5b 853LIBS
7a197a62 854CPPFLAGS
e2997b73
AK
855CPP
856PKG_CONFIG
f11781c5
AK
857PKG_CONFIG_PATH
858PKG_CONFIG_LIBDIR
a946372e
AK
859PKGCONFIGINIT_CFLAGS
860PKGCONFIGINIT_LIBS
861CCS_CFLAGS
862CCS_LIBS
863GULM_CFLAGS
864GULM_LIBS
865CMAN_CFLAGS
866CMAN_LIBS
867COROSYNC_CFLAGS
868COROSYNC_LIBS
e2997b73
AK
869QUORUM_CFLAGS
870QUORUM_LIBS
a946372e
AK
871SALCK_CFLAGS
872SALCK_LIBS
e2997b73
AK
873CONFDB_CFLAGS
874CONFDB_LIBS
875CPG_CFLAGS
a946372e
AK
876CPG_LIBS
877DLM_CFLAGS
90c80887
AK
878DLM_LIBS
879SACKPT_CFLAGS
d93275eb
PR
880SACKPT_LIBS
881UDEV_CFLAGS
882UDEV_LIBS'
7a197a62 883
795ca3e5
AK
884
885# Initialize some variables set by options.
ad6254c5
AK
886ac_init_help=
887ac_init_version=false
ec6a6fbe
AK
888ac_unrecognized_opts=
889ac_unrecognized_sep=
795ca3e5
AK
890# The variables have the same names as the options, with
891# dashes changed to underlines.
ad6254c5 892cache_file=/dev/null
795ca3e5 893exec_prefix=NONE
795ca3e5 894no_create=
795ca3e5
AK
895no_recursion=
896prefix=NONE
897program_prefix=NONE
898program_suffix=NONE
899program_transform_name=s,x,x,
900silent=
901site=
902srcdir=
795ca3e5
AK
903verbose=
904x_includes=NONE
905x_libraries=NONE
ad6254c5
AK
906
907# Installation directory options.
908# These are left unexpanded so users can "make install exec_prefix=/foo"
909# and all the variables that are supposed to be based on exec_prefix
910# by default will actually change.
911# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 912# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
913bindir='${exec_prefix}/bin'
914sbindir='${exec_prefix}/sbin'
915libexecdir='${exec_prefix}/libexec'
7a197a62
AK
916datarootdir='${prefix}/share'
917datadir='${datarootdir}'
795ca3e5
AK
918sysconfdir='${prefix}/etc'
919sharedstatedir='${prefix}/com'
920localstatedir='${prefix}/var'
795ca3e5
AK
921includedir='${prefix}/include'
922oldincludedir='/usr/include'
7a197a62
AK
923docdir='${datarootdir}/doc/${PACKAGE}'
924infodir='${datarootdir}/info'
925htmldir='${docdir}'
926dvidir='${docdir}'
927pdfdir='${docdir}'
928psdir='${docdir}'
929libdir='${exec_prefix}/lib'
930localedir='${datarootdir}/locale'
931mandir='${datarootdir}/man'
795ca3e5 932
795ca3e5 933ac_prev=
7a197a62 934ac_dashdash=
795ca3e5
AK
935for ac_option
936do
795ca3e5
AK
937 # If the previous option needs an argument, assign it.
938 if test -n "$ac_prev"; then
7a197a62 939 eval $ac_prev=\$ac_option
795ca3e5
AK
940 ac_prev=
941 continue
942 fi
943
7a197a62
AK
944 case $ac_option in
945 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946 *) ac_optarg=yes ;;
947 esac
795ca3e5
AK
948
949 # Accept the important Cygnus configure options, so we can diagnose typos.
950
7a197a62
AK
951 case $ac_dashdash$ac_option in
952 --)
953 ac_dashdash=yes ;;
795ca3e5
AK
954
955 -bindir | --bindir | --bindi | --bind | --bin | --bi)
956 ac_prev=bindir ;;
957 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 958 bindir=$ac_optarg ;;
795ca3e5
AK
959
960 -build | --build | --buil | --bui | --bu)
ad6254c5 961 ac_prev=build_alias ;;
795ca3e5 962 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 963 build_alias=$ac_optarg ;;
795ca3e5
AK
964
965 -cache-file | --cache-file | --cache-fil | --cache-fi \
966 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967 ac_prev=cache_file ;;
968 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
970 cache_file=$ac_optarg ;;
971
972 --config-cache | -C)
973 cache_file=config.cache ;;
795ca3e5 974
7a197a62 975 -datadir | --datadir | --datadi | --datad)
795ca3e5 976 ac_prev=datadir ;;
7a197a62 977 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 978 datadir=$ac_optarg ;;
795ca3e5 979
7a197a62
AK
980 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981 | --dataroo | --dataro | --datar)
982 ac_prev=datarootdir ;;
983 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985 datarootdir=$ac_optarg ;;
986
795ca3e5 987 -disable-* | --disable-*)
ec6a6fbe 988 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 989 # Reject names that are not valid shell variable names.
ec6a6fbe 990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 991 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996"enable_$ac_useropt"
997"*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=no ;;
7a197a62
AK
1002
1003 -docdir | --docdir | --docdi | --doc | --do)
1004 ac_prev=docdir ;;
1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006 docdir=$ac_optarg ;;
1007
1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009 ac_prev=dvidir ;;
1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011 dvidir=$ac_optarg ;;
795ca3e5
AK
1012
1013 -enable-* | --enable-*)
ec6a6fbe 1014 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1015 # Reject names that are not valid shell variable names.
ec6a6fbe 1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1017 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1021 *"
1022"enable_$ac_useropt"
1023"*) ;;
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1026 esac
1027 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1028
1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031 | --exec | --exe | --ex)
1032 ac_prev=exec_prefix ;;
1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035 | --exec=* | --exe=* | --ex=*)
ad6254c5 1036 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1037
1038 -gas | --gas | --ga | --g)
1039 # Obsolete; use --with-gas.
1040 with_gas=yes ;;
1041
ad6254c5
AK
1042 -help | --help | --hel | --he | -h)
1043 ac_init_help=long ;;
1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045 ac_init_help=recursive ;;
1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047 ac_init_help=short ;;
795ca3e5
AK
1048
1049 -host | --host | --hos | --ho)
ad6254c5 1050 ac_prev=host_alias ;;
795ca3e5 1051 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1052 host_alias=$ac_optarg ;;
795ca3e5 1053
7a197a62
AK
1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055 ac_prev=htmldir ;;
1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057 | --ht=*)
1058 htmldir=$ac_optarg ;;
1059
795ca3e5
AK
1060 -includedir | --includedir | --includedi | --included | --include \
1061 | --includ | --inclu | --incl | --inc)
1062 ac_prev=includedir ;;
1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1065 includedir=$ac_optarg ;;
795ca3e5
AK
1066
1067 -infodir | --infodir | --infodi | --infod | --info | --inf)
1068 ac_prev=infodir ;;
1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1070 infodir=$ac_optarg ;;
795ca3e5
AK
1071
1072 -libdir | --libdir | --libdi | --libd)
1073 ac_prev=libdir ;;
1074 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1075 libdir=$ac_optarg ;;
795ca3e5
AK
1076
1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078 | --libexe | --libex | --libe)
1079 ac_prev=libexecdir ;;
1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1082 libexecdir=$ac_optarg ;;
795ca3e5 1083
7a197a62
AK
1084 -localedir | --localedir | --localedi | --localed | --locale)
1085 ac_prev=localedir ;;
1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087 localedir=$ac_optarg ;;
1088
795ca3e5 1089 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1090 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1091 ac_prev=localstatedir ;;
1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1094 localstatedir=$ac_optarg ;;
795ca3e5
AK
1095
1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097 ac_prev=mandir ;;
1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1099 mandir=$ac_optarg ;;
795ca3e5
AK
1100
1101 -nfp | --nfp | --nf)
1102 # Obsolete; use --without-fp.
1103 with_fp=no ;;
1104
1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1106 | --no-cr | --no-c | -n)
795ca3e5
AK
1107 no_create=yes ;;
1108
1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 no_recursion=yes ;;
1112
1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115 | --oldin | --oldi | --old | --ol | --o)
1116 ac_prev=oldincludedir ;;
1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1120 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1121
1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123 ac_prev=prefix ;;
1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1125 prefix=$ac_optarg ;;
795ca3e5
AK
1126
1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128 | --program-pre | --program-pr | --program-p)
1129 ac_prev=program_prefix ;;
1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1132 program_prefix=$ac_optarg ;;
795ca3e5
AK
1133
1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135 | --program-suf | --program-su | --program-s)
1136 ac_prev=program_suffix ;;
1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1139 program_suffix=$ac_optarg ;;
795ca3e5
AK
1140
1141 -program-transform-name | --program-transform-name \
1142 | --program-transform-nam | --program-transform-na \
1143 | --program-transform-n | --program-transform- \
1144 | --program-transform | --program-transfor \
1145 | --program-transfo | --program-transf \
1146 | --program-trans | --program-tran \
1147 | --progr-tra | --program-tr | --program-t)
1148 ac_prev=program_transform_name ;;
1149 -program-transform-name=* | --program-transform-name=* \
1150 | --program-transform-nam=* | --program-transform-na=* \
1151 | --program-transform-n=* | --program-transform-=* \
1152 | --program-transform=* | --program-transfor=* \
1153 | --program-transfo=* | --program-transf=* \
1154 | --program-trans=* | --program-tran=* \
1155 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1156 program_transform_name=$ac_optarg ;;
795ca3e5 1157
7a197a62
AK
1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159 ac_prev=pdfdir ;;
1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161 pdfdir=$ac_optarg ;;
1162
1163 -psdir | --psdir | --psdi | --psd | --ps)
1164 ac_prev=psdir ;;
1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 psdir=$ac_optarg ;;
1167
795ca3e5
AK
1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169 | -silent | --silent | --silen | --sile | --sil)
1170 silent=yes ;;
1171
1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173 ac_prev=sbindir ;;
1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175 | --sbi=* | --sb=*)
ad6254c5 1176 sbindir=$ac_optarg ;;
795ca3e5
AK
1177
1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180 | --sharedst | --shareds | --shared | --share | --shar \
1181 | --sha | --sh)
1182 ac_prev=sharedstatedir ;;
1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186 | --sha=* | --sh=*)
ad6254c5 1187 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1188
1189 -site | --site | --sit)
1190 ac_prev=site ;;
1191 -site=* | --site=* | --sit=*)
ad6254c5 1192 site=$ac_optarg ;;
795ca3e5
AK
1193
1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195 ac_prev=srcdir ;;
1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1197 srcdir=$ac_optarg ;;
795ca3e5
AK
1198
1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200 | --syscon | --sysco | --sysc | --sys | --sy)
1201 ac_prev=sysconfdir ;;
1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1204 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1205
1206 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1207 ac_prev=target_alias ;;
795ca3e5 1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1209 target_alias=$ac_optarg ;;
795ca3e5
AK
1210
1211 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 verbose=yes ;;
1213
ad6254c5
AK
1214 -version | --version | --versio | --versi | --vers | -V)
1215 ac_init_version=: ;;
795ca3e5
AK
1216
1217 -with-* | --with-*)
ec6a6fbe 1218 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1219 # Reject names that are not valid shell variable names.
ec6a6fbe 1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1221 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1222 ac_useropt_orig=$ac_useropt
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1225 *"
1226"with_$ac_useropt"
1227"*) ;;
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229 ac_unrecognized_sep=', ';;
1230 esac
1231 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1232
1233 -without-* | --without-*)
ec6a6fbe 1234 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1235 # Reject names that are not valid shell variable names.
ec6a6fbe 1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1237 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1241 *"
1242"with_$ac_useropt"
1243"*) ;;
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
1246 esac
1247 eval with_$ac_useropt=no ;;
795ca3e5
AK
1248
1249 --x)
1250 # Obsolete; use --with-x.
1251 with_x=yes ;;
1252
1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254 | --x-incl | --x-inc | --x-in | --x-i)
1255 ac_prev=x_includes ;;
1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1258 x_includes=$ac_optarg ;;
795ca3e5
AK
1259
1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262 ac_prev=x_libraries ;;
1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1265 x_libraries=$ac_optarg ;;
795ca3e5 1266
f11781c5
AK
1267 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1268Try \`$0 --help' for more information"
795ca3e5
AK
1269 ;;
1270
ad6254c5
AK
1271 *=*)
1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
f11781c5
AK
1274 case $ac_envvar in #(
1275 '' | [0-9]* | *[!_$as_cr_alnum]* )
1276 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1277 esac
7a197a62 1278 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1279 export $ac_envvar ;;
1280
795ca3e5 1281 *)
ad6254c5 1282 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1283 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1285 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1287 ;;
1288
1289 esac
1290done
1291
1292if test -n "$ac_prev"; then
ad6254c5 1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1294 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1295fi
795ca3e5 1296
ec6a6fbe
AK
1297if test -n "$ac_unrecognized_opts"; then
1298 case $enable_option_checking in
1299 no) ;;
f11781c5 1300 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1301 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302 esac
1303fi
1304
1305# Check all directory arguments for consistency.
7a197a62
AK
1306for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307 datadir sysconfdir sharedstatedir localstatedir includedir \
1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309 libdir localedir mandir
795ca3e5 1310do
7a197a62 1311 eval ac_val=\$$ac_var
ec6a6fbe
AK
1312 # Remove trailing slashes.
1313 case $ac_val in
1314 */ )
1315 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316 eval $ac_var=\$ac_val;;
1317 esac
1318 # Be sure to have absolute directory names.
ad6254c5 1319 case $ac_val in
7a197a62
AK
1320 [\\/$]* | ?:[\\/]* ) continue;;
1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1322 esac
f11781c5 1323 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1324done
1325
ad6254c5
AK
1326# There might be people who depend on the old broken behavior: `$host'
1327# used to hold the argument of --host etc.
1328# FIXME: To remove some day.
1329build=$build_alias
1330host=$host_alias
1331target=$target_alias
1332
1333# FIXME: To remove some day.
1334if test "x$host_alias" != x; then
1335 if test "x$build_alias" = x; then
1336 cross_compiling=maybe
f11781c5
AK
1337 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1338 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1341 fi
1342fi
8106cdd5 1343
ad6254c5
AK
1344ac_tool_prefix=
1345test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347test "$silent" = yes && exec 6>/dev/null
795ca3e5 1348
795ca3e5 1349
7a197a62
AK
1350ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351ac_ls_di=`ls -di .` &&
1352ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1353 as_fn_error $? "working directory cannot be determined"
7a197a62 1354test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1355 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1356
1357
795ca3e5
AK
1358# Find the source files, if location was not specified.
1359if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
7a197a62 1361 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1362 ac_confdir=`$as_dirname -- "$as_myself" ||
1363$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367$as_echo X"$as_myself" |
7a197a62
AK
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\).*/{
1381 s//\1/
1382 q
1383 }
1384 s/.*/./; q'`
795ca3e5 1385 srcdir=$ac_confdir
7a197a62 1386 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1387 srcdir=..
1388 fi
1389else
1390 ac_srcdir_defaulted=no
1391fi
7a197a62
AK
1392if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1395fi
7a197a62
AK
1396ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397ac_abs_confdir=`(
f11781c5 1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1399 pwd)`
1400# When building in place, set srcdir=.
1401if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403fi
1404# Remove unnecessary trailing slashes from srcdir.
1405# Double slashes in file names in object file debugging info
1406# mess up M-x gdb in Emacs.
1407case $srcdir in
1408*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409esac
1410for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415done
ad6254c5
AK
1416
1417#
1418# Report the --help message.
1419#
1420if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424\`configure' configures this package to adapt to many kinds of systems.
1425
1426Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431Defaults for the options are specified in brackets.
1432
1433Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
f11781c5 1438 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443
ad6254c5
AK
1444Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1446 [$ac_default_prefix]
ad6254c5 1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1448 [PREFIX]
ad6254c5
AK
1449
1450By default, \`make install' will install all the files in
1451\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453for instance \`--prefix=\$HOME'.
1454
1455For better control, use the options below.
1456
1457Fine tuning of the installation directories:
ec6a6fbe
AK
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1477_ACEOF
1478
1479 cat <<\_ACEOF
1480
1481System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1484 --target=TARGET configure for building compilers for TARGET [HOST]
1485_ACEOF
1486fi
1487
1488if test -n "$ac_init_help"; then
1489
1490 cat <<\_ACEOF
1491
1492Optional Features:
ec6a6fbe 1493 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1494 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1495 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1496 --enable-static_link use this to link the tools to their libraries
1497 statically (default is dynamic linking
1498 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1499 device-mapper is missing from the kernel
71082be4
ZK
1500 --disable-readline disable readline support
1501 --enable-realtime enable realtime clock support
37ddf259
AK
1502 --enable-ocf enable Open Cluster Framework (OCF) compliant
1503 resource agents
71082be4
ZK
1504 --enable-cmirrord enable the cluster mirror log daemon
1505 --enable-debug enable debugging
1506 --enable-profiling gather gcov profiling data
54b362f9 1507 --enable-testing enable testing targets in the makefile
d1e8046f 1508 --enable-valgrind-pool enable valgrind awareness of pools
71082be4
ZK
1509 --disable-devmapper disable LVM2 device-mapper interaction
1510 --enable-udev_sync enable synchronisation with udev processing
1511 --enable-udev_rules install rule files needed for udev synchronisation
1512 --enable-compat enable support for old device-mapper versions
1513 --enable-units-compat enable output compatibility with old versions that
1514 that do not use KiB-style unit suffixes
1515 --disable-driver disable calls to device-mapper in the kernel
1516 --disable-o_direct disable O_DIRECT
1517 --enable-applib build application library
1518 --enable-cmdlib build shared command library
1519 --enable-pkgconfig install pkgconfig support
1520 --enable-write_install install user writable files
1521 --disable-fsadm disable fsadm
1522 --enable-dmeventd enable the device-mapper event daemon
1523 --disable-selinux disable selinux support
1524 --enable-nls enable Native Language Support
ad6254c5
AK
1525
1526Optional Packages:
1527 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1528 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1529 --with-user=USER set the owner of installed files [[USER=]]
1530 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1531 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1532 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1533 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
d0df875d
ZK
1534 --with-device-nodes-on=ON
1535 create nodes on resume or create [[ON=resume]]
ad6254c5 1536 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1537 [[TYPE=internal]]
ad6254c5 1538 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1539 [[TYPE=internal]]
71082be4 1540 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1541 [[TYPE=internal]]
71082be4 1542 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1543 [[TYPE=internal]]
71082be4 1544 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1545 [[TYPE=internal]]
71082be4 1546 --with-replicators=TYPE replicator support: internal/shared/none
f11781c5 1547 [[TYPE=none]]
606d0858
AK
1548 --with-ocfdir=DIR install OCF files in DIR
1549 [[PREFIX/lib/ocf/resource.d/lvm2]]
71082be4 1550 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1551 The following cluster manager combinations are valid:
a946372e
AK
1552 * cman,gulm (RHEL4 or equivalent)
1553 * cman (RHEL5 or equivalent)
1554 * cman,corosync,openais (or selection of them)
1091650a 1555 * singlenode (localhost only)
a946372e
AK
1556 * all (autodetect)
1557 * none (disable build)
71082be4 1558 [TYPE=none]
8c4e8a18 1559 --with-clvmd-pidfile=PATH
f11781c5 1560 clvmd pidfile [[/var/run/clvmd.pid]]
71082be4 1561 --with-cmirrord-pidfile=PATH
f11781c5
AK
1562 cmirrord pidfile [[/var/run/cmirrord.pid]]
1563 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1564 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1565 --with-confdir=DIR configuration files in DIR [[/etc]]
1566 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1567 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1568 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1569 --with-udev-prefix=UPREFIX
f11781c5
AK
1570 install udev rule files in UPREFIX [[EPREFIX]]
1571 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
71082be4 1572 --with-dmeventd-pidfile=PATH
f11781c5 1573 dmeventd pidfile [[/var/run/dmeventd.pid]]
71082be4 1574 --with-dmeventd-path=PATH
f11781c5 1575 dmeventd path [[EPREFIX/sbin/dmeventd]]
8bae0a1e 1576 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4 1577 --with-default-system-dir=DIR
f11781c5 1578 default LVM system directory [[/etc/lvm]]
71082be4 1579 --with-default-archive-subdir=SUBDIR
f11781c5 1580 default metadata archive subdir [[archive]]
71082be4 1581 --with-default-backup-subdir=SUBDIR
f11781c5 1582 default metadata backup subdir [[backup]]
71082be4 1583 --with-default-cache-subdir=SUBDIR
f11781c5 1584 default metadata cache subdir [[cache]]
71082be4 1585 --with-default-locking-dir=DIR
f11781c5 1586 default locking directory [[/var/lock/lvm]]
fea55602 1587 --with-default-data-alignment=NUM
f11781c5
AK
1588 set the default data alignment in MiB [[1]]
1589 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1590
1591Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
25fbec5b 1596 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1597 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1598 you have headers in a nonstandard directory <include dir>
ad6254c5 1599 CPP C preprocessor
e2997b73 1600 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1601 PKG_CONFIG_PATH
1602 directories to add to pkg-config's search path
1603 PKG_CONFIG_LIBDIR
1604 path overriding pkg-config's built-in search path
a946372e
AK
1605 PKGCONFIGINIT_CFLAGS
1606 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1607 PKGCONFIGINIT_LIBS
1608 linker flags for PKGCONFIGINIT, overriding pkg-config
1609 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1610 CCS_LIBS linker flags for CCS, overriding pkg-config
1611 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1612 GULM_LIBS linker flags for GULM, overriding pkg-config
1613 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1614 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1615 COROSYNC_CFLAGS
1616 C compiler flags for COROSYNC, overriding pkg-config
1617 COROSYNC_LIBS
1618 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1619 QUORUM_CFLAGS
1620 C compiler flags for QUORUM, overriding pkg-config
1621 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1622 SALCK_CFLAGS
1623 C compiler flags for SALCK, overriding pkg-config
1624 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1625 CONFDB_CFLAGS
1626 C compiler flags for CONFDB, overriding pkg-config
1627 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1628 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1629 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1630 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1631 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1632 SACKPT_CFLAGS
1633 C compiler flags for SACKPT, overriding pkg-config
1634 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
d93275eb
PR
1635 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1636 UDEV_LIBS linker flags for UDEV, overriding pkg-config
ad6254c5
AK
1637
1638Use these variables to override the choices made by `configure' or to help
1639it to find libraries and programs with nonstandard names/locations.
1640
f11781c5 1641Report bugs to the package provider.
ad6254c5 1642_ACEOF
7a197a62 1643ac_status=$?
ad6254c5
AK
1644fi
1645
1646if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
ad6254c5 1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1649 test -d "$ac_dir" ||
1650 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1651 continue
ad6254c5
AK
1652 ac_builddir=.
1653
7a197a62
AK
1654case "$ac_dir" in
1655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656*)
ec6a6fbe 1657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1658 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 esac ;;
1664esac
1665ac_abs_top_builddir=$ac_pwd
1666ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667# for backward compatibility:
1668ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1669
1670case $srcdir in
7a197a62 1671 .) # We are building in place.
ad6254c5 1672 ac_srcdir=.
7a197a62
AK
1673 ac_top_srcdir=$ac_top_builddir_sub
1674 ac_abs_top_srcdir=$ac_pwd ;;
1675 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1676 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1677 ac_top_srcdir=$srcdir
1678 ac_abs_top_srcdir=$srcdir ;;
1679 *) # Relative name.
1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1683esac
7a197a62
AK
1684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685
1686 cd "$ac_dir" || { ac_status=$?; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1689 echo &&
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1692 echo &&
1693 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1694 else
ec6a6fbe 1695 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1696 fi || ac_status=$?
1697 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1698 done
1699fi
1700
7a197a62 1701test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1702if $ac_init_version; then
1703 cat <<\_ACEOF
7a197a62 1704configure
f11781c5 1705generated by GNU Autoconf 2.66
ad6254c5 1706
f11781c5 1707Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1708This configure script is free software; the Free Software Foundation
1709gives unlimited permission to copy, distribute and modify it.
1710_ACEOF
7a197a62 1711 exit
ad6254c5 1712fi
ad6254c5 1713
f11781c5
AK
1714## ------------------------ ##
1715## Autoconf initialization. ##
1716## ------------------------ ##
ad6254c5 1717
f11781c5
AK
1718# ac_fn_c_try_compile LINENO
1719# --------------------------
1720# Try to compile conftest.$ac_ext, and return whether this succeeded.
1721ac_fn_c_try_compile ()
ad6254c5 1722{
f11781c5
AK
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext
1725 if { { ac_try="$ac_compile"
1726case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_compile") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest.$ac_objext; then :
1744 ac_retval=0
1745else
1746 $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1748
f11781c5
AK
1749 ac_retval=1
1750fi
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 as_fn_set_status $ac_retval
ad6254c5 1753
f11781c5 1754} # ac_fn_c_try_compile
ad6254c5 1755
f11781c5
AK
1756# ac_fn_c_try_cpp LINENO
1757# ----------------------
1758# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1759ac_fn_c_try_cpp ()
1760{
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_cpp conftest.$ac_ext"
1763case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766esac
1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768$as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1770 ac_status=$?
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1775 fi
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } >/dev/null && {
1778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1779 test ! -s conftest.err
1780 }; then :
1781 ac_retval=0
1782else
1783 $as_echo "$as_me: failed program was:" >&5
1784sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1785
f11781c5
AK
1786 ac_retval=1
1787fi
1788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1789 as_fn_set_status $ac_retval
ad6254c5 1790
f11781c5 1791} # ac_fn_c_try_cpp
d911ec67 1792
f11781c5
AK
1793# ac_fn_c_try_link LINENO
1794# -----------------------
1795# Try to link conftest.$ac_ext, and return whether this succeeded.
1796ac_fn_c_try_link ()
d911ec67 1797{
f11781c5
AK
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext conftest$ac_exeext
1800 if { { ac_try="$ac_link"
d911ec67
AK
1801case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804esac
f11781c5
AK
1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806$as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_link") 2>conftest.err
d911ec67 1808 ac_status=$?
f11781c5
AK
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest$ac_exeext && {
1819 test "$cross_compiling" = yes ||
1820 $as_test_x conftest$ac_exeext
1821 }; then :
1822 ac_retval=0
d911ec67 1823else
f11781c5 1824 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1825sed 's/^/| /' conftest.$ac_ext >&5
1826
f11781c5 1827 ac_retval=1
d911ec67 1828fi
f11781c5
AK
1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831 # interfere with the next link command; also delete a directory that is
1832 # left behind by Apple's compiler. We do this before executing the actions.
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835 as_fn_set_status $ac_retval
d911ec67 1836
f11781c5 1837} # ac_fn_c_try_link
d911ec67 1838
f11781c5
AK
1839# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1840# -------------------------------------------------------
1841# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1842# the include files in INCLUDES and setting the cache variable VAR
1843# accordingly.
1844ac_fn_c_check_header_mongrel ()
1845{
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if eval "test \"\${$3+set}\"" = set; then :
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849$as_echo_n "checking for $2... " >&6; }
1850if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1851 $as_echo_n "(cached) " >&6
1852fi
f11781c5
AK
1853eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1855$as_echo "$ac_res" >&6; }
1856else
1857 # Is the header compilable?
f11781c5
AK
1858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1859$as_echo_n "checking $2 usability... " >&6; }
1860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1861/* end confdefs.h. */
f11781c5
AK
1862$4
1863#include <$2>
d911ec67 1864_ACEOF
f11781c5 1865if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1866 ac_header_compiler=yes
1867else
f11781c5 1868 ac_header_compiler=no
d911ec67 1869fi
d911ec67 1870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1872$as_echo "$ac_header_compiler" >&6; }
1873
1874# Is the header present?
f11781c5
AK
1875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1876$as_echo_n "checking $2 presence... " >&6; }
1877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1878/* end confdefs.h. */
f11781c5 1879#include <$2>
d911ec67 1880_ACEOF
f11781c5 1881if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1882 ac_header_preproc=yes
1883else
d911ec67
AK
1884 ac_header_preproc=no
1885fi
d911ec67 1886rm -f conftest.err conftest.$ac_ext
f11781c5 1887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1888$as_echo "$ac_header_preproc" >&6; }
1889
1890# So? What about this header?
f11781c5 1891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1892 yes:no: )
f11781c5
AK
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1894$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1896$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1897 ;;
1898 no:yes:* )
f11781c5
AK
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1900$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1902$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1904$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1906$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1908$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1909 ;;
1910esac
f11781c5
AK
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912$as_echo_n "checking for $2... " >&6; }
1913if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1914 $as_echo_n "(cached) " >&6
1915else
f11781c5 1916 eval "$3=\$ac_header_compiler"
d911ec67 1917fi
f11781c5
AK
1918eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1920$as_echo "$ac_res" >&6; }
ad6254c5 1921fi
f11781c5 1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1923
f11781c5 1924} # ac_fn_c_check_header_mongrel
ad6254c5 1925
f11781c5
AK
1926# ac_fn_c_try_run LINENO
1927# ----------------------
1928# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1929# that executables *can* be run.
1930ac_fn_c_try_run ()
ad6254c5 1931{
f11781c5
AK
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if { { ac_try="$ac_link"
7a197a62
AK
1934case "(($ac_try" in
1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936 *) ac_try_echo=$ac_try;;
1937esac
f11781c5
AK
1938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939$as_echo "$ac_try_echo"; } >&5
7a197a62 1940 (eval "$ac_link") 2>&5
ad6254c5 1941 ac_status=$?
f11781c5
AK
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1944 { { case "(($ac_try" in
7a197a62
AK
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1947esac
f11781c5
AK
1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949$as_echo "$ac_try_echo"; } >&5
7a197a62 1950 (eval "$ac_try") 2>&5
ad6254c5 1951 ac_status=$?
f11781c5
AK
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; }; }; then :
1954 ac_retval=0
ad6254c5 1955else
ec6a6fbe 1956 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 1957 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
1958sed 's/^/| /' conftest.$ac_ext >&5
1959
f11781c5 1960 ac_retval=$ac_status
ad6254c5 1961fi
f11781c5
AK
1962 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964 as_fn_set_status $ac_retval
ad6254c5 1965
f11781c5 1966} # ac_fn_c_try_run
ad6254c5 1967
f11781c5
AK
1968# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1969# -------------------------------------------------------
1970# Tests whether HEADER exists and can be compiled using the include files in
1971# INCLUDES, setting the cache variable VAR accordingly.
1972ac_fn_c_check_header_compile ()
1973{
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976$as_echo_n "checking for $2... " >&6; }
1977if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 1978 $as_echo_n "(cached) " >&6
ad6254c5 1979else
f11781c5 1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 1981/* end confdefs.h. */
f11781c5
AK
1982$4
1983#include <$2>
ad6254c5 1984_ACEOF
f11781c5
AK
1985if ac_fn_c_try_compile "$LINENO"; then :
1986 eval "$3=yes"
ad6254c5 1987else
f11781c5 1988 eval "$3=no"
ad6254c5 1989fi
7a197a62 1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 1991fi
f11781c5
AK
1992eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 1994$as_echo "$ac_res" >&6; }
f11781c5 1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1996
f11781c5 1997} # ac_fn_c_check_header_compile
ad6254c5 1998
f11781c5
AK
1999# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2000# ----------------------------------------------------
2001# Tries to find if the field MEMBER exists in type AGGR, after including
2002# INCLUDES, setting cache variable VAR accordingly.
2003ac_fn_c_check_member ()
2004{
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2007$as_echo_n "checking for $2.$3... " >&6; }
2008if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2009 $as_echo_n "(cached) " >&6
795ca3e5 2010else
f11781c5
AK
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h. */
2013$5
2014int
2015main ()
2016{
2017static $2 ac_aggr;
2018if (ac_aggr.$3)
2019return 0;
2020 ;
2021 return 0;
2022}
ad6254c5 2023_ACEOF
f11781c5
AK
2024if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$4=yes"
2026else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2028/* end confdefs.h. */
f11781c5
AK
2029$5
2030int
2031main ()
2032{
2033static $2 ac_aggr;
2034if (sizeof ac_aggr.$3)
2035return 0;
2036 ;
2037 return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_compile "$LINENO"; then :
2041 eval "$4=yes"
2042else
2043 eval "$4=no"
2044fi
2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046fi
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048fi
2049eval ac_res=\$$4
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051$as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053
2054} # ac_fn_c_check_member
795ca3e5 2055
f11781c5
AK
2056# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2057# -------------------------------------------
2058# Tests whether TYPE exists after having included INCLUDES, setting cache
2059# variable VAR accordingly.
2060ac_fn_c_check_type ()
2061{
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064$as_echo_n "checking for $2... " >&6; }
2065if eval "test \"\${$3+set}\"" = set; then :
2066 $as_echo_n "(cached) " >&6
2067else
2068 eval "$3=no"
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070/* end confdefs.h. */
2071$4
ad6254c5
AK
2072int
2073main ()
2074{
f11781c5
AK
2075if (sizeof ($2))
2076 return 0;
ad6254c5
AK
2077 ;
2078 return 0;
2079}
2080_ACEOF
f11781c5
AK
2081if ac_fn_c_try_compile "$LINENO"; then :
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083/* end confdefs.h. */
2084$4
2085int
2086main ()
2087{
2088if (sizeof (($2)))
2089 return 0;
2090 ;
2091 return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2095
f11781c5
AK
2096else
2097 eval "$3=yes"
795ca3e5 2098fi
f11781c5
AK
2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100fi
2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2102fi
f11781c5
AK
2103eval ac_res=\$$3
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2105$as_echo "$ac_res" >&6; }
f11781c5 2106 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2107
f11781c5 2108} # ac_fn_c_check_type
ad6254c5 2109
f11781c5
AK
2110# ac_fn_c_find_intX_t LINENO BITS VAR
2111# -----------------------------------
2112# Finds a signed integer type with width BITS, setting cache variable VAR
2113# accordingly.
2114ac_fn_c_find_intX_t ()
2115{
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2118$as_echo_n "checking for int$2_t... " >&6; }
2119if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2120 $as_echo_n "(cached) " >&6
ad6254c5 2121else
f11781c5
AK
2122 eval "$3=no"
2123 # Order is important - never check a type that is potentially smaller
2124 # than half of the expected target width.
2125 for ac_type in int$2_t 'int' 'long int' \
2126 'long long int' 'short int' 'signed char'; do
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2128/* end confdefs.h. */
2129$ac_includes_default
f11781c5 2130 enum { N = $2 / 2 - 1 };
7a197a62
AK
2131int
2132main ()
2133{
f11781c5
AK
2134static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2135test_array [0] = 0
7a197a62 2136
f11781c5
AK
2137 ;
2138 return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_compile "$LINENO"; then :
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143/* end confdefs.h. */
2144$ac_includes_default
2145 enum { N = $2 / 2 - 1 };
2146int
2147main ()
2148{
2149static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2150 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2151test_array [0] = 0
7a197a62
AK
2152
2153 ;
2154 return 0;
2155}
ad6254c5 2156_ACEOF
f11781c5 2157if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2158
f11781c5
AK
2159else
2160 case $ac_type in #(
2161 int$2_t) :
2162 eval "$3=yes" ;; #(
2163 *) :
2164 eval "$3=\$ac_type" ;;
2165esac
ad6254c5 2166fi
f11781c5 2167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2168fi
f11781c5
AK
2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2171
2172else
f11781c5 2173 break
ad6254c5 2174fi
f11781c5 2175 done
ad6254c5 2176fi
f11781c5
AK
2177eval ac_res=\$$3
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179$as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2181
2182} # ac_fn_c_find_intX_t
2183
2184# ac_fn_c_find_uintX_t LINENO BITS VAR
2185# ------------------------------------
2186# Finds an unsigned integer type with width BITS, setting cache variable VAR
2187# accordingly.
2188ac_fn_c_find_uintX_t ()
2189{
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2192$as_echo_n "checking for uint$2_t... " >&6; }
2193if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2194 $as_echo_n "(cached) " >&6
ad6254c5 2195else
f11781c5
AK
2196 eval "$3=no"
2197 # Order is important - never check a type that is potentially smaller
2198 # than half of the expected target width.
2199 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2200 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2202/* end confdefs.h. */
7a197a62 2203$ac_includes_default
ad6254c5
AK
2204int
2205main ()
2206{
f11781c5
AK
2207static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2208test_array [0] = 0
ad6254c5 2209
f11781c5
AK
2210 ;
2211 return 0;
ad6254c5
AK
2212}
2213_ACEOF
f11781c5
AK
2214if ac_fn_c_try_compile "$LINENO"; then :
2215 case $ac_type in #(
2216 uint$2_t) :
2217 eval "$3=yes" ;; #(
2218 *) :
2219 eval "$3=\$ac_type" ;;
7a197a62 2220esac
ad6254c5 2221fi
f11781c5
AK
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2224
f11781c5
AK
2225else
2226 break
ad6254c5 2227fi
f11781c5 2228 done
ad6254c5 2229fi
f11781c5
AK
2230eval ac_res=\$$3
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232$as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2234
f11781c5 2235} # ac_fn_c_find_uintX_t
ad6254c5 2236
f11781c5
AK
2237# ac_fn_c_check_func LINENO FUNC VAR
2238# ----------------------------------
2239# Tests whether FUNC exists, setting the cache variable VAR accordingly
2240ac_fn_c_check_func ()
2241{
2242 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2244$as_echo_n "checking for $2... " >&6; }
2245if eval "test \"\${$3+set}\"" = set; then :
2246 $as_echo_n "(cached) " >&6
ad6254c5 2247else
f11781c5
AK
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249/* end confdefs.h. */
2250/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2252#define $2 innocuous_$2
ad6254c5 2253
f11781c5
AK
2254/* System header to define __stub macros and hopefully few prototypes,
2255 which can conflict with char $2 (); below.
2256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2257 <limits.h> exists even on freestanding compilers. */
ad6254c5 2258
f11781c5
AK
2259#ifdef __STDC__
2260# include <limits.h>
2261#else
2262# include <assert.h>
2263#endif
ad6254c5 2264
f11781c5
AK
2265#undef $2
2266
2267/* Override any GCC internal prototype to avoid an error.
2268 Use char because int might match the return type of a GCC
2269 builtin and then its argument prototype would still apply. */
2270#ifdef __cplusplus
2271extern "C"
2272#endif
2273char $2 ();
2274/* The GNU C library defines this for functions which it implements
2275 to always fail with ENOSYS. Some functions are actually named
2276 something starting with __ and the normal name is an alias. */
2277#if defined __stub_$2 || defined __stub___$2
2278choke me
2279#endif
ad6254c5 2280
ad6254c5
AK
2281int
2282main ()
2283{
f11781c5 2284return $2 ();
ad6254c5
AK
2285 ;
2286 return 0;
2287}
2288_ACEOF
f11781c5
AK
2289if ac_fn_c_try_link "$LINENO"; then :
2290 eval "$3=yes"
ad6254c5 2291else
f11781c5 2292 eval "$3=no"
ad6254c5 2293fi
f11781c5
AK
2294rm -f core conftest.err conftest.$ac_objext \
2295 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2296fi
f11781c5
AK
2297eval ac_res=\$$3
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299$as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2301
f11781c5
AK
2302} # ac_fn_c_check_func
2303cat >config.log <<_ACEOF
2304This file contains any messages produced by compilers while
2305running configure, to aid debugging if configure makes a mistake.
7a197a62 2306
f11781c5
AK
2307It was created by $as_me, which was
2308generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2309
f11781c5 2310 $ $0 $@
ad6254c5 2311
ad6254c5 2312_ACEOF
f11781c5
AK
2313exec 5>>config.log
2314{
2315cat <<_ASUNAME
2316## --------- ##
2317## Platform. ##
2318## --------- ##
ad6254c5 2319
f11781c5
AK
2320hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2321uname -m = `(uname -m) 2>/dev/null || echo unknown`
2322uname -r = `(uname -r) 2>/dev/null || echo unknown`
2323uname -s = `(uname -s) 2>/dev/null || echo unknown`
2324uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2325
f11781c5
AK
2326/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2327/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2328
f11781c5
AK
2329/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2330/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2331/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2332/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2333/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2334/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2335/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2336
2337_ASUNAME
2338
2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340for as_dir in $PATH
2341do
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 $as_echo "PATH: $as_dir"
2345 done
2346IFS=$as_save_IFS
2347
2348} >&5
2349
2350cat >&5 <<_ACEOF
2351
2352
2353## ----------- ##
2354## Core tests. ##
2355## ----------- ##
ad6254c5 2356
ad6254c5 2357_ACEOF
ad6254c5 2358
7a197a62 2359
f11781c5
AK
2360# Keep a trace of the command line.
2361# Strip out --no-create and --no-recursion so they do not pile up.
2362# Strip out --silent because we don't want to record it for future runs.
2363# Also quote any args containing shell meta-characters.
2364# Make two passes to allow for proper duplicate-argument suppression.
2365ac_configure_args=
2366ac_configure_args0=
2367ac_configure_args1=
2368ac_must_keep_next=false
2369for ac_pass in 1 2
2370do
2371 for ac_arg
2372 do
2373 case $ac_arg in
2374 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2376 | -silent | --silent | --silen | --sile | --sil)
2377 continue ;;
2378 *\'*)
2379 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2380 esac
2381 case $ac_pass in
2382 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2383 2)
2384 as_fn_append ac_configure_args1 " '$ac_arg'"
2385 if test $ac_must_keep_next = true; then
2386 ac_must_keep_next=false # Got value, back to normal.
2387 else
2388 case $ac_arg in
2389 *=* | --config-cache | -C | -disable-* | --disable-* \
2390 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2391 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2392 | -with-* | --with-* | -without-* | --without-* | --x)
2393 case "$ac_configure_args0 " in
2394 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2395 esac
2396 ;;
2397 -* ) ac_must_keep_next=true ;;
2398 esac
2399 fi
2400 as_fn_append ac_configure_args " '$ac_arg'"
2401 ;;
2402 esac
2403 done
2404done
2405{ ac_configure_args0=; unset ac_configure_args0;}
2406{ ac_configure_args1=; unset ac_configure_args1;}
2407
2408# When interrupted or exit'd, cleanup temporary files, and complete
2409# config.log. We remove comments because anyway the quotes in there
2410# would cause problems or look ugly.
2411# WARNING: Use '\'' to represent an apostrophe within the trap.
2412# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2413trap 'exit_status=$?
2414 # Save into config.log some information that might help in debugging.
2415 {
2416 echo
2417
2418 $as_echo "## ---------------- ##
2419## Cache variables. ##
2420## ---------------- ##"
2421 echo
2422 # The following way of writing the cache mishandles newlines in values,
2423(
2424 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2425 eval ac_val=\$$ac_var
2426 case $ac_val in #(
2427 *${as_nl}*)
2428 case $ac_var in #(
2429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2430$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2431 esac
2432 case $ac_var in #(
2433 _ | IFS | as_nl) ;; #(
2434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2435 *) { eval $ac_var=; unset $ac_var;} ;;
2436 esac ;;
2437 esac
2438 done
2439 (set) 2>&1 |
2440 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2441 *${as_nl}ac_space=\ *)
2442 sed -n \
2443 "s/'\''/'\''\\\\'\'''\''/g;
2444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2445 ;; #(
2446 *)
2447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2448 ;;
2449 esac |
2450 sort
2451)
2452 echo
2453
2454 $as_echo "## ----------------- ##
2455## Output variables. ##
2456## ----------------- ##"
2457 echo
2458 for ac_var in $ac_subst_vars
2459 do
2460 eval ac_val=\$$ac_var
2461 case $ac_val in
2462 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2463 esac
2464 $as_echo "$ac_var='\''$ac_val'\''"
2465 done | sort
2466 echo
2467
2468 if test -n "$ac_subst_files"; then
2469 $as_echo "## ------------------- ##
2470## File substitutions. ##
2471## ------------------- ##"
2472 echo
2473 for ac_var in $ac_subst_files
2474 do
2475 eval ac_val=\$$ac_var
2476 case $ac_val in
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478 esac
2479 $as_echo "$ac_var='\''$ac_val'\''"
2480 done | sort
2481 echo
2482 fi
2483
2484 if test -s confdefs.h; then
2485 $as_echo "## ----------- ##
2486## confdefs.h. ##
2487## ----------- ##"
2488 echo
2489 cat confdefs.h
2490 echo
2491 fi
2492 test "$ac_signal" != 0 &&
2493 $as_echo "$as_me: caught signal $ac_signal"
2494 $as_echo "$as_me: exit $exit_status"
2495 } >&5
2496 rm -f core *.core core.conftest.* &&
2497 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2498 exit $exit_status
2499' 0
2500for ac_signal in 1 2 13 15; do
2501 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2502done
2503ac_signal=0
2504
2505# confdefs.h avoids OS command line length limits that DEFS can exceed.
2506rm -f -r conftest* confdefs.h
7a197a62 2507
f11781c5 2508$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2509
f11781c5 2510# Predefined preprocessor variables.
ad6254c5
AK
2511
2512cat >>confdefs.h <<_ACEOF
f11781c5 2513#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2514_ACEOF
2515
f11781c5
AK
2516cat >>confdefs.h <<_ACEOF
2517#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2518_ACEOF
ad6254c5 2519
f11781c5
AK
2520cat >>confdefs.h <<_ACEOF
2521#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2522_ACEOF
f11781c5
AK
2523
2524cat >>confdefs.h <<_ACEOF
2525#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2526_ACEOF
ad6254c5 2527
f11781c5
AK
2528cat >>confdefs.h <<_ACEOF
2529#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2530_ACEOF
7a197a62 2531
f11781c5
AK
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_URL "$PACKAGE_URL"
2534_ACEOF
ad6254c5 2535
7a197a62 2536
f11781c5
AK
2537# Let the site file select an alternate cache file if it wants to.
2538# Prefer an explicitly selected file to automatically selected ones.
2539ac_site_file1=NONE
2540ac_site_file2=NONE
2541if test -n "$CONFIG_SITE"; then
2542 # We do not want a PATH search for config.site.
2543 case $CONFIG_SITE in #((
2544 -*) ac_site_file1=./$CONFIG_SITE;;
2545 */*) ac_site_file1=$CONFIG_SITE;;
2546 *) ac_site_file1=./$CONFIG_SITE;;
2547 esac
2548elif test "x$prefix" != xNONE; then
2549 ac_site_file1=$prefix/share/config.site
2550 ac_site_file2=$prefix/etc/config.site
ad6254c5 2551else
f11781c5
AK
2552 ac_site_file1=$ac_default_prefix/share/config.site
2553 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2554fi
f11781c5
AK
2555for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2556do
2557 test "x$ac_site_file" = xNONE && continue
2558 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2560$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2561 sed 's/^/| /' "$ac_site_file" >&5
2562 . "$ac_site_file" \
2563 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565as_fn_error $? "failed to load site script $ac_site_file
2566See \`config.log' for more details" "$LINENO" 5; }
2567 fi
2568done
ad6254c5 2569
f11781c5
AK
2570if test -r "$cache_file"; then
2571 # Some versions of bash will fail to source /dev/null (special files
2572 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2573 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2575$as_echo "$as_me: loading cache $cache_file" >&6;}
2576 case $cache_file in
2577 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2578 *) . "./$cache_file";;
2579 esac
2580 fi
2581else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2583$as_echo "$as_me: creating cache $cache_file" >&6;}
2584 >$cache_file
ad6254c5 2585fi
ad6254c5 2586
f11781c5
AK
2587as_fn_append ac_header_list " stdlib.h"
2588as_fn_append ac_header_list " unistd.h"
2589as_fn_append ac_header_list " sys/param.h"
2590# Check that the precious variables saved in the cache have kept the same
2591# value.
2592ac_cache_corrupted=false
2593for ac_var in $ac_precious_vars; do
2594 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2595 eval ac_new_set=\$ac_env_${ac_var}_set
2596 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2597 eval ac_new_val=\$ac_env_${ac_var}_value
2598 case $ac_old_set,$ac_new_set in
2599 set,)
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2601$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2602 ac_cache_corrupted=: ;;
2603 ,set)
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2605$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2606 ac_cache_corrupted=: ;;
2607 ,);;
2608 *)
2609 if test "x$ac_old_val" != "x$ac_new_val"; then
2610 # differences in whitespace do not lead to failure.
2611 ac_old_val_w=`echo x $ac_old_val`
2612 ac_new_val_w=`echo x $ac_new_val`
2613 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2615$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2616 ac_cache_corrupted=:
2617 else
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2619$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2620 eval $ac_var=\$ac_old_val
2621 fi
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2623$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2625$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2626 fi;;
2627 esac
2628 # Pass precious variables to config.status.
2629 if test "$ac_new_set" = set; then
2630 case $ac_new_val in
2631 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2632 *) ac_arg=$ac_var=$ac_new_val ;;
2633 esac
2634 case " $ac_configure_args " in
2635 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2636 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2637 esac
2638 fi
2639done
2640if $ac_cache_corrupted; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2644$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2645 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2646fi
f11781c5
AK
2647## -------------------- ##
2648## Main body of script. ##
2649## -------------------- ##
ad6254c5 2650
f11781c5
AK
2651ac_ext=c
2652ac_cpp='$CPP $CPPFLAGS'
2653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2656
ad6254c5 2657
ad6254c5 2658
f11781c5 2659ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2660
2661
f11781c5
AK
2662################################################################################
2663ac_aux_dir=
2664for ac_dir in autoconf "$srcdir"/autoconf; do
2665 if test -f "$ac_dir/install-sh"; then
2666 ac_aux_dir=$ac_dir
2667 ac_install_sh="$ac_aux_dir/install-sh -c"
2668 break
2669 elif test -f "$ac_dir/install.sh"; then
2670 ac_aux_dir=$ac_dir
2671 ac_install_sh="$ac_aux_dir/install.sh -c"
2672 break
2673 elif test -f "$ac_dir/shtool"; then
2674 ac_aux_dir=$ac_dir
2675 ac_install_sh="$ac_aux_dir/shtool install -c"
2676 break
2677 fi
2678done
2679if test -z "$ac_aux_dir"; then
2680 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2681fi
ad6254c5 2682
f11781c5
AK
2683# These three variables are undocumented and unsupported,
2684# and are intended to be withdrawn in a future Autoconf release.
2685# They can cause serious problems if a builder's source tree is in a directory
2686# whose full name contains unusual characters.
2687ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2688ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2689ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2690
ad6254c5 2691
8a2fc586 2692
f11781c5
AK
2693################################################################################
2694# Make sure we can run config.sub.
2695$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2696 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2697
f11781c5
AK
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2699$as_echo_n "checking build system type... " >&6; }
2700if test "${ac_cv_build+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2702else
2703 ac_build_alias=$build_alias
2704test "x$ac_build_alias" = x &&
2705 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2706test "x$ac_build_alias" = x &&
2707 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2708ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2709 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2710
2711fi
f11781c5
AK
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2713$as_echo "$ac_cv_build" >&6; }
2714case $ac_cv_build in
2715*-*-*) ;;
2716*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2717esac
2718build=$ac_cv_build
2719ac_save_IFS=$IFS; IFS='-'
2720set x $ac_cv_build
2721shift
2722build_cpu=$1
2723build_vendor=$2
2724shift; shift
2725# Remember, the first character of IFS is used to create $*,
2726# except with old shells:
2727build_os=$*
2728IFS=$ac_save_IFS
2729case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2730
2731
f11781c5
AK
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2733$as_echo_n "checking host system type... " >&6; }
2734if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2735 $as_echo_n "(cached) " >&6
ad6254c5 2736else
f11781c5
AK
2737 if test "x$host_alias" = x; then
2738 ac_cv_host=$ac_cv_build
ad6254c5 2739else
f11781c5
AK
2740 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2741 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2742fi
ad6254c5 2743
f11781c5
AK
2744fi
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2746$as_echo "$ac_cv_host" >&6; }
2747case $ac_cv_host in
2748*-*-*) ;;
2749*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2750esac
2751host=$ac_cv_host
2752ac_save_IFS=$IFS; IFS='-'
2753set x $ac_cv_host
2754shift
2755host_cpu=$1
2756host_vendor=$2
2757shift; shift
2758# Remember, the first character of IFS is used to create $*,
2759# except with old shells:
2760host_os=$*
2761IFS=$ac_save_IFS
2762case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2763
ad6254c5 2764
f11781c5
AK
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2766$as_echo_n "checking target system type... " >&6; }
2767if test "${ac_cv_target+set}" = set; then :
2768 $as_echo_n "(cached) " >&6
ad6254c5 2769else
f11781c5
AK
2770 if test "x$target_alias" = x; then
2771 ac_cv_target=$ac_cv_host
2772else
2773 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2774 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2775fi
7a197a62 2776
ad6254c5 2777fi
f11781c5
AK
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2779$as_echo "$ac_cv_target" >&6; }
2780case $ac_cv_target in
2781*-*-*) ;;
2782*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2783esac
f11781c5
AK
2784target=$ac_cv_target
2785ac_save_IFS=$IFS; IFS='-'
2786set x $ac_cv_target
2787shift
2788target_cpu=$1
2789target_vendor=$2
2790shift; shift
2791# Remember, the first character of IFS is used to create $*,
2792# except with old shells:
2793target_os=$*
2794IFS=$ac_save_IFS
2795case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2796
ad6254c5 2797
f11781c5
AK
2798# The aliases save the names the user supplied, while $host etc.
2799# will get canonicalized.
2800test -n "$target_alias" &&
2801 test "$program_prefix$program_suffix$program_transform_name" = \
2802 NONENONEs,x,x, &&
2803 program_prefix=${target_alias}-
ad6254c5 2804
f11781c5
AK
2805case "$host_os" in
2806 linux*)
2807 CFLAGS="$CFLAGS"
2808 COPTIMISE_FLAG="-O2"
2809 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2810 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2811 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2812 LDDEPS="$LDDEPS .export.sym"
2813 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2814 LIB_SUFFIX=so
2815 DEVMAPPER=yes
2816 ODIRECT=yes
2817 DM_IOCTLS=yes
2818 SELINUX=yes
2819 CLUSTER=internal
2820 FSADM=yes
2821 ;;
2822 darwin*)
2823 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2824 COPTIMISE_FLAG="-O2"
2825 CLDFLAGS="$CLDFLAGS"
2826 CLDWHOLEARCHIVE="-all_load"
2827 CLDNOWHOLEARCHIVE=
2828 LIB_SUFFIX=dylib
2829 DEVMAPPER=yes
2830 ODIRECT=no
2831 DM_IOCTLS=no
2832 SELINUX=no
2833 CLUSTER=none
2834 FSADM=no
2835 ;;
2836esac
ad6254c5 2837
f11781c5
AK
2838################################################################################
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2840$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2841if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2842 $as_echo_n "(cached) " >&6
ad6254c5 2843else
f11781c5
AK
2844 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2845 for ac_i in 1 2 3 4 5 6 7; do
2846 ac_script="$ac_script$as_nl$ac_script"
2847 done
2848 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2849 { ac_script=; unset ac_script;}
2850 if test -z "$SED"; then
2851 ac_path_SED_found=false
2852 # Loop through the user's path and test for each of PROGNAME-LIST
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854for as_dir in $PATH
2855do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_prog in sed gsed; do
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2861 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2862# Check for GNU ac_path_SED and select it if it is found.
2863 # Check for GNU $ac_path_SED
2864case `"$ac_path_SED" --version 2>&1` in
2865*GNU*)
2866 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2867*)
2868 ac_count=0
2869 $as_echo_n 0123456789 >"conftest.in"
2870 while :
2871 do
2872 cat "conftest.in" "conftest.in" >"conftest.tmp"
2873 mv "conftest.tmp" "conftest.in"
2874 cp "conftest.in" "conftest.nl"
2875 $as_echo '' >> "conftest.nl"
2876 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2877 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2878 as_fn_arith $ac_count + 1 && ac_count=$as_val
2879 if test $ac_count -gt ${ac_path_SED_max-0}; then
2880 # Best one so far, save it but keep looking for a better one
2881 ac_cv_path_SED="$ac_path_SED"
2882 ac_path_SED_max=$ac_count
2883 fi
2884 # 10*(2^10) chars as input seems more than enough
2885 test $ac_count -gt 10 && break
2886 done
2887 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2888esac
ad6254c5 2889
f11781c5
AK
2890 $ac_path_SED_found && break 3
2891 done
2892 done
2893 done
2894IFS=$as_save_IFS
2895 if test -z "$ac_cv_path_SED"; then
2896 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2897 fi
2898else
2899 ac_cv_path_SED=$SED
ad6254c5 2900fi
7a197a62 2901
f11781c5
AK
2902fi
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2904$as_echo "$ac_cv_path_SED" >&6; }
2905 SED="$ac_cv_path_SED"
2906 rm -f conftest.sed
ad6254c5 2907
f11781c5
AK
2908for ac_prog in gawk mawk nawk awk
2909do
2910 # Extract the first word of "$ac_prog", so it can be a program name with args.
2911set dummy $ac_prog; ac_word=$2
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913$as_echo_n "checking for $ac_word... " >&6; }
2914if test "${ac_cv_prog_AWK+set}" = set; then :
2915 $as_echo_n "(cached) " >&6
ad6254c5 2916else
f11781c5
AK
2917 if test -n "$AWK"; then
2918 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2919else
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 ac_cv_prog_AWK="$ac_prog"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931done
2932 done
2933IFS=$as_save_IFS
ad6254c5 2934
ad6254c5 2935fi
ad6254c5 2936fi
f11781c5
AK
2937AWK=$ac_cv_prog_AWK
2938if test -n "$AWK"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2940$as_echo "$AWK" >&6; }
2941else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943$as_echo "no" >&6; }
ad6254c5 2944fi
ad6254c5 2945
ad6254c5 2946
f11781c5 2947 test -n "$AWK" && break
ad6254c5
AK
2948done
2949
f11781c5
AK
2950ac_ext=c
2951ac_cpp='$CPP $CPPFLAGS'
2952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955if test -n "$ac_tool_prefix"; then
2956 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2957set dummy ${ac_tool_prefix}gcc; ac_word=$2
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959$as_echo_n "checking for $ac_word... " >&6; }
2960if test "${ac_cv_prog_CC+set}" = set; then :
ec6a6fbe 2961 $as_echo_n "(cached) " >&6
ad6254c5 2962else
f11781c5
AK
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 2965else
f11781c5
AK
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977done
2978 done
2979IFS=$as_save_IFS
ad6254c5 2980
ad6254c5 2981fi
ad6254c5 2982fi
f11781c5
AK
2983CC=$ac_cv_prog_CC
2984if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986$as_echo "$CC" >&6; }
2987else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989$as_echo "no" >&6; }
ad6254c5 2990fi
ad6254c5 2991
f11781c5
AK
2992
2993fi
2994if test -z "$ac_cv_prog_CC"; then
2995 ac_ct_CC=$CC
2996 # Extract the first word of "gcc", so it can be a program name with args.
2997set dummy gcc; ac_word=$2
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999$as_echo_n "checking for $ac_word... " >&6; }
3000if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 3001 $as_echo_n "(cached) " >&6
ad6254c5 3002else
f11781c5
AK
3003 if test -n "$ac_ct_CC"; then
3004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 3005else
f11781c5
AK
3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007for as_dir in $PATH
3008do
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_ac_ct_CC="gcc"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 break 2
3016 fi
3017done
3018 done
3019IFS=$as_save_IFS
d911ec67 3020
d911ec67 3021fi
d911ec67 3022fi
f11781c5
AK
3023ac_ct_CC=$ac_cv_prog_ac_ct_CC
3024if test -n "$ac_ct_CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3026$as_echo "$ac_ct_CC" >&6; }
3027else
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029$as_echo "no" >&6; }
d911ec67 3030fi
d911ec67 3031
f11781c5
AK
3032 if test "x$ac_ct_CC" = x; then
3033 CC=""
3034 else
3035 case $cross_compiling:$ac_tool_warned in
3036yes:)
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3039ac_tool_warned=yes ;;
3040esac
3041 CC=$ac_ct_CC
3042 fi
3043else
3044 CC="$ac_cv_prog_CC"
d911ec67 3045fi
d911ec67 3046
f11781c5
AK
3047if test -z "$CC"; then
3048 if test -n "$ac_tool_prefix"; then
3049 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3050set dummy ${ac_tool_prefix}cc; ac_word=$2
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052$as_echo_n "checking for $ac_word... " >&6; }
3053if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67 3054 $as_echo_n "(cached) " >&6
d911ec67 3055else
f11781c5
AK
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 3058else
f11781c5
AK
3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060for as_dir in $PATH
3061do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_CC="${ac_tool_prefix}cc"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 break 2
3069 fi
3070done
3071 done
3072IFS=$as_save_IFS
d911ec67 3073
f11781c5
AK
3074fi
3075fi
3076CC=$ac_cv_prog_CC
3077if test -n "$CC"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079$as_echo "$CC" >&6; }
3080else
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082$as_echo "no" >&6; }
d911ec67
AK
3083fi
3084
d911ec67 3085
f11781c5
AK
3086 fi
3087fi
3088if test -z "$CC"; then
3089 # Extract the first word of "cc", so it can be a program name with args.
3090set dummy cc; ac_word=$2
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092$as_echo_n "checking for $ac_word... " >&6; }
3093if test "${ac_cv_prog_CC+set}" = set; then :
3094 $as_echo_n "(cached) " >&6
d911ec67 3095else
f11781c5
AK
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3098else
3099 ac_prog_rejected=no
3100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101for as_dir in $PATH
3102do
3103 IFS=$as_save_IFS
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3107 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3108 ac_prog_rejected=yes
3109 continue
3110 fi
3111 ac_cv_prog_CC="cc"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115done
3116 done
3117IFS=$as_save_IFS
d911ec67 3118
f11781c5
AK
3119if test $ac_prog_rejected = yes; then
3120 # We found a bogon in the path, so make sure we never use it.
3121 set dummy $ac_cv_prog_CC
3122 shift
3123 if test $# != 0; then
3124 # We chose a different compiler from the bogus one.
3125 # However, it has the same basename, so the bogon will be chosen
3126 # first if we set CC to just the basename; use the full file name.
3127 shift
3128 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3129 fi
3130fi
3131fi
3132fi
3133CC=$ac_cv_prog_CC
3134if test -n "$CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136$as_echo "$CC" >&6; }
3137else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139$as_echo "no" >&6; }
d911ec67
AK
3140fi
3141
d911ec67 3142
f11781c5
AK
3143fi
3144if test -z "$CC"; then
3145 if test -n "$ac_tool_prefix"; then
3146 for ac_prog in cl.exe
3147 do
3148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3149set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151$as_echo_n "checking for $ac_word... " >&6; }
3152if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3153 $as_echo_n "(cached) " >&6
3154else
f11781c5
AK
3155 if test -n "$CC"; then
3156 ac_cv_prog_CC="$CC" # Let the user override the test.
3157else
3158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159for as_dir in $PATH
3160do
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169done
3170 done
3171IFS=$as_save_IFS
d911ec67
AK
3172
3173fi
f11781c5
AK
3174fi
3175CC=$ac_cv_prog_CC
3176if test -n "$CC"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178$as_echo "$CC" >&6; }
3179else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181$as_echo "no" >&6; }
d911ec67
AK
3182fi
3183
d911ec67 3184
f11781c5
AK
3185 test -n "$CC" && break
3186 done
3187fi
3188if test -z "$CC"; then
3189 ac_ct_CC=$CC
3190 for ac_prog in cl.exe
3191do
3192 # Extract the first word of "$ac_prog", so it can be a program name with args.
3193set dummy $ac_prog; ac_word=$2
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195$as_echo_n "checking for $ac_word... " >&6; }
3196if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d911ec67
AK
3197 $as_echo_n "(cached) " >&6
3198else
f11781c5
AK
3199 if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3201else
f11781c5
AK
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 ac_cv_prog_ac_ct_CC="$ac_prog"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213done
3214 done
3215IFS=$as_save_IFS
ad6254c5 3216
ad6254c5 3217fi
ad6254c5 3218fi
f11781c5
AK
3219ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220if test -n "$ac_ct_CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222$as_echo "$ac_ct_CC" >&6; }
3223else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225$as_echo "no" >&6; }
ad6254c5 3226fi
ad6254c5 3227
d911ec67 3228
f11781c5
AK
3229 test -n "$ac_ct_CC" && break
3230done
d911ec67 3231
f11781c5
AK
3232 if test "x$ac_ct_CC" = x; then
3233 CC=""
3234 else
3235 case $cross_compiling:$ac_tool_warned in
3236yes:)
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239ac_tool_warned=yes ;;
d911ec67 3240esac
f11781c5
AK
3241 CC=$ac_ct_CC
3242 fi
3243fi
ad6254c5
AK
3244
3245fi
d911ec67
AK
3246
3247
f11781c5
AK
3248test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250as_fn_error $? "no acceptable C compiler found in \$PATH
3251See \`config.log' for more details" "$LINENO" 5; }
3252
3253# Provide some information about the compiler.
3254$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3255set X $ac_compile
3256ac_compiler=$2
3257for ac_option in --version -v -V -qversion; do
3258 { { ac_try="$ac_compiler $ac_option >&5"
3259case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262esac
3263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264$as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3266 ac_status=$?
3267 if test -s conftest.err; then
3268 sed '10a\
3269... rest of stderr output deleted ...
3270 10q' conftest.err >conftest.er1
3271 cat conftest.er1 >&5
3272 fi
3273 rm -f conftest.er1 conftest.err
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }
3276done
ad6254c5 3277
f11781c5 3278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3279/* end confdefs.h. */
f11781c5 3280
ad6254c5
AK
3281int
3282main ()
3283{
f11781c5 3284
ad6254c5
AK
3285 ;
3286 return 0;
3287}
3288_ACEOF
f11781c5
AK
3289ac_clean_files_save=$ac_clean_files
3290ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3291# Try to create an executable without -o first, disregard a.out.
3292# It will help us diagnose broken compilers, and finding out an intuition
3293# of exeext.
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3295$as_echo_n "checking whether the C compiler works... " >&6; }
3296ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3297
3298# The possible output files:
3299ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3300
3301ac_rmfiles=
3302for ac_file in $ac_files
3303do
3304 case $ac_file in
3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3306 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3307 esac
3308done
3309rm -f $ac_rmfiles
3310
3311if { { ac_try="$ac_link_default"
7a197a62
AK
3312case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315esac
f11781c5
AK
3316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317$as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_link_default") 2>&5
ad6254c5 3319 ac_status=$?
f11781c5
AK
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }; then :
3322 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3323# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3324# in a Makefile. We should not override ac_cv_exeext if it was cached,
3325# so that the user can short-circuit this test for compilers unknown to
3326# Autoconf.
3327for ac_file in $ac_files ''
3328do
3329 test -f "$ac_file" || continue
3330 case $ac_file in
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3332 ;;
3333 [ab].out )
3334 # We found the default executable, but exeext='' is most
3335 # certainly right.
3336 break;;
3337 *.* )
3338 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3339 then :; else
3340 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3341 fi
3342 # We set ac_cv_exeext here because the later test for it is not
3343 # safe: cross compilers may not add the suffix if given an `-o'
3344 # argument, so we may need to know it at that point already.
3345 # Even if this section looks crufty: it has the advantage of
3346 # actually working.
3347 break;;
3348 * )
3349 break;;
3350 esac
3351done
3352test "$ac_cv_exeext" = no && ac_cv_exeext=
3353
ad6254c5 3354else
f11781c5
AK
3355 ac_file=''
3356fi
3357if test -z "$ac_file"; then :
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359$as_echo "no" >&6; }
ec6a6fbe 3360$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3361sed 's/^/| /' conftest.$ac_ext >&5
3362
f11781c5
AK
3363{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365as_fn_error 77 "C compiler cannot create executables
3366See \`config.log' for more details" "$LINENO" 5; }
3367else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369$as_echo "yes" >&6; }
ad6254c5 3370fi
f11781c5
AK
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3372$as_echo_n "checking for C compiler default output file name... " >&6; }
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3374$as_echo "$ac_file" >&6; }
3375ac_exeext=$ac_cv_exeext
7a197a62 3376
f11781c5
AK
3377rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3378ac_clean_files=$ac_clean_files_save
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3380$as_echo_n "checking for suffix of executables... " >&6; }
3381if { { ac_try="$ac_link"
3382case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
8a2fc586 3385esac
f11781c5
AK
3386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387$as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_link") 2>&5
3389 ac_status=$?
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }; then :
3392 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3393# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3394# work properly (i.e., refer to `conftest.exe'), while it won't with
3395# `rm'.
3396for ac_file in conftest.exe conftest conftest.*; do
3397 test -f "$ac_file" || continue
3398 case $ac_file in
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3400 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3401 break;;
3402 * ) break;;
3403 esac
3404done
3405else
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3409See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3410fi
f11781c5
AK
3411rm -f conftest conftest$ac_cv_exeext
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3413$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3414
f11781c5
AK
3415rm -f conftest.$ac_ext
3416EXEEXT=$ac_cv_exeext
3417ac_exeext=$EXEEXT
3418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3419/* end confdefs.h. */
f11781c5 3420#include <stdio.h>
ad6254c5 3421int
f11781c5 3422main ()
ad6254c5 3423{
f11781c5
AK
3424FILE *f = fopen ("conftest.out", "w");
3425 return ferror (f) || fclose (f) != 0;
ad6254c5 3426
f11781c5 3427 ;
7a197a62 3428 return 0;
ad6254c5 3429}
ad6254c5 3430_ACEOF
f11781c5
AK
3431ac_clean_files="$ac_clean_files conftest.out"
3432# Check that the compiler produces executables we can run. If not, either
3433# the compiler is broken, or we cross compile.
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3435$as_echo_n "checking whether we are cross compiling... " >&6; }
3436if test "$cross_compiling" != yes; then
3437 { { ac_try="$ac_link"
7a197a62
AK
3438case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441esac
f11781c5
AK
3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443$as_echo "$ac_try_echo"; } >&5
7a197a62 3444 (eval "$ac_link") 2>&5
ad6254c5 3445 ac_status=$?
f11781c5
AK
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }
3448 if { ac_try='./conftest$ac_cv_exeext'
3449 { { case "(($ac_try" in
7a197a62
AK
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452esac
f11781c5
AK
3453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454$as_echo "$ac_try_echo"; } >&5
7a197a62 3455 (eval "$ac_try") 2>&5
ad6254c5 3456 ac_status=$?
f11781c5
AK
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; }; then
3459 cross_compiling=no
3460 else
3461 if test "$cross_compiling" = maybe; then
3462 cross_compiling=yes
3463 else
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466as_fn_error $? "cannot run C compiled programs.
3467If you meant to cross compile, use \`--host'.
3468See \`config.log' for more details" "$LINENO" 5; }
3469 fi
3470 fi
3471fi
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3473$as_echo "$cross_compiling" >&6; }
3474
3475rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3476ac_clean_files=$ac_clean_files_save
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3478$as_echo_n "checking for suffix of object files... " >&6; }
3479if test "${ac_cv_objext+set}" = set; then :
3480 $as_echo_n "(cached) " >&6
3481else
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483/* end confdefs.h. */
ad6254c5
AK
3484
3485int
3486main ()
3487{
f11781c5 3488
ad6254c5
AK
3489 ;
3490 return 0;
3491}
3492_ACEOF
f11781c5
AK
3493rm -f conftest.o conftest.obj
3494if { { ac_try="$ac_compile"
7a197a62
AK
3495case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3498esac
f11781c5
AK
3499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500$as_echo "$ac_try_echo"; } >&5
3501 (eval "$ac_compile") 2>&5
ad6254c5 3502 ac_status=$?
f11781c5
AK
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }; then :
3505 for ac_file in conftest.o conftest.obj conftest.*; do
3506 test -f "$ac_file" || continue;
3507 case $ac_file in
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3510 break;;
3511 esac
3512done
ad6254c5 3513else
ec6a6fbe 3514 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
f11781c5
AK
3517{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519as_fn_error $? "cannot compute suffix of object files: cannot compile
3520See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3521fi
f11781c5 3522rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3523fi
f11781c5
AK
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3525$as_echo "$ac_cv_objext" >&6; }
3526OBJEXT=$ac_cv_objext
3527ac_objext=$OBJEXT
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3529$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3530if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3531 $as_echo_n "(cached) " >&6
ad6254c5 3532else
f11781c5 3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3534/* end confdefs.h. */
3535
ad6254c5
AK
3536int
3537main ()
3538{
f11781c5
AK
3539#ifndef __GNUC__
3540 choke me
3541#endif
3542
ad6254c5
AK
3543 ;
3544 return 0;
3545}
3546_ACEOF
f11781c5
AK
3547if ac_fn_c_try_compile "$LINENO"; then :
3548 ac_compiler_gnu=yes
ad6254c5 3549else
f11781c5 3550 ac_compiler_gnu=no
ad6254c5 3551fi
f11781c5
AK
3552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3554
d0191583 3555fi
f11781c5
AK
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3557$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3558if test $ac_compiler_gnu = yes; then
3559 GCC=yes
d0191583 3560else
f11781c5 3561 GCC=
d0191583 3562fi
f11781c5
AK
3563ac_test_CFLAGS=${CFLAGS+set}
3564ac_save_CFLAGS=$CFLAGS
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3566$as_echo_n "checking whether $CC accepts -g... " >&6; }
3567if test "${ac_cv_prog_cc_g+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3569else
3570 ac_save_c_werror_flag=$ac_c_werror_flag
3571 ac_c_werror_flag=yes
3572 ac_cv_prog_cc_g=no
3573 CFLAGS="-g"
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h. */
72b2cb61 3576
f11781c5
AK
3577int
3578main ()
3579{
72b2cb61 3580
f11781c5
AK
3581 ;
3582 return 0;
3583}
3584_ACEOF
3585if ac_fn_c_try_compile "$LINENO"; then :
3586 ac_cv_prog_cc_g=yes
3587else
3588 CFLAGS=""
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590/* end confdefs.h. */
ad6254c5 3591
f11781c5
AK
3592int
3593main ()
3594{
ad6254c5 3595
f11781c5
AK
3596 ;
3597 return 0;
3598}
d0191583 3599_ACEOF
f11781c5
AK
3600if ac_fn_c_try_compile "$LINENO"; then :
3601
3602else
3603 ac_c_werror_flag=$ac_save_c_werror_flag
3604 CFLAGS="-g"
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3606/* end confdefs.h. */
7a197a62 3607
f11781c5
AK
3608int
3609main ()
3610{
ad6254c5 3611
f11781c5
AK
3612 ;
3613 return 0;
3614}
3615_ACEOF
3616if ac_fn_c_try_compile "$LINENO"; then :
3617 ac_cv_prog_cc_g=yes
3618fi
3619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620fi
3621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622fi
3623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_c_werror_flag=$ac_save_c_werror_flag
3625fi
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3627$as_echo "$ac_cv_prog_cc_g" >&6; }
3628if test "$ac_test_CFLAGS" = set; then
3629 CFLAGS=$ac_save_CFLAGS
3630elif test $ac_cv_prog_cc_g = yes; then
3631 if test "$GCC" = yes; then
3632 CFLAGS="-g -O2"
3633 else
3634 CFLAGS="-g"
3635 fi
3636else
3637 if test "$GCC" = yes; then
3638 CFLAGS="-O2"
3639 else
3640 CFLAGS=
3641 fi
3642fi
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3644$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3645if test "${ac_cv_prog_cc_c89+set}" = set; then :
3646 $as_echo_n "(cached) " >&6
3647else
3648 ac_cv_prog_cc_c89=no
3649ac_save_CC=$CC
3650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651/* end confdefs.h. */
3652#include <stdarg.h>
3653#include <stdio.h>
3654#include <sys/types.h>
3655#include <sys/stat.h>
3656/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3657struct buf { int x; };
3658FILE * (*rcsopen) (struct buf *, struct stat *, int);
3659static char *e (p, i)
3660 char **p;
3661 int i;
3662{
3663 return p[i];
3664}
3665static char *f (char * (*g) (char **, int), char **p, ...)
3666{
3667 char *s;
3668 va_list v;
3669 va_start (v,p);
3670 s = g (p, va_arg (v,int));
3671 va_end (v);
3672 return s;
3673}
ad6254c5 3674
f11781c5
AK
3675/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3676 function prototypes and stuff, but not '\xHH' hex character constants.
3677 These don't provoke an error unfortunately, instead are silently treated
3678 as 'x'. The following induces an error, until -std is added to get
3679 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3680 array size at least. It's necessary to write '\x00'==0 to get something
3681 that's true only with -std. */
3682int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3683
f11781c5
AK
3684/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3685 inside strings and character constants. */
3686#define FOO(x) 'x'
3687int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3688
f11781c5
AK
3689int test (int i, double x);
3690struct s1 {int (*f) (int a);};
3691struct s2 {int (*f) (double a);};
3692int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3693int argc;
3694char **argv;
d0191583
JM
3695int
3696main ()
3697{
f11781c5 3698return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3699 ;
3700 return 0;
3701}
72b2cb61 3702_ACEOF
f11781c5
AK
3703for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3704 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3705do
3706 CC="$ac_save_CC $ac_arg"
3707 if ac_fn_c_try_compile "$LINENO"; then :
3708 ac_cv_prog_cc_c89=$ac_arg
3709fi
3710rm -f core conftest.err conftest.$ac_objext
3711 test "x$ac_cv_prog_cc_c89" != "xno" && break
3712done
3713rm -f conftest.$ac_ext
3714CC=$ac_save_CC
3715
3716fi
3717# AC_CACHE_VAL
3718case "x$ac_cv_prog_cc_c89" in
3719 x)
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3721$as_echo "none needed" >&6; } ;;
3722 xno)
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3724$as_echo "unsupported" >&6; } ;;
3725 *)
3726 CC="$CC $ac_cv_prog_cc_c89"
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3728$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3729esac
f11781c5
AK
3730if test "x$ac_cv_prog_cc_c89" != xno; then :
3731
3732fi
3733
3734ac_ext=c
3735ac_cpp='$CPP $CPPFLAGS'
3736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3739
ad6254c5 3740
7a197a62 3741
f11781c5
AK
3742ac_ext=c
3743ac_cpp='$CPP $CPPFLAGS'
3744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3748$as_echo_n "checking how to run the C preprocessor... " >&6; }
3749# On Suns, sometimes $CPP names a directory.
3750if test -n "$CPP" && test -d "$CPP"; then
3751 CPP=
3752fi
3753if test -z "$CPP"; then
3754 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3755 $as_echo_n "(cached) " >&6
ad6254c5 3756else
f11781c5
AK
3757 # Double quotes because CPP needs to be expanded
3758 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3759 do
3760 ac_preproc_ok=false
3761for ac_c_preproc_warn_flag in '' yes
3762do
3763 # Use a header file that comes with gcc, so configuring glibc
3764 # with a fresh cross-compiler works.
3765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3766 # <limits.h> exists even on freestanding compilers.
3767 # On the NeXT, cc -E runs the code through the compiler's parser,
3768 # not just through cpp. "Syntax error" is here to catch this case.
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3770/* end confdefs.h. */
d0191583
JM
3771#ifdef __STDC__
3772# include <limits.h>
3773#else
3774# include <assert.h>
3775#endif
f11781c5
AK
3776 Syntax error
3777_ACEOF
3778if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3779
f11781c5
AK
3780else
3781 # Broken: fails on valid input.
3782continue
3783fi
3784rm -f conftest.err conftest.$ac_ext
d0191583 3785
f11781c5
AK
3786 # OK, works on sane cases. Now check whether nonexistent headers
3787 # can be detected and how.
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789/* end confdefs.h. */
3790#include <ac_nonexistent.h>
72b2cb61 3791_ACEOF
f11781c5
AK
3792if ac_fn_c_try_cpp "$LINENO"; then :
3793 # Broken: success on invalid input.
3794continue
d0191583 3795else
f11781c5
AK
3796 # Passes both tests.
3797ac_preproc_ok=:
3798break
ad6254c5 3799fi
f11781c5 3800rm -f conftest.err conftest.$ac_ext
ad6254c5 3801
f11781c5
AK
3802done
3803# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3804rm -f conftest.err conftest.$ac_ext
3805if $ac_preproc_ok; then :
3806 break
7a197a62
AK
3807fi
3808
f11781c5
AK
3809 done
3810 ac_cv_prog_CPP=$CPP
ad6254c5 3811
7a197a62 3812fi
f11781c5
AK
3813 CPP=$ac_cv_prog_CPP
3814else
3815 ac_cv_prog_CPP=$CPP
d0191583 3816fi
f11781c5
AK
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3818$as_echo "$CPP" >&6; }
3819ac_preproc_ok=false
3820for ac_c_preproc_warn_flag in '' yes
3821do
3822 # Use a header file that comes with gcc, so configuring glibc
3823 # with a fresh cross-compiler works.
3824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3825 # <limits.h> exists even on freestanding compilers.
3826 # On the NeXT, cc -E runs the code through the compiler's parser,
3827 # not just through cpp. "Syntax error" is here to catch this case.
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829/* end confdefs.h. */
3830#ifdef __STDC__
3831# include <limits.h>
3832#else
3833# include <assert.h>
3834#endif
3835 Syntax error
3836_ACEOF
3837if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3838
9c961554 3839else
f11781c5
AK
3840 # Broken: fails on valid input.
3841continue
9c961554 3842fi
f11781c5 3843rm -f conftest.err conftest.$ac_ext
9c961554 3844
f11781c5
AK
3845 # OK, works on sane cases. Now check whether nonexistent headers
3846 # can be detected and how.
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h. */
3849#include <ac_nonexistent.h>
3850_ACEOF
3851if ac_fn_c_try_cpp "$LINENO"; then :
3852 # Broken: success on invalid input.
3853continue
3854else
3855 # Passes both tests.
3856ac_preproc_ok=:
3857break
3858fi
3859rm -f conftest.err conftest.$ac_ext
ad6254c5 3860
f11781c5
AK
3861done
3862# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3863rm -f conftest.err conftest.$ac_ext
3864if $ac_preproc_ok; then :
d0191583 3865
f11781c5
AK
3866else
3867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3870See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3871fi
3872
f11781c5
AK
3873ac_ext=c
3874ac_cpp='$CPP $CPPFLAGS'
3875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3878
ad6254c5 3879
f11781c5
AK
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3881$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3882if test "${ac_cv_path_GREP+set}" = set; then :
3883 $as_echo_n "(cached) " >&6
3884else
3885 if test -z "$GREP"; then
3886 ac_path_GREP_found=false
3887 # Loop through the user's path and test for each of PROGNAME-LIST
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3890do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_prog in grep ggrep; do
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3896 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3897# Check for GNU ac_path_GREP and select it if it is found.
3898 # Check for GNU $ac_path_GREP
3899case `"$ac_path_GREP" --version 2>&1` in
3900*GNU*)
3901 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3902*)
3903 ac_count=0
3904 $as_echo_n 0123456789 >"conftest.in"
3905 while :
3906 do
3907 cat "conftest.in" "conftest.in" >"conftest.tmp"
3908 mv "conftest.tmp" "conftest.in"
3909 cp "conftest.in" "conftest.nl"
3910 $as_echo 'GREP' >> "conftest.nl"
3911 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3913 as_fn_arith $ac_count + 1 && ac_count=$as_val
3914 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3915 # Best one so far, save it but keep looking for a better one
3916 ac_cv_path_GREP="$ac_path_GREP"
3917 ac_path_GREP_max=$ac_count
3918 fi
3919 # 10*(2^10) chars as input seems more than enough
3920 test $ac_count -gt 10 && break
3921 done
3922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923esac
ad6254c5 3924
f11781c5
AK
3925 $ac_path_GREP_found && break 3
3926 done
3927 done
3928 done
3929IFS=$as_save_IFS
3930 if test -z "$ac_cv_path_GREP"; then
3931 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3932 fi
3933else
3934 ac_cv_path_GREP=$GREP
7a197a62
AK
3935fi
3936
d0191583 3937fi
f11781c5
AK
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3939$as_echo "$ac_cv_path_GREP" >&6; }
3940 GREP="$ac_cv_path_GREP"
ad6254c5 3941
24bbc4d7 3942
f11781c5
AK
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3944$as_echo_n "checking for egrep... " >&6; }
3945if test "${ac_cv_path_EGREP+set}" = set; then :
3946 $as_echo_n "(cached) " >&6
3947else
3948 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3949 then ac_cv_path_EGREP="$GREP -E"
3950 else
3951 if test -z "$EGREP"; then
3952 ac_path_EGREP_found=false
3953 # Loop through the user's path and test for each of PROGNAME-LIST
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_prog in egrep; do
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3962 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3963# Check for GNU ac_path_EGREP and select it if it is found.
3964 # Check for GNU $ac_path_EGREP
3965case `"$ac_path_EGREP" --version 2>&1` in
3966*GNU*)
3967 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3968*)
3969 ac_count=0
3970 $as_echo_n 0123456789 >"conftest.in"
3971 while :
3972 do
3973 cat "conftest.in" "conftest.in" >"conftest.tmp"
3974 mv "conftest.tmp" "conftest.in"
3975 cp "conftest.in" "conftest.nl"
3976 $as_echo 'EGREP' >> "conftest.nl"
3977 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3979 as_fn_arith $ac_count + 1 && ac_count=$as_val
3980 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3981 # Best one so far, save it but keep looking for a better one
3982 ac_cv_path_EGREP="$ac_path_EGREP"
3983 ac_path_EGREP_max=$ac_count
3984 fi
3985 # 10*(2^10) chars as input seems more than enough
3986 test $ac_count -gt 10 && break
3987 done
3988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989esac
24bbc4d7 3990
f11781c5
AK
3991 $ac_path_EGREP_found && break 3
3992 done
3993 done
3994 done
3995IFS=$as_save_IFS
3996 if test -z "$ac_cv_path_EGREP"; then
3997 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3998 fi
24bbc4d7 3999else
f11781c5 4000 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
4001fi
4002
f11781c5 4003 fi
24bbc4d7 4004fi
f11781c5
AK
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4006$as_echo "$ac_cv_path_EGREP" >&6; }
4007 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
4008
4009
f11781c5
AK
4010if test $ac_cv_c_compiler_gnu = yes; then
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4012$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4013if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4014 $as_echo_n "(cached) " >&6
93bd259b 4015else
f11781c5
AK
4016 ac_pattern="Autoconf.*'x'"
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h. */
4019#include <sgtty.h>
4020Autoconf TIOCGETP
4021_ACEOF
4022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4023 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4024 ac_cv_prog_gcc_traditional=yes
d0191583 4025else
f11781c5 4026 ac_cv_prog_gcc_traditional=no
7a197a62 4027fi
f11781c5 4028rm -f conftest*
7a197a62 4029
72b2cb61 4030
f11781c5
AK
4031 if test $ac_cv_prog_gcc_traditional = no; then
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033/* end confdefs.h. */
4034#include <termio.h>
4035Autoconf TCGETA
72b2cb61 4036_ACEOF
f11781c5
AK
4037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4038 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4039 ac_cv_prog_gcc_traditional=yes
ad6254c5 4040fi
f11781c5 4041rm -f conftest*
ad6254c5 4042
f11781c5 4043 fi
7a197a62 4044fi
f11781c5
AK
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4046$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4047 if test $ac_cv_prog_gcc_traditional = yes; then
4048 CC="$CC -traditional"
4049 fi
ad6254c5
AK
4050fi
4051
f11781c5
AK
4052# Find a good install program. We prefer a C program (faster),
4053# so one script is as good as another. But avoid the broken or
4054# incompatible versions:
4055# SysV /etc/install, /usr/sbin/install
4056# SunOS /usr/etc/install
4057# IRIX /sbin/install
4058# AIX /bin/install
4059# AmigaOS /C/install, which installs bootblocks on floppy discs
4060# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4061# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4062# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4063# OS/2's system install, which has a completely different semantic
4064# ./install, which can be erroneously created by make from ./install.sh.
4065# Reject install programs that cannot install multiple files.
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4067$as_echo_n "checking for a BSD-compatible install... " >&6; }
4068if test -z "$INSTALL"; then
4069if test "${ac_cv_path_install+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
ad6254c5 4071else
f11781c5
AK
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073for as_dir in $PATH
4074do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 # Account for people who put trailing slashes in PATH elements.
4078case $as_dir/ in #((
4079 ./ | .// | /[cC]/* | \
4080 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4081 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4082 /usr/ucb/* ) ;;
4083 *)
4084 # OSF1 and SCO ODT 3.0 have their own names for install.
4085 # Don't use installbsd from OSF since it installs stuff as root
4086 # by default.
4087 for ac_prog in ginstall scoinst install; do
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4090 if test $ac_prog = install &&
4091 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4092 # AIX install. It has an incompatible calling convention.
4093 :
4094 elif test $ac_prog = install &&
4095 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4096 # program-specific install script used by HP pwplus--don't use.
4097 :
4098 else
4099 rm -rf conftest.one conftest.two conftest.dir
4100 echo one > conftest.one
4101 echo two > conftest.two
4102 mkdir conftest.dir
4103 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4104 test -s conftest.one && test -s conftest.two &&
4105 test -s conftest.dir/conftest.one &&
4106 test -s conftest.dir/conftest.two
4107 then
4108 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4109 break 3
4110 fi
4111 fi
4112 fi
4113 done
4114 done
4115 ;;
4116esac
7a197a62 4117
f11781c5
AK
4118 done
4119IFS=$as_save_IFS
d0191583 4120
f11781c5 4121rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4122
4123fi
f11781c5
AK
4124 if test "${ac_cv_path_install+set}" = set; then
4125 INSTALL=$ac_cv_path_install
4126 else
4127 # As a last resort, use the slow shell script. Don't cache a
4128 # value for INSTALL within a source directory, because that will
4129 # break other packages using the cache if that directory is
4130 # removed, or if the value is a relative name.
4131 INSTALL=$ac_install_sh
4132 fi
7a197a62 4133fi
f11781c5
AK
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4135$as_echo "$INSTALL" >&6; }
7a197a62 4136
f11781c5
AK
4137# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4138# It thinks the first close brace ends the variable substitution.
4139test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4140
f11781c5 4141test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4142
f11781c5 4143test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4144
f11781c5
AK
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4146$as_echo_n "checking whether ln -s works... " >&6; }
4147LN_S=$as_ln_s
4148if test "$LN_S" = "ln -s"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4150$as_echo "yes" >&6; }
4151else
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4153$as_echo "no, using $LN_S" >&6; }
15d91f5a 4154fi
ad6254c5 4155
f11781c5
AK
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4157$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4158set x ${MAKE-make}
4159ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4160if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4161 $as_echo_n "(cached) " >&6
d0191583 4162else
f11781c5
AK
4163 cat >conftest.make <<\_ACEOF
4164SHELL = /bin/sh
4165all:
4166 @echo '@@@%%%=$(MAKE)=@@@%%%'
4167_ACEOF
4168# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4169case `${MAKE-make} -f conftest.make 2>/dev/null` in
4170 *@@@%%%=?*=@@@%%%*)
4171 eval ac_cv_prog_make_${ac_make}_set=yes;;
4172 *)
4173 eval ac_cv_prog_make_${ac_make}_set=no;;
4174esac
4175rm -f conftest.make
4176fi
4177if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4179$as_echo "yes" >&6; }
4180 SET_MAKE=
4181else
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183$as_echo "no" >&6; }
4184 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4185fi
4186
f11781c5
AK
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4188$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4189if test -z "$MKDIR_P"; then
4190 if test "${ac_cv_path_mkdir+set}" = set; then :
4191 $as_echo_n "(cached) " >&6
4192else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4195do
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_prog in mkdir gmkdir; do
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4201 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4202 'mkdir (GNU coreutils) '* | \
4203 'mkdir (coreutils) '* | \
4204 'mkdir (fileutils) '4.1*)
4205 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4206 break 3;;
4207 esac
4208 done
4209 done
4210 done
4211IFS=$as_save_IFS
d0191583 4212
f11781c5 4213fi
ad6254c5 4214
f11781c5
AK
4215 test -d ./--version && rmdir ./--version
4216 if test "${ac_cv_path_mkdir+set}" = set; then
4217 MKDIR_P="$ac_cv_path_mkdir -p"
4218 else
4219 # As a last resort, use the slow shell script. Don't cache a
4220 # value for MKDIR_P within a source directory, because that will
4221 # break other packages using the cache if that directory is
4222 # removed, or if the value is a relative name.
4223 MKDIR_P="$ac_install_sh -d"
4224 fi
ad6254c5 4225fi
f11781c5
AK
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4227$as_echo "$MKDIR_P" >&6; }
7a197a62 4228
f11781c5
AK
4229if test -n "$ac_tool_prefix"; then
4230 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4231set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233$as_echo_n "checking for $ac_word... " >&6; }
4234if test "${ac_cv_prog_RANLIB+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4236else
4237 if test -n "$RANLIB"; then
4238 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4239else
4240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241for as_dir in $PATH
4242do
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4247 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 break 2
4250 fi
4251done
4252 done
4253IFS=$as_save_IFS
d0191583 4254
f11781c5
AK
4255fi
4256fi
4257RANLIB=$ac_cv_prog_RANLIB
4258if test -n "$RANLIB"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4260$as_echo "$RANLIB" >&6; }
d0191583 4261else
f11781c5
AK
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263$as_echo "no" >&6; }
ad6254c5 4264fi
ad6254c5 4265
8a2fc586 4266
d0191583 4267fi
f11781c5
AK
4268if test -z "$ac_cv_prog_RANLIB"; then
4269 ac_ct_RANLIB=$RANLIB
4270 # Extract the first word of "ranlib", so it can be a program name with args.
4271set dummy ranlib; ac_word=$2
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273$as_echo_n "checking for $ac_word... " >&6; }
4274if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4275 $as_echo_n "(cached) " >&6
4276else
4277 if test -n "$ac_ct_RANLIB"; then
4278 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4279else
4280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281for as_dir in $PATH
4282do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287 ac_cv_prog_ac_ct_RANLIB="ranlib"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4290 fi
4291done
4292 done
4293IFS=$as_save_IFS
8a2fc586 4294
f11781c5
AK
4295fi
4296fi
4297ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4298if test -n "$ac_ct_RANLIB"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4300$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4301else
f11781c5
AK
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303$as_echo "no" >&6; }
8fea97b7
ZK
4304fi
4305
f11781c5
AK
4306 if test "x$ac_ct_RANLIB" = x; then
4307 RANLIB=":"
4308 else
4309 case $cross_compiling:$ac_tool_warned in
4310yes:)
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4312$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4313ac_tool_warned=yes ;;
8fea97b7 4314esac
f11781c5
AK
4315 RANLIB=$ac_ct_RANLIB
4316 fi
d0191583 4317else
f11781c5 4318 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4319fi
8a2fc586 4320
f11781c5
AK
4321# Extract the first word of "cflow", so it can be a program name with args.
4322set dummy cflow; ac_word=$2
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324$as_echo_n "checking for $ac_word... " >&6; }
4325if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4326 $as_echo_n "(cached) " >&6
4327else
4328 case $CFLOW_CMD in
4329 [\\/]* | ?:[\\/]*)
4330 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4331 ;;
4332 *)
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334for as_dir in $PATH
4335do
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 break 2
4343 fi
4344done
4345 done
4346IFS=$as_save_IFS
8a2fc586 4347
f11781c5
AK
4348 ;;
4349esac
ad6254c5 4350fi
f11781c5
AK
4351CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4352if test -n "$CFLOW_CMD"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4354$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4355else
f11781c5
AK
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357$as_echo "no" >&6; }
37ddf259
AK
4358fi
4359
e2997b73 4360
f11781c5
AK
4361# Extract the first word of "cscope", so it can be a program name with args.
4362set dummy cscope; ac_word=$2
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4364$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4365if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4366 $as_echo_n "(cached) " >&6
4367else
f11781c5 4368 case $CSCOPE_CMD in
e2997b73 4369 [\\/]* | ?:[\\/]*)
f11781c5 4370 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4371 ;;
4372 *)
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374for as_dir in $PATH
4375do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
f11781c5 4378 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4380 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4382 break 2
4383 fi
4384done
f11781c5 4385 done
e2997b73
AK
4386IFS=$as_save_IFS
4387
4388 ;;
4389esac
4390fi
f11781c5
AK
4391CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4392if test -n "$CSCOPE_CMD"; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4394$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4395else
f11781c5 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4397$as_echo "no" >&6; }
4398fi
f11781c5
AK
4399
4400
4401
4402################################################################################
4403ac_header_dirent=no
4404for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4405 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4407$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4408if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4409 $as_echo_n "(cached) " >&6
4410else
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412/* end confdefs.h. */
4413#include <sys/types.h>
4414#include <$ac_hdr>
4415
4416int
4417main ()
4418{
4419if ((DIR *) 0)
4420return 0;
4421 ;
4422 return 0;
4423}
4424_ACEOF
4425if ac_fn_c_try_compile "$LINENO"; then :
4426 eval "$as_ac_Header=yes"
4427else
4428 eval "$as_ac_Header=no"
4429fi
4430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431fi
4432eval ac_res=\$$as_ac_Header
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4434$as_echo "$ac_res" >&6; }
4435if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4436 cat >>confdefs.h <<_ACEOF
4437#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4438_ACEOF
4439
4440ac_header_dirent=$ac_hdr; break
4441fi
4442
4443done
4444# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4445if test $ac_header_dirent = dirent.h; then
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4447$as_echo_n "checking for library containing opendir... " >&6; }
4448if test "${ac_cv_search_opendir+set}" = set; then :
4449 $as_echo_n "(cached) " >&6
4450else
4451 ac_func_search_save_LIBS=$LIBS
4452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453/* end confdefs.h. */
4454
4455/* Override any GCC internal prototype to avoid an error.
4456 Use char because int might match the return type of a GCC
4457 builtin and then its argument prototype would still apply. */
4458#ifdef __cplusplus
4459extern "C"
4460#endif
4461char opendir ();
4462int
4463main ()
4464{
4465return opendir ();
4466 ;
4467 return 0;
4468}
4469_ACEOF
4470for ac_lib in '' dir; do
4471 if test -z "$ac_lib"; then
4472 ac_res="none required"
4473 else
4474 ac_res=-l$ac_lib
4475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4476 fi
4477 if ac_fn_c_try_link "$LINENO"; then :
4478 ac_cv_search_opendir=$ac_res
4479fi
4480rm -f core conftest.err conftest.$ac_objext \
4481 conftest$ac_exeext
4482 if test "${ac_cv_search_opendir+set}" = set; then :
4483 break
4484fi
4485done
4486if test "${ac_cv_search_opendir+set}" = set; then :
4487
4488else
4489 ac_cv_search_opendir=no
4490fi
4491rm conftest.$ac_ext
4492LIBS=$ac_func_search_save_LIBS
4493fi
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4495$as_echo "$ac_cv_search_opendir" >&6; }
4496ac_res=$ac_cv_search_opendir
4497if test "$ac_res" != no; then :
4498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4499
4500fi
f11781c5
AK
4501
4502else
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4504$as_echo_n "checking for library containing opendir... " >&6; }
4505if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4506 $as_echo_n "(cached) " >&6
4507else
f11781c5
AK
4508 ac_func_search_save_LIBS=$LIBS
4509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510/* end confdefs.h. */
e2997b73 4511
f11781c5
AK
4512/* Override any GCC internal prototype to avoid an error.
4513 Use char because int might match the return type of a GCC
4514 builtin and then its argument prototype would still apply. */
4515#ifdef __cplusplus
4516extern "C"
4517#endif
4518char opendir ();
4519int
4520main ()
4521{
4522return opendir ();
4523 ;
4524 return 0;
4525}
4526_ACEOF
4527for ac_lib in '' x; do
4528 if test -z "$ac_lib"; then
4529 ac_res="none required"
4530 else
4531 ac_res=-l$ac_lib
4532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4533 fi
4534 if ac_fn_c_try_link "$LINENO"; then :
4535 ac_cv_search_opendir=$ac_res
e2997b73 4536fi
f11781c5
AK
4537rm -f core conftest.err conftest.$ac_objext \
4538 conftest$ac_exeext
4539 if test "${ac_cv_search_opendir+set}" = set; then :
4540 break
e2997b73 4541fi
f11781c5
AK
4542done
4543if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4544
e2997b73 4545else
f11781c5
AK
4546 ac_cv_search_opendir=no
4547fi
4548rm conftest.$ac_ext
4549LIBS=$ac_func_search_save_LIBS
e2997b73 4550fi
f11781c5
AK
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4552$as_echo "$ac_cv_search_opendir" >&6; }
4553ac_res=$ac_cv_search_opendir
4554if test "$ac_res" != no; then :
4555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4556
4557fi
8c4e8a18 4558
e2997b73
AK
4559fi
4560
f11781c5
AK
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4562$as_echo_n "checking for ANSI C header files... " >&6; }
4563if test "${ac_cv_header_stdc+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4565else
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567/* end confdefs.h. */
4568#include <stdlib.h>
4569#include <stdarg.h>
4570#include <string.h>
4571#include <float.h>
e2997b73 4572
f11781c5
AK
4573int
4574main ()
4575{
4576
4577 ;
4578 return 0;
4579}
4580_ACEOF
4581if ac_fn_c_try_compile "$LINENO"; then :
4582 ac_cv_header_stdc=yes
e2997b73 4583else
f11781c5 4584 ac_cv_header_stdc=no
e2997b73 4585fi
f11781c5
AK
4586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587
4588if test $ac_cv_header_stdc = yes; then
4589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591/* end confdefs.h. */
4592#include <string.h>
4593
4594_ACEOF
4595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4596 $EGREP "memchr" >/dev/null 2>&1; then :
4597
e2997b73 4598else
f11781c5 4599 ac_cv_header_stdc=no
e2997b73 4600fi
f11781c5 4601rm -f conftest*
e2997b73 4602
f11781c5 4603fi
e2997b73 4604
f11781c5
AK
4605if test $ac_cv_header_stdc = yes; then
4606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608/* end confdefs.h. */
4609#include <stdlib.h>
e2997b73 4610
f11781c5
AK
4611_ACEOF
4612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4614
e2997b73 4615else
f11781c5 4616 ac_cv_header_stdc=no
e2997b73 4617fi
f11781c5 4618rm -f conftest*
e2997b73 4619
e2997b73 4620fi
90c80887 4621
f11781c5
AK
4622if test $ac_cv_header_stdc = yes; then
4623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4624 if test "$cross_compiling" = yes; then :
4625 :
4626else
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628/* end confdefs.h. */
4629#include <ctype.h>
4630#include <stdlib.h>
4631#if ((' ' & 0x0FF) == 0x020)
4632# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4633# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4634#else
4635# define ISLOWER(c) \
4636 (('a' <= (c) && (c) <= 'i') \
4637 || ('j' <= (c) && (c) <= 'r') \
4638 || ('s' <= (c) && (c) <= 'z'))
4639# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4640#endif
4641
4642#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4643int
4644main ()
4645{
4646 int i;
4647 for (i = 0; i < 256; i++)
4648 if (XOR (islower (i), ISLOWER (i))
4649 || toupper (i) != TOUPPER (i))
4650 return 2;
4651 return 0;
4652}
4653_ACEOF
4654if ac_fn_c_try_run "$LINENO"; then :
90c80887 4655
90c80887 4656else
f11781c5 4657 ac_cv_header_stdc=no
90c80887 4658fi
f11781c5
AK
4659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4660 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4661fi
90c80887 4662
90c80887 4663fi
90c80887 4664fi
f11781c5
AK
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4666$as_echo "$ac_cv_header_stdc" >&6; }
4667if test $ac_cv_header_stdc = yes; then
90c80887 4668
f11781c5 4669$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4670
90c80887 4671fi
f11781c5
AK
4672
4673# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4674for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4675 inttypes.h stdint.h unistd.h
4676do :
4677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4678ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4679"
4680if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4681 cat >>confdefs.h <<_ACEOF
4682#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4683_ACEOF
4684
90c80887 4685fi
f11781c5
AK
4686
4687done
4688
4689
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4691$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4692if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
4694else
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696/* end confdefs.h. */
4697#include <sys/types.h>
4698int
4699main ()
4700{
4701return makedev(0, 0);
4702 ;
4703 return 0;
4704}
4705_ACEOF
4706if ac_fn_c_try_link "$LINENO"; then :
4707 ac_cv_header_sys_types_h_makedev=yes
4708else
4709 ac_cv_header_sys_types_h_makedev=no
90c80887 4710fi
f11781c5
AK
4711rm -f core conftest.err conftest.$ac_objext \
4712 conftest$ac_exeext conftest.$ac_ext
4713
90c80887 4714fi
f11781c5
AK
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4716$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4717
4718if test $ac_cv_header_sys_types_h_makedev = no; then
4719ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4720if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4721
4722$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4723
a946372e 4724fi
e2997b73 4725
e2997b73 4726
a946372e 4727
f11781c5
AK
4728 if test $ac_cv_header_sys_mkdev_h = no; then
4729 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4730if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4731
4732$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4733
e2997b73 4734fi
a946372e 4735
a946372e 4736
f11781c5
AK
4737 fi
4738fi
4739
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4741$as_echo_n "checking for ANSI C header files... " >&6; }
4742if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4743 $as_echo_n "(cached) " >&6
4744else
f11781c5 4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4746/* end confdefs.h. */
f11781c5
AK
4747#include <stdlib.h>
4748#include <stdarg.h>
4749#include <string.h>
4750#include <float.h>
a946372e 4751
a946372e
AK
4752int
4753main ()
4754{
f11781c5 4755
a946372e
AK
4756 ;
4757 return 0;
4758}
4759_ACEOF
f11781c5
AK
4760if ac_fn_c_try_compile "$LINENO"; then :
4761 ac_cv_header_stdc=yes
e2997b73 4762else
f11781c5
AK
4763 ac_cv_header_stdc=no
4764fi
4765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766
4767if test $ac_cv_header_stdc = yes; then
4768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770/* end confdefs.h. */
4771#include <string.h>
4772
4773_ACEOF
4774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4775 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4776
f11781c5
AK
4777else
4778 ac_cv_header_stdc=no
a946372e 4779fi
f11781c5 4780rm -f conftest*
e2997b73 4781
a946372e 4782fi
e2997b73 4783
f11781c5
AK
4784if test $ac_cv_header_stdc = yes; then
4785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787/* end confdefs.h. */
4788#include <stdlib.h>
4789
4790_ACEOF
4791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4792 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4793
e2997b73 4794else
f11781c5 4795 ac_cv_header_stdc=no
e2997b73 4796fi
f11781c5 4797rm -f conftest*
e2997b73 4798
f11781c5 4799fi
a946372e 4800
f11781c5
AK
4801if test $ac_cv_header_stdc = yes; then
4802 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4803 if test "$cross_compiling" = yes; then :
4804 :
4805else
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807/* end confdefs.h. */
4808#include <ctype.h>
4809#include <stdlib.h>
4810#if ((' ' & 0x0FF) == 0x020)
4811# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4812# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4813#else
4814# define ISLOWER(c) \
4815 (('a' <= (c) && (c) <= 'i') \
4816 || ('j' <= (c) && (c) <= 'r') \
4817 || ('s' <= (c) && (c) <= 'z'))
4818# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4819#endif
e2997b73 4820
f11781c5
AK
4821#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4822int
4823main ()
4824{
4825 int i;
4826 for (i = 0; i < 256; i++)
4827 if (XOR (islower (i), ISLOWER (i))
4828 || toupper (i) != TOUPPER (i))
4829 return 2;
4830 return 0;
4831}
4832_ACEOF
4833if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4834
e2997b73 4835else
f11781c5 4836 ac_cv_header_stdc=no
e2997b73 4837fi
f11781c5
AK
4838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4839 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4840fi
f11781c5 4841
e2997b73 4842fi
e2997b73 4843fi
f11781c5
AK
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4845$as_echo "$ac_cv_header_stdc" >&6; }
4846if test $ac_cv_header_stdc = yes; then
e2997b73 4847
f11781c5 4848$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4849
f11781c5 4850fi
e2997b73 4851
f11781c5
AK
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4853$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4854if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4856else
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858/* end confdefs.h. */
4859#include <sys/types.h>
4860#include <sys/wait.h>
4861#ifndef WEXITSTATUS
4862# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4863#endif
4864#ifndef WIFEXITED
4865# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4866#endif
e2997b73 4867
f11781c5
AK
4868int
4869main ()
4870{
4871 int s;
4872 wait (&s);
4873 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4874 ;
4875 return 0;
4876}
4877_ACEOF
4878if ac_fn_c_try_compile "$LINENO"; then :
4879 ac_cv_header_sys_wait_h=yes
e2997b73 4880else
f11781c5 4881 ac_cv_header_sys_wait_h=no
e2997b73 4882fi
f11781c5
AK
4883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4884fi
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4886$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4887if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4888
f11781c5 4889$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4890
d0191583 4891fi
f11781c5
AK
4892
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4894$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4895if test "${ac_cv_header_time+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
fc54be10 4897else
f11781c5 4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4899/* end confdefs.h. */
f11781c5
AK
4900#include <sys/types.h>
4901#include <sys/time.h>
4902#include <time.h>
4903
4904int
4905main ()
4906{
4907if ((struct tm *) 0)
4908return 0;
4909 ;
4910 return 0;
4911}
a946372e 4912_ACEOF
f11781c5
AK
4913if ac_fn_c_try_compile "$LINENO"; then :
4914 ac_cv_header_time=yes
a946372e 4915else
f11781c5
AK
4916 ac_cv_header_time=no
4917fi
4918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4919fi
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4921$as_echo "$ac_cv_header_time" >&6; }
4922if test $ac_cv_header_time = yes; then
4923
4924$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4925
4926fi
4927
4928
4929for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4930 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4931 sys/wait.h time.h
4932do :
4933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4934ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4935if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4936 cat >>confdefs.h <<_ACEOF
4937#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4938_ACEOF
d0191583 4939
f11781c5
AK
4940else
4941 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4942fi
4943
f11781c5 4944done
fddafd51 4945
f11781c5
AK
4946
4947case "$host_os" in
4948 linux*)
4949 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4950do :
4951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4952ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4953if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4954 cat >>confdefs.h <<_ACEOF
4955#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a946372e 4956_ACEOF
a946372e 4957
f11781c5
AK
4958else
4959 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
4960fi
4961
f11781c5
AK
4962done
4963 ;;
4964 darwin*)
4965 for ac_header in machine/endian.h sys/disk.h
4966do :
4967 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4968ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4969if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4970 cat >>confdefs.h <<_ACEOF
4971#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4972_ACEOF
a946372e 4973
f11781c5
AK
4974else
4975 as_fn_error $? "bailing out" "$LINENO" 5
4976fi
a946372e 4977
f11781c5
AK
4978done
4979 ;;
a946372e 4980esac
f11781c5
AK
4981
4982for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4983 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4984 sys/types.h unistd.h
4985do :
4986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4987ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4988if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4989 cat >>confdefs.h <<_ACEOF
4990#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4991_ACEOF
4992
a946372e 4993else
f11781c5 4994 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 4995fi
a946372e 4996
f11781c5
AK
4997done
4998
4999for ac_header in termios.h sys/statvfs.h
5000do :
5001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5002ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5003if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
5004 cat >>confdefs.h <<_ACEOF
5005#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5006_ACEOF
5007
a946372e
AK
5008fi
5009
5010done
5011
a946372e 5012
f11781c5
AK
5013################################################################################
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5015$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5016if test "${ac_cv_c_const+set}" = set; then :
a946372e 5017 $as_echo_n "(cached) " >&6
a946372e 5018else
f11781c5 5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5020/* end confdefs.h. */
a946372e 5021
f11781c5
AK
5022int
5023main ()
5024{
5025/* FIXME: Include the comments suggested by Paul. */
5026#ifndef __cplusplus
5027 /* Ultrix mips cc rejects this. */
5028 typedef int charset[2];
5029 const charset cs;
5030 /* SunOS 4.1.1 cc rejects this. */
5031 char const *const *pcpcc;
5032 char **ppc;
5033 /* NEC SVR4.0.2 mips cc rejects this. */
5034 struct point {int x, y;};
5035 static struct point const zero = {0,0};
5036 /* AIX XL C 1.02.0.0 rejects this.
5037 It does not let you subtract one const X* pointer from another in
5038 an arm of an if-expression whose if-part is not a constant
5039 expression */
5040 const char *g = "string";
5041 pcpcc = &g + (g ? g-g : 0);
5042 /* HPUX 7.0 cc rejects these. */
5043 ++pcpcc;
5044 ppc = (char**) pcpcc;
5045 pcpcc = (char const *const *) ppc;
5046 { /* SCO 3.2v4 cc rejects this. */
5047 char *t;
5048 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5049
f11781c5
AK
5050 *t++ = 0;
5051 if (s) return 0;
5052 }
5053 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5054 int x[] = {25, 17};
5055 const int *foo = &x[0];
5056 ++foo;
5057 }
5058 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5059 typedef const int *iptr;
5060 iptr p = 0;
5061 ++p;
5062 }
5063 { /* AIX XL C 1.02.0.0 rejects this saying
5064 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5065 struct s { int j; const int *ap[3]; };
5066 struct s *b; b->j = 5;
5067 }
5068 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5069 const int foo = 10;
5070 if (!foo) return 0;
5071 }
5072 return !cs[0] && !zero.x;
5073#endif
a946372e 5074
f11781c5
AK
5075 ;
5076 return 0;
5077}
a946372e 5078_ACEOF
f11781c5
AK
5079if ac_fn_c_try_compile "$LINENO"; then :
5080 ac_cv_c_const=yes
a946372e 5081else
f11781c5
AK
5082 ac_cv_c_const=no
5083fi
5084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5085fi
f11781c5
AK
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5087$as_echo "$ac_cv_c_const" >&6; }
5088if test $ac_cv_c_const = no; then
a946372e 5089
f11781c5 5090$as_echo "#define const /**/" >>confdefs.h
a946372e 5091
f11781c5 5092fi
a946372e 5093
f11781c5
AK
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5095$as_echo_n "checking for inline... " >&6; }
5096if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5097 $as_echo_n "(cached) " >&6
5098else
f11781c5
AK
5099 ac_cv_c_inline=no
5100for ac_kw in inline __inline__ __inline; do
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102/* end confdefs.h. */
5103#ifndef __cplusplus
5104typedef int foo_t;
5105static $ac_kw foo_t static_foo () {return 0; }
5106$ac_kw foo_t foo () {return 0; }
5107#endif
5108
5109_ACEOF
5110if ac_fn_c_try_compile "$LINENO"; then :
5111 ac_cv_c_inline=$ac_kw
a946372e 5112fi
f11781c5
AK
5113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114 test "$ac_cv_c_inline" != no && break
5115done
a946372e
AK
5116
5117fi
f11781c5
AK
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5119$as_echo "$ac_cv_c_inline" >&6; }
5120
5121case $ac_cv_c_inline in
5122 inline | yes) ;;
5123 *)
5124 case $ac_cv_c_inline in
5125 no) ac_val=;;
5126 *) ac_val=$ac_cv_c_inline;;
5127 esac
5128 cat >>confdefs.h <<_ACEOF
5129#ifndef __cplusplus
5130#define inline $ac_val
5131#endif
5132_ACEOF
5133 ;;
5134esac
5135
5136ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5137if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5138
5139cat >>confdefs.h <<_ACEOF
5140#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5141_ACEOF
5142
f11781c5 5143
a946372e
AK
5144fi
5145
f11781c5
AK
5146ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5147if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5148
a946372e 5149else
f11781c5
AK
5150
5151cat >>confdefs.h <<_ACEOF
5152#define off_t long int
5153_ACEOF
5154
a946372e
AK
5155fi
5156
f11781c5
AK
5157ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5158if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5159
a946372e 5160else
f11781c5
AK
5161
5162cat >>confdefs.h <<_ACEOF
5163#define pid_t int
5164_ACEOF
5165
5166fi
5167
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5169$as_echo_n "checking return type of signal handlers... " >&6; }
5170if test "${ac_cv_type_signal+set}" = set; then :
5171 $as_echo_n "(cached) " >&6
a946372e 5172else
f11781c5
AK
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174/* end confdefs.h. */
5175#include <sys/types.h>
5176#include <signal.h>
5177
5178int
5179main ()
5180{
5181return *(signal (0, 0)) (0) == 1;
5182 ;
5183 return 0;
5184}
5185_ACEOF
5186if ac_fn_c_try_compile "$LINENO"; then :
5187 ac_cv_type_signal=int
5188else
5189 ac_cv_type_signal=void
a946372e 5190fi
f11781c5 5191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5192fi
f11781c5
AK
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5194$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5195
f11781c5
AK
5196cat >>confdefs.h <<_ACEOF
5197#define RETSIGTYPE $ac_cv_type_signal
5198_ACEOF
a946372e
AK
5199
5200
f11781c5
AK
5201ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5202if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5203
a946372e 5204else
a946372e 5205
f11781c5
AK
5206cat >>confdefs.h <<_ACEOF
5207#define size_t unsigned int
5208_ACEOF
a946372e 5209
a946372e 5210fi
f11781c5
AK
5211
5212ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5213if test "x$ac_cv_type_mode_t" = x""yes; then :
5214
a946372e 5215else
f11781c5
AK
5216
5217cat >>confdefs.h <<_ACEOF
5218#define mode_t int
a946372e 5219_ACEOF
a946372e 5220
a946372e
AK
5221fi
5222
f11781c5
AK
5223ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5224case $ac_cv_c_int8_t in #(
5225 no|yes) ;; #(
5226 *)
a946372e 5227
f11781c5
AK
5228cat >>confdefs.h <<_ACEOF
5229#define int8_t $ac_cv_c_int8_t
a946372e 5230_ACEOF
f11781c5 5231;;
a946372e 5232esac
a946372e 5233
f11781c5
AK
5234ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5235case $ac_cv_c_int16_t in #(
5236 no|yes) ;; #(
5237 *)
a946372e 5238
f11781c5
AK
5239cat >>confdefs.h <<_ACEOF
5240#define int16_t $ac_cv_c_int16_t
5241_ACEOF
5242;;
5243esac
a946372e 5244
f11781c5
AK
5245ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5246case $ac_cv_c_int32_t in #(
5247 no|yes) ;; #(
5248 *)
a946372e 5249
f11781c5
AK
5250cat >>confdefs.h <<_ACEOF
5251#define int32_t $ac_cv_c_int32_t
5252_ACEOF
5253;;
a946372e 5254esac
a946372e 5255
f11781c5
AK
5256ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5257case $ac_cv_c_int64_t in #(
5258 no|yes) ;; #(
5259 *)
5260
5261cat >>confdefs.h <<_ACEOF
5262#define int64_t $ac_cv_c_int64_t
a946372e 5263_ACEOF
f11781c5
AK
5264;;
5265esac
5266
5267ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5268if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5269
5270else
a946372e 5271
f11781c5
AK
5272cat >>confdefs.h <<_ACEOF
5273#define ssize_t int
5274_ACEOF
a946372e 5275
f11781c5 5276fi
a946372e 5277
f11781c5
AK
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5279$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5280if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5281 $as_echo_n "(cached) " >&6
a946372e 5282else
f11781c5 5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5284/* end confdefs.h. */
f11781c5
AK
5285#include <sys/types.h>
5286
a946372e 5287_ACEOF
f11781c5
AK
5288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 $EGREP "uid_t" >/dev/null 2>&1; then :
5290 ac_cv_type_uid_t=yes
a946372e 5291else
f11781c5
AK
5292 ac_cv_type_uid_t=no
5293fi
5294rm -f conftest*
a946372e 5295
a946372e 5296fi
f11781c5
AK
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5298$as_echo "$ac_cv_type_uid_t" >&6; }
5299if test $ac_cv_type_uid_t = no; then
a946372e 5300
f11781c5 5301$as_echo "#define uid_t int" >>confdefs.h
a946372e 5302
f11781c5
AK
5303
5304$as_echo "#define gid_t int" >>confdefs.h
5305
5306fi
5307
5308ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5309case $ac_cv_c_uint8_t in #(
5310 no|yes) ;; #(
5311 *)
5312
5313$as_echo "#define _UINT8_T 1" >>confdefs.h
5314
5315
5316cat >>confdefs.h <<_ACEOF
5317#define uint8_t $ac_cv_c_uint8_t
a946372e 5318_ACEOF
f11781c5
AK
5319;;
5320 esac
5321
5322ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5323case $ac_cv_c_uint16_t in #(
5324 no|yes) ;; #(
5325 *)
5326
5327
5328cat >>confdefs.h <<_ACEOF
5329#define uint16_t $ac_cv_c_uint16_t
a946372e 5330_ACEOF
f11781c5
AK
5331;;
5332 esac
a946372e 5333
f11781c5
AK
5334ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5335case $ac_cv_c_uint32_t in #(
5336 no|yes) ;; #(
5337 *)
a946372e 5338
f11781c5 5339$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5340
a946372e 5341
f11781c5
AK
5342cat >>confdefs.h <<_ACEOF
5343#define uint32_t $ac_cv_c_uint32_t
5344_ACEOF
5345;;
5346 esac
5347
5348ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5349case $ac_cv_c_uint64_t in #(
5350 no|yes) ;; #(
5351 *)
5352
5353$as_echo "#define _UINT64_T 1" >>confdefs.h
5354
5355
5356cat >>confdefs.h <<_ACEOF
5357#define uint64_t $ac_cv_c_uint64_t
5358_ACEOF
5359;;
5360 esac
5361
5362ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5363if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5364
5365cat >>confdefs.h <<_ACEOF
5366#define HAVE_STRUCT_STAT_ST_RDEV 1
5367_ACEOF
5368
5369
5370fi
5371
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5373$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5374if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5375 $as_echo_n "(cached) " >&6
5376else
f11781c5
AK
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378/* end confdefs.h. */
5379#include <sys/types.h>
5380#include <time.h>
5381
5382int
5383main ()
5384{
5385struct tm tm;
5386 int *p = &tm.tm_sec;
5387 return !p;
5388 ;
5389 return 0;
5390}
5391_ACEOF
5392if ac_fn_c_try_compile "$LINENO"; then :
5393 ac_cv_struct_tm=time.h
5394else
5395 ac_cv_struct_tm=sys/time.h
a946372e 5396fi
f11781c5
AK
5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398fi
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5400$as_echo "$ac_cv_struct_tm" >&6; }
5401if test $ac_cv_struct_tm = sys/time.h; then
5402
5403$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5404
5405fi
f11781c5
AK
5406
5407
5408################################################################################
5409for ac_func in ftruncate gethostname getpagesize \
5410 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5411 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5412 strstr strtol strtoul uname
5413do :
5414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5415ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5416if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5417 cat >>confdefs.h <<_ACEOF
f11781c5 5418#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5419_ACEOF
5420
5421else
f11781c5 5422 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5423fi
a946372e
AK
5424done
5425
f11781c5
AK
5426for ac_func in siginterrupt
5427do :
5428 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5429if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5430 cat >>confdefs.h <<_ACEOF
5431#define HAVE_SIGINTERRUPT 1
5432_ACEOF
a946372e 5433
f11781c5
AK
5434fi
5435done
a946372e 5436
f11781c5
AK
5437# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5438# for constant arguments. Useless!
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5440$as_echo_n "checking for working alloca.h... " >&6; }
5441if test "${ac_cv_working_alloca_h+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
a946372e 5443else
f11781c5
AK
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445/* end confdefs.h. */
5446#include <alloca.h>
5447int
5448main ()
5449{
5450char *p = (char *) alloca (2 * sizeof (int));
5451 if (p) return 0;
5452 ;
5453 return 0;
5454}
5455_ACEOF
5456if ac_fn_c_try_link "$LINENO"; then :
5457 ac_cv_working_alloca_h=yes
a946372e 5458else
f11781c5 5459 ac_cv_working_alloca_h=no
a946372e 5460fi
f11781c5
AK
5461rm -f core conftest.err conftest.$ac_objext \
5462 conftest$ac_exeext conftest.$ac_ext
a946372e 5463fi
f11781c5
AK
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5465$as_echo "$ac_cv_working_alloca_h" >&6; }
5466if test $ac_cv_working_alloca_h = yes; then
a946372e 5467
f11781c5 5468$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5469
a946372e 5470fi
a946372e 5471
f11781c5
AK
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5473$as_echo_n "checking for alloca... " >&6; }
5474if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5475 $as_echo_n "(cached) " >&6
a946372e 5476else
f11781c5 5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5478/* end confdefs.h. */
f11781c5
AK
5479#ifdef __GNUC__
5480# define alloca __builtin_alloca
5481#else
5482# ifdef _MSC_VER
5483# include <malloc.h>
5484# define alloca _alloca
5485# else
5486# ifdef HAVE_ALLOCA_H
5487# include <alloca.h>
5488# else
5489# ifdef _AIX
5490 #pragma alloca
5491# else
5492# ifndef alloca /* predefined by HP cc +Olibcalls */
5493char *alloca ();
5494# endif
5495# endif
5496# endif
5497# endif
5498#endif
a946372e 5499
f11781c5
AK
5500int
5501main ()
5502{
5503char *p = (char *) alloca (1);
5504 if (p) return 0;
5505 ;
5506 return 0;
5507}
a946372e 5508_ACEOF
f11781c5
AK
5509if ac_fn_c_try_link "$LINENO"; then :
5510 ac_cv_func_alloca_works=yes
a946372e 5511else
f11781c5 5512 ac_cv_func_alloca_works=no
a946372e 5513fi
f11781c5
AK
5514rm -f core conftest.err conftest.$ac_objext \
5515 conftest$ac_exeext conftest.$ac_ext
5516fi
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5518$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5519
f11781c5 5520if test $ac_cv_func_alloca_works = yes; then
a946372e 5521
f11781c5 5522$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5523
a946372e 5524else
f11781c5
AK
5525 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5526# that cause trouble. Some versions do not even contain alloca or
5527# contain a buggy version. If you still want to use their alloca,
5528# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5529
f11781c5 5530ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5531
f11781c5 5532$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5533
a946372e 5534
f11781c5
AK
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5536$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5537if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5538 $as_echo_n "(cached) " >&6
a946372e 5539else
f11781c5 5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5541/* end confdefs.h. */
f11781c5
AK
5542#if defined CRAY && ! defined CRAY2
5543webecray
5544#else
5545wenotbecray
5546#endif
5547
a946372e 5548_ACEOF
f11781c5
AK
5549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5550 $EGREP "webecray" >/dev/null 2>&1; then :
5551 ac_cv_os_cray=yes
a946372e 5552else
f11781c5 5553 ac_cv_os_cray=no
a946372e 5554fi
f11781c5 5555rm -f conftest*
a946372e 5556
f11781c5
AK
5557fi
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5559$as_echo "$ac_cv_os_cray" >&6; }
5560if test $ac_cv_os_cray = yes; then
5561 for ac_func in _getb67 GETB67 getb67; do
5562 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5563ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5564if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5565
f11781c5
AK
5566cat >>confdefs.h <<_ACEOF
5567#define CRAY_STACKSEG_END $ac_func
a946372e 5568_ACEOF
a946372e 5569
f11781c5 5570 break
a946372e
AK
5571fi
5572
f11781c5
AK
5573 done
5574fi
a946372e 5575
f11781c5
AK
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5577$as_echo_n "checking stack direction for C alloca... " >&6; }
5578if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5579 $as_echo_n "(cached) " >&6
5580else
f11781c5
AK
5581 if test "$cross_compiling" = yes; then :
5582 ac_cv_c_stack_direction=0
5583else
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585/* end confdefs.h. */
5586$ac_includes_default
5587int
5588find_stack_direction ()
5589{
5590 static char *addr = 0;
5591 auto char dummy;
5592 if (addr == 0)
5593 {
5594 addr = &dummy;
5595 return find_stack_direction ();
5596 }
5597 else
5598 return (&dummy > addr) ? 1 : -1;
5599}
5600
5601int
5602main ()
5603{
5604 return find_stack_direction () < 0;
5605}
5606_ACEOF
5607if ac_fn_c_try_run "$LINENO"; then :
5608 ac_cv_c_stack_direction=1
5609else
5610 ac_cv_c_stack_direction=-1
5611fi
5612rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5613 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5614fi
a946372e
AK
5615
5616fi
f11781c5
AK
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5618$as_echo "$ac_cv_c_stack_direction" >&6; }
5619cat >>confdefs.h <<_ACEOF
5620#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5621_ACEOF
5622
f11781c5 5623
a946372e
AK
5624fi
5625
f11781c5
AK
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5627$as_echo_n "checking whether closedir returns void... " >&6; }
5628if test "${ac_cv_func_closedir_void+set}" = set; then :
5629 $as_echo_n "(cached) " >&6
5630else
5631 if test "$cross_compiling" = yes; then :
5632 ac_cv_func_closedir_void=yes
5633else
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h. */
5636$ac_includes_default
5637#include <$ac_header_dirent>
5638#ifndef __cplusplus
5639int closedir ();
5640#endif
a946372e 5641
f11781c5
AK
5642int
5643main ()
5644{
5645return closedir (opendir (".")) != 0;
5646 ;
5647 return 0;
5648}
5649_ACEOF
5650if ac_fn_c_try_run "$LINENO"; then :
5651 ac_cv_func_closedir_void=no
a946372e 5652else
f11781c5 5653 ac_cv_func_closedir_void=yes
a946372e 5654fi
f11781c5
AK
5655rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5656 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5657fi
5658
f11781c5
AK
5659fi
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5661$as_echo "$ac_cv_func_closedir_void" >&6; }
5662if test $ac_cv_func_closedir_void = yes; then
a946372e 5663
f11781c5 5664$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5665
a946372e
AK
5666fi
5667
f11781c5
AK
5668for ac_header in unistd.h
5669do :
5670 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5671if test "x$ac_cv_header_unistd_h" = x""yes; then :
5672 cat >>confdefs.h <<_ACEOF
5673#define HAVE_UNISTD_H 1
5674_ACEOF
a946372e 5675
f11781c5 5676fi
a946372e 5677
f11781c5 5678done
a946372e 5679
f11781c5
AK
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5681$as_echo_n "checking for working chown... " >&6; }
5682if test "${ac_cv_func_chown_works+set}" = set; then :
5683 $as_echo_n "(cached) " >&6
a946372e 5684else
f11781c5
AK
5685 if test "$cross_compiling" = yes; then :
5686 ac_cv_func_chown_works=no
a946372e 5687else
f11781c5
AK
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689/* end confdefs.h. */
5690$ac_includes_default
5691#include <fcntl.h>
a946372e 5692
f11781c5
AK
5693int
5694main ()
5695{
5696 char *f = "conftest.chown";
5697 struct stat before, after;
a946372e 5698
f11781c5
AK
5699 if (creat (f, 0600) < 0)
5700 return 1;
5701 if (stat (f, &before) < 0)
5702 return 1;
5703 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5704 return 1;
5705 if (stat (f, &after) < 0)
5706 return 1;
5707 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5708
f11781c5
AK
5709 ;
5710 return 0;
5711}
5712_ACEOF
5713if ac_fn_c_try_run "$LINENO"; then :
5714 ac_cv_func_chown_works=yes
a946372e 5715else
f11781c5 5716 ac_cv_func_chown_works=no
a946372e 5717fi
f11781c5
AK
5718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5719 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5720fi
5721
f11781c5 5722rm -f conftest.chown
a946372e 5723
f11781c5
AK
5724fi
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5726$as_echo "$ac_cv_func_chown_works" >&6; }
5727if test $ac_cv_func_chown_works = yes; then
a946372e 5728
f11781c5 5729$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5730
a946372e 5731fi
a946372e 5732
f11781c5
AK
5733for ac_header in vfork.h
5734do :
5735 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5736if test "x$ac_cv_header_vfork_h" = x""yes; then :
5737 cat >>confdefs.h <<_ACEOF
5738#define HAVE_VFORK_H 1
5739_ACEOF
a946372e 5740
f11781c5 5741fi
a946372e 5742
f11781c5 5743done
a946372e 5744
f11781c5
AK
5745for ac_func in fork vfork
5746do :
5747 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5748ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5749if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5750 cat >>confdefs.h <<_ACEOF
5751#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5752_ACEOF
a946372e 5753
f11781c5
AK
5754fi
5755done
a946372e 5756
f11781c5
AK
5757if test "x$ac_cv_func_fork" = xyes; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5759$as_echo_n "checking for working fork... " >&6; }
5760if test "${ac_cv_func_fork_works+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5762else
5763 if test "$cross_compiling" = yes; then :
5764 ac_cv_func_fork_works=cross
5765else
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767/* end confdefs.h. */
5768$ac_includes_default
5769int
5770main ()
5771{
a946372e 5772
f11781c5
AK
5773 /* By Ruediger Kuhlmann. */
5774 return fork () < 0;
a946372e 5775
f11781c5
AK
5776 ;
5777 return 0;
5778}
5779_ACEOF
5780if ac_fn_c_try_run "$LINENO"; then :
5781 ac_cv_func_fork_works=yes
a946372e 5782else
f11781c5
AK
5783 ac_cv_func_fork_works=no
5784fi
5785rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5786 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5787fi
a946372e 5788
f11781c5
AK
5789fi
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5791$as_echo "$ac_cv_func_fork_works" >&6; }
5792
a946372e 5793else
f11781c5 5794 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5795fi
f11781c5
AK
5796if test "x$ac_cv_func_fork_works" = xcross; then
5797 case $host in
5798 *-*-amigaos* | *-*-msdosdjgpp*)
5799 # Override, as these systems have only a dummy fork() stub
5800 ac_cv_func_fork_works=no
5801 ;;
5802 *)
5803 ac_cv_func_fork_works=yes
5804 ;;
5805 esac
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5807$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5808fi
f11781c5
AK
5809ac_cv_func_vfork_works=$ac_cv_func_vfork
5810if test "x$ac_cv_func_vfork" = xyes; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5812$as_echo_n "checking for working vfork... " >&6; }
5813if test "${ac_cv_func_vfork_works+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815else
5816 if test "$cross_compiling" = yes; then :
5817 ac_cv_func_vfork_works=cross
5818else
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820/* end confdefs.h. */
5821/* Thanks to Paul Eggert for this test. */
5822$ac_includes_default
5823#include <sys/wait.h>
5824#ifdef HAVE_VFORK_H
5825# include <vfork.h>
5826#endif
5827/* On some sparc systems, changes by the child to local and incoming
5828 argument registers are propagated back to the parent. The compiler
5829 is told about this with #include <vfork.h>, but some compilers
5830 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5831 static variable whose address is put into a register that is
5832 clobbered by the vfork. */
5833static void
5834#ifdef __cplusplus
5835sparc_address_test (int arg)
5836# else
5837sparc_address_test (arg) int arg;
5838#endif
5839{
5840 static pid_t child;
5841 if (!child) {
5842 child = vfork ();
5843 if (child < 0) {
5844 perror ("vfork");
5845 _exit(2);
5846 }
5847 if (!child) {
5848 arg = getpid();
5849 write(-1, "", 0);
5850 _exit (arg);
5851 }
5852 }
5853}
a946372e 5854
f11781c5
AK
5855int
5856main ()
5857{
5858 pid_t parent = getpid ();
5859 pid_t child;
a946372e 5860
f11781c5 5861 sparc_address_test (0);
a946372e 5862
f11781c5 5863 child = vfork ();
a946372e 5864
f11781c5
AK
5865 if (child == 0) {
5866 /* Here is another test for sparc vfork register problems. This
5867 test uses lots of local variables, at least as many local
5868 variables as main has allocated so far including compiler
5869 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5870 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5871 reuse the register of parent for one of the local variables,
5872 since it will think that parent can't possibly be used any more
5873 in this routine. Assigning to the local variable will thus
5874 munge parent in the parent process. */
5875 pid_t
5876 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5877 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5878 /* Convince the compiler that p..p7 are live; otherwise, it might
5879 use the same hardware register for all 8 local variables. */
5880 if (p != p1 || p != p2 || p != p3 || p != p4
5881 || p != p5 || p != p6 || p != p7)
5882 _exit(1);
a946372e 5883
f11781c5
AK
5884 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5885 from child file descriptors. If the child closes a descriptor
5886 before it execs or exits, this munges the parent's descriptor
5887 as well. Test for this by closing stdout in the child. */
5888 _exit(close(fileno(stdout)) != 0);
5889 } else {
5890 int status;
5891 struct stat st;
5892
5893 while (wait(&status) != child)
5894 ;
5895 return (
5896 /* Was there some problem with vforking? */
5897 child < 0
5898
5899 /* Did the child fail? (This shouldn't happen.) */
5900 || status
5901
5902 /* Did the vfork/compiler bug occur? */
5903 || parent != getpid()
5904
5905 /* Did the file descriptor bug occur? */
5906 || fstat(fileno(stdout), &st) != 0
5907 );
5908 }
5909}
5910_ACEOF
5911if ac_fn_c_try_run "$LINENO"; then :
5912 ac_cv_func_vfork_works=yes
a946372e 5913else
f11781c5 5914 ac_cv_func_vfork_works=no
a946372e 5915fi
f11781c5
AK
5916rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5917 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5918fi
f11781c5 5919
a946372e 5920fi
f11781c5
AK
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5922$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5923
f11781c5
AK
5924fi;
5925if test "x$ac_cv_func_fork_works" = xcross; then
5926 ac_cv_func_vfork_works=$ac_cv_func_vfork
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5928$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5929fi
a946372e 5930
f11781c5 5931if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5932
f11781c5 5933$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5934
a946372e 5935else
a946372e 5936
f11781c5
AK
5937$as_echo "#define vfork fork" >>confdefs.h
5938
a946372e 5939fi
f11781c5 5940if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5941
f11781c5 5942$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5943
a946372e 5944fi
f11781c5
AK
5945
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5947$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5948if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5949 $as_echo_n "(cached) " >&6
a946372e 5950else
f11781c5
AK
5951 rm -f conftest.sym conftest.file
5952echo >conftest.file
5953if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5954 if test "$cross_compiling" = yes; then :
5955 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5956else
f11781c5 5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5958/* end confdefs.h. */
f11781c5
AK
5959$ac_includes_default
5960int
5961main ()
5962{
5963struct stat sbuf;
5964 /* Linux will dereference the symlink and fail, as required by POSIX.
5965 That is better in the sense that it means we will not
5966 have to compile and use the lstat wrapper. */
5967 return lstat ("conftest.sym/", &sbuf) == 0;
5968 ;
5969 return 0;
5970}
a946372e 5971_ACEOF
f11781c5
AK
5972if ac_fn_c_try_run "$LINENO"; then :
5973 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 5974else
f11781c5 5975 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5976fi
f11781c5
AK
5977rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5978 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5979fi
a946372e 5980
a946372e 5981else
f11781c5
AK
5982 # If the `ln -s' command failed, then we probably don't even
5983 # have an lstat function.
5984 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5985fi
f11781c5 5986rm -f conftest.sym conftest.file
a946372e 5987
f11781c5
AK
5988fi
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5990$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 5991
f11781c5 5992test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 5993
f11781c5
AK
5994cat >>confdefs.h <<_ACEOF
5995#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5996_ACEOF
a946372e 5997
a946372e 5998
f11781c5
AK
5999if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6000 case " $LIBOBJS " in
6001 *" lstat.$ac_objext "* ) ;;
6002 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6003 ;;
6004esac
a946372e 6005
f11781c5 6006fi
a946372e 6007
f11781c5
AK
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6009$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6010if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
a946372e 6012else
f11781c5
AK
6013 if test "$cross_compiling" = yes; then :
6014 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6015else
f11781c5
AK
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017/* end confdefs.h. */
6018$ac_includes_default
6019int
6020main ()
6021{
6022struct stat sbuf;
6023 return lstat ("", &sbuf) == 0;
6024 ;
6025 return 0;
6026}
6027_ACEOF
6028if ac_fn_c_try_run "$LINENO"; then :
6029 ac_cv_func_lstat_empty_string_bug=no
6030else
6031 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6032fi
f11781c5
AK
6033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6034 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6035fi
6036
f11781c5
AK
6037fi
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6039$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6040if test $ac_cv_func_lstat_empty_string_bug = yes; then
6041 case " $LIBOBJS " in
6042 *" lstat.$ac_objext "* ) ;;
6043 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6044 ;;
6045esac
a946372e
AK
6046
6047
f11781c5
AK
6048cat >>confdefs.h <<_ACEOF
6049#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6050_ACEOF
a946372e 6051
a946372e 6052fi
a946372e 6053
f11781c5
AK
6054for ac_header in stdlib.h
6055do :
6056 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6057if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6058 cat >>confdefs.h <<_ACEOF
6059#define HAVE_STDLIB_H 1
6060_ACEOF
6061
a946372e
AK
6062fi
6063
f11781c5 6064done
a946372e 6065
f11781c5
AK
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6067$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6068if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6070else
6071 if test "$cross_compiling" = yes; then :
6072 ac_cv_func_malloc_0_nonnull=no
6073else
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075/* end confdefs.h. */
6076#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6077# include <stdlib.h>
6078#else
6079char *malloc ();
6080#endif
a946372e 6081
f11781c5
AK
6082int
6083main ()
6084{
6085return ! malloc (0);
6086 ;
6087 return 0;
6088}
6089_ACEOF
6090if ac_fn_c_try_run "$LINENO"; then :
6091 ac_cv_func_malloc_0_nonnull=yes
a946372e 6092else
f11781c5 6093 ac_cv_func_malloc_0_nonnull=no
a946372e 6094fi
f11781c5
AK
6095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6096 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6097fi
f11781c5 6098
a946372e 6099fi
f11781c5
AK
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6101$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6102if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6103
f11781c5 6104$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6105
f11781c5
AK
6106else
6107 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6108
f11781c5
AK
6109 case " $LIBOBJS " in
6110 *" malloc.$ac_objext "* ) ;;
6111 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6112 ;;
6113esac
6114
6115
6116$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6117
a946372e 6118fi
a946372e 6119
a946372e 6120
f11781c5
AK
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6122$as_echo_n "checking for working memcmp... " >&6; }
6123if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6124 $as_echo_n "(cached) " >&6
a946372e 6125else
f11781c5
AK
6126 if test "$cross_compiling" = yes; then :
6127 ac_cv_func_memcmp_working=no
6128else
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6130/* end confdefs.h. */
6131$ac_includes_default
f11781c5
AK
6132int
6133main ()
6134{
a946372e 6135
f11781c5
AK
6136 /* Some versions of memcmp are not 8-bit clean. */
6137 char c0 = '\100', c1 = '\200', c2 = '\201';
6138 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6139 return 1;
a946372e 6140
f11781c5
AK
6141 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6142 or more and with at least one buffer not starting on a 4-byte boundary.
6143 William Lewis provided this test program. */
6144 {
6145 char foo[21];
6146 char bar[21];
6147 int i;
6148 for (i = 0; i < 4; i++)
6149 {
6150 char *a = foo + i;
6151 char *b = bar + i;
6152 strcpy (a, "--------01111111");
6153 strcpy (b, "--------10000000");
6154 if (memcmp (a, b, 16) >= 0)
6155 return 1;
6156 }
6157 return 0;
6158 }
a946372e 6159
f11781c5
AK
6160 ;
6161 return 0;
6162}
a946372e 6163_ACEOF
f11781c5
AK
6164if ac_fn_c_try_run "$LINENO"; then :
6165 ac_cv_func_memcmp_working=yes
a946372e 6166else
f11781c5
AK
6167 ac_cv_func_memcmp_working=no
6168fi
6169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6170 conftest.$ac_objext conftest.beam conftest.$ac_ext
6171fi
a946372e 6172
a946372e 6173fi
f11781c5
AK
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6175$as_echo "$ac_cv_func_memcmp_working" >&6; }
6176test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6177 *" memcmp.$ac_objext "* ) ;;
6178 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6179 ;;
6180esac
a946372e 6181
a946372e 6182
a946372e 6183
a946372e 6184
f11781c5
AK
6185
6186 for ac_header in $ac_header_list
6187do :
6188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6189ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6190"
6191if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6192 cat >>confdefs.h <<_ACEOF
6193#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6194_ACEOF
6195
a946372e
AK
6196fi
6197
6198done
6199
a946372e 6200
f11781c5
AK
6201
6202
6203
6204
6205
6206
6207for ac_func in getpagesize
6208do :
6209 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6210if test "x$ac_cv_func_getpagesize" = x""yes; then :
6211 cat >>confdefs.h <<_ACEOF
6212#define HAVE_GETPAGESIZE 1
6213_ACEOF
6214
a946372e 6215fi
f11781c5
AK
6216done
6217
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6219$as_echo_n "checking for working mmap... " >&6; }
6220if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6221 $as_echo_n "(cached) " >&6
a946372e 6222else
f11781c5
AK
6223 if test "$cross_compiling" = yes; then :
6224 ac_cv_func_mmap_fixed_mapped=no
6225else
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6227/* end confdefs.h. */
6228$ac_includes_default
f11781c5
AK
6229/* malloc might have been renamed as rpl_malloc. */
6230#undef malloc
6231
6232/* Thanks to Mike Haertel and Jim Avera for this test.
6233 Here is a matrix of mmap possibilities:
6234 mmap private not fixed
6235 mmap private fixed at somewhere currently unmapped
6236 mmap private fixed at somewhere already mapped
6237 mmap shared not fixed
6238 mmap shared fixed at somewhere currently unmapped
6239 mmap shared fixed at somewhere already mapped
6240 For private mappings, we should verify that changes cannot be read()
6241 back from the file, nor mmap's back from the file at a different
6242 address. (There have been systems where private was not correctly
6243 implemented like the infamous i386 svr4.0, and systems where the
6244 VM page cache was not coherent with the file system buffer cache
6245 like early versions of FreeBSD and possibly contemporary NetBSD.)
6246 For shared mappings, we should conversely verify that changes get
6247 propagated back to all the places they're supposed to be.
6248
6249 Grep wants private fixed already mapped.
6250 The main things grep needs to know about mmap are:
6251 * does it exist and is it safe to write into the mmap'd area
6252 * how to use it (BSD variants) */
6253
6254#include <fcntl.h>
6255#include <sys/mman.h>
6256
6257#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6258char *malloc ();
6259#endif
6260
6261/* This mess was copied from the GNU getpagesize.h. */
6262#ifndef HAVE_GETPAGESIZE
6263# ifdef _SC_PAGESIZE
6264# define getpagesize() sysconf(_SC_PAGESIZE)
6265# else /* no _SC_PAGESIZE */
6266# ifdef HAVE_SYS_PARAM_H
6267# include <sys/param.h>
6268# ifdef EXEC_PAGESIZE
6269# define getpagesize() EXEC_PAGESIZE
6270# else /* no EXEC_PAGESIZE */
6271# ifdef NBPG
6272# define getpagesize() NBPG * CLSIZE
6273# ifndef CLSIZE
6274# define CLSIZE 1
6275# endif /* no CLSIZE */
6276# else /* no NBPG */
6277# ifdef NBPC
6278# define getpagesize() NBPC
6279# else /* no NBPC */
6280# ifdef PAGESIZE
6281# define getpagesize() PAGESIZE
6282# endif /* PAGESIZE */
6283# endif /* no NBPC */
6284# endif /* no NBPG */
6285# endif /* no EXEC_PAGESIZE */
6286# else /* no HAVE_SYS_PARAM_H */
6287# define getpagesize() 8192 /* punt totally */
6288# endif /* no HAVE_SYS_PARAM_H */
6289# endif /* no _SC_PAGESIZE */
6290
6291#endif /* no HAVE_GETPAGESIZE */
6292
6293int
6294main ()
6295{
6296 char *data, *data2, *data3;
6297 const char *cdata2;
6298 int i, pagesize;
6299 int fd, fd2;
6300
6301 pagesize = getpagesize ();
6302
6303 /* First, make a file with some known garbage in it. */
6304 data = (char *) malloc (pagesize);
6305 if (!data)
6306 return 1;
6307 for (i = 0; i < pagesize; ++i)
6308 *(data + i) = rand ();
6309 umask (0);
6310 fd = creat ("conftest.mmap", 0600);
6311 if (fd < 0)
6312 return 2;
6313 if (write (fd, data, pagesize) != pagesize)
6314 return 3;
6315 close (fd);
6316
6317 /* Next, check that the tail of a page is zero-filled. File must have
6318 non-zero length, otherwise we risk SIGBUS for entire page. */
6319 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6320 if (fd2 < 0)
6321 return 4;
6322 cdata2 = "";
6323 if (write (fd2, cdata2, 1) != 1)
6324 return 5;
6325 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6326 if (data2 == MAP_FAILED)
6327 return 6;
6328 for (i = 0; i < pagesize; ++i)
6329 if (*(data2 + i))
6330 return 7;
6331 close (fd2);
6332 if (munmap (data2, pagesize))
6333 return 8;
6334
6335 /* Next, try to mmap the file at a fixed address which already has
6336 something else allocated at it. If we can, also make sure that
6337 we see the same garbage. */
6338 fd = open ("conftest.mmap", O_RDWR);
6339 if (fd < 0)
6340 return 9;
6341 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6342 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6343 return 10;
6344 for (i = 0; i < pagesize; ++i)
6345 if (*(data + i) != *(data2 + i))
6346 return 11;
6347
6348 /* Finally, make sure that changes to the mapped area do not
6349 percolate back to the file as seen by read(). (This is a bug on
6350 some variants of i386 svr4.0.) */
6351 for (i = 0; i < pagesize; ++i)
6352 *(data2 + i) = *(data2 + i) + 1;
6353 data3 = (char *) malloc (pagesize);
6354 if (!data3)
6355 return 12;
6356 if (read (fd, data3, pagesize) != pagesize)
6357 return 13;
6358 for (i = 0; i < pagesize; ++i)
6359 if (*(data + i) != *(data3 + i))
6360 return 14;
6361 close (fd);
6362 return 0;
6363}
a946372e 6364_ACEOF
f11781c5
AK
6365if ac_fn_c_try_run "$LINENO"; then :
6366 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6367else
f11781c5
AK
6368 ac_cv_func_mmap_fixed_mapped=no
6369fi
6370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6371 conftest.$ac_objext conftest.beam conftest.$ac_ext
6372fi
a946372e 6373
a946372e 6374fi
f11781c5
AK
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6376$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6377if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6378
f11781c5 6379$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6380
f11781c5
AK
6381fi
6382rm -f conftest.mmap conftest.txt
6383
6384for ac_header in stdlib.h
6385do :
6386 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6387if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6388 cat >>confdefs.h <<_ACEOF
6389#define HAVE_STDLIB_H 1
a946372e 6390_ACEOF
f11781c5
AK
6391
6392fi
6393
6394done
6395
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6397$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6398if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6399 $as_echo_n "(cached) " >&6
6400else
6401 if test "$cross_compiling" = yes; then :
6402 ac_cv_func_realloc_0_nonnull=no
6403else
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6405/* end confdefs.h. */
f11781c5
AK
6406#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6407# include <stdlib.h>
6408#else
6409char *realloc ();
6410#endif
6411
6412int
6413main ()
6414{
6415return ! realloc (0, 0);
6416 ;
6417 return 0;
6418}
a946372e 6419_ACEOF
f11781c5
AK
6420if ac_fn_c_try_run "$LINENO"; then :
6421 ac_cv_func_realloc_0_nonnull=yes
a946372e 6422else
f11781c5
AK
6423 ac_cv_func_realloc_0_nonnull=no
6424fi
6425rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6426 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6427fi
6428
f11781c5
AK
6429fi
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6431$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6432if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6433
f11781c5 6434$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6435
a946372e 6436else
f11781c5
AK
6437 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6438
6439 case " $LIBOBJS " in
6440 *" realloc.$ac_objext "* ) ;;
6441 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6442 ;;
6443esac
a946372e 6444
a946372e 6445
f11781c5
AK
6446$as_echo "#define realloc rpl_realloc" >>confdefs.h
6447
a946372e
AK
6448fi
6449
a946372e 6450
f11781c5
AK
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6452$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6453if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
a946372e 6455else
f11781c5
AK
6456 if test "$cross_compiling" = yes; then :
6457 ac_cv_func_stat_empty_string_bug=yes
6458else
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460/* end confdefs.h. */
6461$ac_includes_default
6462int
6463main ()
6464{
6465struct stat sbuf;
6466 return stat ("", &sbuf) == 0;
6467 ;
6468 return 0;
6469}
6470_ACEOF
6471if ac_fn_c_try_run "$LINENO"; then :
6472 ac_cv_func_stat_empty_string_bug=no
6473else
6474 ac_cv_func_stat_empty_string_bug=yes
a946372e 6475fi
f11781c5
AK
6476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6477 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6478fi
6479
8c4e8a18 6480fi
f11781c5
AK
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6482$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6483if test $ac_cv_func_stat_empty_string_bug = yes; then
6484 case " $LIBOBJS " in
6485 *" stat.$ac_objext "* ) ;;
6486 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6487 ;;
6488esac
8c4e8a18
FDN
6489
6490
6491cat >>confdefs.h <<_ACEOF
f11781c5 6492#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6493_ACEOF
6494
6495fi
6496
f11781c5
AK
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6498$as_echo_n "checking for working strtod... " >&6; }
6499if test "${ac_cv_func_strtod+set}" = set; then :
6500 $as_echo_n "(cached) " >&6
66fd4529 6501else
f11781c5
AK
6502 if test "$cross_compiling" = yes; then :
6503 ac_cv_func_strtod=no
6504else
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506/* end confdefs.h. */
66fd4529 6507
f11781c5
AK
6508$ac_includes_default
6509#ifndef strtod
6510double strtod ();
6511#endif
6512int
6513main()
6514{
6515 {
6516 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6517 char *string = " +69";
6518 char *term;
6519 double value;
6520 value = strtod (string, &term);
6521 if (value != 69 || term != (string + 4))
6522 return 1;
6523 }
66fd4529 6524
f11781c5
AK
6525 {
6526 /* Under Solaris 2.4, strtod returns the wrong value for the
6527 terminating character under some conditions. */
6528 char *string = "NaN";
6529 char *term;
6530 strtod (string, &term);
6531 if (term != string && *(term - 1) == 0)
6532 return 1;
6533 }
6534 return 0;
6535}
66fd4529 6536
f11781c5
AK
6537_ACEOF
6538if ac_fn_c_try_run "$LINENO"; then :
6539 ac_cv_func_strtod=yes
66fd4529 6540else
f11781c5
AK
6541 ac_cv_func_strtod=no
6542fi
6543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6544 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6545fi
6546
f11781c5
AK
6547fi
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6549$as_echo "$ac_cv_func_strtod" >&6; }
6550if test $ac_cv_func_strtod = no; then
6551 case " $LIBOBJS " in
6552 *" strtod.$ac_objext "* ) ;;
6553 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6554 ;;
6555esac
71082be4 6556
f11781c5
AK
6557ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6558if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6559
66fd4529 6560fi
a946372e 6561
f11781c5
AK
6562if test $ac_cv_func_pow = no; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6564$as_echo_n "checking for pow in -lm... " >&6; }
6565if test "${ac_cv_lib_m_pow+set}" = set; then :
6566 $as_echo_n "(cached) " >&6
6567else
6568 ac_check_lib_save_LIBS=$LIBS
6569LIBS="-lm $LIBS"
6570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571/* end confdefs.h. */
90c80887 6572
f11781c5
AK
6573/* Override any GCC internal prototype to avoid an error.
6574 Use char because int might match the return type of a GCC
6575 builtin and then its argument prototype would still apply. */
6576#ifdef __cplusplus
6577extern "C"
6578#endif
6579char pow ();
6580int
6581main ()
6582{
6583return pow ();
6584 ;
6585 return 0;
6586}
6587_ACEOF
6588if ac_fn_c_try_link "$LINENO"; then :
6589 ac_cv_lib_m_pow=yes
90c80887 6590else
f11781c5 6591 ac_cv_lib_m_pow=no
90c80887 6592fi
f11781c5
AK
6593rm -f core conftest.err conftest.$ac_objext \
6594 conftest$ac_exeext conftest.$ac_ext
6595LIBS=$ac_check_lib_save_LIBS
90c80887 6596fi
f11781c5
AK
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6598$as_echo "$ac_cv_lib_m_pow" >&6; }
6599if test "x$ac_cv_lib_m_pow" = x""yes; then :
6600 POW_LIB=-lm
90c80887 6601else
f11781c5
AK
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6603$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6604fi
f11781c5 6605
90c80887
AK
6606fi
6607
f11781c5
AK
6608fi
6609
6610for ac_func in vprintf
6611do :
6612 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6613if test "x$ac_cv_func_vprintf" = x""yes; then :
6614 cat >>confdefs.h <<_ACEOF
6615#define HAVE_VPRINTF 1
6616_ACEOF
90c80887 6617
f11781c5
AK
6618ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6619if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6620
f11781c5 6621$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6622
90c80887 6623fi
90c80887 6624
f11781c5
AK
6625fi
6626done
90c80887 6627
90c80887 6628
90c80887 6629
f11781c5
AK
6630################################################################################
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6632$as_echo_n "checking whether to use static linking... " >&6; }
6633# Check whether --enable-static_link was given.
6634if test "${enable_static_link+set}" = set; then :
6635 enableval=$enable_static_link; STATIC_LINK=$enableval
6636else
6637 STATIC_LINK=no
6638fi
90c80887 6639
f11781c5
AK
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6641$as_echo "$STATIC_LINK" >&6; }
90c80887 6642
f11781c5 6643################################################################################
90c80887 6644
90c80887 6645
f11781c5
AK
6646################################################################################
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6648$as_echo_n "checking file owner... " >&6; }
90c80887 6649
f11781c5
AK
6650# Check whether --with-user was given.
6651if test "${with_user+set}" = set; then :
6652 withval=$with_user; OWNER=$withval
6653fi
90c80887 6654
f11781c5
AK
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6656$as_echo "$OWNER" >&6; }
90c80887 6657
f11781c5
AK
6658if test x$OWNER != x; then
6659 INSTALL="$INSTALL -o $OWNER"
90c80887 6660fi
a946372e 6661
f11781c5
AK
6662################################################################################
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6664$as_echo_n "checking group owner... " >&6; }
a946372e 6665
f11781c5
AK
6666# Check whether --with-group was given.
6667if test "${with_group+set}" = set; then :
6668 withval=$with_group; GROUP=$withval
a946372e 6669fi
f11781c5
AK
6670
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6672$as_echo "$GROUP" >&6; }
6673
6674if test x$GROUP != x; then
6675 INSTALL="$INSTALL -g $GROUP"
a946372e 6676fi
f11781c5
AK
6677
6678################################################################################
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6680$as_echo_n "checking device node uid... " >&6; }
6681
6682
6683# Check whether --with-device-uid was given.
6684if test "${with_device_uid+set}" = set; then :
6685 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6686else
f11781c5 6687 DM_DEVICE_UID=0
a946372e
AK
6688fi
6689
f11781c5
AK
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6691$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6692
f11781c5
AK
6693################################################################################
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6695$as_echo_n "checking device node gid... " >&6; }
a946372e 6696
a946372e 6697
f11781c5
AK
6698# Check whether --with-device-gid was given.
6699if test "${with_device_gid+set}" = set; then :
6700 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6701else
f11781c5 6702 DM_DEVICE_GID=0
a946372e 6703fi
a946372e 6704
f11781c5
AK
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6706$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6707
f11781c5
AK
6708################################################################################
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6710$as_echo_n "checking device node mode... " >&6; }
90c80887 6711
90c80887 6712
f11781c5
AK
6713# Check whether --with-device-mode was given.
6714if test "${with_device_mode+set}" = set; then :
6715 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6716else
6717 DM_DEVICE_MODE=0600
6718fi
90c80887 6719
f11781c5
AK
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6721$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6722
d0df875d
ZK
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6724$as_echo_n "checking when to create device nodes... " >&6; }
6725
6726# Check whether --with-device-nodes-on was given.
6727if test "${with_device_nodes_on+set}" = set; then :
6728 withval=$with_device_nodes_on; ADD_NODE=$withval
6729else
6730 ADD_NODE=resume
6731fi
6732
6733case "$ADD_NODE" in
6734 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6735 create) add_on=DM_ADD_NODE_ON_CREATE;;
6736 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6737esac
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6739$as_echo "on $ADD_NODE" >&6; }
6740
6741cat >>confdefs.h <<_ACEOF
6742#define DEFAULT_DM_ADD_NODE $add_on
6743_ACEOF
6744
6745
f11781c5
AK
6746################################################################################
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6748$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6749# Check whether --enable-lvm1_fallback was given.
6750if test "${enable_lvm1_fallback+set}" = set; then :
6751 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6752else
6753 LVM1_FALLBACK=no
6754fi
90c80887 6755
f11781c5
AK
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6757$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6758
f11781c5 6759if test x$LVM1_FALLBACK = xyes; then
90c80887 6760
f11781c5 6761$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6762
f11781c5 6763fi
90c80887 6764
f11781c5
AK
6765################################################################################
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6767$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6768
6769# Check whether --with-lvm1 was given.
6770if test "${with_lvm1+set}" = set; then :
6771 withval=$with_lvm1; LVM1=$withval
a946372e 6772else
f11781c5 6773 LVM1=internal
a946372e 6774fi
f11781c5
AK
6775
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6777$as_echo "$LVM1" >&6; }
6778
6779if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6780 then as_fn_error $? "--with-lvm1 parameter invalid
6781" "$LINENO" 5
6782fi;
6783
6784if test x$LVM1 = xinternal; then
6785
6786$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6787
a946372e
AK
6788fi
6789
6790################################################################################
f11781c5
AK
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6792$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6793
6794# Check whether --with-pool was given.
6795if test "${with_pool+set}" = set; then :
6796 withval=$with_pool; POOL=$withval
a946372e 6797else
f11781c5 6798 POOL=internal
a946372e
AK
6799fi
6800
f11781c5
AK
6801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6802$as_echo "$POOL" >&6; }
6803
6804if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6805 then as_fn_error $? "--with-pool parameter invalid
6806" "$LINENO" 5
6807fi;
6808
6809if test x$POOL = xinternal; then
6810
6811$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6812
a946372e
AK
6813fi
6814
6815################################################################################
f11781c5
AK
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6817$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6818
f11781c5
AK
6819# Check whether --with-cluster was given.
6820if test "${with_cluster+set}" = set; then :
6821 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6822fi
6823
f11781c5
AK
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6825$as_echo "$CLUSTER" >&6; }
a946372e 6826
f11781c5
AK
6827if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6828 then as_fn_error $? "--with-cluster parameter invalid
6829" "$LINENO" 5
6830fi;
fddafd51 6831
f11781c5 6832if test x$CLUSTER = xinternal; then
5556819a 6833
f11781c5 6834$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6835
fddafd51 6836fi
f11781c5
AK
6837
6838################################################################################
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6840$as_echo_n "checking whether to include snapshots... " >&6; }
6841
6842# Check whether --with-snapshots was given.
6843if test "${with_snapshots+set}" = set; then :
6844 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6845else
f11781c5 6846 SNAPSHOTS=internal
fddafd51
ZK
6847fi
6848
f11781c5
AK
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6850$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6851
f11781c5
AK
6852if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6853 then as_fn_error $? "--with-snapshots parameter invalid
6854" "$LINENO" 5
6855fi;
fddafd51 6856
f11781c5
AK
6857if test x$SNAPSHOTS = xinternal; then
6858
6859$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6860
6861fi
6862
6863################################################################################
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6865$as_echo_n "checking whether to include mirrors... " >&6; }
6866
6867# Check whether --with-mirrors was given.
6868if test "${with_mirrors+set}" = set; then :
6869 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6870else
f11781c5 6871 MIRRORS=internal
fddafd51
ZK
6872fi
6873
f11781c5
AK
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6875$as_echo "$MIRRORS" >&6; }
fddafd51 6876
f11781c5
AK
6877if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6878 then as_fn_error $? "--with-mirrors parameter invalid
6879" "$LINENO" 5
6880fi;
6881
6882if test x$MIRRORS = xinternal; then
6883
6884$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6885
6886fi
6887
6888################################################################################
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6890$as_echo_n "checking whether to include replicators... " >&6; }
6891
6892# Check whether --with-replicators was given.
6893if test "${with_replicators+set}" = set; then :
6894 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6895else
f11781c5
AK
6896 REPLICATORS=none
6897fi
fd4728e1 6898
f11781c5
AK
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6900$as_echo "$REPLICATORS" >&6; }
6901
6902case "$REPLICATORS" in
6903 none|shared) ;;
6904 internal)
6905$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6906 ;;
6907 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 6908esac
f11781c5
AK
6909
6910################################################################################
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6912$as_echo_n "checking whether to enable readline... " >&6; }
6913# Check whether --enable-readline was given.
6914if test "${enable_readline+set}" = set; then :
6915 enableval=$enable_readline; READLINE=$enableval
fd4728e1 6916else
f11781c5 6917 READLINE=maybe
fd4728e1
ZK
6918fi
6919
f11781c5
AK
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6921$as_echo "$READLINE" >&6; }
fd4728e1 6922
f11781c5
AK
6923################################################################################
6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6925$as_echo_n "checking whether to enable realtime support... " >&6; }
6926# Check whether --enable-realtime was given.
6927if test "${enable_realtime+set}" = set; then :
6928 enableval=$enable_realtime; REALTIME=$enableval
5556819a 6929fi
d0191583 6930
f11781c5
AK
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6932$as_echo "$REALTIME" >&6; }
6933
54b362f9 6934################################################################################
f11781c5
AK
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6936$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6937# Check whether --enable-ocf was given.
6938if test "${enable_ocf+set}" = set; then :
6939 enableval=$enable_ocf; OCF=$enableval
54b362f9 6940else
f11781c5 6941 OCF=no
54b362f9
AK
6942fi
6943
f11781c5
AK
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6945$as_echo "$OCF" >&6; }
54b362f9 6946
606d0858
AK
6947# Check whether --with-ocfdir was given.
6948if test "${with_ocfdir+set}" = set; then :
6949 withval=$with_ocfdir; OCFDIR=$withval
6950else
6951 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
6952fi
6953
6954
f11781c5
AK
6955################################################################################
6956pkg_config_init() {
6957
6958
6959
6960
6961
6962
6963if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6964 if test -n "$ac_tool_prefix"; then
6965 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6966set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 6968$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 6969if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
6970 $as_echo_n "(cached) " >&6
6971else
f11781c5 6972 case $PKG_CONFIG in
54b362f9 6973 [\\/]* | ?:[\\/]*)
f11781c5 6974 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
6975 ;;
6976 *)
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978for as_dir in $PATH
6979do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
f11781c5 6982 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
6984 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
6986 break 2
6987 fi
6988done
f11781c5 6989 done
54b362f9
AK
6990IFS=$as_save_IFS
6991
6992 ;;
6993esac
6994fi
f11781c5
AK
6995PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6996if test -n "$PKG_CONFIG"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6998$as_echo "$PKG_CONFIG" >&6; }
54b362f9 6999else
f11781c5 7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7001$as_echo "no" >&6; }
7002fi
7003
7004
f11781c5
AK
7005fi
7006if test -z "$ac_cv_path_PKG_CONFIG"; then
7007 ac_pt_PKG_CONFIG=$PKG_CONFIG
7008 # Extract the first word of "pkg-config", so it can be a program name with args.
7009set dummy pkg-config; ac_word=$2
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7011$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7012if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7013 $as_echo_n "(cached) " >&6
7014else
f11781c5 7015 case $ac_pt_PKG_CONFIG in
54b362f9 7016 [\\/]* | ?:[\\/]*)
f11781c5 7017 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7018 ;;
7019 *)
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021for as_dir in $PATH
7022do
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
f11781c5 7025 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7027 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7029 break 2
7030 fi
7031done
f11781c5 7032 done
54b362f9
AK
7033IFS=$as_save_IFS
7034
7035 ;;
7036esac
7037fi
f11781c5
AK
7038ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7039if test -n "$ac_pt_PKG_CONFIG"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7041$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7042else
f11781c5 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7044$as_echo "no" >&6; }
7045fi
7046
f11781c5
AK
7047 if test "x$ac_pt_PKG_CONFIG" = x; then
7048 PKG_CONFIG=""
7049 else
7050 case $cross_compiling:$ac_tool_warned in
7051yes:)
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7054ac_tool_warned=yes ;;
7055esac
7056 PKG_CONFIG=$ac_pt_PKG_CONFIG
7057 fi
d1e8046f 7058else
f11781c5 7059 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7060fi
7061
f11781c5
AK
7062fi
7063if test -n "$PKG_CONFIG"; then
7064 _pkg_min_version=0.9.0
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7066$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7067 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7069$as_echo "yes" >&6; }
7070 else
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072$as_echo "no" >&6; }
7073 PKG_CONFIG=""
7074 fi
7075fi
d1e8046f 7076
f11781c5
AK
7077pkg_failed=no
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7079$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7080
f11781c5
AK
7081if test -n "$PKGCONFIGINIT_CFLAGS"; then
7082 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7083 elif test -n "$PKG_CONFIG"; then
7084 if test -n "$PKG_CONFIG" && \
7085 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7086 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7087 ac_status=$?
7088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7089 test $ac_status = 0; }; then
7090 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7091else
f11781c5
AK
7092 pkg_failed=yes
7093fi
7094 else
7095 pkg_failed=untried
7096fi
7097if test -n "$PKGCONFIGINIT_LIBS"; then
7098 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7099 elif test -n "$PKG_CONFIG"; then
7100 if test -n "$PKG_CONFIG" && \
7101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7102 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7103 ac_status=$?
f11781c5
AK
7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105 test $ac_status = 0; }; then
7106 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7107else
f11781c5
AK
7108 pkg_failed=yes
7109fi
7110 else
7111 pkg_failed=untried
d1e8046f
AK
7112fi
7113
d1e8046f 7114
f11781c5
AK
7115
7116if test $pkg_failed = yes; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118$as_echo "no" >&6; }
7119
7120if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7121 _pkg_short_errors_supported=yes
7122else
7123 _pkg_short_errors_supported=no
7124fi
7125 if test $_pkg_short_errors_supported = yes; then
7126 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7127 else
7128 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7129 fi
7130 # Put the nasty error message in config.log where it belongs
7131 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7132
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7134$as_echo "pkg-config initialized" >&6; }
7135elif test $pkg_failed = untried; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137$as_echo "no" >&6; }
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7139$as_echo "pkg-config initialized" >&6; }
d1e8046f 7140else
f11781c5
AK
7141 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7142 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7144$as_echo "yes" >&6; }
d1e8046f 7145
d1e8046f 7146fi
f11781c5
AK
7147 PKGCONFIG_INIT=1
7148}
d1e8046f 7149
f11781c5
AK
7150################################################################################
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7152$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7153
f11781c5
AK
7154# Check whether --with-clvmd was given.
7155if test "${with_clvmd+set}" = set; then :
7156 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7157else
f11781c5 7158 CLVMD=none
d1e8046f 7159fi
d1e8046f 7160
f11781c5
AK
7161if test x$CLVMD = xyes; then
7162 CLVMD=all
d1e8046f 7163fi
f11781c5
AK
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7165$as_echo "$CLVMD" >&6; }
d1e8046f 7166
f11781c5
AK
7167if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7168 CLUSTER=internal
d1e8046f
AK
7169fi
7170
f11781c5
AK
7171if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7172 pkg_config_init
7173fi
d1e8046f 7174
f11781c5
AK
7175CLVMD_CMANAGERS=""
7176CLVMD_NEEDS_QDISKD=no
d1e8046f 7177
f11781c5
AK
7178if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7179 BUILDGULM=yes
7180 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
7181 CLVMD_NEEDS_QDISKD=yes
d1e8046f 7182fi
f11781c5
AK
7183if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7184 BUILDCMAN=yes
7185 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7186 CLVMD_NEEDS_QDISKD=yes
7187fi
7188if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7189 BUILDCOROSYNC=yes
7190 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7191fi
7192if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7193 BUILDOPENAIS=yes
7194 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7195fi
7196if test x$CLVMD_NEEDS_QDISKD != xno; then
7197 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7198fi
7199
f11781c5
AK
7200if test x$BUILDGULM = xyes; then
7201 if test x$BUILDCOROSYNC = xyes || \
7202 test x$BUILDOPENAIS = xyes; then
7203 as_fn_error $? "requested clvmd configuration is not valid" "$LINENO" 5
7204 fi
7205fi
ad6254c5 7206
f11781c5
AK
7207soft_bailout() {
7208 NOTFOUND=1
7209}
ad6254c5 7210
f11781c5
AK
7211hard_bailout() {
7212 as_fn_error $? "bailing out" "$LINENO" 5
7213}
ad6254c5 7214
f11781c5
AK
7215if test x$CLVMD = xall; then
7216 bailout=soft_bailout
7217 BUILDGULM=yes
7218 BUILDCMAN=yes
7219 BUILDCOROSYNC=yes
7220 BUILDOPENAIS=yes
a5f46f6a 7221else
f11781c5 7222 bailout=hard_bailout
a5f46f6a
AK
7223fi
7224
f11781c5
AK
7225check_lib_no_libs() {
7226 lib_no_libs_arg1=$1
7227 shift
7228 lib_no_libs_arg2=$1
7229 shift
7230 lib_no_libs_args=$@
7231 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7233$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7234if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7235 $as_echo_n "(cached) " >&6
7236else
7237 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7238LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7240/* end confdefs.h. */
7241
7242/* Override any GCC internal prototype to avoid an error.
7243 Use char because int might match the return type of a GCC
7244 builtin and then its argument prototype would still apply. */
7245#ifdef __cplusplus
7246extern "C"
7247#endif
f11781c5 7248char $lib_no_libs_arg2 ();
90c80887
AK
7249int
7250main ()
7251{
f11781c5 7252return $lib_no_libs_arg2 ();
90c80887
AK
7253 ;
7254 return 0;
7255}
7256_ACEOF
f11781c5
AK
7257if ac_fn_c_try_link "$LINENO"; then :
7258 eval "$as_ac_Lib=yes"
90c80887 7259else
f11781c5 7260 eval "$as_ac_Lib=no"
90c80887 7261fi
f11781c5
AK
7262rm -f core conftest.err conftest.$ac_objext \
7263 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7264LIBS=$ac_check_lib_save_LIBS
7265fi
f11781c5
AK
7266eval ac_res=\$$as_ac_Lib
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7268$as_echo "$ac_res" >&6; }
7269if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7270 cat >>confdefs.h <<_ACEOF
7271#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7272_ACEOF
7273
7274 LIBS="-l$lib_no_libs_arg1 $LIBS"
7275
90c80887 7276else
f11781c5 7277 $bailout
90c80887
AK
7278fi
7279
f11781c5
AK
7280 LIBS=$ac_check_lib_save_LIBS
7281}
90c80887 7282
f11781c5 7283if test x$BUILDGULM = xyes; then
90c80887 7284
f11781c5
AK
7285pkg_failed=no
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCS" >&5
7287$as_echo_n "checking for CCS... " >&6; }
90c80887 7288
f11781c5
AK
7289if test -n "$CCS_CFLAGS"; then
7290 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
7291 elif test -n "$PKG_CONFIG"; then
7292 if test -n "$PKG_CONFIG" && \
7293 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7294 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7295 ac_status=$?
7296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7297 test $ac_status = 0; }; then
7298 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
5161ecb9 7299else
f11781c5
AK
7300 pkg_failed=yes
7301fi
7302 else
7303 pkg_failed=untried
7304fi
7305if test -n "$CCS_LIBS"; then
7306 pkg_cv_CCS_LIBS="$CCS_LIBS"
7307 elif test -n "$PKG_CONFIG"; then
7308 if test -n "$PKG_CONFIG" && \
7309 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7310 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7311 ac_status=$?
7312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7313 test $ac_status = 0; }; then
7314 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
7315else
7316 pkg_failed=yes
7317fi
7318 else
7319 pkg_failed=untried
5161ecb9
PR
7320fi
7321
5161ecb9 7322
f11781c5
AK
7323
7324if test $pkg_failed = yes; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326$as_echo "no" >&6; }
7327
7328if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7329 _pkg_short_errors_supported=yes
93bd259b 7330else
f11781c5 7331 _pkg_short_errors_supported=no
93bd259b 7332fi
f11781c5
AK
7333 if test $_pkg_short_errors_supported = yes; then
7334 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
7335 else
7336 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
7337 fi
7338 # Put the nasty error message in config.log where it belongs
7339 echo "$CCS_PKG_ERRORS" >&5
93bd259b 7340
f11781c5
AK
7341 NOTFOUND=0
7342 for ac_header in ccs.h
7343do :
7344 ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7345if test "x$ac_cv_header_ccs_h" = x""yes; then :
7346 cat >>confdefs.h <<_ACEOF
7347#define HAVE_CCS_H 1
7348_ACEOF
93bd259b 7349
95eaa683 7350else
f11781c5 7351 $bailout
95eaa683
AK
7352fi
7353
f11781c5 7354done
95eaa683 7355
f11781c5
AK
7356 check_lib_no_libs ccs ccs_connect
7357 if test $NOTFOUND = 0; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7359$as_echo "no pkg for libccs, using -lccs" >&6; }
7360 CCS_LIBS="-lccs"
7361 HAVE_CCS=yes
7362 fi
7363elif test $pkg_failed = untried; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365$as_echo "no" >&6; }
7366 NOTFOUND=0
7367 for ac_header in ccs.h
7368do :
7369 ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7370if test "x$ac_cv_header_ccs_h" = x""yes; then :
7371 cat >>confdefs.h <<_ACEOF
7372#define HAVE_CCS_H 1
95eaa683
AK
7373_ACEOF
7374
f11781c5
AK
7375else
7376 $bailout
95eaa683
AK
7377fi
7378
f11781c5
AK
7379done
7380
7381 check_lib_no_libs ccs ccs_connect
7382 if test $NOTFOUND = 0; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7384$as_echo "no pkg for libccs, using -lccs" >&6; }
7385 CCS_LIBS="-lccs"
7386 HAVE_CCS=yes
7387 fi
7388else
7389 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
7390 CCS_LIBS=$pkg_cv_CCS_LIBS
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7392$as_echo "yes" >&6; }
7393 HAVE_CCS=yes
7394fi
7395
7396pkg_failed=no
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GULM" >&5
7398$as_echo_n "checking for GULM... " >&6; }
7399
7400if test -n "$GULM_CFLAGS"; then
7401 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
7402 elif test -n "$PKG_CONFIG"; then
7403 if test -n "$PKG_CONFIG" && \
7404 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7405 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7406 ac_status=$?
7407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7408 test $ac_status = 0; }; then
7409 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
7410else
7411 pkg_failed=yes
7412fi
7413 else
7414 pkg_failed=untried
7415fi
7416if test -n "$GULM_LIBS"; then
7417 pkg_cv_GULM_LIBS="$GULM_LIBS"
7418 elif test -n "$PKG_CONFIG"; then
7419 if test -n "$PKG_CONFIG" && \
7420 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7421 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7422 ac_status=$?
7423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424 test $ac_status = 0; }; then
7425 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
7426else
7427 pkg_failed=yes
93bd259b 7428fi
f11781c5
AK
7429 else
7430 pkg_failed=untried
ad6254c5 7431fi
ad6254c5 7432
ad6254c5
AK
7433
7434
f11781c5
AK
7435if test $pkg_failed = yes; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437$as_echo "no" >&6; }
ad6254c5 7438
f11781c5
AK
7439if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7440 _pkg_short_errors_supported=yes
572fefeb 7441else
f11781c5 7442 _pkg_short_errors_supported=no
572fefeb 7443fi
f11781c5
AK
7444 if test $_pkg_short_errors_supported = yes; then
7445 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
7446 else
7447 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
7448 fi
7449 # Put the nasty error message in config.log where it belongs
7450 echo "$GULM_PKG_ERRORS" >&5
572fefeb 7451
f11781c5
AK
7452 NOTFOUND=0
7453 for ac_header in libgulm.h
7454do :
7455 ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7456if test "x$ac_cv_header_libgulm_h" = x""yes; then :
7457 cat >>confdefs.h <<_ACEOF
7458#define HAVE_LIBGULM_H 1
7459_ACEOF
572fefeb 7460
ad6254c5 7461else
f11781c5 7462 $bailout
d0191583 7463fi
8a2fc586 7464
f11781c5 7465done
8a2fc586 7466
f11781c5
AK
7467 check_lib_no_libs gulm lg_core_login
7468 if test $NOTFOUND = 0; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7470$as_echo "no pkg for libgulm, using -lgulm" >&6; }
7471 GULM_LIBS="-lgulm"
7472 HAVE_GULM=yes
7473 fi
7474elif test $pkg_failed = untried; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476$as_echo "no" >&6; }
7477 NOTFOUND=0
7478 for ac_header in libgulm.h
7479do :
7480 ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7481if test "x$ac_cv_header_libgulm_h" = x""yes; then :
7482 cat >>confdefs.h <<_ACEOF
7483#define HAVE_LIBGULM_H 1
7484_ACEOF
d179cc7a 7485
93bd259b 7486else
f11781c5 7487 $bailout
93bd259b
AK
7488fi
7489
f11781c5 7490done
2a9a80c9 7491
f11781c5
AK
7492 check_lib_no_libs gulm lg_core_login
7493 if test $NOTFOUND = 0; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7495$as_echo "no pkg for libgulm, using -lgulm" >&6; }
7496 GULM_LIBS="-lgulm"
7497 HAVE_GULM=yes
7498 fi
23b059e7 7499else
f11781c5
AK
7500 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
7501 GULM_LIBS=$pkg_cv_GULM_LIBS
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7503$as_echo "yes" >&6; }
7504 HAVE_GULM=yes
d0191583 7505fi
d0191583 7506fi
ad6254c5 7507
f11781c5 7508if test x$BUILDCMAN = xyes; then
ad6254c5 7509
f11781c5
AK
7510pkg_failed=no
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7512$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7513
f11781c5
AK
7514if test -n "$CMAN_CFLAGS"; then
7515 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7516 elif test -n "$PKG_CONFIG"; then
7517 if test -n "$PKG_CONFIG" && \
7518 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7519 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7520 ac_status=$?
7521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522 test $ac_status = 0; }; then
7523 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7524else
7525 pkg_failed=yes
ad6254c5 7526fi
f11781c5
AK
7527 else
7528 pkg_failed=untried
ad6254c5 7529fi
f11781c5
AK
7530if test -n "$CMAN_LIBS"; then
7531 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7532 elif test -n "$PKG_CONFIG"; then
7533 if test -n "$PKG_CONFIG" && \
7534 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7535 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 7536 ac_status=$?
f11781c5
AK
7537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7538 test $ac_status = 0; }; then
7539 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7540else
f11781c5
AK
7541 pkg_failed=yes
7542fi
7543 else
7544 pkg_failed=untried
93bd259b
AK
7545fi
7546
f11781c5
AK
7547
7548
7549if test $pkg_failed = yes; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551$as_echo "no" >&6; }
7552
7553if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7554 _pkg_short_errors_supported=yes
7555else
7556 _pkg_short_errors_supported=no
93bd259b 7557fi
f11781c5
AK
7558 if test $_pkg_short_errors_supported = yes; then
7559 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7560 else
7561 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7562 fi
7563 # Put the nasty error message in config.log where it belongs
7564 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7565
f11781c5
AK
7566 NOTFOUND=0
7567 for ac_header in libcman.h
7568do :
7569 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7570if test "x$ac_cv_header_libcman_h" = x""yes; then :
7571 cat >>confdefs.h <<_ACEOF
7572#define HAVE_LIBCMAN_H 1
93bd259b
AK
7573_ACEOF
7574
f11781c5
AK
7575else
7576 $bailout
93bd259b
AK
7577fi
7578
f11781c5 7579done
93bd259b 7580
f11781c5
AK
7581 check_lib_no_libs cman cman_init
7582 if test $NOTFOUND = 0; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7584$as_echo "no pkg for libcman, using -lcman" >&6; }
7585 CMAN_LIBS="-lcman"
7586 HAVE_CMAN=yes
7587 fi
7588elif test $pkg_failed = untried; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590$as_echo "no" >&6; }
7591 NOTFOUND=0
7592 for ac_header in libcman.h
7593do :
7594 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7595if test "x$ac_cv_header_libcman_h" = x""yes; then :
7596 cat >>confdefs.h <<_ACEOF
7597#define HAVE_LIBCMAN_H 1
93bd259b 7598_ACEOF
93bd259b 7599
93bd259b 7600else
f11781c5 7601 $bailout
93bd259b
AK
7602fi
7603
f11781c5
AK
7604done
7605
7606 check_lib_no_libs cman cman_init
7607 if test $NOTFOUND = 0; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7609$as_echo "no pkg for libcman, using -lcman" >&6; }
7610 CMAN_LIBS="-lcman"
7611 HAVE_CMAN=yes
7612 fi
7613else
7614 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7615 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7617$as_echo "yes" >&6; }
7618 HAVE_CMAN=yes
93bd259b 7619fi
f11781c5
AK
7620 CHECKCONFDB=yes
7621 CHECKDLM=yes
93bd259b
AK
7622fi
7623
f11781c5
AK
7624if test x$BUILDCOROSYNC = xyes || \
7625 test x$BUILDOPENAIS = xyes; then
93bd259b 7626
f11781c5
AK
7627pkg_failed=no
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7629$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7630
f11781c5
AK
7631if test -n "$COROSYNC_CFLAGS"; then
7632 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7633 elif test -n "$PKG_CONFIG"; then
7634 if test -n "$PKG_CONFIG" && \
7635 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7636 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7637 ac_status=$?
7638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639 test $ac_status = 0; }; then
7640 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7641else
f11781c5
AK
7642 pkg_failed=yes
7643fi
7644 else
7645 pkg_failed=untried
7646fi
7647if test -n "$COROSYNC_LIBS"; then
7648 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7649 elif test -n "$PKG_CONFIG"; then
7650 if test -n "$PKG_CONFIG" && \
7651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7652 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7653 ac_status=$?
f11781c5
AK
7654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7655 test $ac_status = 0; }; then
7656 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7657else
f11781c5 7658 pkg_failed=yes
ad6254c5 7659fi
f11781c5
AK
7660 else
7661 pkg_failed=untried
ad6254c5 7662fi
ad6254c5 7663
72b2cb61 7664
72b2cb61 7665
f11781c5
AK
7666if test $pkg_failed = yes; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668$as_echo "no" >&6; }
19a2c6e0 7669
f11781c5
AK
7670if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7671 _pkg_short_errors_supported=yes
7672else
7673 _pkg_short_errors_supported=no
ad6254c5 7674fi
f11781c5
AK
7675 if test $_pkg_short_errors_supported = yes; then
7676 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7677 else
7678 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7679 fi
7680 # Put the nasty error message in config.log where it belongs
7681 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7682
f11781c5
AK
7683 $bailout
7684elif test $pkg_failed = untried; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686$as_echo "no" >&6; }
7687 $bailout
7688else
7689 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7690 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7692$as_echo "yes" >&6; }
7693 HAVE_COROSYNC=yes
7694fi
7695 CHECKCONFDB=yes
ad6254c5
AK
7696fi
7697
f11781c5 7698if test x$BUILDCOROSYNC = xyes; then
f30875db 7699
f11781c5
AK
7700pkg_failed=no
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7702$as_echo_n "checking for QUORUM... " >&6; }
7703
7704if test -n "$QUORUM_CFLAGS"; then
7705 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7706 elif test -n "$PKG_CONFIG"; then
7707 if test -n "$PKG_CONFIG" && \
7708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7709 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7710 ac_status=$?
f11781c5
AK
7711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7712 test $ac_status = 0; }; then
7713 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7714else
f11781c5 7715 pkg_failed=yes
f30875db 7716fi
f11781c5
AK
7717 else
7718 pkg_failed=untried
f30875db 7719fi
f11781c5
AK
7720if test -n "$QUORUM_LIBS"; then
7721 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7722 elif test -n "$PKG_CONFIG"; then
7723 if test -n "$PKG_CONFIG" && \
7724 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7725 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7726 ac_status=$?
7727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7728 test $ac_status = 0; }; then
7729 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7730else
f11781c5 7731 pkg_failed=yes
f30875db 7732fi
f11781c5
AK
7733 else
7734 pkg_failed=untried
7735fi
7736
f30875db 7737
f11781c5
AK
7738
7739if test $pkg_failed = yes; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741$as_echo "no" >&6; }
7742
7743if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7744 _pkg_short_errors_supported=yes
7745else
7746 _pkg_short_errors_supported=no
f30875db 7747fi
f11781c5
AK
7748 if test $_pkg_short_errors_supported = yes; then
7749 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7750 else
7751 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7752 fi
7753 # Put the nasty error message in config.log where it belongs
7754 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7755
f11781c5
AK
7756 $bailout
7757elif test $pkg_failed = untried; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759$as_echo "no" >&6; }
7760 $bailout
7761else
7762 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7763 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7765$as_echo "yes" >&6; }
7766 HAVE_QUORUM=yes
7767fi
7768 CHECKCPG=yes
7769 CHECKDLM=yes
d0191583
JM
7770fi
7771
f11781c5 7772if test x$BUILDOPENAIS = xyes; then
d0191583 7773
f11781c5
AK
7774pkg_failed=no
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7776$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7777
f11781c5
AK
7778if test -n "$SALCK_CFLAGS"; then
7779 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7780 elif test -n "$PKG_CONFIG"; then
7781 if test -n "$PKG_CONFIG" && \
7782 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7783 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7784 ac_status=$?
7785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786 test $ac_status = 0; }; then
7787 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7788else
7789 pkg_failed=yes
7790fi
7791 else
7792 pkg_failed=untried
7793fi
7794if test -n "$SALCK_LIBS"; then
7795 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7796 elif test -n "$PKG_CONFIG"; then
7797 if test -n "$PKG_CONFIG" && \
7798 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7799 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7800 ac_status=$?
f11781c5
AK
7801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7802 test $ac_status = 0; }; then
7803 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7804else
f11781c5 7805 pkg_failed=yes
8a2fc586 7806fi
f11781c5
AK
7807 else
7808 pkg_failed=untried
8a2fc586 7809fi
d0191583 7810
d0191583 7811
f8f6ec92 7812
f11781c5
AK
7813if test $pkg_failed = yes; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815$as_echo "no" >&6; }
8a2fc586 7816
f11781c5
AK
7817if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7818 _pkg_short_errors_supported=yes
ad6254c5 7819else
f11781c5
AK
7820 _pkg_short_errors_supported=no
7821fi
7822 if test $_pkg_short_errors_supported = yes; then
7823 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7824 else
7825 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7826 fi
7827 # Put the nasty error message in config.log where it belongs
7828 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7829
f11781c5
AK
7830 $bailout
7831elif test $pkg_failed = untried; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833$as_echo "no" >&6; }
7834 $bailout
ad6254c5 7835else
f11781c5
AK
7836 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7837 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7839$as_echo "yes" >&6; }
7840 HAVE_SALCK=yes
ad6254c5 7841fi
f11781c5 7842 CHECKCPG=yes
ad6254c5 7843fi
ad6254c5 7844
72b2cb61 7845
f8f6ec92 7846
f11781c5 7847if test x$CHECKCONFDB = xyes; then
f8f6ec92 7848
f11781c5
AK
7849pkg_failed=no
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7851$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7852
f11781c5
AK
7853if test -n "$CONFDB_CFLAGS"; then
7854 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7855 elif test -n "$PKG_CONFIG"; then
7856 if test -n "$PKG_CONFIG" && \
7857 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7858 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7859 ac_status=$?
f11781c5
AK
7860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7861 test $ac_status = 0; }; then
7862 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7863else
f11781c5
AK
7864 pkg_failed=yes
7865fi
7866 else
7867 pkg_failed=untried
7868fi
7869if test -n "$CONFDB_LIBS"; then
7870 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7871 elif test -n "$PKG_CONFIG"; then
7872 if test -n "$PKG_CONFIG" && \
7873 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7874 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7875 ac_status=$?
7876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7877 test $ac_status = 0; }; then
7878 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7879else
7880 pkg_failed=yes
7881fi
7882 else
7883 pkg_failed=untried
f8f6ec92
ZK
7884fi
7885
f8f6ec92 7886
66e941e8 7887
f11781c5
AK
7888if test $pkg_failed = yes; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890$as_echo "no" >&6; }
7891
7892if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7893 _pkg_short_errors_supported=yes
f8f6ec92 7894else
f11781c5 7895 _pkg_short_errors_supported=no
66e941e8 7896fi
f11781c5
AK
7897 if test $_pkg_short_errors_supported = yes; then
7898 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7899 else
7900 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7901 fi
7902 # Put the nasty error message in config.log where it belongs
7903 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7904
f11781c5
AK
7905 HAVE_CONFDB=no
7906elif test $pkg_failed = untried; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908$as_echo "no" >&6; }
7909 HAVE_CONFDB=no
7910else
7911 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7912 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7914$as_echo "yes" >&6; }
7915 HAVE_CONFDB=yes
66e941e8 7916fi
f11781c5
AK
7917
7918 for ac_header in corosync/confdb.h
7919do :
7920 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7921if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7922 cat >>confdefs.h <<_ACEOF
f11781c5 7923#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7924_ACEOF
f11781c5 7925 HAVE_CONFDB_H=yes
66e941e8 7926else
f11781c5 7927 HAVE_CONFDB_H=no
66e941e8 7928fi
dd1f2c09
MB
7929
7930done
7931
7932
f11781c5
AK
7933 if test x$HAVE_CONFDB != xyes && \
7934 test x$HAVE_CONFDB_H = xyes; then
7935 check_lib_no_libs confdb confdb_initialize
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7937$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7938 CONFDB_LIBS="-lconfdb"
7939 HAVE_CONFDB=yes
7940 fi
7941
7942 if test x$BUILDCOROSYNC = xyes && \
7943 test x$HAVE_CONFDB != xyes &&
7944 test x$CLVMD != xall; then
7945 as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5
7946 fi
dd1f2c09 7947fi
f11781c5
AK
7948
7949if test x$CHECKCPG = xyes; then
7950
7951pkg_failed=no
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7953$as_echo_n "checking for CPG... " >&6; }
7954
7955if test -n "$CPG_CFLAGS"; then
7956 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7957 elif test -n "$PKG_CONFIG"; then
7958 if test -n "$PKG_CONFIG" && \
7959 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7960 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7961 ac_status=$?
7962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7963 test $ac_status = 0; }; then
7964 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 7965else
f11781c5
AK
7966 pkg_failed=yes
7967fi
7968 else
7969 pkg_failed=untried
7970fi
7971if test -n "$CPG_LIBS"; then
7972 pkg_cv_CPG_LIBS="$CPG_LIBS"
7973 elif test -n "$PKG_CONFIG"; then
7974 if test -n "$PKG_CONFIG" && \
7975 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7976 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 7977 ac_status=$?
f11781c5
AK
7978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7979 test $ac_status = 0; }; then
7980 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 7981else
f11781c5
AK
7982 pkg_failed=yes
7983fi
7984 else
7985 pkg_failed=untried
7986fi
7987
7988
7989
7990if test $pkg_failed = yes; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992$as_echo "no" >&6; }
7993
7994if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7995 _pkg_short_errors_supported=yes
7996else
7997 _pkg_short_errors_supported=no
7998fi
7999 if test $_pkg_short_errors_supported = yes; then
8000 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8001 else
8002 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8003 fi
8004 # Put the nasty error message in config.log where it belongs
8005 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 8006
f11781c5
AK
8007 $bailout
8008elif test $pkg_failed = untried; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010$as_echo "no" >&6; }
8011 $bailout
8012else
8013 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8014 CPG_LIBS=$pkg_cv_CPG_LIBS
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8016$as_echo "yes" >&6; }
8017 HAVE_CPG=yes
8018fi
dd1f2c09
MB
8019fi
8020
f11781c5 8021if test x$CHECKDLM = xyes; then
dd1f2c09 8022
f11781c5
AK
8023pkg_failed=no
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
8025$as_echo_n "checking for DLM... " >&6; }
8026
8027if test -n "$DLM_CFLAGS"; then
8028 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
8029 elif test -n "$PKG_CONFIG"; then
8030 if test -n "$PKG_CONFIG" && \
8031 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8032 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 8033 ac_status=$?
f11781c5
AK
8034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8035 test $ac_status = 0; }; then
8036 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 8037else
f11781c5
AK
8038 pkg_failed=yes
8039fi
8040 else
8041 pkg_failed=untried
8042fi
8043if test -n "$DLM_LIBS"; then
8044 pkg_cv_DLM_LIBS="$DLM_LIBS"
8045 elif test -n "$PKG_CONFIG"; then
8046 if test -n "$PKG_CONFIG" && \
8047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8048 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8049 ac_status=$?
8050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8051 test $ac_status = 0; }; then
8052 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8053else
8054 pkg_failed=yes
8055fi
8056 else
8057 pkg_failed=untried
dd1f2c09
MB
8058fi
8059
dd1f2c09 8060
dd1f2c09 8061
f11781c5
AK
8062if test $pkg_failed = yes; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064$as_echo "no" >&6; }
8065
8066if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8067 _pkg_short_errors_supported=yes
dd1f2c09 8068else
f11781c5 8069 _pkg_short_errors_supported=no
dd1f2c09 8070fi
f11781c5
AK
8071 if test $_pkg_short_errors_supported = yes; then
8072 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8073 else
8074 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8075 fi
8076 # Put the nasty error message in config.log where it belongs
8077 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 8078
f11781c5
AK
8079 NOTFOUND=0
8080 for ac_header in libdlm.h
8081do :
8082 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8083if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 8084 cat >>confdefs.h <<_ACEOF
f11781c5 8085#define HAVE_LIBDLM_H 1
dd1f2c09
MB
8086_ACEOF
8087
f11781c5
AK
8088else
8089 $bailout
dd1f2c09 8090fi
f8f6ec92
ZK
8091
8092done
8093
f11781c5
AK
8094 check_lib_no_libs dlm dlm_lock -lpthread
8095 if test $NOTFOUND = 0; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8097$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8098 DLM_LIBS="-ldlm -lpthread"
8099 HAVE_DLM=yes
8100 fi
8101elif test $pkg_failed = untried; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103$as_echo "no" >&6; }
8104 NOTFOUND=0
8105 for ac_header in libdlm.h
8106do :
8107 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8108if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8109 cat >>confdefs.h <<_ACEOF
8110#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
8111_ACEOF
8112
f8f6ec92 8113else
f11781c5 8114 $bailout
ad6254c5
AK
8115fi
8116
f11781c5 8117done
8b1a3214 8118
f11781c5
AK
8119 check_lib_no_libs dlm dlm_lock -lpthread
8120 if test $NOTFOUND = 0; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8122$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8123 DLM_LIBS="-ldlm -lpthread"
8124 HAVE_DLM=yes
8125 fi
8b1a3214 8126else
f11781c5
AK
8127 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8128 DLM_LIBS=$pkg_cv_DLM_LIBS
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130$as_echo "yes" >&6; }
8131 HAVE_DLM=yes
8b1a3214 8132fi
8b1a3214
AK
8133fi
8134
f11781c5
AK
8135if test x$CLVMD = xall; then
8136 CLVMD=none
8137 CLVMD_CMANAGERS=""
8138 CLVMD_NEEDS_QDISKD=no
8139 if test x$HAVE_CCS = xyes && \
8140 test x$HAVE_GULM = xyes; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd gulm cluster manager" >&5
8142$as_echo "Enabling clvmd gulm cluster manager" >&6; }
8143 CLVMD="$CLVMD,gulm"
8144 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
8145 CLVMD_NEEDS_QDISKD=yes
8146 fi
8147 if test x$HAVE_CMAN = xyes && \
8148 test x$HAVE_DLM = xyes; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8150$as_echo "Enabling clvmd cman cluster manager" >&6; }
8151 CLVMD="$CLVMD,cman"
8152 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8153 CLVMD_NEEDS_QDISKD=yes
8154 fi
8155 if test x$HAVE_COROSYNC = xyes && \
8156 test x$HAVE_QUORUM = xyes && \
8157 test x$HAVE_CPG = xyes && \
8158 test x$HAVE_DLM = xyes && \
8159 test x$HAVE_CONFDB = xyes; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8161$as_echo "Enabling clvmd corosync cluster manager" >&6; }
8162 CLVMD="$CLVMD,corosync"
8163 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
8164 fi
8165 if test x$HAVE_COROSYNC = xyes && \
8166 test x$HAVE_CPG = xyes && \
8167 test x$HAVE_SALCK = xyes; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8169$as_echo "Enabling clvmd openais cluster manager" >&6; }
8170 CLVMD="$CLVMD,openais"
8171 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8172 fi
8173 if test x$CLVMD_NEEDS_QDISKD != xno; then
8174 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8175 fi
8176 if test x$CLVMD = xnone; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8178$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
8179 fi
8180fi
8181
ad6254c5 8182################################################################################
f11781c5 8183if test "x$CLVMD" != xnone; then
ad6254c5 8184
f11781c5
AK
8185# Check whether --with-clvmd-pidfile was given.
8186if test "${with_clvmd_pidfile+set}" = set; then :
8187 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 8188else
f11781c5 8189 CLVMD_PIDFILE="/var/run/clvmd.pid"
ad6254c5 8190fi
7a197a62 8191
ad6254c5 8192
f11781c5
AK
8193cat >>confdefs.h <<_ACEOF
8194#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 8195_ACEOF
ad6254c5 8196
ad6254c5 8197fi
7a197a62 8198
f11781c5
AK
8199################################################################################
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8201$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8202# Check whether --enable-cmirrord was given.
8203if test "${enable_cmirrord+set}" = set; then :
8204 enableval=$enable_cmirrord; CMIRRORD=$enableval
8205else
8206 CMIRRORD=no
8207fi
8208
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8210$as_echo "$CMIRRORD" >&6; }
ad6254c5 8211
f11781c5 8212BUILD_CMIRRORD=$CMIRRORD
7a197a62 8213
f11781c5
AK
8214################################################################################
8215if test "x$BUILD_CMIRRORD" = xyes; then
8216
8217# Check whether --with-cmirrord-pidfile was given.
8218if test "${with_cmirrord_pidfile+set}" = set; then :
8219 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 8220else
f11781c5 8221 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
ad6254c5 8222fi
ad6254c5 8223
72b2cb61 8224
f11781c5
AK
8225cat >>confdefs.h <<_ACEOF
8226#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8227_ACEOF
8228
ad6254c5
AK
8229fi
8230
f11781c5
AK
8231################################################################################
8232if [ "x$BUILD_CMIRRORD" = xyes ]; then
8233 if test x$PKGCONFIG_INIT != x1; then
8234 pkg_config_init
8235 fi
ad6254c5 8236
f11781c5
AK
8237pkg_failed=no
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8239$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8240
f11781c5
AK
8241if test -n "$SACKPT_CFLAGS"; then
8242 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8243 elif test -n "$PKG_CONFIG"; then
8244 if test -n "$PKG_CONFIG" && \
8245 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8246 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8247 ac_status=$?
8248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8249 test $ac_status = 0; }; then
8250 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8251else
f11781c5
AK
8252 pkg_failed=yes
8253fi
8254 else
8255 pkg_failed=untried
8256fi
8257if test -n "$SACKPT_LIBS"; then
8258 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8259 elif test -n "$PKG_CONFIG"; then
8260 if test -n "$PKG_CONFIG" && \
8261 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8262 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 8263 ac_status=$?
f11781c5
AK
8264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8265 test $ac_status = 0; }; then
8266 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8267else
f11781c5
AK
8268 pkg_failed=yes
8269fi
8270 else
8271 pkg_failed=untried
8272fi
539f4a77
ZK
8273
8274
539f4a77 8275
f11781c5
AK
8276if test $pkg_failed = yes; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278$as_echo "no" >&6; }
8279
8280if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8281 _pkg_short_errors_supported=yes
539f4a77 8282else
f11781c5 8283 _pkg_short_errors_supported=no
539f4a77 8284fi
f11781c5
AK
8285 if test $_pkg_short_errors_supported = yes; then
8286 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8287 else
8288 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8289 fi
8290 # Put the nasty error message in config.log where it belongs
8291 echo "$SACKPT_PKG_ERRORS" >&5
8292
8293 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8294
8295$SACKPT_PKG_ERRORS
8296
8297Consider adjusting the PKG_CONFIG_PATH environment variable if you
8298installed software in a non-standard prefix.
8299
8300Alternatively, you may set the environment variables SACKPT_CFLAGS
8301and SACKPT_LIBS to avoid the need to call pkg-config.
8302See the pkg-config man page for more details." "$LINENO" 5
8303
8304elif test $pkg_failed = untried; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306$as_echo "no" >&6; }
8307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8309as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8310is in your PATH or set the PKG_CONFIG environment variable to the full
8311path to pkg-config.
8312
8313Alternatively, you may set the environment variables SACKPT_CFLAGS
8314and SACKPT_LIBS to avoid the need to call pkg-config.
8315See the pkg-config man page for more details.
8316
8317To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8318See \`config.log' for more details" "$LINENO" 5; }
8319
539f4a77 8320else
f11781c5
AK
8321 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8322 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8324$as_echo "yes" >&6; }
539f4a77 8325
539f4a77 8326fi
f11781c5 8327 if test x$HAVE_CPG != xyes; then
539f4a77 8328
f11781c5
AK
8329pkg_failed=no
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8331$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8332
f11781c5
AK
8333if test -n "$CPG_CFLAGS"; then
8334 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8335 elif test -n "$PKG_CONFIG"; then
8336 if test -n "$PKG_CONFIG" && \
8337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8338 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8339 ac_status=$?
f11781c5
AK
8340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8341 test $ac_status = 0; }; then
8342 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8343else
f11781c5
AK
8344 pkg_failed=yes
8345fi
8346 else
8347 pkg_failed=untried
8348fi
8349if test -n "$CPG_LIBS"; then
8350 pkg_cv_CPG_LIBS="$CPG_LIBS"
8351 elif test -n "$PKG_CONFIG"; then
8352 if test -n "$PKG_CONFIG" && \
8353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8354 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8355 ac_status=$?
8356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8357 test $ac_status = 0; }; then
8358 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8359else
8360 pkg_failed=yes
8361fi
8362 else
8363 pkg_failed=untried
8364fi
8365
8366
8367
8368if test $pkg_failed = yes; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370$as_echo "no" >&6; }
ad6254c5 8371
f11781c5
AK
8372if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8373 _pkg_short_errors_supported=yes
8374else
8375 _pkg_short_errors_supported=no
ad6254c5 8376fi
f11781c5
AK
8377 if test $_pkg_short_errors_supported = yes; then
8378 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8379 else
8380 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8381 fi
8382 # Put the nasty error message in config.log where it belongs
8383 echo "$CPG_PKG_ERRORS" >&5
8384
8385 as_fn_error $? "Package requirements (libcpg) were not met:
8386
8387$CPG_PKG_ERRORS
8388
8389Consider adjusting the PKG_CONFIG_PATH environment variable if you
8390installed software in a non-standard prefix.
8391
8392Alternatively, you may set the environment variables CPG_CFLAGS
8393and CPG_LIBS to avoid the need to call pkg-config.
8394See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8395
f11781c5
AK
8396elif test $pkg_failed = untried; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398$as_echo "no" >&6; }
8399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8401as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8402is in your PATH or set the PKG_CONFIG environment variable to the full
8403path to pkg-config.
539f4a77 8404
f11781c5
AK
8405Alternatively, you may set the environment variables CPG_CFLAGS
8406and CPG_LIBS to avoid the need to call pkg-config.
8407See the pkg-config man page for more details.
539f4a77 8408
f11781c5
AK
8409To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8410See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8411
539f4a77 8412else
f11781c5
AK
8413 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8414 CPG_LIBS=$pkg_cv_CPG_LIBS
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8416$as_echo "yes" >&6; }
bc1024f8 8417
f11781c5
AK
8418fi
8419 fi
8420fi
8421
8422################################################################################
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8424$as_echo_n "checking whether to enable debugging... " >&6; }
8425# Check whether --enable-debug was given.
8426if test "${enable_debug+set}" = set; then :
8427 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8428else
f11781c5
AK
8429 DEBUG=no
8430fi
8431
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8433$as_echo "$DEBUG" >&6; }
539f4a77 8434
f11781c5
AK
8435if test x$DEBUG = xyes; then
8436 COPTIMISE_FLAG=
8437else
8438 CSCOPE_CMD=
06e459df
JM
8439fi
8440
f11781c5
AK
8441################################################################################
8442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8443$as_echo_n "checking for C optimisation flag... " >&6; }
8444
8445# Check whether --with-optimisation was given.
8446if test "${with_optimisation+set}" = set; then :
8447 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8448fi
539f4a77 8449
f11781c5
AK
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8451$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8452
f11781c5
AK
8453################################################################################
8454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8455$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8456# Check whether --enable-profiling was given.
8457if test "${enable_profiling+set}" = set; then :
8458 enableval=$enable_profiling; PROFILING=$enableval
8459else
8460 PROFILING=no
539f4a77
ZK
8461fi
8462
f11781c5
AK
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8464$as_echo "$PROFILING" >&6; }
8465
8466if test "x$PROFILING" = xyes; then
8467 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8468 # Extract the first word of "lcov", so it can be a program name with args.
8469set dummy lcov; ac_word=$2
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471$as_echo_n "checking for $ac_word... " >&6; }
8472if test "${ac_cv_path_LCOV+set}" = set; then :
8473 $as_echo_n "(cached) " >&6
539f4a77 8474else
f11781c5
AK
8475 case $LCOV in
8476 [\\/]* | ?:[\\/]*)
8477 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8478 ;;
8479 *)
8480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481for as_dir in $PATH
8482do
8483 IFS=$as_save_IFS
8484 test -z "$as_dir" && as_dir=.
8485 for ac_exec_ext in '' $ac_executable_extensions; do
8486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8487 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8489 break 2
8490 fi
8491done
8492 done
8493IFS=$as_save_IFS
539f4a77 8494
f11781c5
AK
8495 ;;
8496esac
8497fi
8498LCOV=$ac_cv_path_LCOV
8499if test -n "$LCOV"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8501$as_echo "$LCOV" >&6; }
8502else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504$as_echo "no" >&6; }
539f4a77
ZK
8505fi
8506
bc1024f8 8507
f11781c5
AK
8508 # Extract the first word of "genhtml", so it can be a program name with args.
8509set dummy genhtml; ac_word=$2
8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511$as_echo_n "checking for $ac_word... " >&6; }
8512if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8513 $as_echo_n "(cached) " >&6
ad6254c5 8514else
f11781c5
AK
8515 case $GENHTML in
8516 [\\/]* | ?:[\\/]*)
8517 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8518 ;;
8519 *)
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521for as_dir in $PATH
8522do
8523 IFS=$as_save_IFS
8524 test -z "$as_dir" && as_dir=.
8525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8527 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529 break 2
8530 fi
8531done
8532 done
8533IFS=$as_save_IFS
8a2fc586 8534
f11781c5
AK
8535 ;;
8536esac
8537fi
8538GENHTML=$ac_cv_path_GENHTML
8539if test -n "$GENHTML"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8541$as_echo "$GENHTML" >&6; }
8542else
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544$as_echo "no" >&6; }
8545fi
8a2fc586 8546
8a2fc586 8547
f11781c5
AK
8548 if test -z "$LCOV" -o -z "$GENHTML"; then
8549 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8550 fi
8551 # Extract the first word of "genpng", so it can be a program name with args.
8552set dummy genpng; ac_word=$2
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8554$as_echo_n "checking for $ac_word... " >&6; }
8555if test "${ac_cv_path_GENPNG+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8557else
8558 case $GENPNG in
8559 [\\/]* | ?:[\\/]*)
8560 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8561 ;;
8562 *)
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564for as_dir in $PATH
8565do
8566 IFS=$as_save_IFS
8567 test -z "$as_dir" && as_dir=.
8568 for ac_exec_ext in '' $ac_executable_extensions; do
8569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8570 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572 break 2
8573 fi
8574done
8575 done
8576IFS=$as_save_IFS
ad6254c5 8577
f11781c5 8578 ;;
7a197a62 8579esac
f11781c5
AK
8580fi
8581GENPNG=$ac_cv_path_GENPNG
8582if test -n "$GENPNG"; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8584$as_echo "$GENPNG" >&6; }
ad6254c5 8585else
f11781c5
AK
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587$as_echo "no" >&6; }
8588fi
8589
8590
8591 if test -n "$GENPNG"; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8593$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8594 if $GENPNG --help > /dev/null 2>&1 ; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8596$as_echo "ok" >&6; }
8597 GENHTML="$GENHTML --frames"
8598 else
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8600$as_echo "not supported" >&6; }
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8602$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8603 GENPNG=
8604 fi
8605 fi
8606fi
ad6254c5 8607
f11781c5
AK
8608################################################################################
8609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8610$as_echo_n "checking whether to enable unit testing... " >&6; }
8611# Check whether --enable-testing was given.
8612if test "${enable_testing+set}" = set; then :
8613 enableval=$enable_testing; TESTING=$enableval
8614else
8615 TESTING=no
ad6254c5 8616fi
7a197a62 8617
f11781c5
AK
8618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8619$as_echo "$TESTING" >&6; }
72b2cb61 8620
f11781c5
AK
8621if test "$TESTING" = yes; then
8622 # Extract the first word of "ruby1.9", so it can be a program name with args.
8623set dummy ruby1.9; ac_word=$2
8624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8625$as_echo_n "checking for $ac_word... " >&6; }
8626if test "${ac_cv_path_RUBY19+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8628else
8629 case $RUBY19 in
8630 [\\/]* | ?:[\\/]*)
8631 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
8632 ;;
8633 *)
8634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635for as_dir in $PATH
8636do
8637 IFS=$as_save_IFS
8638 test -z "$as_dir" && as_dir=.
8639 for ac_exec_ext in '' $ac_executable_extensions; do
8640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8641 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
8642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8643 break 2
8644 fi
bc1024f8 8645done
f11781c5
AK
8646 done
8647IFS=$as_save_IFS
ad6254c5 8648
f11781c5
AK
8649 ;;
8650esac
ad6254c5 8651fi
f11781c5
AK
8652RUBY19=$ac_cv_path_RUBY19
8653if test -n "$RUBY19"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8655$as_echo "$RUBY19" >&6; }
ad6254c5 8656else
f11781c5
AK
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658$as_echo "no" >&6; }
7a197a62
AK
8659fi
8660
ad6254c5 8661
f11781c5
AK
8662 # Extract the first word of "valgrind", so it can be a program name with args.
8663set dummy valgrind; ac_word=$2
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 8665$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 8666if test "${ac_cv_path_VALGRIND+set}" = set; then :
ec6a6fbe 8667 $as_echo_n "(cached) " >&6
ad6254c5 8668else
f11781c5 8669 case $VALGRIND in
ad6254c5 8670 [\\/]* | ?:[\\/]*)
f11781c5 8671 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
ad6254c5
AK
8672 ;;
8673 *)
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675for as_dir in $PATH
8676do
8677 IFS=$as_save_IFS
8678 test -z "$as_dir" && as_dir=.
f11781c5 8679 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 8680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
8681 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
8682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
8683 break 2
8684 fi
8685done
f11781c5 8686 done
7a197a62 8687IFS=$as_save_IFS
ad6254c5
AK
8688
8689 ;;
8690esac
8691fi
f11781c5
AK
8692VALGRIND=$ac_cv_path_VALGRIND
8693if test -n "$VALGRIND"; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8695$as_echo "$VALGRIND" >&6; }
ad6254c5 8696else
f11781c5 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 8698$as_echo "no" >&6; }
ad6254c5
AK
8699fi
8700
7a197a62 8701
f11781c5
AK
8702 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8703 as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5
8704 fi
8705fi
ad6254c5 8706
f11781c5
AK
8707################################################################################
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8709$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8710# Check whether --enable-valgrind_pool was given.
8711if test "${enable_valgrind_pool+set}" = set; then :
8712 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8713else
8714 VALGRIND_POOL=no
8715fi
8716
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8718$as_echo "$VALGRIND_POOL" >&6; }
8719
8720if test "$VALGRIND_POOL" = yes; then
8721 for ac_header in valgrind/memcheck.h
8722do :
8723 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8724if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8725 cat >>confdefs.h <<_ACEOF
8726#define HAVE_VALGRIND_MEMCHECK_H 1
8727_ACEOF
ad6254c5 8728
ad6254c5 8729else
f11781c5 8730 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8731fi
8732
f11781c5
AK
8733done
8734
8735
8736$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8737
ad6254c5
AK
8738fi
8739
8740################################################################################
f11781c5
AK
8741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8742$as_echo_n "checking whether to use device-mapper... " >&6; }
8743# Check whether --enable-devmapper was given.
8744if test "${enable_devmapper+set}" = set; then :
8745 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8746fi
8747
f11781c5
AK
8748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8749$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8750
f11781c5 8751if test x$DEVMAPPER = xyes; then
ad6254c5 8752
f11781c5
AK
8753$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8754
8755fi
8756
8757################################################################################
8758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8759$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8760# Check whether --enable-udev_sync was given.
8761if test "${enable_udev_sync+set}" = set; then :
8762 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8763else
f11781c5 8764 UDEV_SYNC=no
7a197a62 8765fi
ad6254c5 8766
f11781c5
AK
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8768$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8769
f11781c5 8770if test x$UDEV_SYNC = xyes; then
86ba564a
AK
8771 if test x$PKGCONFIG_INIT != x1; then
8772 pkg_config_init
8773 fi
7a197a62 8774
d93275eb
PR
8775pkg_failed=no
8776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8777$as_echo_n "checking for UDEV... " >&6; }
8778
8779if test -n "$UDEV_CFLAGS"; then
8780 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8781 elif test -n "$PKG_CONFIG"; then
8782 if test -n "$PKG_CONFIG" && \
8783 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8784 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8785 ac_status=$?
8786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8787 test $ac_status = 0; }; then
8788 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
68f2de6d 8789else
d93275eb 8790 pkg_failed=yes
f11781c5 8791fi
d93275eb
PR
8792 else
8793 pkg_failed=untried
f11781c5 8794fi
d93275eb
PR
8795if test -n "$UDEV_LIBS"; then
8796 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8797 elif test -n "$PKG_CONFIG"; then
8798 if test -n "$PKG_CONFIG" && \
8799 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8800 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8801 ac_status=$?
8802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8803 test $ac_status = 0; }; then
8804 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
f11781c5 8805else
d93275eb 8806 pkg_failed=yes
68f2de6d 8807fi
d93275eb
PR
8808 else
8809 pkg_failed=untried
8810fi
8811
8812
8813
8814if test $pkg_failed = yes; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816$as_echo "no" >&6; }
8817
8818if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8819 _pkg_short_errors_supported=yes
8820else
8821 _pkg_short_errors_supported=no
8822fi
8823 if test $_pkg_short_errors_supported = yes; then
8824 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8825 else
8826 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8827 fi
8828 # Put the nasty error message in config.log where it belongs
8829 echo "$UDEV_PKG_ERRORS" >&5
8830
8831 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8832
8833$UDEV_PKG_ERRORS
8834
8835Consider adjusting the PKG_CONFIG_PATH environment variable if you
8836installed software in a non-standard prefix.
8837
8838Alternatively, you may set the environment variables UDEV_CFLAGS
8839and UDEV_LIBS to avoid the need to call pkg-config.
8840See the pkg-config man page for more details." "$LINENO" 5
68f2de6d 8841
d93275eb
PR
8842elif test $pkg_failed = untried; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844$as_echo "no" >&6; }
8845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8847as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8848is in your PATH or set the PKG_CONFIG environment variable to the full
8849path to pkg-config.
8850
8851Alternatively, you may set the environment variables UDEV_CFLAGS
8852and UDEV_LIBS to avoid the need to call pkg-config.
8853See the pkg-config man page for more details.
8854
8855To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8856See \`config.log' for more details" "$LINENO" 5; }
8857
8858else
8859 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8860 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8862$as_echo "yes" >&6; }
8863 UDEV_PC="libudev"
8864fi
68f2de6d 8865
f11781c5 8866$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8867
f11781c5
AK
8868fi
8869
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8871$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8872# Check whether --enable-udev_rules was given.
8873if test "${enable_udev_rules+set}" = set; then :
8874 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 8875else
f11781c5 8876 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
8877fi
8878
f11781c5
AK
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8880$as_echo "$UDEV_RULES" >&6; }
68f2de6d 8881
a5f46f6a 8882################################################################################
f11781c5
AK
8883# Check whether --enable-compat was given.
8884if test "${enable_compat+set}" = set; then :
8885 enableval=$enable_compat; DM_COMPAT=$enableval
8886else
8887 DM_COMPAT=no
8888fi
a5f46f6a 8889
f11781c5
AK
8890
8891################################################################################
8892# Check whether --enable-units-compat was given.
8893if test "${enable_units_compat+set}" = set; then :
8894 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 8895else
f11781c5 8896 UNITS_COMPAT=no
a5f46f6a
AK
8897fi
8898
8899
f11781c5 8900if test x$UNITS_COMPAT = xyes; then
78ce7acc 8901
f11781c5
AK
8902$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8903
8904fi
8905
8906################################################################################
8907# Check whether --enable-ioctl was given.
8908if test "${enable_ioctl+set}" = set; then :
8909 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
8910fi
8911
a5f46f6a 8912
ad6254c5 8913################################################################################
f11781c5
AK
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8915$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8916# Check whether --enable-o_direct was given.
8917if test "${enable_o_direct+set}" = set; then :
8918 enableval=$enable_o_direct; ODIRECT=$enableval
8919fi
ad6254c5 8920
f11781c5
AK
8921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8922$as_echo "$ODIRECT" >&6; }
8923
8924if test x$ODIRECT = xyes; then
8925
8926$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 8927
ad6254c5 8928fi
ad6254c5 8929
f11781c5
AK
8930################################################################################
8931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8932$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8933# Check whether --enable-applib was given.
8934if test "${enable_applib+set}" = set; then :
8935 enableval=$enable_applib; APPLIB=$enableval
8936else
8937 APPLIB=no
ad6254c5 8938fi
7a197a62 8939
f11781c5
AK
8940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8941$as_echo "$APPLIB" >&6; }
ad6254c5 8942
f11781c5
AK
8943test x$APPLIB = xyes \
8944 && LVM2APP_LIB=-llvm2app \
8945 || LVM2APP_LIB=
ad6254c5 8946
f11781c5
AK
8947################################################################################
8948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8949$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8950# Check whether --enable-cmdlib was given.
8951if test "${enable_cmdlib+set}" = set; then :
8952 enableval=$enable_cmdlib; CMDLIB=$enableval
8953else
8954 CMDLIB=no
ad6254c5 8955fi
7a197a62 8956
f11781c5
AK
8957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8958$as_echo "$CMDLIB" >&6; }
7a197a62 8959
f11781c5
AK
8960test x$CMDLIB = xyes \
8961 && LVM2CMD_LIB=-llvm2cmd \
8962 || LVM2CMD_LIB=
8963
8964################################################################################
8965# Check whether --enable-pkgconfig was given.
8966if test "${enable_pkgconfig+set}" = set; then :
8967 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 8968else
f11781c5 8969 PKGCONFIG=no
ad6254c5 8970fi
ad6254c5 8971
ad6254c5 8972
f11781c5
AK
8973################################################################################
8974# Check whether --enable-write_install was given.
8975if test "${enable_write_install+set}" = set; then :
8976 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 8977else
f11781c5 8978 WRITE_INSTALL=no
ad6254c5
AK
8979fi
8980
ad6254c5 8981
f11781c5
AK
8982################################################################################
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8984$as_echo_n "checking whether to install fsadm... " >&6; }
8985# Check whether --enable-fsadm was given.
8986if test "${enable_fsadm+set}" = set; then :
8987 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
8988fi
8989
f11781c5
AK
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8991$as_echo "$FSADM" >&6; }
ad6254c5 8992
f11781c5
AK
8993################################################################################
8994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8995$as_echo_n "checking whether to use dmeventd... " >&6; }
8996# Check whether --enable-dmeventd was given.
8997if test "${enable_dmeventd+set}" = set; then :
8998 enableval=$enable_dmeventd; DMEVENTD=$enableval
8999fi
ad6254c5 9000
f11781c5
AK
9001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
9002$as_echo "$DMEVENTD" >&6; }
ad6254c5 9003
f11781c5 9004BUILD_DMEVENTD=$DMEVENTD
ad6254c5 9005
f11781c5
AK
9006if test x$DMEVENTD = xyes; then
9007 if test x$MIRRORS != xinternal; then
9008 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
9009 " "$LINENO" 5
9010 fi
9011 if test x$CMDLIB = xno; then
9012 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
9013 " "$LINENO" 5
9014 fi
9015fi
ad6254c5 9016
f11781c5 9017if test x$DMEVENTD = xyes; then
ad6254c5 9018
f11781c5 9019$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 9020
f11781c5 9021fi
ad6254c5 9022
f11781c5 9023################################################################################
ad6254c5 9024
f11781c5
AK
9025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
9026$as_echo_n "checking for getline in -lc... " >&6; }
9027if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 9028 $as_echo_n "(cached) " >&6
ad6254c5 9029else
f11781c5
AK
9030 ac_check_lib_save_LIBS=$LIBS
9031LIBS="-lc $LIBS"
9032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9033/* end confdefs.h. */
f11781c5
AK
9034
9035/* Override any GCC internal prototype to avoid an error.
9036 Use char because int might match the return type of a GCC
9037 builtin and then its argument prototype would still apply. */
9038#ifdef __cplusplus
9039extern "C"
9040#endif
9041char getline ();
9042int
9043main ()
9044{
9045return getline ();
9046 ;
9047 return 0;
9048}
ad6254c5 9049_ACEOF
f11781c5
AK
9050if ac_fn_c_try_link "$LINENO"; then :
9051 ac_cv_lib_c_getline=yes
ad6254c5 9052else
f11781c5
AK
9053 ac_cv_lib_c_getline=no
9054fi
9055rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9057LIBS=$ac_check_lib_save_LIBS
9058fi
9059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9060$as_echo "$ac_cv_lib_c_getline" >&6; }
9061if test "x$ac_cv_lib_c_getline" = x""yes; then :
9062
9063$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 9064
ad6254c5 9065fi
7a197a62 9066
ad6254c5 9067
f11781c5
AK
9068################################################################################
9069
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9071$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9072if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9074else
9075 ac_check_lib_save_LIBS=$LIBS
9076LIBS="-lc $LIBS"
9077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9078/* end confdefs.h. */
f11781c5
AK
9079
9080/* Override any GCC internal prototype to avoid an error.
9081 Use char because int might match the return type of a GCC
9082 builtin and then its argument prototype would still apply. */
9083#ifdef __cplusplus
9084extern "C"
9085#endif
9086char canonicalize_file_name ();
9087int
9088main ()
9089{
9090return canonicalize_file_name ();
9091 ;
9092 return 0;
9093}
ad6254c5 9094_ACEOF
f11781c5
AK
9095if ac_fn_c_try_link "$LINENO"; then :
9096 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 9097else
f11781c5
AK
9098 ac_cv_lib_c_canonicalize_file_name=no
9099fi
9100rm -f core conftest.err conftest.$ac_objext \
9101 conftest$ac_exeext conftest.$ac_ext
9102LIBS=$ac_check_lib_save_LIBS
9103fi
9104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9105$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9106if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9107
9108$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 9109
ad6254c5 9110fi
7a197a62 9111
ad6254c5 9112
f11781c5
AK
9113################################################################################
9114if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9115 then exec_prefix="";
9116fi;
7a197a62 9117
f11781c5
AK
9118################################################################################
9119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9120$as_echo_n "checking for dlopen in -ldl... " >&6; }
9121if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 9122 $as_echo_n "(cached) " >&6
ad6254c5 9123else
f11781c5
AK
9124 ac_check_lib_save_LIBS=$LIBS
9125LIBS="-ldl $LIBS"
9126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127/* end confdefs.h. */
ad6254c5 9128
f11781c5
AK
9129/* Override any GCC internal prototype to avoid an error.
9130 Use char because int might match the return type of a GCC
9131 builtin and then its argument prototype would still apply. */
9132#ifdef __cplusplus
9133extern "C"
9134#endif
9135char dlopen ();
9136int
9137main ()
9138{
9139return dlopen ();
9140 ;
9141 return 0;
9142}
ad6254c5 9143_ACEOF
f11781c5
AK
9144if ac_fn_c_try_link "$LINENO"; then :
9145 ac_cv_lib_dl_dlopen=yes
ad6254c5 9146else
f11781c5 9147 ac_cv_lib_dl_dlopen=no
795ca3e5 9148fi
f11781c5
AK
9149rm -f core conftest.err conftest.$ac_objext \
9150 conftest$ac_exeext conftest.$ac_ext
9151LIBS=$ac_check_lib_save_LIBS
9152fi
9153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9154$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9155if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 9156
ad6254c5 9157
f11781c5 9158$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 9159
f11781c5
AK
9160 DL_LIBS="-ldl"
9161 HAVE_LIBDL=yes
9162else
795ca3e5 9163
f11781c5
AK
9164 DL_LIBS=
9165 HAVE_LIBDL=no
9166fi
8106cdd5 9167
ad6254c5 9168
f11781c5
AK
9169################################################################################
9170if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9171 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9172 \) -a "x$STATIC_LINK" = xyes ];
9173 then as_fn_error $? "Features cannot be 'shared' when building statically
9174" "$LINENO" 5
9175fi
ad6254c5 9176
f11781c5
AK
9177################################################################################
9178if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9180$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9181if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 9182 $as_echo_n "(cached) " >&6
795ca3e5 9183else
f11781c5
AK
9184 ac_check_lib_save_LIBS=$LIBS
9185LIBS="-lpthread $LIBS"
9186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9187/* end confdefs.h. */
8a2fc586 9188
f11781c5
AK
9189/* Override any GCC internal prototype to avoid an error.
9190 Use char because int might match the return type of a GCC
9191 builtin and then its argument prototype would still apply. */
9192#ifdef __cplusplus
9193extern "C"
ad6254c5 9194#endif
f11781c5
AK
9195char pthread_mutex_lock ();
9196int
9197main ()
9198{
9199return pthread_mutex_lock ();
9200 ;
9201 return 0;
9202}
9203_ACEOF
9204if ac_fn_c_try_link "$LINENO"; then :
9205 ac_cv_lib_pthread_pthread_mutex_lock=yes
9206else
9207 ac_cv_lib_pthread_pthread_mutex_lock=no
9208fi
9209rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9211LIBS=$ac_check_lib_save_LIBS
9212fi
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9214$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9215if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9216 PTHREAD_LIBS="-lpthread"
9217else
9218 hard_bailout
9219fi
9220
9221fi
9222
9223################################################################################
9224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9225$as_echo_n "checking whether to enable selinux support... " >&6; }
9226# Check whether --enable-selinux was given.
9227if test "${enable_selinux+set}" = set; then :
9228 enableval=$enable_selinux; SELINUX=$enableval
9229fi
9230
9231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9232$as_echo "$SELINUX" >&6; }
8a2fc586 9233
f11781c5
AK
9234################################################################################
9235if test x$SELINUX = xyes; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9237$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9238if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
9240else
9241 ac_check_lib_save_LIBS=$LIBS
9242LIBS="-lsepol $LIBS"
9243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244/* end confdefs.h. */
8a2fc586 9245
7a197a62
AK
9246/* Override any GCC internal prototype to avoid an error.
9247 Use char because int might match the return type of a GCC
9248 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9249#ifdef __cplusplus
9250extern "C"
ad6254c5 9251#endif
f11781c5 9252char sepol_check_context ();
ad6254c5
AK
9253int
9254main ()
9255{
f11781c5 9256return sepol_check_context ();
ad6254c5
AK
9257 ;
9258 return 0;
9259}
9260_ACEOF
f11781c5
AK
9261if ac_fn_c_try_link "$LINENO"; then :
9262 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9263else
f11781c5
AK
9264 ac_cv_lib_sepol_sepol_check_context=no
9265fi
9266rm -f core conftest.err conftest.$ac_objext \
9267 conftest$ac_exeext conftest.$ac_ext
9268LIBS=$ac_check_lib_save_LIBS
80992638 9269fi
f11781c5
AK
9270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9271$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9272if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9273
80992638 9274
f11781c5
AK
9275$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9276
9277 SELINUX_LIBS="-lsepol"
8106cdd5 9278fi
795ca3e5 9279
f11781c5
AK
9280
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9282$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9283if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9284 $as_echo_n "(cached) " >&6
25fbec5b 9285else
f11781c5
AK
9286 ac_check_lib_save_LIBS=$LIBS
9287LIBS="-lselinux $LIBS"
9288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9289/* end confdefs.h. */
80992638 9290
7a197a62
AK
9291/* Override any GCC internal prototype to avoid an error.
9292 Use char because int might match the return type of a GCC
ad6254c5 9293 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9294#ifdef __cplusplus
9295extern "C"
9296#endif
f11781c5 9297char is_selinux_enabled ();
ad6254c5
AK
9298int
9299main ()
9300{
f11781c5 9301return is_selinux_enabled ();
ad6254c5
AK
9302 ;
9303 return 0;
9304}
9305_ACEOF
f11781c5
AK
9306if ac_fn_c_try_link "$LINENO"; then :
9307 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9308else
f11781c5 9309 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9310fi
f11781c5
AK
9311rm -f core conftest.err conftest.$ac_objext \
9312 conftest$ac_exeext conftest.$ac_ext
9313LIBS=$ac_check_lib_save_LIBS
25fbec5b 9314fi
f11781c5
AK
9315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9316$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9317if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9318
f11781c5
AK
9319 for ac_header in selinux/selinux.h
9320do :
9321 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9322if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9323 cat >>confdefs.h <<_ACEOF
9324#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9325_ACEOF
795ca3e5 9326
25fbec5b 9327else
f11781c5 9328 hard_bailout
795ca3e5 9329fi
795ca3e5 9330
f11781c5 9331done
795ca3e5 9332
f11781c5
AK
9333 for ac_header in selinux/label.h
9334do :
9335 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9336if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9337 cat >>confdefs.h <<_ACEOF
9338#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9339_ACEOF
ad6254c5 9340
ad6254c5 9341fi
7a197a62 9342
f11781c5 9343done
7a197a62 9344
ad6254c5 9345
f11781c5 9346$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9347
f11781c5
AK
9348 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9349 SELINUX_PC="libselinux"
9350 HAVE_SELINUX=yes
ad6254c5 9351else
8106cdd5 9352
f11781c5
AK
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9354$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9355 SELINUX_LIBS=
9356 SELINUX_PC=
9357 HAVE_SELINUX=no
795ca3e5 9358fi
ad6254c5 9359
795ca3e5
AK
9360fi
9361
f11781c5
AK
9362################################################################################
9363if test x$REALTIME = xyes; then
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9365$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9366if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9367 $as_echo_n "(cached) " >&6
26e7f2e0 9368else
f11781c5
AK
9369 ac_check_lib_save_LIBS=$LIBS
9370LIBS="-lrt $LIBS"
9371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9372/* end confdefs.h. */
ad6254c5 9373
f11781c5
AK
9374/* Override any GCC internal prototype to avoid an error.
9375 Use char because int might match the return type of a GCC
9376 builtin and then its argument prototype would still apply. */
9377#ifdef __cplusplus
9378extern "C"
9379#endif
9380char clock_gettime ();
ad6254c5
AK
9381int
9382main ()
9383{
f11781c5 9384return clock_gettime ();
ad6254c5
AK
9385 ;
9386 return 0;
9387}
9388_ACEOF
f11781c5
AK
9389if ac_fn_c_try_link "$LINENO"; then :
9390 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9391else
f11781c5 9392 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9393fi
f11781c5
AK
9394rm -f core conftest.err conftest.$ac_objext \
9395 conftest$ac_exeext conftest.$ac_ext
9396LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9397fi
f11781c5
AK
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9399$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9400if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9401 HAVE_REALTIME=yes
9402else
9403 HAVE_REALTIME=no
8106cdd5 9404fi
ad6254c5 9405
ad6254c5 9406
f11781c5 9407 if test x$HAVE_REALTIME = xyes; then
7a197a62 9408
f11781c5 9409$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9410
f11781c5
AK
9411 LIBS="-lrt $LIBS"
9412 else
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9414$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9415 fi
9416fi
9417
9418################################################################################
9419for ac_header in getopt.h
9420do :
9421 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9422if test "x$ac_cv_header_getopt_h" = x""yes; then :
9423 cat >>confdefs.h <<_ACEOF
9424#define HAVE_GETOPT_H 1
9425_ACEOF
9426
9427$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9428
ad6254c5 9429fi
7a197a62 9430
f11781c5 9431done
ad6254c5 9432
7a197a62 9433
f11781c5
AK
9434################################################################################
9435if test x$READLINE != xno; then
9436 lvm_saved_libs=$LIBS
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9438$as_echo_n "checking for library containing tgetent... " >&6; }
9439if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9440 $as_echo_n "(cached) " >&6
ad6254c5 9441else
f11781c5
AK
9442 ac_func_search_save_LIBS=$LIBS
9443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444/* end confdefs.h. */
ad6254c5 9445
f11781c5
AK
9446/* Override any GCC internal prototype to avoid an error.
9447 Use char because int might match the return type of a GCC
9448 builtin and then its argument prototype would still apply. */
9449#ifdef __cplusplus
9450extern "C"
9451#endif
9452char tgetent ();
9453int
9454main ()
9455{
9456return tgetent ();
9457 ;
9458 return 0;
9459}
ad6254c5 9460_ACEOF
f11781c5
AK
9461for ac_lib in '' tinfo ncurses curses termcap termlib; do
9462 if test -z "$ac_lib"; then
9463 ac_res="none required"
9464 else
9465 ac_res=-l$ac_lib
9466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9467 fi
9468 if ac_fn_c_try_link "$LINENO"; then :
9469 ac_cv_search_tgetent=$ac_res
9470fi
9471rm -f core conftest.err conftest.$ac_objext \
9472 conftest$ac_exeext
9473 if test "${ac_cv_search_tgetent+set}" = set; then :
9474 break
9475fi
9476done
9477if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9478
80992638 9479else
f11781c5 9480 ac_cv_search_tgetent=no
b896caa1 9481fi
f11781c5
AK
9482rm conftest.$ac_ext
9483LIBS=$ac_func_search_save_LIBS
9484fi
9485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9486$as_echo "$ac_cv_search_tgetent" >&6; }
9487ac_res=$ac_cv_search_tgetent
9488if test "$ac_res" != no; then :
9489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9490 READLINE_LIBS=$ac_cv_search_tgetent
9491else
ad6254c5 9492
f11781c5
AK
9493 if test "$READLINE" = yes; then
9494 as_fn_error $? "termcap could not be found which is required for the
9495--enable-readline option (which is enabled by default). Either disable readline
9496support with --disable-readline or download and install termcap from:
9497 ftp.gnu.org/gnu/termcap
9498Note: if you are using precompiled packages you will also need the development
9499 package as well (which may be called termcap-devel or something similar).
9500Note: (n)curses also seems to work as a substitute for termcap. This was
9501 not found either - but you could try installing that as well." "$LINENO" 5
9502 fi
9503fi
b896caa1 9504
f11781c5
AK
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9506$as_echo_n "checking for readline in -lreadline... " >&6; }
9507if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9508 $as_echo_n "(cached) " >&6
795ca3e5 9509else
f11781c5
AK
9510 ac_check_lib_save_LIBS=$LIBS
9511LIBS="-lreadline $LIBS"
9512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9513/* end confdefs.h. */
8a2fc586 9514
f11781c5
AK
9515/* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9518#ifdef __cplusplus
9519extern "C"
ad6254c5 9520#endif
f11781c5
AK
9521char readline ();
9522int
9523main ()
9524{
9525return readline ();
9526 ;
9527 return 0;
9528}
9529_ACEOF
9530if ac_fn_c_try_link "$LINENO"; then :
9531 ac_cv_lib_readline_readline=yes
9532else
9533 ac_cv_lib_readline_readline=no
9534fi
9535rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537LIBS=$ac_check_lib_save_LIBS
9538fi
9539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9540$as_echo "$ac_cv_lib_readline_readline" >&6; }
9541if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9542
8a2fc586 9543
f11781c5
AK
9544$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9545
9546 LIBS=$lvm_saved_libs
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9548$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9549if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9551else
9552 ac_check_lib_save_LIBS=$LIBS
9553LIBS="-lreadline $LIBS"
9554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555/* end confdefs.h. */
8a2fc586 9556
7a197a62
AK
9557/* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9560#ifdef __cplusplus
9561extern "C"
ad6254c5 9562#endif
f11781c5 9563char rl_line_buffer ();
ad6254c5
AK
9564int
9565main ()
9566{
f11781c5 9567return rl_line_buffer ();
ad6254c5
AK
9568 ;
9569 return 0;
9570}
9571_ACEOF
f11781c5
AK
9572if ac_fn_c_try_link "$LINENO"; then :
9573 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9574else
f11781c5
AK
9575 ac_cv_lib_readline_rl_line_buffer=no
9576fi
9577rm -f core conftest.err conftest.$ac_objext \
9578 conftest$ac_exeext conftest.$ac_ext
9579LIBS=$ac_check_lib_save_LIBS
9580fi
9581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9582$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9583if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9584 READLINE_LIBS="-lreadline"
9585else
9586
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9588$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9589 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9590
ad6254c5 9591fi
7a197a62 9592
f11781c5
AK
9593else
9594
9595 READLINE_LIBS=
9596 if test "$READLINE" = yes; then
9597 as_fn_error $? "GNU Readline could not be found which is required for the
9598--enable-readline option (which is enabled by default). Either disable readline
9599support with --disable-readline or download and install readline from:
9600 ftp.gnu.org/gnu/readline
9601Note: if you are using precompiled packages you will also need the development
9602package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9603 fi
ad6254c5 9604fi
f11781c5
AK
9605
9606 LIBS="$READLINE_LIBS $lvm_saved_libs"
9607 for ac_func in rl_completion_matches
9608do :
9609 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9610if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9611 cat >>confdefs.h <<_ACEOF
f11781c5 9612#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9613_ACEOF
9614
ad6254c5
AK
9615fi
9616done
9617
f11781c5 9618 LIBS=$lvm_saved_libs
ad6254c5
AK
9619fi
9620
f11781c5
AK
9621################################################################################
9622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9623$as_echo_n "checking whether to enable internationalisation... " >&6; }
9624# Check whether --enable-nls was given.
9625if test "${enable_nls+set}" = set; then :
9626 enableval=$enable_nls; INTL=$enableval
9627else
9628 INTL=no
9629fi
d911ec67 9630
f11781c5
AK
9631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9632$as_echo "$INTL" >&6; }
9633
9634if test x$INTL = xyes; then
9635# FIXME - Move this - can be device-mapper too
9636 INTL_PACKAGE="lvm2"
9637 # Extract the first word of "msgfmt", so it can be a program name with args.
9638set dummy msgfmt; ac_word=$2
9639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640$as_echo_n "checking for $ac_word... " >&6; }
9641if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9642 $as_echo_n "(cached) " >&6
d911ec67 9643else
f11781c5
AK
9644 case $MSGFMT in
9645 [\\/]* | ?:[\\/]*)
9646 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9647 ;;
9648 *)
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650for as_dir in $PATH
9651do
9652 IFS=$as_save_IFS
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9658 break 2
9659 fi
9660done
9661 done
9662IFS=$as_save_IFS
9663
9664 ;;
d911ec67 9665esac
f11781c5
AK
9666fi
9667MSGFMT=$ac_cv_path_MSGFMT
9668if test -n "$MSGFMT"; then
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9670$as_echo "$MSGFMT" >&6; }
d911ec67 9671else
f11781c5
AK
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673$as_echo "no" >&6; }
9674fi
d911ec67 9675
f11781c5
AK
9676
9677 if [ "x$MSGFMT" == x ];
9678 then as_fn_error $? "msgfmt not found in path $PATH
9679 " "$LINENO" 5
9680 fi;
9681
9682
9683# Check whether --with-localedir was given.
9684if test "${with_localedir+set}" = set; then :
9685 withval=$with_localedir; LOCALEDIR=$withval
9686else
9687 LOCALEDIR='${prefix}/share/locale'
9688fi
9689
9690fi
9691
9692################################################################################
9693
9694# Check whether --with-confdir was given.
9695if test "${with_confdir+set}" = set; then :
9696 withval=$with_confdir; CONFDIR=$withval
9697else
9698 CONFDIR="/etc"
9699fi
9700
9701
9702
9703# Check whether --with-staticdir was given.
9704if test "${with_staticdir+set}" = set; then :
9705 withval=$with_staticdir; STATICDIR=$withval
9706else
9707 STATICDIR='${exec_prefix}/sbin'
9708fi
9709
9710
9711
9712# Check whether --with-usrlibdir was given.
9713if test "${with_usrlibdir+set}" = set; then :
9714 withval=$with_usrlibdir; usrlibdir=$withval
9715else
9716 usrlibdir='${prefix}/lib'
d911ec67
AK
9717fi
9718
d911ec67 9719
d911ec67 9720
f11781c5
AK
9721# Check whether --with-usrsbindir was given.
9722if test "${with_usrsbindir+set}" = set; then :
9723 withval=$with_usrsbindir; usrsbindir=$withval
9724else
9725 usrsbindir='${prefix}/sbin'
d911ec67
AK
9726fi
9727
d911ec67 9728
f11781c5 9729################################################################################
d911ec67 9730
f11781c5
AK
9731# Check whether --with-udev_prefix was given.
9732if test "${with_udev_prefix+set}" = set; then :
9733 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9734else
f11781c5 9735 udev_prefix='${exec_prefix}'
d911ec67 9736fi
d911ec67 9737
f11781c5
AK
9738
9739
9740# Check whether --with-udevdir was given.
9741if test "${with_udevdir+set}" = set; then :
9742 withval=$with_udevdir; udevdir=$withval
9743else
9744 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9745fi
f11781c5
AK
9746
9747
9748################################################################################
9749if test x$READLINE = xyes; then
9750 for ac_header in readline/readline.h readline/history.h
9751do :
9752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9753ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9754if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9755 cat >>confdefs.h <<_ACEOF
9756#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9757_ACEOF
9758
9759else
f11781c5 9760 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9761fi
9762
9763done
9764
9765fi
9766
f11781c5
AK
9767if test x$CLVMD != xnone; then
9768 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
9769do :
9770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9771ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9772if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9773 cat >>confdefs.h <<_ACEOF
9774#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9775_ACEOF
ad6254c5 9776
f11781c5
AK
9777else
9778 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9779fi
7a197a62 9780
f11781c5 9781done
ad6254c5 9782
f11781c5
AK
9783 for ac_func in dup2 getmntent memmove select socket
9784do :
9785 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9786ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9787if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9788 cat >>confdefs.h <<_ACEOF
9789#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9790_ACEOF
ad6254c5 9791
f11781c5
AK
9792else
9793 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9794fi
f11781c5 9795done
7a197a62 9796
f11781c5
AK
9797 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9798# -lseq on Dynix/PTX, -lgen on Unixware.
9799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9800$as_echo_n "checking for library containing getmntent... " >&6; }
9801if test "${ac_cv_search_getmntent+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9803else
9804 ac_func_search_save_LIBS=$LIBS
9805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806/* end confdefs.h. */
ad6254c5 9807
f11781c5
AK
9808/* Override any GCC internal prototype to avoid an error.
9809 Use char because int might match the return type of a GCC
9810 builtin and then its argument prototype would still apply. */
9811#ifdef __cplusplus
9812extern "C"
9813#endif
9814char getmntent ();
9815int
9816main ()
9817{
9818return getmntent ();
9819 ;
9820 return 0;
9821}
9822_ACEOF
9823for ac_lib in '' sun seq gen; do
9824 if test -z "$ac_lib"; then
9825 ac_res="none required"
9826 else
9827 ac_res=-l$ac_lib
9828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9829 fi
9830 if ac_fn_c_try_link "$LINENO"; then :
9831 ac_cv_search_getmntent=$ac_res
9832fi
9833rm -f core conftest.err conftest.$ac_objext \
9834 conftest$ac_exeext
9835 if test "${ac_cv_search_getmntent+set}" = set; then :
9836 break
9837fi
9838done
9839if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 9840
ad6254c5 9841else
f11781c5 9842 ac_cv_search_getmntent=no
795ca3e5 9843fi
f11781c5
AK
9844rm conftest.$ac_ext
9845LIBS=$ac_func_search_save_LIBS
9846fi
9847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9848$as_echo "$ac_cv_search_getmntent" >&6; }
9849ac_res=$ac_cv_search_getmntent
9850if test "$ac_res" != no; then :
9851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9852 ac_cv_func_getmntent=yes
9853
9854$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 9855
f11781c5
AK
9856else
9857 ac_cv_func_getmntent=no
8106cdd5 9858fi
f11781c5
AK
9859
9860
9861 for ac_header in sys/select.h sys/socket.h
9862do :
9863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9864ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9865if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 9866 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9867#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9868_ACEOF
795ca3e5 9869
795ca3e5
AK
9870fi
9871
ad6254c5 9872done
80992638 9873
f11781c5
AK
9874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9875$as_echo_n "checking types of arguments for select... " >&6; }
9876if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 9877 $as_echo_n "(cached) " >&6
83912faa 9878else
f11781c5
AK
9879 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9880 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9881 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
9883/* end confdefs.h. */
9884$ac_includes_default
f11781c5
AK
9885#ifdef HAVE_SYS_SELECT_H
9886# include <sys/select.h>
9887#endif
9888#ifdef HAVE_SYS_SOCKET_H
9889# include <sys/socket.h>
9890#endif
9891
9892int
9893main ()
9894{
9895extern int select ($ac_arg1,
9896 $ac_arg234, $ac_arg234, $ac_arg234,
9897 $ac_arg5);
9898 ;
9899 return 0;
9900}
ad6254c5 9901_ACEOF
f11781c5
AK
9902if ac_fn_c_try_compile "$LINENO"; then :
9903 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9904fi
9905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9906 done
9907 done
9908done
9909# Provide a safe default value.
9910: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 9911
ad6254c5 9912fi
f11781c5
AK
9913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9914$as_echo "$ac_cv_func_select_args" >&6; }
9915ac_save_IFS=$IFS; IFS=','
9916set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9917IFS=$ac_save_IFS
9918shift
7a197a62 9919
f11781c5
AK
9920cat >>confdefs.h <<_ACEOF
9921#define SELECT_TYPE_ARG1 $1
9922_ACEOF
ad6254c5 9923
f11781c5
AK
9924
9925cat >>confdefs.h <<_ACEOF
9926#define SELECT_TYPE_ARG234 ($2)
ad6254c5 9927_ACEOF
f11781c5
AK
9928
9929
9930cat >>confdefs.h <<_ACEOF
9931#define SELECT_TYPE_ARG5 ($3)
ad6254c5 9932_ACEOF
ad6254c5 9933
f11781c5
AK
9934rm -f conftest*
9935
ad6254c5 9936fi
7a197a62 9937
f11781c5
AK
9938if test x$CLUSTER != xnone; then
9939 for ac_header in sys/socket.h sys/un.h
9940do :
9941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9942ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9943if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9944 cat >>confdefs.h <<_ACEOF
9945#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9946_ACEOF
ad6254c5 9947
f11781c5
AK
9948else
9949 as_fn_error $? "bailing out" "$LINENO" 5
9950fi
9951
9952done
9953
9954 for ac_func in socket
9955do :
9956 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9957if test "x$ac_cv_func_socket" = x""yes; then :
9958 cat >>confdefs.h <<_ACEOF
9959#define HAVE_SOCKET 1
9960_ACEOF
7a197a62 9961
80992638 9962else
f11781c5 9963 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 9964fi
f11781c5 9965done
83912faa 9966
69792976 9967fi
f11781c5
AK
9968
9969if test x$DMEVENTD = xyes; then
9970 for ac_header in arpa/inet.h
9971do :
9972 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9973if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 9974 cat >>confdefs.h <<_ACEOF
f11781c5 9975#define HAVE_ARPA_INET_H 1
ad6254c5 9976_ACEOF
69792976 9977
69792976 9978else
f11781c5 9979 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
9980fi
9981
ad6254c5 9982done
69792976 9983
ad6254c5
AK
9984fi
9985
f11781c5
AK
9986if test x$HAVE_LIBDL = xyes; then
9987 for ac_header in dlfcn.h
9988do :
9989 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9990if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9991 cat >>confdefs.h <<_ACEOF
9992#define HAVE_DLFCN_H 1
a5f46f6a 9993_ACEOF
a5f46f6a 9994
f11781c5
AK
9995else
9996 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9997fi
9998
f11781c5 9999done
a5f46f6a 10000
a5f46f6a
AK
10001fi
10002
f11781c5
AK
10003if test x$INTL = xyes; then
10004 for ac_header in libintl.h
10005do :
10006 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10007if test "x$ac_cv_header_libintl_h" = x""yes; then :
10008 cat >>confdefs.h <<_ACEOF
10009#define HAVE_LIBINTL_H 1
10010_ACEOF
a5f46f6a 10011
a5f46f6a 10012else
f11781c5 10013 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 10014fi
f11781c5
AK
10015
10016done
a5f46f6a
AK
10017
10018fi
f11781c5
AK
10019
10020if test x$UDEV_SYNC = xyes; then
10021 for ac_header in sys/ipc.h sys/sem.h
10022do :
10023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10024ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10025if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
10026 cat >>confdefs.h <<_ACEOF
10027#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10028_ACEOF
10029
10030else
f11781c5 10031 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
10032fi
10033
10034done
10035
10036fi
10037
a653923f
AK
10038################################################################################
10039# Extract the first word of "modprobe", so it can be a program name with args.
10040set dummy modprobe; ac_word=$2
f11781c5 10041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 10042$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 10043if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 10044 $as_echo_n "(cached) " >&6
72b2cb61
AK
10045else
10046 case $MODPROBE_CMD in
10047 [\\/]* | ?:[\\/]*)
10048 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10049 ;;
10050 *)
10051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052for as_dir in $PATH
10053do
10054 IFS=$as_save_IFS
10055 test -z "$as_dir" && as_dir=.
f11781c5 10056 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 10058 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 10059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
10060 break 2
10061 fi
10062done
f11781c5 10063 done
7a197a62 10064IFS=$as_save_IFS
72b2cb61
AK
10065
10066 ;;
10067esac
10068fi
10069MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 10070if test -n "$MODPROBE_CMD"; then
f11781c5 10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 10072$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 10073else
f11781c5 10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 10075$as_echo "no" >&6; }
72b2cb61
AK
10076fi
10077
a653923f 10078
7a197a62 10079
a653923f 10080if test x$MODPROBE_CMD != x; then
72b2cb61
AK
10081
10082cat >>confdefs.h <<_ACEOF
10083#define MODPROBE_CMD "$MODPROBE_CMD"
10084_ACEOF
10085
a653923f
AK
10086fi
10087
b5c2529b 10088
a9b601e2
ZK
10089lvm_exec_prefix=$exec_prefix
10090test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10091test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
10092
b5c2529b 10093cat >>confdefs.h <<_ACEOF
a9b601e2 10094#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
10095_ACEOF
10096
10097
10098if test "$CLVMD" != none; then
10099 clvmd_prefix=$ac_default_prefix
10100 test "$prefix" != NONE && clvmd_prefix=$prefix
10101
10102cat >>confdefs.h <<_ACEOF
10103#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
10104_ACEOF
10105
10106fi
10107
80992638 10108################################################################################
93bd259b
AK
10109if test "$BUILD_DMEVENTD" = yes; then
10110
10111# Check whether --with-dmeventd-pidfile was given.
f11781c5 10112if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 10113 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 10114else
71082be4 10115 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
10116fi
10117
93bd259b 10118
71082be4
ZK
10119cat >>confdefs.h <<_ACEOF
10120#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10121_ACEOF
93bd259b 10122
71082be4 10123fi
93bd259b
AK
10124
10125if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
10126
10127# Check whether --with-dmeventd-path was given.
f11781c5 10128if test "${with_dmeventd_path+set}" = set; then :
71082be4 10129 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 10130else
71082be4 10131 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
10132fi
10133
93bd259b 10134
71082be4
ZK
10135cat >>confdefs.h <<_ACEOF
10136#define DMEVENTD_PATH "$DMEVENTD_PATH"
10137_ACEOF
3399ae32 10138
71082be4 10139fi
3399ae32 10140
8bae0a1e
AK
10141
10142
8bae0a1e 10143# Check whether --with-default-run-dir was given.
f11781c5 10144if test "${with_default_run_dir+set}" = set; then :
8bae0a1e
AK
10145 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
10146else
10147 DEFAULT_RUN_DIR="/var/run/lvm"
10148fi
10149
10150cat >>confdefs.h <<_ACEOF
10151#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10152_ACEOF
10153
10154
71082be4 10155################################################################################
3399ae32
AK
10156
10157# Check whether --with-default-system-dir was given.
f11781c5 10158if test "${with_default_system_dir+set}" = set; then :
71082be4 10159 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 10160else
71082be4 10161 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
10162fi
10163
71082be4 10164
3399ae32
AK
10165cat >>confdefs.h <<_ACEOF
10166#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10167_ACEOF
10168
10169
10170
3399ae32 10171# Check whether --with-default-archive-subdir was given.
f11781c5 10172if test "${with_default_archive_subdir+set}" = set; then :
71082be4 10173 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 10174else
71082be4 10175 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
10176fi
10177
71082be4 10178
3399ae32
AK
10179cat >>confdefs.h <<_ACEOF
10180#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10181_ACEOF
10182
10183
10184
3399ae32 10185# Check whether --with-default-backup-subdir was given.
f11781c5 10186if test "${with_default_backup_subdir+set}" = set; then :
71082be4 10187 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 10188else
71082be4 10189 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
10190fi
10191
71082be4 10192
3399ae32
AK
10193cat >>confdefs.h <<_ACEOF
10194#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10195_ACEOF
10196
10197
10198
3399ae32 10199# Check whether --with-default-cache-subdir was given.
f11781c5 10200if test "${with_default_cache_subdir+set}" = set; then :
71082be4 10201 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 10202else
71082be4 10203 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
10204fi
10205
71082be4 10206
3399ae32
AK
10207cat >>confdefs.h <<_ACEOF
10208#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10209_ACEOF
10210
10211
10212
3399ae32 10213# Check whether --with-default-locking-dir was given.
f11781c5 10214if test "${with_default_locking_dir+set}" = set; then :
71082be4 10215 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 10216else
71082be4 10217 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
10218fi
10219
71082be4 10220
3399ae32
AK
10221cat >>confdefs.h <<_ACEOF
10222#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10223_ACEOF
10224
10225
fea55602
DW
10226################################################################################
10227
10228# Check whether --with-default-data-alignment was given.
f11781c5 10229if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
10230 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10231else
10232 DEFAULT_DATA_ALIGNMENT=1
10233fi
10234
10235
10236cat >>confdefs.h <<_ACEOF
10237#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10238_ACEOF
10239
10240
93bd259b 10241################################################################################
f11781c5 10242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10243$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10244
10245# Check whether --with-interface was given.
f11781c5 10246if test "${with_interface+set}" = set; then :
71082be4 10247 withval=$with_interface; interface=$withval
93bd259b 10248else
71082be4 10249 interface=ioctl
93bd259b
AK
10250fi
10251
10252if [ "x$interface" != xioctl ];
10253then
f11781c5 10254 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10255fi
f11781c5 10256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10257$as_echo "$interface" >&6; }
93bd259b
AK
10258
10259################################################################################
db8b5af9 10260DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10261
10262cat >>confdefs.h <<_ACEOF
10263#define DM_LIB_VERSION $DM_LIB_VERSION
10264_ACEOF
10265
10266
db8b5af9 10267DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10268
db8b5af9 10269LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10270
db8b5af9 10271VER=`cat "$srcdir"/VERSION`
bf456146 10272LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10273VER=`echo "$VER" | $AWK '{print $1}'`
10274LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10275VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10276LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10277LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10278LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10279LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10280
80992638 10281################################################################################
fae0c576 10282
83912faa 10283
795ca3e5
AK
10284
10285
10286
10287
10288
10289
5a52dca9 10290
8ef2b021 10291
199e490e 10292
69792976
AK
10293
10294
10295
d0191583 10296
69792976 10297
8106cdd5
AK
10298
10299
10300
10301
10302
d68a82ec 10303
036f273a 10304
7d1552c9 10305
8106cdd5 10306
0a62c911 10307
8106cdd5 10308
4a7f3eb2 10309
4922197a
AK
10310
10311
d8ac0fbc 10312
1a9ea74d 10313
8a2fc586
AK
10314
10315
d0191583 10316
93bd259b
AK
10317
10318
10319
10320
10321
d0191583
JM
10322
10323
10324
10325
10326
8a2fc586 10327
19a2c6e0 10328
f7f0854e
ZK
10329
10330
3ceb7608 10331
8ce0cbda 10332
8b1a3214 10333
ec6a6fbe
AK
10334
10335
10336
10337
e2997b73
AK
10338
10339
10340
10341
10342
10343
a946372e
AK
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
ec6a6fbe 10355
33f732c5 10356
66e941e8 10357
d3c8211f 10358
7e3fe830 10359
a5f46f6a
AK
10360
10361
10362
572fefeb 10363
90c80887 10364
3399ae32
AK
10365
10366
10367
10368
10369
90c80887 10370
bf456146 10371
e1b8a236 10372
0878503f 10373
8fea97b7 10374
54b362f9 10375
b1f08e51 10376
d1e8046f 10377
fea55602 10378
c89bc357 10379
37ddf259 10380
606d0858 10381
6e5c1f75 10382
68f2de6d
AK
10383
10384
80992638 10385################################################################################
6e5c1f75 10386ac_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 10387
ad6254c5 10388cat >confcache <<\_ACEOF
795ca3e5
AK
10389# This file is a shell script that caches the results of configure
10390# tests run on this system so they can be shared between configure
ad6254c5
AK
10391# scripts and configure runs, see configure's option --config-cache.
10392# It is not useful on other systems. If it contains results you don't
10393# want to keep, you may remove or edit it.
795ca3e5 10394#
ad6254c5
AK
10395# config.status only pays attention to the cache file if you give it
10396# the --recheck option to rerun configure.
795ca3e5 10397#
ad6254c5
AK
10398# `ac_cv_env_foo' variables (set or unset) will be overridden when
10399# loading this file, other *unset* `ac_cv_foo' will be assigned the
10400# following values.
10401
10402_ACEOF
10403
795ca3e5
AK
10404# The following way of writing the cache mishandles newlines in values,
10405# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10406# So, we kill variables containing newlines.
795ca3e5
AK
10407# Ultrix sh set writes to stderr and can't be redirected directly,
10408# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10409(
10410 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10411 eval ac_val=\$$ac_var
10412 case $ac_val in #(
10413 *${as_nl}*)
10414 case $ac_var in #(
f11781c5 10415 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10416$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10417 esac
10418 case $ac_var in #(
10419 _ | IFS | as_nl) ;; #(
ec6a6fbe 10420 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10421 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10422 esac ;;
10423 esac
10424 done
10425
ad6254c5 10426 (set) 2>&1 |
7a197a62
AK
10427 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10428 *${as_nl}ac_space=\ *)
f11781c5
AK
10429 # `set' does not quote correctly, so add quotes: double-quote
10430 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10431 sed -n \
8a2fc586
AK
10432 "s/'/'\\\\''/g;
10433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10434 ;; #(
ad6254c5
AK
10435 *)
10436 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10437 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10438 ;;
7a197a62
AK
10439 esac |
10440 sort
10441) |
ad6254c5 10442 sed '
7a197a62 10443 /^ac_cv_env_/b end
ad6254c5 10444 t clear
7a197a62 10445 :clear
ad6254c5
AK
10446 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10447 t end
7a197a62
AK
10448 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10449 :end' >>confcache
10450if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10451 if test -w "$cache_file"; then
10452 test "x$cache_file" != "x/dev/null" &&
f11781c5 10453 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10454$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10455 cat confcache >$cache_file
795ca3e5 10456 else
f11781c5 10457 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10458$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10459 fi
10460fi
10461rm -f confcache
10462
795ca3e5
AK
10463test "x$prefix" = xNONE && prefix=$ac_default_prefix
10464# Let make expand exec_prefix.
10465test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10466
72b2cb61 10467DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10468
10469ac_libobjs=
10470ac_ltlibobjs=
f11781c5 10471U=
ad6254c5
AK
10472for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10473 # 1. Remove the extension, and $U if already installed.
7a197a62 10474 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10475 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10476 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10477 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10478 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10479 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10480done
10481LIBOBJS=$ac_libobjs
80992638 10482
ad6254c5
AK
10483LTLIBOBJS=$ac_ltlibobjs
10484
10485
10486
10487: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10488ac_write_fail=0
ad6254c5
AK
10489ac_clean_files_save=$ac_clean_files
10490ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10491{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10492$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10493as_write_fail=0
10494cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10495#! $SHELL
10496# Generated by $as_me.
795ca3e5 10497# Run this file to recreate the current configuration.
795ca3e5 10498# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10499# configure, is in config.log if it exists.
10500
10501debug=false
10502ac_cs_recheck=false
10503ac_cs_silent=false
ad6254c5 10504
f11781c5
AK
10505SHELL=\${CONFIG_SHELL-$SHELL}
10506export SHELL
10507_ASEOF
10508cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10509## -------------------- ##
10510## M4sh Initialization. ##
10511## -------------------- ##
ad6254c5 10512
25fbec5b
AK
10513# Be more Bourne compatible
10514DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10515if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10516 emulate sh
10517 NULLCMD=:
ec6a6fbe 10518 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10519 # is contrary to our usage. Disable this feature.
10520 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10521 setopt NO_GLOB_SUBST
10522else
f11781c5
AK
10523 case `(set -o) 2>/dev/null` in #(
10524 *posix*) :
10525 set -o posix ;; #(
10526 *) :
10527 ;;
25fbec5b 10528esac
7a197a62 10529fi
25fbec5b
AK
10530
10531
ec6a6fbe
AK
10532as_nl='
10533'
10534export as_nl
10535# Printing a long string crashes Solaris 7 /usr/bin/printf.
10536as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10537as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10538as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10539# Prefer a ksh shell builtin over an external printf program on Solaris,
10540# but without wasting forks for bash or zsh.
10541if test -z "$BASH_VERSION$ZSH_VERSION" \
10542 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10543 as_echo='print -r --'
10544 as_echo_n='print -rn --'
10545elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10546 as_echo='printf %s\n'
10547 as_echo_n='printf %s'
10548else
10549 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10550 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10551 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10552 else
ec6a6fbe
AK
10553 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10554 as_echo_n_body='eval
10555 arg=$1;
f11781c5 10556 case $arg in #(
ec6a6fbe
AK
10557 *"$as_nl"*)
10558 expr "X$arg" : "X\\(.*\\)$as_nl";
10559 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10560 esac;
10561 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10562 '
10563 export as_echo_n_body
10564 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10565 fi
ec6a6fbe
AK
10566 export as_echo_body
10567 as_echo='sh -c $as_echo_body as_echo'
10568fi
10569
10570# The user is always right.
10571if test "${PATH_SEPARATOR+set}" != set; then
10572 PATH_SEPARATOR=:
10573 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10574 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10575 PATH_SEPARATOR=';'
10576 }
ad6254c5
AK
10577fi
10578
ad6254c5 10579
7a197a62
AK
10580# IFS
10581# We need space, tab and new line, in precisely that order. Quoting is
10582# there to prevent editors from complaining about space-tab.
10583# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10584# splitting by setting IFS to empty value.)
7a197a62
AK
10585IFS=" "" $as_nl"
10586
10587# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10588case $0 in #((
7a197a62
AK
10589 *[\\/]* ) as_myself=$0 ;;
10590 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591for as_dir in $PATH
10592do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
f11781c5
AK
10595 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10596 done
7a197a62
AK
10597IFS=$as_save_IFS
10598
10599 ;;
10600esac
10601# We did not find ourselves, most probably we were run as `sh COMMAND'
10602# in which case we are not to be found in the path.
10603if test "x$as_myself" = x; then
10604 as_myself=$0
10605fi
10606if test ! -f "$as_myself"; then
ec6a6fbe 10607 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10608 exit 1
7a197a62
AK
10609fi
10610
f11781c5
AK
10611# Unset variables that we do not need and which cause bugs (e.g. in
10612# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10613# suppresses any "Segmentation fault" message there. '((' could
10614# trigger a bug in pdksh 5.2.14.
10615for as_var in BASH_ENV ENV MAIL MAILPATH
10616do eval test x\${$as_var+set} = xset \
10617 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10618done
ad6254c5
AK
10619PS1='$ '
10620PS2='> '
10621PS4='+ '
10622
10623# NLS nuisances.
ec6a6fbe
AK
10624LC_ALL=C
10625export LC_ALL
10626LANGUAGE=C
10627export LANGUAGE
8106cdd5 10628
f11781c5
AK
10629# CDPATH.
10630(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10631
10632
10633# as_fn_error STATUS ERROR [LINENO LOG_FD]
10634# ----------------------------------------
10635# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10636# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10637# script with STATUS, using 1 if that was 0.
10638as_fn_error ()
10639{
10640 as_status=$1; test $as_status -eq 0 && as_status=1
10641 if test "$4"; then
10642 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10643 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10644 fi
10645 $as_echo "$as_me: error: $2" >&2
10646 as_fn_exit $as_status
10647} # as_fn_error
10648
10649
10650# as_fn_set_status STATUS
10651# -----------------------
10652# Set $? to STATUS, without forking.
10653as_fn_set_status ()
10654{
10655 return $1
10656} # as_fn_set_status
10657
10658# as_fn_exit STATUS
10659# -----------------
10660# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10661as_fn_exit ()
10662{
10663 set +e
10664 as_fn_set_status $1
10665 exit $1
10666} # as_fn_exit
10667
10668# as_fn_unset VAR
10669# ---------------
10670# Portably unset VAR.
10671as_fn_unset ()
10672{
10673 { eval $1=; unset $1;}
10674}
10675as_unset=as_fn_unset
10676# as_fn_append VAR VALUE
10677# ----------------------
10678# Append the text in VALUE to the end of the definition contained in VAR. Take
10679# advantage of any shell optimizations that allow amortized linear growth over
10680# repeated appends, instead of the typical quadratic growth present in naive
10681# implementations.
10682if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10683 eval 'as_fn_append ()
10684 {
10685 eval $1+=\$2
10686 }'
10687else
10688 as_fn_append ()
10689 {
10690 eval $1=\$$1\$2
10691 }
10692fi # as_fn_append
10693
10694# as_fn_arith ARG...
10695# ------------------
10696# Perform arithmetic evaluation on the ARGs, and store the result in the
10697# global $as_val. Take advantage of shells that can avoid forks. The arguments
10698# must be portable across $(()) and expr.
10699if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10700 eval 'as_fn_arith ()
10701 {
10702 as_val=$(( $* ))
10703 }'
10704else
10705 as_fn_arith ()
10706 {
10707 as_val=`expr "$@" || test $? -eq 1`
10708 }
10709fi # as_fn_arith
10710
10711
7a197a62
AK
10712if expr a : '\(a\)' >/dev/null 2>&1 &&
10713 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10714 as_expr=expr
10715else
10716 as_expr=false
10717fi
8106cdd5 10718
7a197a62 10719if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10720 as_basename=basename
10721else
10722 as_basename=false
10723fi
10724
f11781c5
AK
10725if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10726 as_dirname=dirname
10727else
10728 as_dirname=false
10729fi
ad6254c5 10730
7a197a62 10731as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10732$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10733 X"$0" : 'X\(//\)$' \| \
7a197a62 10734 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10735$as_echo X/"$0" |
7a197a62
AK
10736 sed '/^.*\/\([^/][^/]*\)\/*$/{
10737 s//\1/
10738 q
10739 }
10740 /^X\/\(\/\/\)$/{
10741 s//\1/
10742 q
10743 }
10744 /^X\/\(\/\).*/{
10745 s//\1/
10746 q
10747 }
10748 s/.*/./; q'`
ad6254c5 10749
f11781c5
AK
10750# Avoid depending upon Character Ranges.
10751as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10752as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10753as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10754as_cr_digits='0123456789'
10755as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10756
10757ECHO_C= ECHO_N= ECHO_T=
f11781c5 10758case `echo -n x` in #(((((
7a197a62 10759-n*)
f11781c5 10760 case `echo 'xy\c'` in
7a197a62 10761 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10762 xy) ECHO_C='\c';;
10763 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10764 ECHO_T=' ';;
7a197a62
AK
10765 esac;;
10766*)
10767 ECHO_N='-n';;
ad6254c5 10768esac
80992638 10769
ad6254c5 10770rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10771if test -d conf$$.dir; then
10772 rm -f conf$$.dir/conf$$.file
10773else
10774 rm -f conf$$.dir
ec6a6fbe
AK
10775 mkdir conf$$.dir 2>/dev/null
10776fi
10777if (echo >conf$$.file) 2>/dev/null; then
10778 if ln -s conf$$.file conf$$ 2>/dev/null; then
10779 as_ln_s='ln -s'
10780 # ... but there are two gotchas:
10781 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10782 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10783 # In both cases, we have to default to `cp -p'.
10784 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10785 as_ln_s='cp -p'
10786 elif ln conf$$.file conf$$ 2>/dev/null; then
10787 as_ln_s=ln
10788 else
ad6254c5 10789 as_ln_s='cp -p'
ec6a6fbe 10790 fi
ad6254c5
AK
10791else
10792 as_ln_s='cp -p'
10793fi
7a197a62
AK
10794rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10795rmdir conf$$.dir 2>/dev/null
8106cdd5 10796
f11781c5
AK
10797
10798# as_fn_mkdir_p
10799# -------------
10800# Create "$as_dir" as a directory, including parents if necessary.
10801as_fn_mkdir_p ()
10802{
10803
10804 case $as_dir in #(
10805 -*) as_dir=./$as_dir;;
10806 esac
10807 test -d "$as_dir" || eval $as_mkdir_p || {
10808 as_dirs=
10809 while :; do
10810 case $as_dir in #(
10811 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10812 *) as_qdir=$as_dir;;
10813 esac
10814 as_dirs="'$as_qdir' $as_dirs"
10815 as_dir=`$as_dirname -- "$as_dir" ||
10816$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10817 X"$as_dir" : 'X\(//\)[^/]' \| \
10818 X"$as_dir" : 'X\(//\)$' \| \
10819 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10820$as_echo X"$as_dir" |
10821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10822 s//\1/
10823 q
10824 }
10825 /^X\(\/\/\)[^/].*/{
10826 s//\1/
10827 q
10828 }
10829 /^X\(\/\/\)$/{
10830 s//\1/
10831 q
10832 }
10833 /^X\(\/\).*/{
10834 s//\1/
10835 q
10836 }
10837 s/.*/./; q'`
10838 test -d "$as_dir" && break
10839 done
10840 test -z "$as_dirs" || eval "mkdir $as_dirs"
10841 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10842
10843
10844} # as_fn_mkdir_p
ad6254c5 10845if mkdir -p . 2>/dev/null; then
f11781c5 10846 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 10847else
8a2fc586 10848 test -d ./-p && rmdir ./-p
ad6254c5
AK
10849 as_mkdir_p=false
10850fi
10851
25fbec5b
AK
10852if test -x / >/dev/null 2>&1; then
10853 as_test_x='test -x'
7a197a62 10854else
25fbec5b
AK
10855 if ls -dL / >/dev/null 2>&1; then
10856 as_ls_L_option=L
10857 else
10858 as_ls_L_option=
10859 fi
10860 as_test_x='
10861 eval sh -c '\''
10862 if test -d "$1"; then
ec6a6fbe 10863 test -d "$1/.";
25fbec5b 10864 else
f11781c5 10865 case $1 in #(
ec6a6fbe 10866 -*)set "./$1";;
25fbec5b 10867 esac;
f11781c5 10868 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
10869 ???[sx]*):;;*)false;;esac;fi
10870 '\'' sh
10871 '
7a197a62 10872fi
25fbec5b 10873as_executable_p=$as_test_x
ad6254c5
AK
10874
10875# Sed expression to map a string onto a valid CPP name.
8a2fc586 10876as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10877
10878# Sed expression to map a string onto a valid variable name.
8a2fc586 10879as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10880
10881
ad6254c5 10882exec 6>&1
f11781c5
AK
10883## ----------------------------------- ##
10884## Main body of $CONFIG_STATUS script. ##
10885## ----------------------------------- ##
10886_ASEOF
10887test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 10888
f11781c5
AK
10889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10890# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 10891# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
10892# values after options handling.
10893ac_log="
ad6254c5 10894This file was extended by $as_me, which was
f11781c5 10895generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
10896
10897 CONFIG_FILES = $CONFIG_FILES
10898 CONFIG_HEADERS = $CONFIG_HEADERS
10899 CONFIG_LINKS = $CONFIG_LINKS
10900 CONFIG_COMMANDS = $CONFIG_COMMANDS
10901 $ $0 $@
10902
7a197a62
AK
10903on `(hostname || uname -n) 2>/dev/null | sed 1q`
10904"
10905
ad6254c5
AK
10906_ACEOF
10907
ec6a6fbe
AK
10908case $ac_config_files in *"
10909"*) set x $ac_config_files; shift; ac_config_files=$*;;
10910esac
10911
10912case $ac_config_headers in *"
10913"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10914esac
10915
10916
10917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10918# Files that config.status was made for.
68f2de6d
AK
10919config_files="$ac_config_files"
10920config_headers="$ac_config_headers"
ad6254c5 10921
7a197a62 10922_ACEOF
ad6254c5 10923
ec6a6fbe 10924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 10925ac_cs_usage="\
f11781c5
AK
10926\`$as_me' instantiates files and other configuration actions
10927from templates according to the current configuration. Unless the files
10928and actions are specified as TAGs, all are instantiated by default.
ad6254c5 10929
f11781c5 10930Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
10931
10932 -h, --help print this help, then exit
25fbec5b 10933 -V, --version print version number and configuration settings, then exit
f11781c5 10934 --config print configuration, then exit
ec6a6fbe
AK
10935 -q, --quiet, --silent
10936 do not print progress messages
ad6254c5
AK
10937 -d, --debug don't remove temporary files
10938 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
10939 --file=FILE[:TEMPLATE]
10940 instantiate the configuration file FILE
10941 --header=FILE[:TEMPLATE]
10942 instantiate the configuration header FILE
ad6254c5
AK
10943
10944Configuration files:
10945$config_files
10946
72b2cb61
AK
10947Configuration headers:
10948$config_headers
10949
f11781c5 10950Report bugs to the package provider."
ad6254c5 10951
7a197a62 10952_ACEOF
ec6a6fbe 10953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 10954ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
10955ac_cs_version="\\
10956config.status
f11781c5
AK
10957configured by $0, generated by GNU Autoconf 2.66,
10958 with options \\"\$ac_cs_config\\"
ad6254c5 10959
f11781c5 10960Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
10961This config.status script is free software; the Free Software Foundation
10962gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
10963
10964ac_pwd='$ac_pwd'
10965srcdir='$srcdir'
10966INSTALL='$INSTALL'
fddafd51 10967MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
10968AWK='$AWK'
10969test -n "\$AWK" || AWK=awk
ad6254c5
AK
10970_ACEOF
10971
ec6a6fbe
AK
10972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10973# The default lists apply if the user does not specify any file.
ad6254c5
AK
10974ac_need_defaults=:
10975while test $# != 0
10976do
10977 case $1 in
10978 --*=*)
7a197a62
AK
10979 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10980 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
10981 ac_shift=:
10982 ;;
7a197a62 10983 *)
ad6254c5
AK
10984 ac_option=$1
10985 ac_optarg=$2
10986 ac_shift=shift
10987 ;;
ad6254c5
AK
10988 esac
10989
10990 case $ac_option in
10991 # Handling of the options.
ad6254c5
AK
10992 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10993 ac_cs_recheck=: ;;
7a197a62 10994 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 10995 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
10996 --config | --confi | --conf | --con | --co | --c )
10997 $as_echo "$ac_cs_config"; exit ;;
7a197a62 10998 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
10999 debug=: ;;
11000 --file | --fil | --fi | --f )
11001 $ac_shift
ec6a6fbe
AK
11002 case $ac_optarg in
11003 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11004 esac
f11781c5 11005 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
11006 ac_need_defaults=false;;
11007 --header | --heade | --head | --hea )
11008 $ac_shift
ec6a6fbe
AK
11009 case $ac_optarg in
11010 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11011 esac
f11781c5 11012 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 11013 ac_need_defaults=false;;
7a197a62
AK
11014 --he | --h)
11015 # Conflict between --help and --header
f11781c5
AK
11016 as_fn_error $? "ambiguous option: \`$1'
11017Try \`$0 --help' for more information.";;
7a197a62 11018 --help | --hel | -h )
ec6a6fbe 11019 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
11020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11021 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11022 ac_cs_silent=: ;;
11023
11024 # This is an error.
f11781c5
AK
11025 -*) as_fn_error $? "unrecognized option: \`$1'
11026Try \`$0 --help' for more information." ;;
ad6254c5 11027
f11781c5 11028 *) as_fn_append ac_config_targets " $1"
7a197a62 11029 ac_need_defaults=false ;;
ad6254c5
AK
11030
11031 esac
11032 shift
11033done
11034
11035ac_configure_extra_args=
11036
11037if $ac_cs_silent; then
11038 exec 6>/dev/null
11039 ac_configure_extra_args="$ac_configure_extra_args --silent"
11040fi
11041
11042_ACEOF
ec6a6fbe 11043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 11044if \$ac_cs_recheck; then
ec6a6fbe
AK
11045 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11046 shift
11047 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11048 CONFIG_SHELL='$SHELL'
7a197a62 11049 export CONFIG_SHELL
ec6a6fbe 11050 exec "\$@"
ad6254c5
AK
11051fi
11052
11053_ACEOF
ec6a6fbe 11054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11055exec 5>>config.log
11056{
11057 echo
11058 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11059## Running $as_me. ##
11060_ASBOX
ec6a6fbe 11061 $as_echo "$ac_log"
7a197a62 11062} >&5
ad6254c5 11063
7a197a62 11064_ACEOF
ec6a6fbe 11065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 11066_ACEOF
ad6254c5 11067
ec6a6fbe 11068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11069
11070# Handling of arguments.
ad6254c5
AK
11071for ac_config_target in $ac_config_targets
11072do
7a197a62
AK
11073 case $ac_config_target in
11074 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11075 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11076 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11077 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11078 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 11079 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
11080 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11081 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 11082 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 11083 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
11084 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11085 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 11086 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 11087 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 11088 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
11089 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11090 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
11091 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11092 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11093 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11094 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 11095 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 11096 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 11097 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
11098 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11099 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 11100 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 11101 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
11102 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11103 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 11104 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 11105 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 11106 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
6e5c1f75
PR
11107 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11108 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
7a197a62 11109 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 11110 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 11111 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 11112 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 11113 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
11114 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11115 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 11116 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 11117
f11781c5 11118 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 11119 esac
ad6254c5
AK
11120done
11121
7a197a62 11122
ad6254c5
AK
11123# If the user did not use the arguments to specify the items to instantiate,
11124# then the envvar interface is used. Set only those that are not.
11125# We use the long form for the default assignment because of an extremely
11126# bizarre bug on SunOS 4.1.3.
11127if $ac_need_defaults; then
11128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 11129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
11130fi
11131
11132# Have a temporary directory for convenience. Make it in the build tree
7a197a62 11133# simply because there is no reason against having it here, and in addition,
ad6254c5 11134# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
11135# Hook for its removal unless debugging.
11136# Note that there is a small window in which the directory will not be cleaned:
11137# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
11138$debug ||
11139{
7a197a62
AK
11140 tmp=
11141 trap 'exit_status=$?
11142 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11143' 0
f11781c5 11144 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 11145}
ad6254c5
AK
11146# Create a (secure) tmp directory for tmp files.
11147
11148{
7a197a62 11149 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
11150 test -n "$tmp" && test -d "$tmp"
11151} ||
11152{
7a197a62
AK
11153 tmp=./conf$$-$RANDOM
11154 (umask 077 && mkdir "$tmp")
f11781c5 11155} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 11156
ec6a6fbe
AK
11157# Set up the scripts for CONFIG_FILES section.
11158# No need to generate them if there are no CONFIG_FILES.
11159# This happens for instance with `./config.status config.h'.
1995c9ff 11160if test -n "$CONFIG_FILES"; then
7a197a62 11161
68f2de6d 11162
f11781c5
AK
11163ac_cr=`echo X | tr X '\015'`
11164# On cygwin, bash can eat \r inside `` if the user requested igncr.
11165# But we know of no other shell where ac_cr would be empty at this
11166# point, so we can use a bashism as a fallback.
11167if test "x$ac_cr" = x; then
11168 eval ac_cr=\$\'\\r\'
11169fi
ec6a6fbe
AK
11170ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11171if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11172 ac_cs_awk_cr='\\r'
11173else
11174 ac_cs_awk_cr=$ac_cr
1995c9ff 11175fi
7a197a62 11176
ec6a6fbe 11177echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 11178_ACEOF
7a197a62 11179
8106cdd5 11180
ec6a6fbe
AK
11181{
11182 echo "cat >conf$$subs.awk <<_ACEOF" &&
11183 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11184 echo "_ACEOF"
11185} >conf$$subs.sh ||
f11781c5
AK
11186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11187ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
11188ac_delim='%!_!# '
11189for ac_last_try in false false false false false :; do
ec6a6fbe 11190 . ./conf$$subs.sh ||
f11781c5 11191 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
11192
11193 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11194 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
11195 break
11196 elif $ac_last_try; then
f11781c5 11197 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
11198 else
11199 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11200 fi
11201done
ec6a6fbe
AK
11202rm -f conf$$subs.sh
11203
11204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11205cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11206_ACEOF
11207sed -n '
11208h
11209s/^/S["/; s/!.*/"]=/
11210p
11211g
11212s/^[^!]*!//
11213:repl
11214t repl
11215s/'"$ac_delim"'$//
11216t delim
11217:nl
11218h
f11781c5 11219s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11220t more1
11221s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11222p
11223n
11224b repl
11225:more1
11226s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11227p
11228g
11229s/.\{148\}//
11230t nl
11231:delim
11232h
f11781c5 11233s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11234t more2
11235s/["\\]/\\&/g; s/^/"/; s/$/"/
11236p
11237b
11238:more2
11239s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11240p
11241g
11242s/.\{148\}//
11243t delim
11244' <conf$$subs.awk | sed '
11245/^[^""]/{
11246 N
11247 s/\n//
11248}
11249' >>$CONFIG_STATUS || ac_write_fail=1
11250rm -f conf$$subs.awk
11251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11252_ACAWK
11253cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11254 for (key in S) S_is_set[key] = 1
11255 FS = "\a"
7a197a62 11256
ec6a6fbe
AK
11257}
11258{
11259 line = $ 0
11260 nfields = split(line, field, "@")
11261 substed = 0
11262 len = length(field[1])
11263 for (i = 2; i < nfields; i++) {
11264 key = field[i]
11265 keylen = length(key)
11266 if (S_is_set[key]) {
11267 value = S[key]
11268 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11269 len += length(value) + length(field[++i])
11270 substed = 1
11271 } else
11272 len += 1 + keylen
11273 }
11274
11275 print line
11276}
fddafd51 11277
ec6a6fbe 11278_ACAWK
1995c9ff 11279_ACEOF
ec6a6fbe
AK
11280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11281if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11282 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11283else
11284 cat
11285fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11286 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11287_ACEOF
11288
f11781c5
AK
11289# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11290# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11291# trailing colons and then remove the whole line if VPATH becomes empty
11292# (actually we leave an empty line to preserve line numbers).
11293if test "x$srcdir" = x.; then
f11781c5
AK
11294 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11295h
11296s///
11297s/^/:/
11298s/[ ]*$/:/
11299s/:\$(srcdir):/:/g
11300s/:\${srcdir}:/:/g
11301s/:@srcdir@:/:/g
11302s/^:*//
7a197a62 11303s/:*$//
f11781c5
AK
11304x
11305s/\(=[ ]*\).*/\1/
11306G
11307s/\n//
7a197a62
AK
11308s/^[^=]*=[ ]*$//
11309}'
11310fi
11311
ec6a6fbe 11312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11313fi # test -n "$CONFIG_FILES"
11314
ec6a6fbe
AK
11315# Set up the scripts for CONFIG_HEADERS section.
11316# No need to generate them if there are no CONFIG_HEADERS.
11317# This happens for instance with `./config.status Makefile'.
11318if test -n "$CONFIG_HEADERS"; then
11319cat >"$tmp/defines.awk" <<\_ACAWK ||
11320BEGIN {
11321_ACEOF
11322
11323# Transform confdefs.h into an awk script `defines.awk', embedded as
11324# here-document in config.status, that substitutes the proper values into
11325# config.h.in to produce config.h.
11326
11327# Create a delimiter string that does not exist in confdefs.h, to ease
11328# handling of long lines.
11329ac_delim='%!_!# '
11330for ac_last_try in false false :; do
11331 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11332 if test -z "$ac_t"; then
11333 break
11334 elif $ac_last_try; then
f11781c5 11335 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11336 else
11337 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11338 fi
11339done
11340
11341# For the awk script, D is an array of macro values keyed by name,
11342# likewise P contains macro parameters if any. Preserve backslash
11343# newline sequences.
11344
11345ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11346sed -n '
11347s/.\{148\}/&'"$ac_delim"'/g
11348t rset
11349:rset
11350s/^[ ]*#[ ]*define[ ][ ]*/ /
11351t def
11352d
11353:def
11354s/\\$//
11355t bsnl
11356s/["\\]/\\&/g
11357s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11358D["\1"]=" \3"/p
11359s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11360d
11361:bsnl
11362s/["\\]/\\&/g
11363s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11364D["\1"]=" \3\\\\\\n"\\/p
11365t cont
11366s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11367t cont
11368d
11369:cont
11370n
11371s/.\{148\}/&'"$ac_delim"'/g
11372t clear
11373:clear
11374s/\\$//
11375t bsnlc
11376s/["\\]/\\&/g; s/^/"/; s/$/"/p
11377d
11378:bsnlc
11379s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11380b cont
11381' <confdefs.h | sed '
11382s/'"$ac_delim"'/"\\\
11383"/g' >>$CONFIG_STATUS || ac_write_fail=1
11384
11385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11386 for (key in D) D_is_set[key] = 1
11387 FS = "\a"
11388}
11389/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11390 line = \$ 0
11391 split(line, arg, " ")
11392 if (arg[1] == "#") {
11393 defundef = arg[2]
11394 mac1 = arg[3]
11395 } else {
11396 defundef = substr(arg[1], 2)
11397 mac1 = arg[2]
11398 }
11399 split(mac1, mac2, "(") #)
11400 macro = mac2[1]
11401 prefix = substr(line, 1, index(line, defundef) - 1)
11402 if (D_is_set[macro]) {
11403 # Preserve the white space surrounding the "#".
11404 print prefix "define", macro P[macro] D[macro]
11405 next
11406 } else {
11407 # Replace #undef with comments. This is necessary, for example,
11408 # in the case of _POSIX_SOURCE, which is predefined and required
11409 # on some systems where configure will not decide to define it.
11410 if (defundef == "undef") {
11411 print "/*", prefix defundef, macro, "*/"
11412 next
11413 }
11414 }
11415}
11416{ print }
11417_ACAWK
11418_ACEOF
11419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11420 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11421fi # test -n "$CONFIG_HEADERS"
11422
7a197a62 11423
ec6a6fbe
AK
11424eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11425shift
11426for ac_tag
7a197a62
AK
11427do
11428 case $ac_tag in
11429 :[FHLC]) ac_mode=$ac_tag; continue;;
11430 esac
11431 case $ac_mode$ac_tag in
11432 :[FHL]*:*);;
f11781c5 11433 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11434 :[FH]-) ac_tag=-:-;;
11435 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11436 esac
11437 ac_save_IFS=$IFS
11438 IFS=:
11439 set x $ac_tag
11440 IFS=$ac_save_IFS
11441 shift
11442 ac_file=$1
11443 shift
11444
11445 case $ac_mode in
11446 :L) ac_source=$1;;
11447 :[FH])
11448 ac_file_inputs=
11449 for ac_f
11450 do
11451 case $ac_f in
11452 -) ac_f="$tmp/stdin";;
11453 *) # Look for the file first in the build tree, then in the source tree
11454 # (if the path is not absolute). The absolute path cannot be DOS-style,
11455 # because $ac_f cannot contain `:'.
11456 test -f "$ac_f" ||
11457 case $ac_f in
11458 [\\/$]*) false;;
11459 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11460 esac ||
f11781c5 11461 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11462 esac
ec6a6fbe 11463 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11464 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11465 done
11466
11467 # Let's still pretend it is `configure' which instantiates (i.e., don't
11468 # use $as_me), people would be surprised to read:
11469 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11470 configure_input='Generated from '`
11471 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11472 `' by configure.'
7a197a62
AK
11473 if test x"$ac_file" != x-; then
11474 configure_input="$ac_file. $configure_input"
f11781c5 11475 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11476$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11477 fi
ec6a6fbe
AK
11478 # Neutralize special characters interpreted by sed in replacement strings.
11479 case $configure_input in #(
11480 *\&* | *\|* | *\\* )
11481 ac_sed_conf_input=`$as_echo "$configure_input" |
11482 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11483 *) ac_sed_conf_input=$configure_input;;
11484 esac
7a197a62
AK
11485
11486 case $ac_tag in
ec6a6fbe 11487 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11489 esac
11490 ;;
80992638 11491 esac
8106cdd5 11492
7a197a62 11493 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11494$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11495 X"$ac_file" : 'X\(//\)[^/]' \| \
11496 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11497 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11498$as_echo X"$ac_file" |
7a197a62
AK
11499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11500 s//\1/
11501 q
11502 }
11503 /^X\(\/\/\)[^/].*/{
11504 s//\1/
11505 q
11506 }
11507 /^X\(\/\/\)$/{
11508 s//\1/
11509 q
11510 }
11511 /^X\(\/\).*/{
11512 s//\1/
11513 q
11514 }
11515 s/.*/./; q'`
f11781c5 11516 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11517 ac_builddir=.
11518
7a197a62
AK
11519case "$ac_dir" in
11520.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11521*)
ec6a6fbe 11522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11523 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11525 case $ac_top_builddir_sub in
11526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11528 esac ;;
11529esac
11530ac_abs_top_builddir=$ac_pwd
11531ac_abs_builddir=$ac_pwd$ac_dir_suffix
11532# for backward compatibility:
11533ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11534
11535case $srcdir in
7a197a62 11536 .) # We are building in place.
ad6254c5 11537 ac_srcdir=.
7a197a62
AK
11538 ac_top_srcdir=$ac_top_builddir_sub
11539 ac_abs_top_srcdir=$ac_pwd ;;
11540 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11541 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11542 ac_top_srcdir=$srcdir
11543 ac_abs_top_srcdir=$srcdir ;;
11544 *) # Relative name.
11545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11546 ac_top_srcdir=$ac_top_build_prefix$srcdir
11547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11548esac
7a197a62 11549ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11550
ad6254c5 11551
7a197a62
AK
11552 case $ac_mode in
11553 :F)
11554 #
11555 # CONFIG_FILE
11556 #
ad6254c5
AK
11557
11558 case $INSTALL in
11559 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11560 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11561 esac
fddafd51
ZK
11562 ac_MKDIR_P=$MKDIR_P
11563 case $MKDIR_P in
11564 [\\/$]* | ?:[\\/]* ) ;;
11565 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11566 esac
7a197a62 11567_ACEOF
795ca3e5 11568
ec6a6fbe 11569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11570# If the template does not know about datarootdir, expand it.
11571# FIXME: This hack should be removed a few years after 2.60.
11572ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11573ac_sed_dataroot='
11574/datarootdir/ {
7a197a62
AK
11575 p
11576 q
11577}
11578/@datadir@/p
11579/@docdir@/p
11580/@infodir@/p
11581/@localedir@/p
f11781c5 11582/@mandir@/p'
ec6a6fbe 11583case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11584*datarootdir*) ac_datarootdir_seen=yes;;
11585*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11587$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11588_ACEOF
ec6a6fbe 11589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11590 ac_datarootdir_hack='
11591 s&@datadir@&$datadir&g
11592 s&@docdir@&$docdir&g
11593 s&@infodir@&$infodir&g
11594 s&@localedir@&$localedir&g
11595 s&@mandir@&$mandir&g
f11781c5 11596 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11597esac
11598_ACEOF
11599
11600# Neutralize VPATH when `$srcdir' = `.'.
11601# Shell code in configure.ac might set extrasub.
11602# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11604ac_sed_extra="$ac_vpsub
ad6254c5
AK
11605$extrasub
11606_ACEOF
ec6a6fbe 11607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11608:t
11609/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11610s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11611s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11612s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11613s&@srcdir@&$ac_srcdir&;t t
11614s&@abs_srcdir@&$ac_abs_srcdir&;t t
11615s&@top_srcdir@&$ac_top_srcdir&;t t
11616s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11617s&@builddir@&$ac_builddir&;t t
11618s&@abs_builddir@&$ac_abs_builddir&;t t
11619s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11620s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11621s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11622$ac_datarootdir_hack
ec6a6fbe
AK
11623"
11624eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11625 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11626
11627test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11628 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11629 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11631which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11632$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11633which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11634
11635 rm -f "$tmp/stdin"
72b2cb61 11636 case $ac_file in
ec6a6fbe
AK
11637 -) cat "$tmp/out" && rm -f "$tmp/out";;
11638 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11639 esac \
f11781c5 11640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11641 ;;
11642 :H)
11643 #
11644 # CONFIG_HEADER
11645 #
72b2cb61 11646 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11647 {
11648 $as_echo "/* $configure_input */" \
11649 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11650 } >"$tmp/config.h" \
f11781c5 11651 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11652 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11653 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11654$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11655 else
ec6a6fbe
AK
11656 rm -f "$ac_file"
11657 mv "$tmp/config.h" "$ac_file" \
f11781c5 11658 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11659 fi
11660 else
ec6a6fbe
AK
11661 $as_echo "/* $configure_input */" \
11662 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11663 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11664 fi
7a197a62
AK
11665 ;;
11666
11667
11668 esac
11669
11670done # for ac_tag
795ca3e5 11671
795ca3e5 11672
f11781c5 11673as_fn_exit 0
ad6254c5 11674_ACEOF
ad6254c5
AK
11675ac_clean_files=$ac_clean_files_save
11676
ec6a6fbe 11677test $ac_write_fail = 0 ||
f11781c5 11678 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11679
ad6254c5
AK
11680
11681# configure is writing to config.log, and then calls config.status.
11682# config.status does its own redirection, appending to config.log.
11683# Unfortunately, on DOS this fails, as config.log is still kept open
11684# by configure, so config.status won't be able to write to it; its
11685# output is simply discarded. So we exec the FD to /dev/null,
11686# effectively closing config.log, so it can be properly (re)opened and
11687# appended to by config.status. When coming back to configure, we
11688# need to make the FD available again.
11689if test "$no_create" != yes; then
11690 ac_cs_success=:
11691 ac_config_status_args=
11692 test "$silent" = yes &&
11693 ac_config_status_args="$ac_config_status_args --quiet"
11694 exec 5>/dev/null
11695 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11696 exec 5>>config.log
11697 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11698 # would make configure fail if this is the last instruction.
f11781c5 11699 $ac_cs_success || as_fn_exit 1
ad6254c5 11700fi
ec6a6fbe 11701if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11703$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11704fi
795ca3e5 11705
2dc95e1c
AK
11706
11707if test x$ODIRECT != xyes; then
f11781c5 11708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11709$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11710fi
This page took 1.816032 seconds and 5 git commands to generate.