]> sourceware.org Git - lvm2.git/blame - configure
pre-release
[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
23b059e7 606WRITE_INSTALL
0878503f 607UDEV_SYNC
a5f46f6a 608UDEV_RULES
f7f0854e 609UDEV_PC
db724a44 610UDEV_LIBS
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
54b362f9
AK
678VALGRIND
679RUBY19
fd4728e1 680GENPNG
ec6a6fbe
AK
681GENHTML
682LCOV
90c80887
AK
683SACKPT_LIBS
684SACKPT_CFLAGS
a946372e
AK
685DLM_LIBS
686DLM_CFLAGS
e2997b73
AK
687CPG_LIBS
688CPG_CFLAGS
689CONFDB_LIBS
690CONFDB_CFLAGS
a946372e
AK
691SALCK_LIBS
692SALCK_CFLAGS
e2997b73
AK
693QUORUM_LIBS
694QUORUM_CFLAGS
a946372e
AK
695COROSYNC_LIBS
696COROSYNC_CFLAGS
697CMAN_LIBS
698CMAN_CFLAGS
699GULM_LIBS
700GULM_CFLAGS
701CCS_LIBS
702CCS_CFLAGS
703PKGCONFIGINIT_LIBS
704PKGCONFIGINIT_CFLAGS
f11781c5
AK
705PKG_CONFIG_LIBDIR
706PKG_CONFIG_PATH
e2997b73 707PKG_CONFIG
ec6a6fbe
AK
708POW_LIB
709LIBOBJS
710ALLOCA
711CSCOPE_CMD
712CFLOW_CMD
713RANLIB
714MKDIR_P
715SET_MAKE
716LN_S
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720EGREP
721GREP
722CPP
723OBJEXT
724EXEEXT
725ac_ct_CC
726CPPFLAGS
727LDFLAGS
728CFLAGS
729CC
730AWK
731SED
732target_os
733target_vendor
734target_cpu
735target
736host_os
737host_vendor
738host_cpu
739host
740build_os
741build_vendor
742build_cpu
743build
744target_alias
745host_alias
746build_alias
747LIBS
748ECHO_T
749ECHO_N
750ECHO_C
751DEFS
752mandir
753localedir
754libdir
755psdir
756pdfdir
757dvidir
758htmldir
759infodir
760docdir
761oldincludedir
762includedir
763localstatedir
764sharedstatedir
765sysconfdir
766datadir
767datarootdir
768libexecdir
769sbindir
770bindir
771program_transform_name
772prefix
773exec_prefix
f11781c5 774PACKAGE_URL
ec6a6fbe
AK
775PACKAGE_BUGREPORT
776PACKAGE_STRING
777PACKAGE_VERSION
778PACKAGE_TARNAME
779PACKAGE_NAME
780PATH_SEPARATOR
781SHELL'
ad6254c5 782ac_subst_files=''
ec6a6fbe
AK
783ac_user_opts='
784enable_option_checking
785enable_static_link
786with_user
787with_group
788with_device_uid
789with_device_gid
790with_device_mode
791enable_lvm1_fallback
792with_lvm1
793with_pool
794with_cluster
795with_snapshots
796with_mirrors
8fea97b7 797with_replicators
ec6a6fbe
AK
798enable_readline
799enable_realtime
37ddf259 800enable_ocf
606d0858 801with_ocfdir
ec6a6fbe 802with_clvmd
8c4e8a18 803with_clvmd_pidfile
66fd4529
AK
804enable_cmirrord
805with_cmirrord_pidfile
ec6a6fbe
AK
806enable_debug
807with_optimisation
808enable_profiling
54b362f9 809enable_testing
d1e8046f 810enable_valgrind_pool
ec6a6fbe 811enable_devmapper
a5f46f6a
AK
812enable_udev_sync
813enable_udev_rules
ec6a6fbe 814enable_compat
95eaa683 815enable_units_compat
ec6a6fbe
AK
816enable_ioctl
817enable_o_direct
572fefeb 818enable_applib
ec6a6fbe
AK
819enable_cmdlib
820enable_pkgconfig
23b059e7 821enable_write_install
ec6a6fbe
AK
822enable_fsadm
823enable_dmeventd
824enable_selinux
825enable_nls
826with_localedir
827with_confdir
828with_staticdir
829with_usrlibdir
830with_usrsbindir
a5f46f6a 831with_udev_prefix
78ce7acc 832with_udevdir
ec6a6fbe
AK
833with_dmeventd_pidfile
834with_dmeventd_path
8bae0a1e 835with_default_run_dir
3399ae32
AK
836with_default_system_dir
837with_default_archive_subdir
838with_default_backup_subdir
839with_default_cache_subdir
840with_default_locking_dir
fea55602 841with_default_data_alignment
ec6a6fbe
AK
842with_interface
843'
7a197a62
AK
844 ac_precious_vars='build_alias
845host_alias
846target_alias
847CC
848CFLAGS
849LDFLAGS
25fbec5b 850LIBS
7a197a62 851CPPFLAGS
e2997b73
AK
852CPP
853PKG_CONFIG
f11781c5
AK
854PKG_CONFIG_PATH
855PKG_CONFIG_LIBDIR
a946372e
AK
856PKGCONFIGINIT_CFLAGS
857PKGCONFIGINIT_LIBS
858CCS_CFLAGS
859CCS_LIBS
860GULM_CFLAGS
861GULM_LIBS
862CMAN_CFLAGS
863CMAN_LIBS
864COROSYNC_CFLAGS
865COROSYNC_LIBS
e2997b73
AK
866QUORUM_CFLAGS
867QUORUM_LIBS
a946372e
AK
868SALCK_CFLAGS
869SALCK_LIBS
e2997b73
AK
870CONFDB_CFLAGS
871CONFDB_LIBS
872CPG_CFLAGS
a946372e
AK
873CPG_LIBS
874DLM_CFLAGS
90c80887
AK
875DLM_LIBS
876SACKPT_CFLAGS
877SACKPT_LIBS'
7a197a62 878
795ca3e5
AK
879
880# Initialize some variables set by options.
ad6254c5
AK
881ac_init_help=
882ac_init_version=false
ec6a6fbe
AK
883ac_unrecognized_opts=
884ac_unrecognized_sep=
795ca3e5
AK
885# The variables have the same names as the options, with
886# dashes changed to underlines.
ad6254c5 887cache_file=/dev/null
795ca3e5 888exec_prefix=NONE
795ca3e5 889no_create=
795ca3e5
AK
890no_recursion=
891prefix=NONE
892program_prefix=NONE
893program_suffix=NONE
894program_transform_name=s,x,x,
895silent=
896site=
897srcdir=
795ca3e5
AK
898verbose=
899x_includes=NONE
900x_libraries=NONE
ad6254c5
AK
901
902# Installation directory options.
903# These are left unexpanded so users can "make install exec_prefix=/foo"
904# and all the variables that are supposed to be based on exec_prefix
905# by default will actually change.
906# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 907# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
908bindir='${exec_prefix}/bin'
909sbindir='${exec_prefix}/sbin'
910libexecdir='${exec_prefix}/libexec'
7a197a62
AK
911datarootdir='${prefix}/share'
912datadir='${datarootdir}'
795ca3e5
AK
913sysconfdir='${prefix}/etc'
914sharedstatedir='${prefix}/com'
915localstatedir='${prefix}/var'
795ca3e5
AK
916includedir='${prefix}/include'
917oldincludedir='/usr/include'
7a197a62
AK
918docdir='${datarootdir}/doc/${PACKAGE}'
919infodir='${datarootdir}/info'
920htmldir='${docdir}'
921dvidir='${docdir}'
922pdfdir='${docdir}'
923psdir='${docdir}'
924libdir='${exec_prefix}/lib'
925localedir='${datarootdir}/locale'
926mandir='${datarootdir}/man'
795ca3e5 927
795ca3e5 928ac_prev=
7a197a62 929ac_dashdash=
795ca3e5
AK
930for ac_option
931do
795ca3e5
AK
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
7a197a62 934 eval $ac_prev=\$ac_option
795ca3e5
AK
935 ac_prev=
936 continue
937 fi
938
7a197a62
AK
939 case $ac_option in
940 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 *) ac_optarg=yes ;;
942 esac
795ca3e5
AK
943
944 # Accept the important Cygnus configure options, so we can diagnose typos.
945
7a197a62
AK
946 case $ac_dashdash$ac_option in
947 --)
948 ac_dashdash=yes ;;
795ca3e5
AK
949
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 ac_prev=bindir ;;
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 953 bindir=$ac_optarg ;;
795ca3e5
AK
954
955 -build | --build | --buil | --bui | --bu)
ad6254c5 956 ac_prev=build_alias ;;
795ca3e5 957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 958 build_alias=$ac_optarg ;;
795ca3e5
AK
959
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
965 cache_file=$ac_optarg ;;
966
967 --config-cache | -C)
968 cache_file=config.cache ;;
795ca3e5 969
7a197a62 970 -datadir | --datadir | --datadi | --datad)
795ca3e5 971 ac_prev=datadir ;;
7a197a62 972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 973 datadir=$ac_optarg ;;
795ca3e5 974
7a197a62
AK
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
981
795ca3e5 982 -disable-* | --disable-*)
ec6a6fbe 983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 984 # Reject names that are not valid shell variable names.
ec6a6fbe 985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 986 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991"enable_$ac_useropt"
992"*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=no ;;
7a197a62
AK
997
998 -docdir | --docdir | --docdi | --doc | --do)
999 ac_prev=docdir ;;
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1002
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 ac_prev=dvidir ;;
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
795ca3e5
AK
1007
1008 -enable-* | --enable-*)
ec6a6fbe 1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1010 # Reject names that are not valid shell variable names.
ec6a6fbe 1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1012 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017"enable_$ac_useropt"
1018"*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
ad6254c5 1031 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
ad6254c5
AK
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
795ca3e5
AK
1043
1044 -host | --host | --hos | --ho)
ad6254c5 1045 ac_prev=host_alias ;;
795ca3e5 1046 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1047 host_alias=$ac_optarg ;;
795ca3e5 1048
7a197a62
AK
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
795ca3e5
AK
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1060 includedir=$ac_optarg ;;
795ca3e5
AK
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1065 infodir=$ac_optarg ;;
795ca3e5
AK
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1070 libdir=$ac_optarg ;;
795ca3e5
AK
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1077 libexecdir=$ac_optarg ;;
795ca3e5 1078
7a197a62
AK
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
795ca3e5 1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1085 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1089 localstatedir=$ac_optarg ;;
795ca3e5
AK
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1094 mandir=$ac_optarg ;;
795ca3e5
AK
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1101 | --no-cr | --no-c | -n)
795ca3e5
AK
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1115 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1120 prefix=$ac_optarg ;;
795ca3e5
AK
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1127 program_prefix=$ac_optarg ;;
795ca3e5
AK
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1134 program_suffix=$ac_optarg ;;
795ca3e5
AK
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1151 program_transform_name=$ac_optarg ;;
795ca3e5 1152
7a197a62
AK
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
795ca3e5
AK
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
ad6254c5 1171 sbindir=$ac_optarg ;;
795ca3e5
AK
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
ad6254c5 1182 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
ad6254c5 1187 site=$ac_optarg ;;
795ca3e5
AK
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1192 srcdir=$ac_optarg ;;
795ca3e5
AK
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1199 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1202 ac_prev=target_alias ;;
795ca3e5 1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1204 target_alias=$ac_optarg ;;
795ca3e5
AK
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
ad6254c5
AK
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
795ca3e5
AK
1211
1212 -with-* | --with-*)
ec6a6fbe 1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1214 # Reject names that are not valid shell variable names.
ec6a6fbe 1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1216 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221"with_$ac_useropt"
1222"*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1227
1228 -without-* | --without-*)
ec6a6fbe 1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1230 # Reject names that are not valid shell variable names.
ec6a6fbe 1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1232 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237"with_$ac_useropt"
1238"*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=no ;;
795ca3e5
AK
1243
1244 --x)
1245 # Obsolete; use --with-x.
1246 with_x=yes ;;
1247
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1253 x_includes=$ac_optarg ;;
795ca3e5
AK
1254
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1260 x_libraries=$ac_optarg ;;
795ca3e5 1261
f11781c5
AK
1262 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263Try \`$0 --help' for more information"
795ca3e5
AK
1264 ;;
1265
ad6254c5
AK
1266 *=*)
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
f11781c5
AK
1269 case $ac_envvar in #(
1270 '' | [0-9]* | *[!_$as_cr_alnum]* )
1271 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272 esac
7a197a62 1273 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1274 export $ac_envvar ;;
1275
795ca3e5 1276 *)
ad6254c5 1277 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1281 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1282 ;;
1283
1284 esac
1285done
1286
1287if test -n "$ac_prev"; then
ad6254c5 1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1289 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1290fi
795ca3e5 1291
ec6a6fbe
AK
1292if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1294 no) ;;
f11781c5 1295 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 esac
1298fi
1299
1300# Check all directory arguments for consistency.
7a197a62
AK
1301for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
795ca3e5 1305do
7a197a62 1306 eval ac_val=\$$ac_var
ec6a6fbe
AK
1307 # Remove trailing slashes.
1308 case $ac_val in
1309 */ )
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1312 esac
1313 # Be sure to have absolute directory names.
ad6254c5 1314 case $ac_val in
7a197a62
AK
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1317 esac
f11781c5 1318 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1319done
1320
ad6254c5
AK
1321# There might be people who depend on the old broken behavior: `$host'
1322# used to hold the argument of --host etc.
1323# FIXME: To remove some day.
1324build=$build_alias
1325host=$host_alias
1326target=$target_alias
1327
1328# FIXME: To remove some day.
1329if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
f11781c5
AK
1332 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1333 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1336 fi
1337fi
8106cdd5 1338
ad6254c5
AK
1339ac_tool_prefix=
1340test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342test "$silent" = yes && exec 6>/dev/null
795ca3e5 1343
795ca3e5 1344
7a197a62
AK
1345ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346ac_ls_di=`ls -di .` &&
1347ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1348 as_fn_error $? "working directory cannot be determined"
7a197a62 1349test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1350 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1351
1352
795ca3e5
AK
1353# Find the source files, if location was not specified.
1354if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
7a197a62 1356 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362$as_echo X"$as_myself" |
7a197a62
AK
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\).*/{
1376 s//\1/
1377 q
1378 }
1379 s/.*/./; q'`
795ca3e5 1380 srcdir=$ac_confdir
7a197a62 1381 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1382 srcdir=..
1383 fi
1384else
1385 ac_srcdir_defaulted=no
1386fi
7a197a62
AK
1387if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1390fi
7a197a62
AK
1391ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392ac_abs_confdir=`(
f11781c5 1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1394 pwd)`
1395# When building in place, set srcdir=.
1396if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1398fi
1399# Remove unnecessary trailing slashes from srcdir.
1400# Double slashes in file names in object file debugging info
1401# mess up M-x gdb in Emacs.
1402case $srcdir in
1403*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404esac
1405for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410done
ad6254c5
AK
1411
1412#
1413# Report the --help message.
1414#
1415if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
1419\`configure' configures this package to adapt to many kinds of systems.
1420
1421Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424VAR=VALUE. See below for descriptions of some of the useful variables.
1425
1426Defaults for the options are specified in brackets.
1427
1428Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
f11781c5 1433 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438
ad6254c5
AK
1439Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1441 [$ac_default_prefix]
ad6254c5 1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1443 [PREFIX]
ad6254c5
AK
1444
1445By default, \`make install' will install all the files in
1446\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448for instance \`--prefix=\$HOME'.
1449
1450For better control, use the options below.
1451
1452Fine tuning of the installation directories:
ec6a6fbe
AK
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1472_ACEOF
1473
1474 cat <<\_ACEOF
1475
1476System types:
1477 --build=BUILD configure for building on BUILD [guessed]
1478 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 --target=TARGET configure for building compilers for TARGET [HOST]
1480_ACEOF
1481fi
1482
1483if test -n "$ac_init_help"; then
1484
1485 cat <<\_ACEOF
1486
1487Optional Features:
ec6a6fbe 1488 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1491 --enable-static_link use this to link the tools to their libraries
1492 statically (default is dynamic linking
1493 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1494 device-mapper is missing from the kernel
71082be4
ZK
1495 --disable-readline disable readline support
1496 --enable-realtime enable realtime clock support
37ddf259
AK
1497 --enable-ocf enable Open Cluster Framework (OCF) compliant
1498 resource agents
71082be4
ZK
1499 --enable-cmirrord enable the cluster mirror log daemon
1500 --enable-debug enable debugging
1501 --enable-profiling gather gcov profiling data
54b362f9 1502 --enable-testing enable testing targets in the makefile
d1e8046f 1503 --enable-valgrind-pool enable valgrind awareness of pools
71082be4
ZK
1504 --disable-devmapper disable LVM2 device-mapper interaction
1505 --enable-udev_sync enable synchronisation with udev processing
1506 --enable-udev_rules install rule files needed for udev synchronisation
1507 --enable-compat enable support for old device-mapper versions
1508 --enable-units-compat enable output compatibility with old versions that
1509 that do not use KiB-style unit suffixes
1510 --disable-driver disable calls to device-mapper in the kernel
1511 --disable-o_direct disable O_DIRECT
1512 --enable-applib build application library
1513 --enable-cmdlib build shared command library
1514 --enable-pkgconfig install pkgconfig support
1515 --enable-write_install install user writable files
1516 --disable-fsadm disable fsadm
1517 --enable-dmeventd enable the device-mapper event daemon
1518 --disable-selinux disable selinux support
1519 --enable-nls enable Native Language Support
ad6254c5
AK
1520
1521Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1524 --with-user=USER set the owner of installed files [[USER=]]
1525 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1526 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1527 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1528 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
ad6254c5 1529 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1530 [[TYPE=internal]]
ad6254c5 1531 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1532 [[TYPE=internal]]
71082be4 1533 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1534 [[TYPE=internal]]
71082be4 1535 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1536 [[TYPE=internal]]
71082be4 1537 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1538 [[TYPE=internal]]
71082be4 1539 --with-replicators=TYPE replicator support: internal/shared/none
f11781c5 1540 [[TYPE=none]]
606d0858
AK
1541 --with-ocfdir=DIR install OCF files in DIR
1542 [[PREFIX/lib/ocf/resource.d/lvm2]]
71082be4 1543 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1544 The following cluster manager combinations are valid:
a946372e
AK
1545 * cman,gulm (RHEL4 or equivalent)
1546 * cman (RHEL5 or equivalent)
1547 * cman,corosync,openais (or selection of them)
1091650a 1548 * singlenode (localhost only)
a946372e
AK
1549 * all (autodetect)
1550 * none (disable build)
71082be4 1551 [TYPE=none]
8c4e8a18 1552 --with-clvmd-pidfile=PATH
f11781c5 1553 clvmd pidfile [[/var/run/clvmd.pid]]
71082be4 1554 --with-cmirrord-pidfile=PATH
f11781c5
AK
1555 cmirrord pidfile [[/var/run/cmirrord.pid]]
1556 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1557 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1558 --with-confdir=DIR configuration files in DIR [[/etc]]
1559 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1560 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1561 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1562 --with-udev-prefix=UPREFIX
f11781c5
AK
1563 install udev rule files in UPREFIX [[EPREFIX]]
1564 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
71082be4 1565 --with-dmeventd-pidfile=PATH
f11781c5 1566 dmeventd pidfile [[/var/run/dmeventd.pid]]
71082be4 1567 --with-dmeventd-path=PATH
f11781c5 1568 dmeventd path [[EPREFIX/sbin/dmeventd]]
8bae0a1e 1569 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4 1570 --with-default-system-dir=DIR
f11781c5 1571 default LVM system directory [[/etc/lvm]]
71082be4 1572 --with-default-archive-subdir=SUBDIR
f11781c5 1573 default metadata archive subdir [[archive]]
71082be4 1574 --with-default-backup-subdir=SUBDIR
f11781c5 1575 default metadata backup subdir [[backup]]
71082be4 1576 --with-default-cache-subdir=SUBDIR
f11781c5 1577 default metadata cache subdir [[cache]]
71082be4 1578 --with-default-locking-dir=DIR
f11781c5 1579 default locking directory [[/var/lock/lvm]]
fea55602 1580 --with-default-data-alignment=NUM
f11781c5
AK
1581 set the default data alignment in MiB [[1]]
1582 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1583
1584Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
25fbec5b 1589 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1590 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1591 you have headers in a nonstandard directory <include dir>
ad6254c5 1592 CPP C preprocessor
e2997b73 1593 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1594 PKG_CONFIG_PATH
1595 directories to add to pkg-config's search path
1596 PKG_CONFIG_LIBDIR
1597 path overriding pkg-config's built-in search path
a946372e
AK
1598 PKGCONFIGINIT_CFLAGS
1599 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1600 PKGCONFIGINIT_LIBS
1601 linker flags for PKGCONFIGINIT, overriding pkg-config
1602 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1603 CCS_LIBS linker flags for CCS, overriding pkg-config
1604 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1605 GULM_LIBS linker flags for GULM, overriding pkg-config
1606 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1607 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1608 COROSYNC_CFLAGS
1609 C compiler flags for COROSYNC, overriding pkg-config
1610 COROSYNC_LIBS
1611 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1612 QUORUM_CFLAGS
1613 C compiler flags for QUORUM, overriding pkg-config
1614 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1615 SALCK_CFLAGS
1616 C compiler flags for SALCK, overriding pkg-config
1617 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1618 CONFDB_CFLAGS
1619 C compiler flags for CONFDB, overriding pkg-config
1620 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1621 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1622 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1623 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1624 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1625 SACKPT_CFLAGS
1626 C compiler flags for SACKPT, overriding pkg-config
1627 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1628
1629Use these variables to override the choices made by `configure' or to help
1630it to find libraries and programs with nonstandard names/locations.
1631
f11781c5 1632Report bugs to the package provider.
ad6254c5 1633_ACEOF
7a197a62 1634ac_status=$?
ad6254c5
AK
1635fi
1636
1637if test "$ac_init_help" = "recursive"; then
1638 # If there are subdirs, report their specific --help.
ad6254c5 1639 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1640 test -d "$ac_dir" ||
1641 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642 continue
ad6254c5
AK
1643 ac_builddir=.
1644
7a197a62
AK
1645case "$ac_dir" in
1646.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647*)
ec6a6fbe 1648 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1649 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1651 case $ac_top_builddir_sub in
1652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654 esac ;;
1655esac
1656ac_abs_top_builddir=$ac_pwd
1657ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658# for backward compatibility:
1659ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1660
1661case $srcdir in
7a197a62 1662 .) # We are building in place.
ad6254c5 1663 ac_srcdir=.
7a197a62
AK
1664 ac_top_srcdir=$ac_top_builddir_sub
1665 ac_abs_top_srcdir=$ac_pwd ;;
1666 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1667 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1668 ac_top_srcdir=$srcdir
1669 ac_abs_top_srcdir=$srcdir ;;
1670 *) # Relative name.
1671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672 ac_top_srcdir=$ac_top_build_prefix$srcdir
1673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1674esac
7a197a62
AK
1675ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676
1677 cd "$ac_dir" || { ac_status=$?; continue; }
1678 # Check for guested configure.
1679 if test -f "$ac_srcdir/configure.gnu"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682 elif test -f "$ac_srcdir/configure"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1685 else
ec6a6fbe 1686 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1687 fi || ac_status=$?
1688 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1689 done
1690fi
1691
7a197a62 1692test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1693if $ac_init_version; then
1694 cat <<\_ACEOF
7a197a62 1695configure
f11781c5 1696generated by GNU Autoconf 2.66
ad6254c5 1697
f11781c5 1698Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1699This configure script is free software; the Free Software Foundation
1700gives unlimited permission to copy, distribute and modify it.
1701_ACEOF
7a197a62 1702 exit
ad6254c5 1703fi
ad6254c5 1704
f11781c5
AK
1705## ------------------------ ##
1706## Autoconf initialization. ##
1707## ------------------------ ##
ad6254c5 1708
f11781c5
AK
1709# ac_fn_c_try_compile LINENO
1710# --------------------------
1711# Try to compile conftest.$ac_ext, and return whether this succeeded.
1712ac_fn_c_try_compile ()
ad6254c5 1713{
f11781c5
AK
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext
1716 if { { ac_try="$ac_compile"
1717case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_compile") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest.$ac_objext; then :
1735 ac_retval=0
1736else
1737 $as_echo "$as_me: failed program was:" >&5
1738sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1739
f11781c5
AK
1740 ac_retval=1
1741fi
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 as_fn_set_status $ac_retval
ad6254c5 1744
f11781c5 1745} # ac_fn_c_try_compile
ad6254c5 1746
f11781c5
AK
1747# ac_fn_c_try_cpp LINENO
1748# ----------------------
1749# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750ac_fn_c_try_cpp ()
1751{
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_cpp conftest.$ac_ext"
1754case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1766 fi
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } >/dev/null && {
1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 }; then :
1772 ac_retval=0
1773else
1774 $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1776
f11781c5
AK
1777 ac_retval=1
1778fi
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780 as_fn_set_status $ac_retval
ad6254c5 1781
f11781c5 1782} # ac_fn_c_try_cpp
d911ec67 1783
f11781c5
AK
1784# ac_fn_c_try_link LINENO
1785# -----------------------
1786# Try to link conftest.$ac_ext, and return whether this succeeded.
1787ac_fn_c_try_link ()
d911ec67 1788{
f11781c5
AK
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 rm -f conftest.$ac_objext conftest$ac_exeext
1791 if { { ac_try="$ac_link"
d911ec67
AK
1792case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795esac
f11781c5
AK
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>conftest.err
d911ec67 1799 ac_status=$?
f11781c5
AK
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1804 fi
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && {
1807 test -z "$ac_c_werror_flag" ||
1808 test ! -s conftest.err
1809 } && test -s conftest$ac_exeext && {
1810 test "$cross_compiling" = yes ||
1811 $as_test_x conftest$ac_exeext
1812 }; then :
1813 ac_retval=0
d911ec67 1814else
f11781c5 1815 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
f11781c5 1818 ac_retval=1
d911ec67 1819fi
f11781c5
AK
1820 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1821 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1822 # interfere with the next link command; also delete a directory that is
1823 # left behind by Apple's compiler. We do this before executing the actions.
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826 as_fn_set_status $ac_retval
d911ec67 1827
f11781c5 1828} # ac_fn_c_try_link
d911ec67 1829
f11781c5
AK
1830# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1831# -------------------------------------------------------
1832# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1833# the include files in INCLUDES and setting the cache variable VAR
1834# accordingly.
1835ac_fn_c_check_header_mongrel ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if eval "test \"\${$3+set}\"" = set; then :
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840$as_echo_n "checking for $2... " >&6; }
1841if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1842 $as_echo_n "(cached) " >&6
1843fi
f11781c5
AK
1844eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1846$as_echo "$ac_res" >&6; }
1847else
1848 # Is the header compilable?
f11781c5
AK
1849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1850$as_echo_n "checking $2 usability... " >&6; }
1851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1852/* end confdefs.h. */
f11781c5
AK
1853$4
1854#include <$2>
d911ec67 1855_ACEOF
f11781c5 1856if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1857 ac_header_compiler=yes
1858else
f11781c5 1859 ac_header_compiler=no
d911ec67 1860fi
d911ec67 1861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1863$as_echo "$ac_header_compiler" >&6; }
1864
1865# Is the header present?
f11781c5
AK
1866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1867$as_echo_n "checking $2 presence... " >&6; }
1868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1869/* end confdefs.h. */
f11781c5 1870#include <$2>
d911ec67 1871_ACEOF
f11781c5 1872if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1873 ac_header_preproc=yes
1874else
d911ec67
AK
1875 ac_header_preproc=no
1876fi
d911ec67 1877rm -f conftest.err conftest.$ac_ext
f11781c5 1878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1879$as_echo "$ac_header_preproc" >&6; }
1880
1881# So? What about this header?
f11781c5 1882case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1883 yes:no: )
f11781c5
AK
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1885$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1888 ;;
1889 no:yes:* )
f11781c5
AK
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1891$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1893$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1895$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1897$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1900 ;;
1901esac
f11781c5
AK
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903$as_echo_n "checking for $2... " >&6; }
1904if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1905 $as_echo_n "(cached) " >&6
1906else
f11781c5 1907 eval "$3=\$ac_header_compiler"
d911ec67 1908fi
f11781c5
AK
1909eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1911$as_echo "$ac_res" >&6; }
ad6254c5 1912fi
f11781c5 1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1914
f11781c5 1915} # ac_fn_c_check_header_mongrel
ad6254c5 1916
f11781c5
AK
1917# ac_fn_c_try_run LINENO
1918# ----------------------
1919# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1920# that executables *can* be run.
1921ac_fn_c_try_run ()
ad6254c5 1922{
f11781c5
AK
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if { { ac_try="$ac_link"
7a197a62
AK
1925case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928esac
f11781c5
AK
1929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930$as_echo "$ac_try_echo"; } >&5
7a197a62 1931 (eval "$ac_link") 2>&5
ad6254c5 1932 ac_status=$?
f11781c5
AK
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1935 { { case "(($ac_try" in
7a197a62
AK
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1938esac
f11781c5
AK
1939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940$as_echo "$ac_try_echo"; } >&5
7a197a62 1941 (eval "$ac_try") 2>&5
ad6254c5 1942 ac_status=$?
f11781c5
AK
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; }; }; then :
1945 ac_retval=0
ad6254c5 1946else
ec6a6fbe 1947 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 1948 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
1949sed 's/^/| /' conftest.$ac_ext >&5
1950
f11781c5 1951 ac_retval=$ac_status
ad6254c5 1952fi
f11781c5
AK
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955 as_fn_set_status $ac_retval
ad6254c5 1956
f11781c5 1957} # ac_fn_c_try_run
ad6254c5 1958
f11781c5
AK
1959# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1960# -------------------------------------------------------
1961# Tests whether HEADER exists and can be compiled using the include files in
1962# INCLUDES, setting the cache variable VAR accordingly.
1963ac_fn_c_check_header_compile ()
1964{
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
1968if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 1969 $as_echo_n "(cached) " >&6
ad6254c5 1970else
f11781c5 1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 1972/* end confdefs.h. */
f11781c5
AK
1973$4
1974#include <$2>
ad6254c5 1975_ACEOF
f11781c5
AK
1976if ac_fn_c_try_compile "$LINENO"; then :
1977 eval "$3=yes"
ad6254c5 1978else
f11781c5 1979 eval "$3=no"
ad6254c5 1980fi
7a197a62 1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 1982fi
f11781c5
AK
1983eval ac_res=\$$3
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 1985$as_echo "$ac_res" >&6; }
f11781c5 1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1987
f11781c5 1988} # ac_fn_c_check_header_compile
ad6254c5 1989
f11781c5
AK
1990# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1991# ----------------------------------------------------
1992# Tries to find if the field MEMBER exists in type AGGR, after including
1993# INCLUDES, setting cache variable VAR accordingly.
1994ac_fn_c_check_member ()
1995{
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1998$as_echo_n "checking for $2.$3... " >&6; }
1999if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2000 $as_echo_n "(cached) " >&6
795ca3e5 2001else
f11781c5
AK
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h. */
2004$5
2005int
2006main ()
2007{
2008static $2 ac_aggr;
2009if (ac_aggr.$3)
2010return 0;
2011 ;
2012 return 0;
2013}
ad6254c5 2014_ACEOF
f11781c5
AK
2015if ac_fn_c_try_compile "$LINENO"; then :
2016 eval "$4=yes"
2017else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2019/* end confdefs.h. */
f11781c5
AK
2020$5
2021int
2022main ()
2023{
2024static $2 ac_aggr;
2025if (sizeof ac_aggr.$3)
2026return 0;
2027 ;
2028 return 0;
2029}
2030_ACEOF
2031if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$4=yes"
2033else
2034 eval "$4=no"
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039fi
2040eval ac_res=\$$4
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042$as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044
2045} # ac_fn_c_check_member
795ca3e5 2046
f11781c5
AK
2047# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2048# -------------------------------------------
2049# Tests whether TYPE exists after having included INCLUDES, setting cache
2050# variable VAR accordingly.
2051ac_fn_c_check_type ()
2052{
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055$as_echo_n "checking for $2... " >&6; }
2056if eval "test \"\${$3+set}\"" = set; then :
2057 $as_echo_n "(cached) " >&6
2058else
2059 eval "$3=no"
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061/* end confdefs.h. */
2062$4
ad6254c5
AK
2063int
2064main ()
2065{
f11781c5
AK
2066if (sizeof ($2))
2067 return 0;
ad6254c5
AK
2068 ;
2069 return 0;
2070}
2071_ACEOF
f11781c5
AK
2072if ac_fn_c_try_compile "$LINENO"; then :
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h. */
2075$4
2076int
2077main ()
2078{
2079if (sizeof (($2)))
2080 return 0;
2081 ;
2082 return 0;
2083}
2084_ACEOF
2085if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2086
f11781c5
AK
2087else
2088 eval "$3=yes"
795ca3e5 2089fi
f11781c5
AK
2090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091fi
2092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2093fi
f11781c5
AK
2094eval ac_res=\$$3
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2096$as_echo "$ac_res" >&6; }
f11781c5 2097 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2098
f11781c5 2099} # ac_fn_c_check_type
ad6254c5 2100
f11781c5
AK
2101# ac_fn_c_find_intX_t LINENO BITS VAR
2102# -----------------------------------
2103# Finds a signed integer type with width BITS, setting cache variable VAR
2104# accordingly.
2105ac_fn_c_find_intX_t ()
2106{
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2109$as_echo_n "checking for int$2_t... " >&6; }
2110if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2111 $as_echo_n "(cached) " >&6
ad6254c5 2112else
f11781c5
AK
2113 eval "$3=no"
2114 # Order is important - never check a type that is potentially smaller
2115 # than half of the expected target width.
2116 for ac_type in int$2_t 'int' 'long int' \
2117 'long long int' 'short int' 'signed char'; do
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2119/* end confdefs.h. */
2120$ac_includes_default
f11781c5 2121 enum { N = $2 / 2 - 1 };
7a197a62
AK
2122int
2123main ()
2124{
f11781c5
AK
2125static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2126test_array [0] = 0
7a197a62 2127
f11781c5
AK
2128 ;
2129 return 0;
2130}
2131_ACEOF
2132if ac_fn_c_try_compile "$LINENO"; then :
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134/* end confdefs.h. */
2135$ac_includes_default
2136 enum { N = $2 / 2 - 1 };
2137int
2138main ()
2139{
2140static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2141 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2142test_array [0] = 0
7a197a62
AK
2143
2144 ;
2145 return 0;
2146}
ad6254c5 2147_ACEOF
f11781c5 2148if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2149
f11781c5
AK
2150else
2151 case $ac_type in #(
2152 int$2_t) :
2153 eval "$3=yes" ;; #(
2154 *) :
2155 eval "$3=\$ac_type" ;;
2156esac
ad6254c5 2157fi
f11781c5 2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2159fi
f11781c5
AK
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2162
2163else
f11781c5 2164 break
ad6254c5 2165fi
f11781c5 2166 done
ad6254c5 2167fi
f11781c5
AK
2168eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170$as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2172
2173} # ac_fn_c_find_intX_t
2174
2175# ac_fn_c_find_uintX_t LINENO BITS VAR
2176# ------------------------------------
2177# Finds an unsigned integer type with width BITS, setting cache variable VAR
2178# accordingly.
2179ac_fn_c_find_uintX_t ()
2180{
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2183$as_echo_n "checking for uint$2_t... " >&6; }
2184if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2185 $as_echo_n "(cached) " >&6
ad6254c5 2186else
f11781c5
AK
2187 eval "$3=no"
2188 # Order is important - never check a type that is potentially smaller
2189 # than half of the expected target width.
2190 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2191 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2193/* end confdefs.h. */
7a197a62 2194$ac_includes_default
ad6254c5
AK
2195int
2196main ()
2197{
f11781c5
AK
2198static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2199test_array [0] = 0
ad6254c5 2200
f11781c5
AK
2201 ;
2202 return 0;
ad6254c5
AK
2203}
2204_ACEOF
f11781c5
AK
2205if ac_fn_c_try_compile "$LINENO"; then :
2206 case $ac_type in #(
2207 uint$2_t) :
2208 eval "$3=yes" ;; #(
2209 *) :
2210 eval "$3=\$ac_type" ;;
7a197a62 2211esac
ad6254c5 2212fi
f11781c5
AK
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2215
f11781c5
AK
2216else
2217 break
ad6254c5 2218fi
f11781c5 2219 done
ad6254c5 2220fi
f11781c5
AK
2221eval ac_res=\$$3
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2223$as_echo "$ac_res" >&6; }
2224 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2225
f11781c5 2226} # ac_fn_c_find_uintX_t
ad6254c5 2227
f11781c5
AK
2228# ac_fn_c_check_func LINENO FUNC VAR
2229# ----------------------------------
2230# Tests whether FUNC exists, setting the cache variable VAR accordingly
2231ac_fn_c_check_func ()
2232{
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235$as_echo_n "checking for $2... " >&6; }
2236if eval "test \"\${$3+set}\"" = set; then :
2237 $as_echo_n "(cached) " >&6
ad6254c5 2238else
f11781c5
AK
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240/* end confdefs.h. */
2241/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2243#define $2 innocuous_$2
ad6254c5 2244
f11781c5
AK
2245/* System header to define __stub macros and hopefully few prototypes,
2246 which can conflict with char $2 (); below.
2247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2248 <limits.h> exists even on freestanding compilers. */
ad6254c5 2249
f11781c5
AK
2250#ifdef __STDC__
2251# include <limits.h>
2252#else
2253# include <assert.h>
2254#endif
ad6254c5 2255
f11781c5
AK
2256#undef $2
2257
2258/* Override any GCC internal prototype to avoid an error.
2259 Use char because int might match the return type of a GCC
2260 builtin and then its argument prototype would still apply. */
2261#ifdef __cplusplus
2262extern "C"
2263#endif
2264char $2 ();
2265/* The GNU C library defines this for functions which it implements
2266 to always fail with ENOSYS. Some functions are actually named
2267 something starting with __ and the normal name is an alias. */
2268#if defined __stub_$2 || defined __stub___$2
2269choke me
2270#endif
ad6254c5 2271
ad6254c5
AK
2272int
2273main ()
2274{
f11781c5 2275return $2 ();
ad6254c5
AK
2276 ;
2277 return 0;
2278}
2279_ACEOF
f11781c5
AK
2280if ac_fn_c_try_link "$LINENO"; then :
2281 eval "$3=yes"
ad6254c5 2282else
f11781c5 2283 eval "$3=no"
ad6254c5 2284fi
f11781c5
AK
2285rm -f core conftest.err conftest.$ac_objext \
2286 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2287fi
f11781c5
AK
2288eval ac_res=\$$3
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290$as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2292
f11781c5
AK
2293} # ac_fn_c_check_func
2294cat >config.log <<_ACEOF
2295This file contains any messages produced by compilers while
2296running configure, to aid debugging if configure makes a mistake.
7a197a62 2297
f11781c5
AK
2298It was created by $as_me, which was
2299generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2300
f11781c5 2301 $ $0 $@
ad6254c5 2302
ad6254c5 2303_ACEOF
f11781c5
AK
2304exec 5>>config.log
2305{
2306cat <<_ASUNAME
2307## --------- ##
2308## Platform. ##
2309## --------- ##
ad6254c5 2310
f11781c5
AK
2311hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2312uname -m = `(uname -m) 2>/dev/null || echo unknown`
2313uname -r = `(uname -r) 2>/dev/null || echo unknown`
2314uname -s = `(uname -s) 2>/dev/null || echo unknown`
2315uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2316
f11781c5
AK
2317/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2318/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2319
f11781c5
AK
2320/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2321/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2322/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2323/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2324/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2325/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2326/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2327
2328_ASUNAME
2329
2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331for as_dir in $PATH
2332do
2333 IFS=$as_save_IFS
2334 test -z "$as_dir" && as_dir=.
2335 $as_echo "PATH: $as_dir"
2336 done
2337IFS=$as_save_IFS
2338
2339} >&5
2340
2341cat >&5 <<_ACEOF
2342
2343
2344## ----------- ##
2345## Core tests. ##
2346## ----------- ##
ad6254c5 2347
ad6254c5 2348_ACEOF
ad6254c5 2349
7a197a62 2350
f11781c5
AK
2351# Keep a trace of the command line.
2352# Strip out --no-create and --no-recursion so they do not pile up.
2353# Strip out --silent because we don't want to record it for future runs.
2354# Also quote any args containing shell meta-characters.
2355# Make two passes to allow for proper duplicate-argument suppression.
2356ac_configure_args=
2357ac_configure_args0=
2358ac_configure_args1=
2359ac_must_keep_next=false
2360for ac_pass in 1 2
2361do
2362 for ac_arg
2363 do
2364 case $ac_arg in
2365 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2367 | -silent | --silent | --silen | --sile | --sil)
2368 continue ;;
2369 *\'*)
2370 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2371 esac
2372 case $ac_pass in
2373 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2374 2)
2375 as_fn_append ac_configure_args1 " '$ac_arg'"
2376 if test $ac_must_keep_next = true; then
2377 ac_must_keep_next=false # Got value, back to normal.
2378 else
2379 case $ac_arg in
2380 *=* | --config-cache | -C | -disable-* | --disable-* \
2381 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2382 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2383 | -with-* | --with-* | -without-* | --without-* | --x)
2384 case "$ac_configure_args0 " in
2385 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2386 esac
2387 ;;
2388 -* ) ac_must_keep_next=true ;;
2389 esac
2390 fi
2391 as_fn_append ac_configure_args " '$ac_arg'"
2392 ;;
2393 esac
2394 done
2395done
2396{ ac_configure_args0=; unset ac_configure_args0;}
2397{ ac_configure_args1=; unset ac_configure_args1;}
2398
2399# When interrupted or exit'd, cleanup temporary files, and complete
2400# config.log. We remove comments because anyway the quotes in there
2401# would cause problems or look ugly.
2402# WARNING: Use '\'' to represent an apostrophe within the trap.
2403# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2404trap 'exit_status=$?
2405 # Save into config.log some information that might help in debugging.
2406 {
2407 echo
2408
2409 $as_echo "## ---------------- ##
2410## Cache variables. ##
2411## ---------------- ##"
2412 echo
2413 # The following way of writing the cache mishandles newlines in values,
2414(
2415 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2416 eval ac_val=\$$ac_var
2417 case $ac_val in #(
2418 *${as_nl}*)
2419 case $ac_var in #(
2420 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2421$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2422 esac
2423 case $ac_var in #(
2424 _ | IFS | as_nl) ;; #(
2425 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2426 *) { eval $ac_var=; unset $ac_var;} ;;
2427 esac ;;
2428 esac
2429 done
2430 (set) 2>&1 |
2431 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2432 *${as_nl}ac_space=\ *)
2433 sed -n \
2434 "s/'\''/'\''\\\\'\'''\''/g;
2435 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2436 ;; #(
2437 *)
2438 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2439 ;;
2440 esac |
2441 sort
2442)
2443 echo
2444
2445 $as_echo "## ----------------- ##
2446## Output variables. ##
2447## ----------------- ##"
2448 echo
2449 for ac_var in $ac_subst_vars
2450 do
2451 eval ac_val=\$$ac_var
2452 case $ac_val in
2453 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2454 esac
2455 $as_echo "$ac_var='\''$ac_val'\''"
2456 done | sort
2457 echo
2458
2459 if test -n "$ac_subst_files"; then
2460 $as_echo "## ------------------- ##
2461## File substitutions. ##
2462## ------------------- ##"
2463 echo
2464 for ac_var in $ac_subst_files
2465 do
2466 eval ac_val=\$$ac_var
2467 case $ac_val in
2468 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2469 esac
2470 $as_echo "$ac_var='\''$ac_val'\''"
2471 done | sort
2472 echo
2473 fi
2474
2475 if test -s confdefs.h; then
2476 $as_echo "## ----------- ##
2477## confdefs.h. ##
2478## ----------- ##"
2479 echo
2480 cat confdefs.h
2481 echo
2482 fi
2483 test "$ac_signal" != 0 &&
2484 $as_echo "$as_me: caught signal $ac_signal"
2485 $as_echo "$as_me: exit $exit_status"
2486 } >&5
2487 rm -f core *.core core.conftest.* &&
2488 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2489 exit $exit_status
2490' 0
2491for ac_signal in 1 2 13 15; do
2492 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2493done
2494ac_signal=0
2495
2496# confdefs.h avoids OS command line length limits that DEFS can exceed.
2497rm -f -r conftest* confdefs.h
7a197a62 2498
f11781c5 2499$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2500
f11781c5 2501# Predefined preprocessor variables.
ad6254c5
AK
2502
2503cat >>confdefs.h <<_ACEOF
f11781c5 2504#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2505_ACEOF
2506
f11781c5
AK
2507cat >>confdefs.h <<_ACEOF
2508#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2509_ACEOF
ad6254c5 2510
f11781c5
AK
2511cat >>confdefs.h <<_ACEOF
2512#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2513_ACEOF
f11781c5
AK
2514
2515cat >>confdefs.h <<_ACEOF
2516#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2517_ACEOF
ad6254c5 2518
f11781c5
AK
2519cat >>confdefs.h <<_ACEOF
2520#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2521_ACEOF
7a197a62 2522
f11781c5
AK
2523cat >>confdefs.h <<_ACEOF
2524#define PACKAGE_URL "$PACKAGE_URL"
2525_ACEOF
ad6254c5 2526
7a197a62 2527
f11781c5
AK
2528# Let the site file select an alternate cache file if it wants to.
2529# Prefer an explicitly selected file to automatically selected ones.
2530ac_site_file1=NONE
2531ac_site_file2=NONE
2532if test -n "$CONFIG_SITE"; then
2533 # We do not want a PATH search for config.site.
2534 case $CONFIG_SITE in #((
2535 -*) ac_site_file1=./$CONFIG_SITE;;
2536 */*) ac_site_file1=$CONFIG_SITE;;
2537 *) ac_site_file1=./$CONFIG_SITE;;
2538 esac
2539elif test "x$prefix" != xNONE; then
2540 ac_site_file1=$prefix/share/config.site
2541 ac_site_file2=$prefix/etc/config.site
ad6254c5 2542else
f11781c5
AK
2543 ac_site_file1=$ac_default_prefix/share/config.site
2544 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2545fi
f11781c5
AK
2546for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2547do
2548 test "x$ac_site_file" = xNONE && continue
2549 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2551$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2552 sed 's/^/| /' "$ac_site_file" >&5
2553 . "$ac_site_file" \
2554 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556as_fn_error $? "failed to load site script $ac_site_file
2557See \`config.log' for more details" "$LINENO" 5; }
2558 fi
2559done
ad6254c5 2560
f11781c5
AK
2561if test -r "$cache_file"; then
2562 # Some versions of bash will fail to source /dev/null (special files
2563 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2564 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2566$as_echo "$as_me: loading cache $cache_file" >&6;}
2567 case $cache_file in
2568 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2569 *) . "./$cache_file";;
2570 esac
2571 fi
2572else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2574$as_echo "$as_me: creating cache $cache_file" >&6;}
2575 >$cache_file
ad6254c5 2576fi
ad6254c5 2577
f11781c5
AK
2578as_fn_append ac_header_list " stdlib.h"
2579as_fn_append ac_header_list " unistd.h"
2580as_fn_append ac_header_list " sys/param.h"
2581# Check that the precious variables saved in the cache have kept the same
2582# value.
2583ac_cache_corrupted=false
2584for ac_var in $ac_precious_vars; do
2585 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2586 eval ac_new_set=\$ac_env_${ac_var}_set
2587 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2588 eval ac_new_val=\$ac_env_${ac_var}_value
2589 case $ac_old_set,$ac_new_set in
2590 set,)
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2592$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2593 ac_cache_corrupted=: ;;
2594 ,set)
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2596$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2597 ac_cache_corrupted=: ;;
2598 ,);;
2599 *)
2600 if test "x$ac_old_val" != "x$ac_new_val"; then
2601 # differences in whitespace do not lead to failure.
2602 ac_old_val_w=`echo x $ac_old_val`
2603 ac_new_val_w=`echo x $ac_new_val`
2604 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2606$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2607 ac_cache_corrupted=:
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2610$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2611 eval $ac_var=\$ac_old_val
2612 fi
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2614$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2616$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2617 fi;;
2618 esac
2619 # Pass precious variables to config.status.
2620 if test "$ac_new_set" = set; then
2621 case $ac_new_val in
2622 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2623 *) ac_arg=$ac_var=$ac_new_val ;;
2624 esac
2625 case " $ac_configure_args " in
2626 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2627 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2628 esac
2629 fi
2630done
2631if $ac_cache_corrupted; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2635$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2636 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2637fi
f11781c5
AK
2638## -------------------- ##
2639## Main body of script. ##
2640## -------------------- ##
ad6254c5 2641
f11781c5
AK
2642ac_ext=c
2643ac_cpp='$CPP $CPPFLAGS'
2644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2647
ad6254c5 2648
ad6254c5 2649
f11781c5 2650ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2651
2652
f11781c5
AK
2653################################################################################
2654ac_aux_dir=
2655for ac_dir in autoconf "$srcdir"/autoconf; do
2656 if test -f "$ac_dir/install-sh"; then
2657 ac_aux_dir=$ac_dir
2658 ac_install_sh="$ac_aux_dir/install-sh -c"
2659 break
2660 elif test -f "$ac_dir/install.sh"; then
2661 ac_aux_dir=$ac_dir
2662 ac_install_sh="$ac_aux_dir/install.sh -c"
2663 break
2664 elif test -f "$ac_dir/shtool"; then
2665 ac_aux_dir=$ac_dir
2666 ac_install_sh="$ac_aux_dir/shtool install -c"
2667 break
2668 fi
2669done
2670if test -z "$ac_aux_dir"; then
2671 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2672fi
ad6254c5 2673
f11781c5
AK
2674# These three variables are undocumented and unsupported,
2675# and are intended to be withdrawn in a future Autoconf release.
2676# They can cause serious problems if a builder's source tree is in a directory
2677# whose full name contains unusual characters.
2678ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2679ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2680ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2681
ad6254c5 2682
8a2fc586 2683
f11781c5
AK
2684################################################################################
2685# Make sure we can run config.sub.
2686$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2687 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2688
f11781c5
AK
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2690$as_echo_n "checking build system type... " >&6; }
2691if test "${ac_cv_build+set}" = set; then :
2692 $as_echo_n "(cached) " >&6
2693else
2694 ac_build_alias=$build_alias
2695test "x$ac_build_alias" = x &&
2696 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2697test "x$ac_build_alias" = x &&
2698 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2699ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2700 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2701
2702fi
f11781c5
AK
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2704$as_echo "$ac_cv_build" >&6; }
2705case $ac_cv_build in
2706*-*-*) ;;
2707*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2708esac
2709build=$ac_cv_build
2710ac_save_IFS=$IFS; IFS='-'
2711set x $ac_cv_build
2712shift
2713build_cpu=$1
2714build_vendor=$2
2715shift; shift
2716# Remember, the first character of IFS is used to create $*,
2717# except with old shells:
2718build_os=$*
2719IFS=$ac_save_IFS
2720case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2721
2722
f11781c5
AK
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2724$as_echo_n "checking host system type... " >&6; }
2725if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2726 $as_echo_n "(cached) " >&6
ad6254c5 2727else
f11781c5
AK
2728 if test "x$host_alias" = x; then
2729 ac_cv_host=$ac_cv_build
ad6254c5 2730else
f11781c5
AK
2731 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2732 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2733fi
ad6254c5 2734
f11781c5
AK
2735fi
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2737$as_echo "$ac_cv_host" >&6; }
2738case $ac_cv_host in
2739*-*-*) ;;
2740*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2741esac
2742host=$ac_cv_host
2743ac_save_IFS=$IFS; IFS='-'
2744set x $ac_cv_host
2745shift
2746host_cpu=$1
2747host_vendor=$2
2748shift; shift
2749# Remember, the first character of IFS is used to create $*,
2750# except with old shells:
2751host_os=$*
2752IFS=$ac_save_IFS
2753case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2754
ad6254c5 2755
f11781c5
AK
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2757$as_echo_n "checking target system type... " >&6; }
2758if test "${ac_cv_target+set}" = set; then :
2759 $as_echo_n "(cached) " >&6
ad6254c5 2760else
f11781c5
AK
2761 if test "x$target_alias" = x; then
2762 ac_cv_target=$ac_cv_host
2763else
2764 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2765 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2766fi
7a197a62 2767
ad6254c5 2768fi
f11781c5
AK
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2770$as_echo "$ac_cv_target" >&6; }
2771case $ac_cv_target in
2772*-*-*) ;;
2773*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2774esac
f11781c5
AK
2775target=$ac_cv_target
2776ac_save_IFS=$IFS; IFS='-'
2777set x $ac_cv_target
2778shift
2779target_cpu=$1
2780target_vendor=$2
2781shift; shift
2782# Remember, the first character of IFS is used to create $*,
2783# except with old shells:
2784target_os=$*
2785IFS=$ac_save_IFS
2786case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2787
ad6254c5 2788
f11781c5
AK
2789# The aliases save the names the user supplied, while $host etc.
2790# will get canonicalized.
2791test -n "$target_alias" &&
2792 test "$program_prefix$program_suffix$program_transform_name" = \
2793 NONENONEs,x,x, &&
2794 program_prefix=${target_alias}-
ad6254c5 2795
f11781c5
AK
2796case "$host_os" in
2797 linux*)
2798 CFLAGS="$CFLAGS"
2799 COPTIMISE_FLAG="-O2"
2800 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2801 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2802 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2803 LDDEPS="$LDDEPS .export.sym"
2804 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2805 LIB_SUFFIX=so
2806 DEVMAPPER=yes
2807 ODIRECT=yes
2808 DM_IOCTLS=yes
2809 SELINUX=yes
2810 CLUSTER=internal
2811 FSADM=yes
2812 ;;
2813 darwin*)
2814 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2815 COPTIMISE_FLAG="-O2"
2816 CLDFLAGS="$CLDFLAGS"
2817 CLDWHOLEARCHIVE="-all_load"
2818 CLDNOWHOLEARCHIVE=
2819 LIB_SUFFIX=dylib
2820 DEVMAPPER=yes
2821 ODIRECT=no
2822 DM_IOCTLS=no
2823 SELINUX=no
2824 CLUSTER=none
2825 FSADM=no
2826 ;;
2827esac
ad6254c5 2828
f11781c5
AK
2829################################################################################
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2831$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2832if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2833 $as_echo_n "(cached) " >&6
ad6254c5 2834else
f11781c5
AK
2835 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2836 for ac_i in 1 2 3 4 5 6 7; do
2837 ac_script="$ac_script$as_nl$ac_script"
2838 done
2839 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2840 { ac_script=; unset ac_script;}
2841 if test -z "$SED"; then
2842 ac_path_SED_found=false
2843 # Loop through the user's path and test for each of PROGNAME-LIST
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_prog in sed gsed; do
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2852 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2853# Check for GNU ac_path_SED and select it if it is found.
2854 # Check for GNU $ac_path_SED
2855case `"$ac_path_SED" --version 2>&1` in
2856*GNU*)
2857 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2858*)
2859 ac_count=0
2860 $as_echo_n 0123456789 >"conftest.in"
2861 while :
2862 do
2863 cat "conftest.in" "conftest.in" >"conftest.tmp"
2864 mv "conftest.tmp" "conftest.in"
2865 cp "conftest.in" "conftest.nl"
2866 $as_echo '' >> "conftest.nl"
2867 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2869 as_fn_arith $ac_count + 1 && ac_count=$as_val
2870 if test $ac_count -gt ${ac_path_SED_max-0}; then
2871 # Best one so far, save it but keep looking for a better one
2872 ac_cv_path_SED="$ac_path_SED"
2873 ac_path_SED_max=$ac_count
2874 fi
2875 # 10*(2^10) chars as input seems more than enough
2876 test $ac_count -gt 10 && break
2877 done
2878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2879esac
ad6254c5 2880
f11781c5
AK
2881 $ac_path_SED_found && break 3
2882 done
2883 done
2884 done
2885IFS=$as_save_IFS
2886 if test -z "$ac_cv_path_SED"; then
2887 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2888 fi
2889else
2890 ac_cv_path_SED=$SED
ad6254c5 2891fi
7a197a62 2892
f11781c5
AK
2893fi
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2895$as_echo "$ac_cv_path_SED" >&6; }
2896 SED="$ac_cv_path_SED"
2897 rm -f conftest.sed
ad6254c5 2898
f11781c5
AK
2899for ac_prog in gawk mawk nawk awk
2900do
2901 # Extract the first word of "$ac_prog", so it can be a program name with args.
2902set dummy $ac_prog; ac_word=$2
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904$as_echo_n "checking for $ac_word... " >&6; }
2905if test "${ac_cv_prog_AWK+set}" = set; then :
2906 $as_echo_n "(cached) " >&6
ad6254c5 2907else
f11781c5
AK
2908 if test -n "$AWK"; then
2909 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2910else
2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912for as_dir in $PATH
2913do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_AWK="$ac_prog"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922done
2923 done
2924IFS=$as_save_IFS
ad6254c5 2925
ad6254c5 2926fi
ad6254c5 2927fi
f11781c5
AK
2928AWK=$ac_cv_prog_AWK
2929if test -n "$AWK"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2931$as_echo "$AWK" >&6; }
2932else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934$as_echo "no" >&6; }
ad6254c5 2935fi
ad6254c5 2936
ad6254c5 2937
f11781c5 2938 test -n "$AWK" && break
ad6254c5
AK
2939done
2940
f11781c5
AK
2941ac_ext=c
2942ac_cpp='$CPP $CPPFLAGS'
2943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946if test -n "$ac_tool_prefix"; then
2947 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2948set dummy ${ac_tool_prefix}gcc; ac_word=$2
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950$as_echo_n "checking for $ac_word... " >&6; }
2951if test "${ac_cv_prog_CC+set}" = set; then :
ec6a6fbe 2952 $as_echo_n "(cached) " >&6
ad6254c5 2953else
f11781c5
AK
2954 if test -n "$CC"; then
2955 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 2956else
f11781c5
AK
2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958for as_dir in $PATH
2959do
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 break 2
2967 fi
2968done
2969 done
2970IFS=$as_save_IFS
ad6254c5 2971
ad6254c5 2972fi
ad6254c5 2973fi
f11781c5
AK
2974CC=$ac_cv_prog_CC
2975if test -n "$CC"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2977$as_echo "$CC" >&6; }
2978else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980$as_echo "no" >&6; }
ad6254c5 2981fi
ad6254c5 2982
f11781c5
AK
2983
2984fi
2985if test -z "$ac_cv_prog_CC"; then
2986 ac_ct_CC=$CC
2987 # Extract the first word of "gcc", so it can be a program name with args.
2988set dummy gcc; ac_word=$2
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990$as_echo_n "checking for $ac_word... " >&6; }
2991if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 2992 $as_echo_n "(cached) " >&6
ad6254c5 2993else
f11781c5
AK
2994 if test -n "$ac_ct_CC"; then
2995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 2996else
f11781c5
AK
2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998for as_dir in $PATH
2999do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004 ac_cv_prog_ac_ct_CC="gcc"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3007 fi
3008done
3009 done
3010IFS=$as_save_IFS
d911ec67 3011
d911ec67 3012fi
d911ec67 3013fi
f11781c5
AK
3014ac_ct_CC=$ac_cv_prog_ac_ct_CC
3015if test -n "$ac_ct_CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3017$as_echo "$ac_ct_CC" >&6; }
3018else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020$as_echo "no" >&6; }
d911ec67 3021fi
d911ec67 3022
f11781c5
AK
3023 if test "x$ac_ct_CC" = x; then
3024 CC=""
3025 else
3026 case $cross_compiling:$ac_tool_warned in
3027yes:)
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3030ac_tool_warned=yes ;;
3031esac
3032 CC=$ac_ct_CC
3033 fi
3034else
3035 CC="$ac_cv_prog_CC"
d911ec67 3036fi
d911ec67 3037
f11781c5
AK
3038if test -z "$CC"; then
3039 if test -n "$ac_tool_prefix"; then
3040 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3041set dummy ${ac_tool_prefix}cc; ac_word=$2
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043$as_echo_n "checking for $ac_word... " >&6; }
3044if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67 3045 $as_echo_n "(cached) " >&6
d911ec67 3046else
f11781c5
AK
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 3049else
f11781c5
AK
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_CC="${ac_tool_prefix}cc"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061done
3062 done
3063IFS=$as_save_IFS
d911ec67 3064
f11781c5
AK
3065fi
3066fi
3067CC=$ac_cv_prog_CC
3068if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070$as_echo "$CC" >&6; }
3071else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
d911ec67
AK
3074fi
3075
d911ec67 3076
f11781c5
AK
3077 fi
3078fi
3079if test -z "$CC"; then
3080 # Extract the first word of "cc", so it can be a program name with args.
3081set dummy cc; ac_word=$2
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083$as_echo_n "checking for $ac_word... " >&6; }
3084if test "${ac_cv_prog_CC+set}" = set; then :
3085 $as_echo_n "(cached) " >&6
d911ec67 3086else
f11781c5
AK
3087 if test -n "$CC"; then
3088 ac_cv_prog_CC="$CC" # Let the user override the test.
3089else
3090 ac_prog_rejected=no
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3099 ac_prog_rejected=yes
3100 continue
3101 fi
3102 ac_cv_prog_CC="cc"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3105 fi
3106done
3107 done
3108IFS=$as_save_IFS
d911ec67 3109
f11781c5
AK
3110if test $ac_prog_rejected = yes; then
3111 # We found a bogon in the path, so make sure we never use it.
3112 set dummy $ac_cv_prog_CC
3113 shift
3114 if test $# != 0; then
3115 # We chose a different compiler from the bogus one.
3116 # However, it has the same basename, so the bogon will be chosen
3117 # first if we set CC to just the basename; use the full file name.
3118 shift
3119 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3120 fi
3121fi
3122fi
3123fi
3124CC=$ac_cv_prog_CC
3125if test -n "$CC"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127$as_echo "$CC" >&6; }
3128else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130$as_echo "no" >&6; }
d911ec67
AK
3131fi
3132
d911ec67 3133
f11781c5
AK
3134fi
3135if test -z "$CC"; then
3136 if test -n "$ac_tool_prefix"; then
3137 for ac_prog in cl.exe
3138 do
3139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3140set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142$as_echo_n "checking for $ac_word... " >&6; }
3143if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3144 $as_echo_n "(cached) " >&6
3145else
f11781c5
AK
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3148else
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160done
3161 done
3162IFS=$as_save_IFS
d911ec67
AK
3163
3164fi
f11781c5
AK
3165fi
3166CC=$ac_cv_prog_CC
3167if test -n "$CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169$as_echo "$CC" >&6; }
3170else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172$as_echo "no" >&6; }
d911ec67
AK
3173fi
3174
d911ec67 3175
f11781c5
AK
3176 test -n "$CC" && break
3177 done
3178fi
3179if test -z "$CC"; then
3180 ac_ct_CC=$CC
3181 for ac_prog in cl.exe
3182do
3183 # Extract the first word of "$ac_prog", so it can be a program name with args.
3184set dummy $ac_prog; ac_word=$2
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186$as_echo_n "checking for $ac_word... " >&6; }
3187if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d911ec67
AK
3188 $as_echo_n "(cached) " >&6
3189else
f11781c5
AK
3190 if test -n "$ac_ct_CC"; then
3191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3192else
f11781c5
AK
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3200 ac_cv_prog_ac_ct_CC="$ac_prog"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204done
3205 done
3206IFS=$as_save_IFS
ad6254c5 3207
ad6254c5 3208fi
ad6254c5 3209fi
f11781c5
AK
3210ac_ct_CC=$ac_cv_prog_ac_ct_CC
3211if test -n "$ac_ct_CC"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3213$as_echo "$ac_ct_CC" >&6; }
3214else
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216$as_echo "no" >&6; }
ad6254c5 3217fi
ad6254c5 3218
d911ec67 3219
f11781c5
AK
3220 test -n "$ac_ct_CC" && break
3221done
d911ec67 3222
f11781c5
AK
3223 if test "x$ac_ct_CC" = x; then
3224 CC=""
3225 else
3226 case $cross_compiling:$ac_tool_warned in
3227yes:)
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3230ac_tool_warned=yes ;;
d911ec67 3231esac
f11781c5
AK
3232 CC=$ac_ct_CC
3233 fi
3234fi
ad6254c5
AK
3235
3236fi
d911ec67
AK
3237
3238
f11781c5
AK
3239test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241as_fn_error $? "no acceptable C compiler found in \$PATH
3242See \`config.log' for more details" "$LINENO" 5; }
3243
3244# Provide some information about the compiler.
3245$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3246set X $ac_compile
3247ac_compiler=$2
3248for ac_option in --version -v -V -qversion; do
3249 { { ac_try="$ac_compiler $ac_option >&5"
3250case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253esac
3254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255$as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3257 ac_status=$?
3258 if test -s conftest.err; then
3259 sed '10a\
3260... rest of stderr output deleted ...
3261 10q' conftest.err >conftest.er1
3262 cat conftest.er1 >&5
3263 fi
3264 rm -f conftest.er1 conftest.err
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }
3267done
ad6254c5 3268
f11781c5 3269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3270/* end confdefs.h. */
f11781c5 3271
ad6254c5
AK
3272int
3273main ()
3274{
f11781c5 3275
ad6254c5
AK
3276 ;
3277 return 0;
3278}
3279_ACEOF
f11781c5
AK
3280ac_clean_files_save=$ac_clean_files
3281ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3282# Try to create an executable without -o first, disregard a.out.
3283# It will help us diagnose broken compilers, and finding out an intuition
3284# of exeext.
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3286$as_echo_n "checking whether the C compiler works... " >&6; }
3287ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3288
3289# The possible output files:
3290ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3291
3292ac_rmfiles=
3293for ac_file in $ac_files
3294do
3295 case $ac_file in
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3297 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3298 esac
3299done
3300rm -f $ac_rmfiles
3301
3302if { { ac_try="$ac_link_default"
7a197a62
AK
3303case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306esac
f11781c5
AK
3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308$as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_link_default") 2>&5
ad6254c5 3310 ac_status=$?
f11781c5
AK
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; then :
3313 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3314# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3315# in a Makefile. We should not override ac_cv_exeext if it was cached,
3316# so that the user can short-circuit this test for compilers unknown to
3317# Autoconf.
3318for ac_file in $ac_files ''
3319do
3320 test -f "$ac_file" || continue
3321 case $ac_file in
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3323 ;;
3324 [ab].out )
3325 # We found the default executable, but exeext='' is most
3326 # certainly right.
3327 break;;
3328 *.* )
3329 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3330 then :; else
3331 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332 fi
3333 # We set ac_cv_exeext here because the later test for it is not
3334 # safe: cross compilers may not add the suffix if given an `-o'
3335 # argument, so we may need to know it at that point already.
3336 # Even if this section looks crufty: it has the advantage of
3337 # actually working.
3338 break;;
3339 * )
3340 break;;
3341 esac
3342done
3343test "$ac_cv_exeext" = no && ac_cv_exeext=
3344
ad6254c5 3345else
f11781c5
AK
3346 ac_file=''
3347fi
3348if test -z "$ac_file"; then :
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350$as_echo "no" >&6; }
ec6a6fbe 3351$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
f11781c5
AK
3354{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356as_fn_error 77 "C compiler cannot create executables
3357See \`config.log' for more details" "$LINENO" 5; }
3358else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360$as_echo "yes" >&6; }
ad6254c5 3361fi
f11781c5
AK
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3363$as_echo_n "checking for C compiler default output file name... " >&6; }
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3365$as_echo "$ac_file" >&6; }
3366ac_exeext=$ac_cv_exeext
7a197a62 3367
f11781c5
AK
3368rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3369ac_clean_files=$ac_clean_files_save
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3371$as_echo_n "checking for suffix of executables... " >&6; }
3372if { { ac_try="$ac_link"
3373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
8a2fc586 3376esac
f11781c5
AK
3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
3383 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3384# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3385# work properly (i.e., refer to `conftest.exe'), while it won't with
3386# `rm'.
3387for ac_file in conftest.exe conftest conftest.*; do
3388 test -f "$ac_file" || continue
3389 case $ac_file in
3390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3391 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3392 break;;
3393 * ) break;;
3394 esac
3395done
3396else
3397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3400See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3401fi
f11781c5
AK
3402rm -f conftest conftest$ac_cv_exeext
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3404$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3405
f11781c5
AK
3406rm -f conftest.$ac_ext
3407EXEEXT=$ac_cv_exeext
3408ac_exeext=$EXEEXT
3409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3410/* end confdefs.h. */
f11781c5 3411#include <stdio.h>
ad6254c5 3412int
f11781c5 3413main ()
ad6254c5 3414{
f11781c5
AK
3415FILE *f = fopen ("conftest.out", "w");
3416 return ferror (f) || fclose (f) != 0;
ad6254c5 3417
f11781c5 3418 ;
7a197a62 3419 return 0;
ad6254c5 3420}
ad6254c5 3421_ACEOF
f11781c5
AK
3422ac_clean_files="$ac_clean_files conftest.out"
3423# Check that the compiler produces executables we can run. If not, either
3424# the compiler is broken, or we cross compile.
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3426$as_echo_n "checking whether we are cross compiling... " >&6; }
3427if test "$cross_compiling" != yes; then
3428 { { ac_try="$ac_link"
7a197a62
AK
3429case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
f11781c5
AK
3433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434$as_echo "$ac_try_echo"; } >&5
7a197a62 3435 (eval "$ac_link") 2>&5
ad6254c5 3436 ac_status=$?
f11781c5
AK
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }
3439 if { ac_try='./conftest$ac_cv_exeext'
3440 { { case "(($ac_try" in
7a197a62
AK
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443esac
f11781c5
AK
3444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445$as_echo "$ac_try_echo"; } >&5
7a197a62 3446 (eval "$ac_try") 2>&5
ad6254c5 3447 ac_status=$?
f11781c5
AK
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }; }; then
3450 cross_compiling=no
3451 else
3452 if test "$cross_compiling" = maybe; then
3453 cross_compiling=yes
3454 else
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457as_fn_error $? "cannot run C compiled programs.
3458If you meant to cross compile, use \`--host'.
3459See \`config.log' for more details" "$LINENO" 5; }
3460 fi
3461 fi
3462fi
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3464$as_echo "$cross_compiling" >&6; }
3465
3466rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3467ac_clean_files=$ac_clean_files_save
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3469$as_echo_n "checking for suffix of object files... " >&6; }
3470if test "${ac_cv_objext+set}" = set; then :
3471 $as_echo_n "(cached) " >&6
3472else
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474/* end confdefs.h. */
ad6254c5
AK
3475
3476int
3477main ()
3478{
f11781c5 3479
ad6254c5
AK
3480 ;
3481 return 0;
3482}
3483_ACEOF
f11781c5
AK
3484rm -f conftest.o conftest.obj
3485if { { ac_try="$ac_compile"
7a197a62
AK
3486case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489esac
f11781c5
AK
3490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491$as_echo "$ac_try_echo"; } >&5
3492 (eval "$ac_compile") 2>&5
ad6254c5 3493 ac_status=$?
f11781c5
AK
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }; then :
3496 for ac_file in conftest.o conftest.obj conftest.*; do
3497 test -f "$ac_file" || continue;
3498 case $ac_file in
3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3500 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3501 break;;
3502 esac
3503done
ad6254c5 3504else
ec6a6fbe 3505 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3506sed 's/^/| /' conftest.$ac_ext >&5
3507
f11781c5
AK
3508{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510as_fn_error $? "cannot compute suffix of object files: cannot compile
3511See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3512fi
f11781c5 3513rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3514fi
f11781c5
AK
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3516$as_echo "$ac_cv_objext" >&6; }
3517OBJEXT=$ac_cv_objext
3518ac_objext=$OBJEXT
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3520$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3521if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3522 $as_echo_n "(cached) " >&6
ad6254c5 3523else
f11781c5 3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3525/* end confdefs.h. */
3526
ad6254c5
AK
3527int
3528main ()
3529{
f11781c5
AK
3530#ifndef __GNUC__
3531 choke me
3532#endif
3533
ad6254c5
AK
3534 ;
3535 return 0;
3536}
3537_ACEOF
f11781c5
AK
3538if ac_fn_c_try_compile "$LINENO"; then :
3539 ac_compiler_gnu=yes
ad6254c5 3540else
f11781c5 3541 ac_compiler_gnu=no
ad6254c5 3542fi
f11781c5
AK
3543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3545
d0191583 3546fi
f11781c5
AK
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3548$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3549if test $ac_compiler_gnu = yes; then
3550 GCC=yes
d0191583 3551else
f11781c5 3552 GCC=
d0191583 3553fi
f11781c5
AK
3554ac_test_CFLAGS=${CFLAGS+set}
3555ac_save_CFLAGS=$CFLAGS
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3557$as_echo_n "checking whether $CC accepts -g... " >&6; }
3558if test "${ac_cv_prog_cc_g+set}" = set; then :
3559 $as_echo_n "(cached) " >&6
3560else
3561 ac_save_c_werror_flag=$ac_c_werror_flag
3562 ac_c_werror_flag=yes
3563 ac_cv_prog_cc_g=no
3564 CFLAGS="-g"
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h. */
72b2cb61 3567
f11781c5
AK
3568int
3569main ()
3570{
72b2cb61 3571
f11781c5
AK
3572 ;
3573 return 0;
3574}
3575_ACEOF
3576if ac_fn_c_try_compile "$LINENO"; then :
3577 ac_cv_prog_cc_g=yes
3578else
3579 CFLAGS=""
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h. */
ad6254c5 3582
f11781c5
AK
3583int
3584main ()
3585{
ad6254c5 3586
f11781c5
AK
3587 ;
3588 return 0;
3589}
d0191583 3590_ACEOF
f11781c5
AK
3591if ac_fn_c_try_compile "$LINENO"; then :
3592
3593else
3594 ac_c_werror_flag=$ac_save_c_werror_flag
3595 CFLAGS="-g"
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3597/* end confdefs.h. */
7a197a62 3598
f11781c5
AK
3599int
3600main ()
3601{
ad6254c5 3602
f11781c5
AK
3603 ;
3604 return 0;
3605}
3606_ACEOF
3607if ac_fn_c_try_compile "$LINENO"; then :
3608 ac_cv_prog_cc_g=yes
3609fi
3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611fi
3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613fi
3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 ac_c_werror_flag=$ac_save_c_werror_flag
3616fi
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3618$as_echo "$ac_cv_prog_cc_g" >&6; }
3619if test "$ac_test_CFLAGS" = set; then
3620 CFLAGS=$ac_save_CFLAGS
3621elif test $ac_cv_prog_cc_g = yes; then
3622 if test "$GCC" = yes; then
3623 CFLAGS="-g -O2"
3624 else
3625 CFLAGS="-g"
3626 fi
3627else
3628 if test "$GCC" = yes; then
3629 CFLAGS="-O2"
3630 else
3631 CFLAGS=
3632 fi
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3635$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3636if test "${ac_cv_prog_cc_c89+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3638else
3639 ac_cv_prog_cc_c89=no
3640ac_save_CC=$CC
3641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h. */
3643#include <stdarg.h>
3644#include <stdio.h>
3645#include <sys/types.h>
3646#include <sys/stat.h>
3647/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3648struct buf { int x; };
3649FILE * (*rcsopen) (struct buf *, struct stat *, int);
3650static char *e (p, i)
3651 char **p;
3652 int i;
3653{
3654 return p[i];
3655}
3656static char *f (char * (*g) (char **, int), char **p, ...)
3657{
3658 char *s;
3659 va_list v;
3660 va_start (v,p);
3661 s = g (p, va_arg (v,int));
3662 va_end (v);
3663 return s;
3664}
ad6254c5 3665
f11781c5
AK
3666/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3667 function prototypes and stuff, but not '\xHH' hex character constants.
3668 These don't provoke an error unfortunately, instead are silently treated
3669 as 'x'. The following induces an error, until -std is added to get
3670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3671 array size at least. It's necessary to write '\x00'==0 to get something
3672 that's true only with -std. */
3673int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3674
f11781c5
AK
3675/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3676 inside strings and character constants. */
3677#define FOO(x) 'x'
3678int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3679
f11781c5
AK
3680int test (int i, double x);
3681struct s1 {int (*f) (int a);};
3682struct s2 {int (*f) (double a);};
3683int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3684int argc;
3685char **argv;
d0191583
JM
3686int
3687main ()
3688{
f11781c5 3689return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3690 ;
3691 return 0;
3692}
72b2cb61 3693_ACEOF
f11781c5
AK
3694for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3696do
3697 CC="$ac_save_CC $ac_arg"
3698 if ac_fn_c_try_compile "$LINENO"; then :
3699 ac_cv_prog_cc_c89=$ac_arg
3700fi
3701rm -f core conftest.err conftest.$ac_objext
3702 test "x$ac_cv_prog_cc_c89" != "xno" && break
3703done
3704rm -f conftest.$ac_ext
3705CC=$ac_save_CC
3706
3707fi
3708# AC_CACHE_VAL
3709case "x$ac_cv_prog_cc_c89" in
3710 x)
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3712$as_echo "none needed" >&6; } ;;
3713 xno)
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3715$as_echo "unsupported" >&6; } ;;
3716 *)
3717 CC="$CC $ac_cv_prog_cc_c89"
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3719$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3720esac
f11781c5
AK
3721if test "x$ac_cv_prog_cc_c89" != xno; then :
3722
3723fi
3724
3725ac_ext=c
3726ac_cpp='$CPP $CPPFLAGS'
3727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3730
ad6254c5 3731
7a197a62 3732
f11781c5
AK
3733ac_ext=c
3734ac_cpp='$CPP $CPPFLAGS'
3735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3739$as_echo_n "checking how to run the C preprocessor... " >&6; }
3740# On Suns, sometimes $CPP names a directory.
3741if test -n "$CPP" && test -d "$CPP"; then
3742 CPP=
3743fi
3744if test -z "$CPP"; then
3745 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3746 $as_echo_n "(cached) " >&6
ad6254c5 3747else
f11781c5
AK
3748 # Double quotes because CPP needs to be expanded
3749 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3750 do
3751 ac_preproc_ok=false
3752for ac_c_preproc_warn_flag in '' yes
3753do
3754 # Use a header file that comes with gcc, so configuring glibc
3755 # with a fresh cross-compiler works.
3756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3757 # <limits.h> exists even on freestanding compilers.
3758 # On the NeXT, cc -E runs the code through the compiler's parser,
3759 # not just through cpp. "Syntax error" is here to catch this case.
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3761/* end confdefs.h. */
d0191583
JM
3762#ifdef __STDC__
3763# include <limits.h>
3764#else
3765# include <assert.h>
3766#endif
f11781c5
AK
3767 Syntax error
3768_ACEOF
3769if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3770
f11781c5
AK
3771else
3772 # Broken: fails on valid input.
3773continue
3774fi
3775rm -f conftest.err conftest.$ac_ext
d0191583 3776
f11781c5
AK
3777 # OK, works on sane cases. Now check whether nonexistent headers
3778 # can be detected and how.
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780/* end confdefs.h. */
3781#include <ac_nonexistent.h>
72b2cb61 3782_ACEOF
f11781c5
AK
3783if ac_fn_c_try_cpp "$LINENO"; then :
3784 # Broken: success on invalid input.
3785continue
d0191583 3786else
f11781c5
AK
3787 # Passes both tests.
3788ac_preproc_ok=:
3789break
ad6254c5 3790fi
f11781c5 3791rm -f conftest.err conftest.$ac_ext
ad6254c5 3792
f11781c5
AK
3793done
3794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3795rm -f conftest.err conftest.$ac_ext
3796if $ac_preproc_ok; then :
3797 break
7a197a62
AK
3798fi
3799
f11781c5
AK
3800 done
3801 ac_cv_prog_CPP=$CPP
ad6254c5 3802
7a197a62 3803fi
f11781c5
AK
3804 CPP=$ac_cv_prog_CPP
3805else
3806 ac_cv_prog_CPP=$CPP
d0191583 3807fi
f11781c5
AK
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3809$as_echo "$CPP" >&6; }
3810ac_preproc_ok=false
3811for ac_c_preproc_warn_flag in '' yes
3812do
3813 # Use a header file that comes with gcc, so configuring glibc
3814 # with a fresh cross-compiler works.
3815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3816 # <limits.h> exists even on freestanding compilers.
3817 # On the NeXT, cc -E runs the code through the compiler's parser,
3818 # not just through cpp. "Syntax error" is here to catch this case.
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820/* end confdefs.h. */
3821#ifdef __STDC__
3822# include <limits.h>
3823#else
3824# include <assert.h>
3825#endif
3826 Syntax error
3827_ACEOF
3828if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3829
9c961554 3830else
f11781c5
AK
3831 # Broken: fails on valid input.
3832continue
9c961554 3833fi
f11781c5 3834rm -f conftest.err conftest.$ac_ext
9c961554 3835
f11781c5
AK
3836 # OK, works on sane cases. Now check whether nonexistent headers
3837 # can be detected and how.
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839/* end confdefs.h. */
3840#include <ac_nonexistent.h>
3841_ACEOF
3842if ac_fn_c_try_cpp "$LINENO"; then :
3843 # Broken: success on invalid input.
3844continue
3845else
3846 # Passes both tests.
3847ac_preproc_ok=:
3848break
3849fi
3850rm -f conftest.err conftest.$ac_ext
ad6254c5 3851
f11781c5
AK
3852done
3853# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3854rm -f conftest.err conftest.$ac_ext
3855if $ac_preproc_ok; then :
d0191583 3856
f11781c5
AK
3857else
3858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3861See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3862fi
3863
f11781c5
AK
3864ac_ext=c
3865ac_cpp='$CPP $CPPFLAGS'
3866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3869
ad6254c5 3870
f11781c5
AK
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3872$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3873if test "${ac_cv_path_GREP+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
3875else
3876 if test -z "$GREP"; then
3877 ac_path_GREP_found=false
3878 # Loop through the user's path and test for each of PROGNAME-LIST
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3881do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_prog in grep ggrep; do
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3887 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3888# Check for GNU ac_path_GREP and select it if it is found.
3889 # Check for GNU $ac_path_GREP
3890case `"$ac_path_GREP" --version 2>&1` in
3891*GNU*)
3892 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3893*)
3894 ac_count=0
3895 $as_echo_n 0123456789 >"conftest.in"
3896 while :
3897 do
3898 cat "conftest.in" "conftest.in" >"conftest.tmp"
3899 mv "conftest.tmp" "conftest.in"
3900 cp "conftest.in" "conftest.nl"
3901 $as_echo 'GREP' >> "conftest.nl"
3902 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3904 as_fn_arith $ac_count + 1 && ac_count=$as_val
3905 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3906 # Best one so far, save it but keep looking for a better one
3907 ac_cv_path_GREP="$ac_path_GREP"
3908 ac_path_GREP_max=$ac_count
3909 fi
3910 # 10*(2^10) chars as input seems more than enough
3911 test $ac_count -gt 10 && break
3912 done
3913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3914esac
ad6254c5 3915
f11781c5
AK
3916 $ac_path_GREP_found && break 3
3917 done
3918 done
3919 done
3920IFS=$as_save_IFS
3921 if test -z "$ac_cv_path_GREP"; then
3922 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3923 fi
3924else
3925 ac_cv_path_GREP=$GREP
7a197a62
AK
3926fi
3927
d0191583 3928fi
f11781c5
AK
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3930$as_echo "$ac_cv_path_GREP" >&6; }
3931 GREP="$ac_cv_path_GREP"
ad6254c5 3932
24bbc4d7 3933
f11781c5
AK
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3935$as_echo_n "checking for egrep... " >&6; }
3936if test "${ac_cv_path_EGREP+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
3938else
3939 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3940 then ac_cv_path_EGREP="$GREP -E"
3941 else
3942 if test -z "$EGREP"; then
3943 ac_path_EGREP_found=false
3944 # Loop through the user's path and test for each of PROGNAME-LIST
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3947do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_prog in egrep; do
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3953 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3954# Check for GNU ac_path_EGREP and select it if it is found.
3955 # Check for GNU $ac_path_EGREP
3956case `"$ac_path_EGREP" --version 2>&1` in
3957*GNU*)
3958 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3959*)
3960 ac_count=0
3961 $as_echo_n 0123456789 >"conftest.in"
3962 while :
3963 do
3964 cat "conftest.in" "conftest.in" >"conftest.tmp"
3965 mv "conftest.tmp" "conftest.in"
3966 cp "conftest.in" "conftest.nl"
3967 $as_echo 'EGREP' >> "conftest.nl"
3968 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3969 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3970 as_fn_arith $ac_count + 1 && ac_count=$as_val
3971 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3972 # Best one so far, save it but keep looking for a better one
3973 ac_cv_path_EGREP="$ac_path_EGREP"
3974 ac_path_EGREP_max=$ac_count
3975 fi
3976 # 10*(2^10) chars as input seems more than enough
3977 test $ac_count -gt 10 && break
3978 done
3979 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3980esac
24bbc4d7 3981
f11781c5
AK
3982 $ac_path_EGREP_found && break 3
3983 done
3984 done
3985 done
3986IFS=$as_save_IFS
3987 if test -z "$ac_cv_path_EGREP"; then
3988 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3989 fi
24bbc4d7 3990else
f11781c5 3991 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
3992fi
3993
f11781c5 3994 fi
24bbc4d7 3995fi
f11781c5
AK
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3997$as_echo "$ac_cv_path_EGREP" >&6; }
3998 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
3999
4000
f11781c5
AK
4001if test $ac_cv_c_compiler_gnu = yes; then
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4003$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4004if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
93bd259b 4006else
f11781c5
AK
4007 ac_pattern="Autoconf.*'x'"
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h. */
4010#include <sgtty.h>
4011Autoconf TIOCGETP
4012_ACEOF
4013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4015 ac_cv_prog_gcc_traditional=yes
d0191583 4016else
f11781c5 4017 ac_cv_prog_gcc_traditional=no
7a197a62 4018fi
f11781c5 4019rm -f conftest*
7a197a62 4020
72b2cb61 4021
f11781c5
AK
4022 if test $ac_cv_prog_gcc_traditional = no; then
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024/* end confdefs.h. */
4025#include <termio.h>
4026Autoconf TCGETA
72b2cb61 4027_ACEOF
f11781c5
AK
4028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4029 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4030 ac_cv_prog_gcc_traditional=yes
ad6254c5 4031fi
f11781c5 4032rm -f conftest*
ad6254c5 4033
f11781c5 4034 fi
7a197a62 4035fi
f11781c5
AK
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4037$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4038 if test $ac_cv_prog_gcc_traditional = yes; then
4039 CC="$CC -traditional"
4040 fi
ad6254c5
AK
4041fi
4042
f11781c5
AK
4043# Find a good install program. We prefer a C program (faster),
4044# so one script is as good as another. But avoid the broken or
4045# incompatible versions:
4046# SysV /etc/install, /usr/sbin/install
4047# SunOS /usr/etc/install
4048# IRIX /sbin/install
4049# AIX /bin/install
4050# AmigaOS /C/install, which installs bootblocks on floppy discs
4051# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4052# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4053# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4054# OS/2's system install, which has a completely different semantic
4055# ./install, which can be erroneously created by make from ./install.sh.
4056# Reject install programs that cannot install multiple files.
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4058$as_echo_n "checking for a BSD-compatible install... " >&6; }
4059if test -z "$INSTALL"; then
4060if test "${ac_cv_path_install+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
ad6254c5 4062else
f11781c5
AK
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064for as_dir in $PATH
4065do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 # Account for people who put trailing slashes in PATH elements.
4069case $as_dir/ in #((
4070 ./ | .// | /[cC]/* | \
4071 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4072 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4073 /usr/ucb/* ) ;;
4074 *)
4075 # OSF1 and SCO ODT 3.0 have their own names for install.
4076 # Don't use installbsd from OSF since it installs stuff as root
4077 # by default.
4078 for ac_prog in ginstall scoinst install; do
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4081 if test $ac_prog = install &&
4082 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4083 # AIX install. It has an incompatible calling convention.
4084 :
4085 elif test $ac_prog = install &&
4086 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4087 # program-specific install script used by HP pwplus--don't use.
4088 :
4089 else
4090 rm -rf conftest.one conftest.two conftest.dir
4091 echo one > conftest.one
4092 echo two > conftest.two
4093 mkdir conftest.dir
4094 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4095 test -s conftest.one && test -s conftest.two &&
4096 test -s conftest.dir/conftest.one &&
4097 test -s conftest.dir/conftest.two
4098 then
4099 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4100 break 3
4101 fi
4102 fi
4103 fi
4104 done
4105 done
4106 ;;
4107esac
7a197a62 4108
f11781c5
AK
4109 done
4110IFS=$as_save_IFS
d0191583 4111
f11781c5 4112rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4113
4114fi
f11781c5
AK
4115 if test "${ac_cv_path_install+set}" = set; then
4116 INSTALL=$ac_cv_path_install
4117 else
4118 # As a last resort, use the slow shell script. Don't cache a
4119 # value for INSTALL within a source directory, because that will
4120 # break other packages using the cache if that directory is
4121 # removed, or if the value is a relative name.
4122 INSTALL=$ac_install_sh
4123 fi
7a197a62 4124fi
f11781c5
AK
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4126$as_echo "$INSTALL" >&6; }
7a197a62 4127
f11781c5
AK
4128# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4129# It thinks the first close brace ends the variable substitution.
4130test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4131
f11781c5 4132test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4133
f11781c5 4134test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4135
f11781c5
AK
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4137$as_echo_n "checking whether ln -s works... " >&6; }
4138LN_S=$as_ln_s
4139if test "$LN_S" = "ln -s"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4141$as_echo "yes" >&6; }
4142else
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4144$as_echo "no, using $LN_S" >&6; }
15d91f5a 4145fi
ad6254c5 4146
f11781c5
AK
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4148$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4149set x ${MAKE-make}
4150ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4151if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4152 $as_echo_n "(cached) " >&6
d0191583 4153else
f11781c5
AK
4154 cat >conftest.make <<\_ACEOF
4155SHELL = /bin/sh
4156all:
4157 @echo '@@@%%%=$(MAKE)=@@@%%%'
4158_ACEOF
4159# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4160case `${MAKE-make} -f conftest.make 2>/dev/null` in
4161 *@@@%%%=?*=@@@%%%*)
4162 eval ac_cv_prog_make_${ac_make}_set=yes;;
4163 *)
4164 eval ac_cv_prog_make_${ac_make}_set=no;;
4165esac
4166rm -f conftest.make
4167fi
4168if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4170$as_echo "yes" >&6; }
4171 SET_MAKE=
4172else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174$as_echo "no" >&6; }
4175 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4176fi
4177
f11781c5
AK
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4179$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4180if test -z "$MKDIR_P"; then
4181 if test "${ac_cv_path_mkdir+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
4183else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4186do
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_prog in mkdir gmkdir; do
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4192 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4193 'mkdir (GNU coreutils) '* | \
4194 'mkdir (coreutils) '* | \
4195 'mkdir (fileutils) '4.1*)
4196 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4197 break 3;;
4198 esac
4199 done
4200 done
4201 done
4202IFS=$as_save_IFS
d0191583 4203
f11781c5 4204fi
ad6254c5 4205
f11781c5
AK
4206 test -d ./--version && rmdir ./--version
4207 if test "${ac_cv_path_mkdir+set}" = set; then
4208 MKDIR_P="$ac_cv_path_mkdir -p"
4209 else
4210 # As a last resort, use the slow shell script. Don't cache a
4211 # value for MKDIR_P within a source directory, because that will
4212 # break other packages using the cache if that directory is
4213 # removed, or if the value is a relative name.
4214 MKDIR_P="$ac_install_sh -d"
4215 fi
ad6254c5 4216fi
f11781c5
AK
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4218$as_echo "$MKDIR_P" >&6; }
7a197a62 4219
f11781c5
AK
4220if test -n "$ac_tool_prefix"; then
4221 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4222set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224$as_echo_n "checking for $ac_word... " >&6; }
4225if test "${ac_cv_prog_RANLIB+set}" = set; then :
4226 $as_echo_n "(cached) " >&6
4227else
4228 if test -n "$RANLIB"; then
4229 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4230else
4231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 break 2
4241 fi
4242done
4243 done
4244IFS=$as_save_IFS
d0191583 4245
f11781c5
AK
4246fi
4247fi
4248RANLIB=$ac_cv_prog_RANLIB
4249if test -n "$RANLIB"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4251$as_echo "$RANLIB" >&6; }
d0191583 4252else
f11781c5
AK
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254$as_echo "no" >&6; }
ad6254c5 4255fi
ad6254c5 4256
8a2fc586 4257
d0191583 4258fi
f11781c5
AK
4259if test -z "$ac_cv_prog_RANLIB"; then
4260 ac_ct_RANLIB=$RANLIB
4261 # Extract the first word of "ranlib", so it can be a program name with args.
4262set dummy ranlib; ac_word=$2
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264$as_echo_n "checking for $ac_word... " >&6; }
4265if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4266 $as_echo_n "(cached) " >&6
4267else
4268 if test -n "$ac_ct_RANLIB"; then
4269 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4270else
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_prog_ac_ct_RANLIB="ranlib"
4279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4281 fi
4282done
4283 done
4284IFS=$as_save_IFS
8a2fc586 4285
f11781c5
AK
4286fi
4287fi
4288ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4289if test -n "$ac_ct_RANLIB"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4291$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4292else
f11781c5
AK
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294$as_echo "no" >&6; }
8fea97b7
ZK
4295fi
4296
f11781c5
AK
4297 if test "x$ac_ct_RANLIB" = x; then
4298 RANLIB=":"
4299 else
4300 case $cross_compiling:$ac_tool_warned in
4301yes:)
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4304ac_tool_warned=yes ;;
8fea97b7 4305esac
f11781c5
AK
4306 RANLIB=$ac_ct_RANLIB
4307 fi
d0191583 4308else
f11781c5 4309 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4310fi
8a2fc586 4311
f11781c5
AK
4312# Extract the first word of "cflow", so it can be a program name with args.
4313set dummy cflow; ac_word=$2
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315$as_echo_n "checking for $ac_word... " >&6; }
4316if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4317 $as_echo_n "(cached) " >&6
4318else
4319 case $CFLOW_CMD in
4320 [\\/]* | ?:[\\/]*)
4321 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4322 ;;
4323 *)
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH
4326do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4334 fi
4335done
4336 done
4337IFS=$as_save_IFS
8a2fc586 4338
f11781c5
AK
4339 ;;
4340esac
ad6254c5 4341fi
f11781c5
AK
4342CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4343if test -n "$CFLOW_CMD"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4345$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4346else
f11781c5
AK
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348$as_echo "no" >&6; }
37ddf259
AK
4349fi
4350
e2997b73 4351
f11781c5
AK
4352# Extract the first word of "cscope", so it can be a program name with args.
4353set dummy cscope; ac_word=$2
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4355$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4356if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4357 $as_echo_n "(cached) " >&6
4358else
f11781c5 4359 case $CSCOPE_CMD in
e2997b73 4360 [\\/]* | ?:[\\/]*)
f11781c5 4361 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4362 ;;
4363 *)
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
f11781c5 4369 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4371 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4373 break 2
4374 fi
4375done
f11781c5 4376 done
e2997b73
AK
4377IFS=$as_save_IFS
4378
4379 ;;
4380esac
4381fi
f11781c5
AK
4382CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4383if test -n "$CSCOPE_CMD"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4385$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4386else
f11781c5 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4388$as_echo "no" >&6; }
4389fi
f11781c5
AK
4390
4391
4392
4393################################################################################
4394ac_header_dirent=no
4395for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4396 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4398$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4399if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4400 $as_echo_n "(cached) " >&6
4401else
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403/* end confdefs.h. */
4404#include <sys/types.h>
4405#include <$ac_hdr>
4406
4407int
4408main ()
4409{
4410if ((DIR *) 0)
4411return 0;
4412 ;
4413 return 0;
4414}
4415_ACEOF
4416if ac_fn_c_try_compile "$LINENO"; then :
4417 eval "$as_ac_Header=yes"
4418else
4419 eval "$as_ac_Header=no"
4420fi
4421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422fi
4423eval ac_res=\$$as_ac_Header
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4425$as_echo "$ac_res" >&6; }
4426if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4427 cat >>confdefs.h <<_ACEOF
4428#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4429_ACEOF
4430
4431ac_header_dirent=$ac_hdr; break
4432fi
4433
4434done
4435# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4436if test $ac_header_dirent = dirent.h; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4438$as_echo_n "checking for library containing opendir... " >&6; }
4439if test "${ac_cv_search_opendir+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4441else
4442 ac_func_search_save_LIBS=$LIBS
4443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444/* end confdefs.h. */
4445
4446/* Override any GCC internal prototype to avoid an error.
4447 Use char because int might match the return type of a GCC
4448 builtin and then its argument prototype would still apply. */
4449#ifdef __cplusplus
4450extern "C"
4451#endif
4452char opendir ();
4453int
4454main ()
4455{
4456return opendir ();
4457 ;
4458 return 0;
4459}
4460_ACEOF
4461for ac_lib in '' dir; do
4462 if test -z "$ac_lib"; then
4463 ac_res="none required"
4464 else
4465 ac_res=-l$ac_lib
4466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4467 fi
4468 if ac_fn_c_try_link "$LINENO"; then :
4469 ac_cv_search_opendir=$ac_res
4470fi
4471rm -f core conftest.err conftest.$ac_objext \
4472 conftest$ac_exeext
4473 if test "${ac_cv_search_opendir+set}" = set; then :
4474 break
4475fi
4476done
4477if test "${ac_cv_search_opendir+set}" = set; then :
4478
4479else
4480 ac_cv_search_opendir=no
4481fi
4482rm conftest.$ac_ext
4483LIBS=$ac_func_search_save_LIBS
4484fi
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4486$as_echo "$ac_cv_search_opendir" >&6; }
4487ac_res=$ac_cv_search_opendir
4488if test "$ac_res" != no; then :
4489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4490
4491fi
f11781c5
AK
4492
4493else
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4495$as_echo_n "checking for library containing opendir... " >&6; }
4496if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4497 $as_echo_n "(cached) " >&6
4498else
f11781c5
AK
4499 ac_func_search_save_LIBS=$LIBS
4500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501/* end confdefs.h. */
e2997b73 4502
f11781c5
AK
4503/* Override any GCC internal prototype to avoid an error.
4504 Use char because int might match the return type of a GCC
4505 builtin and then its argument prototype would still apply. */
4506#ifdef __cplusplus
4507extern "C"
4508#endif
4509char opendir ();
4510int
4511main ()
4512{
4513return opendir ();
4514 ;
4515 return 0;
4516}
4517_ACEOF
4518for ac_lib in '' x; do
4519 if test -z "$ac_lib"; then
4520 ac_res="none required"
4521 else
4522 ac_res=-l$ac_lib
4523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4524 fi
4525 if ac_fn_c_try_link "$LINENO"; then :
4526 ac_cv_search_opendir=$ac_res
e2997b73 4527fi
f11781c5
AK
4528rm -f core conftest.err conftest.$ac_objext \
4529 conftest$ac_exeext
4530 if test "${ac_cv_search_opendir+set}" = set; then :
4531 break
e2997b73 4532fi
f11781c5
AK
4533done
4534if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4535
e2997b73 4536else
f11781c5
AK
4537 ac_cv_search_opendir=no
4538fi
4539rm conftest.$ac_ext
4540LIBS=$ac_func_search_save_LIBS
e2997b73 4541fi
f11781c5
AK
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4543$as_echo "$ac_cv_search_opendir" >&6; }
4544ac_res=$ac_cv_search_opendir
4545if test "$ac_res" != no; then :
4546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4547
4548fi
8c4e8a18 4549
e2997b73
AK
4550fi
4551
f11781c5
AK
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4553$as_echo_n "checking for ANSI C header files... " >&6; }
4554if test "${ac_cv_header_stdc+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4556else
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558/* end confdefs.h. */
4559#include <stdlib.h>
4560#include <stdarg.h>
4561#include <string.h>
4562#include <float.h>
e2997b73 4563
f11781c5
AK
4564int
4565main ()
4566{
4567
4568 ;
4569 return 0;
4570}
4571_ACEOF
4572if ac_fn_c_try_compile "$LINENO"; then :
4573 ac_cv_header_stdc=yes
e2997b73 4574else
f11781c5 4575 ac_cv_header_stdc=no
e2997b73 4576fi
f11781c5
AK
4577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578
4579if test $ac_cv_header_stdc = yes; then
4580 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582/* end confdefs.h. */
4583#include <string.h>
4584
4585_ACEOF
4586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4587 $EGREP "memchr" >/dev/null 2>&1; then :
4588
e2997b73 4589else
f11781c5 4590 ac_cv_header_stdc=no
e2997b73 4591fi
f11781c5 4592rm -f conftest*
e2997b73 4593
f11781c5 4594fi
e2997b73 4595
f11781c5
AK
4596if test $ac_cv_header_stdc = yes; then
4597 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599/* end confdefs.h. */
4600#include <stdlib.h>
e2997b73 4601
f11781c5
AK
4602_ACEOF
4603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4604 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4605
e2997b73 4606else
f11781c5 4607 ac_cv_header_stdc=no
e2997b73 4608fi
f11781c5 4609rm -f conftest*
e2997b73 4610
e2997b73 4611fi
90c80887 4612
f11781c5
AK
4613if test $ac_cv_header_stdc = yes; then
4614 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4615 if test "$cross_compiling" = yes; then :
4616 :
4617else
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619/* end confdefs.h. */
4620#include <ctype.h>
4621#include <stdlib.h>
4622#if ((' ' & 0x0FF) == 0x020)
4623# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4624# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4625#else
4626# define ISLOWER(c) \
4627 (('a' <= (c) && (c) <= 'i') \
4628 || ('j' <= (c) && (c) <= 'r') \
4629 || ('s' <= (c) && (c) <= 'z'))
4630# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4631#endif
4632
4633#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4634int
4635main ()
4636{
4637 int i;
4638 for (i = 0; i < 256; i++)
4639 if (XOR (islower (i), ISLOWER (i))
4640 || toupper (i) != TOUPPER (i))
4641 return 2;
4642 return 0;
4643}
4644_ACEOF
4645if ac_fn_c_try_run "$LINENO"; then :
90c80887 4646
90c80887 4647else
f11781c5 4648 ac_cv_header_stdc=no
90c80887 4649fi
f11781c5
AK
4650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4651 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4652fi
90c80887 4653
90c80887 4654fi
90c80887 4655fi
f11781c5
AK
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4657$as_echo "$ac_cv_header_stdc" >&6; }
4658if test $ac_cv_header_stdc = yes; then
90c80887 4659
f11781c5 4660$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4661
90c80887 4662fi
f11781c5
AK
4663
4664# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4665for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4666 inttypes.h stdint.h unistd.h
4667do :
4668 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4669ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4670"
4671if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4672 cat >>confdefs.h <<_ACEOF
4673#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4674_ACEOF
4675
90c80887 4676fi
f11781c5
AK
4677
4678done
4679
4680
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4682$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4683if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
4685else
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687/* end confdefs.h. */
4688#include <sys/types.h>
4689int
4690main ()
4691{
4692return makedev(0, 0);
4693 ;
4694 return 0;
4695}
4696_ACEOF
4697if ac_fn_c_try_link "$LINENO"; then :
4698 ac_cv_header_sys_types_h_makedev=yes
4699else
4700 ac_cv_header_sys_types_h_makedev=no
90c80887 4701fi
f11781c5
AK
4702rm -f core conftest.err conftest.$ac_objext \
4703 conftest$ac_exeext conftest.$ac_ext
4704
90c80887 4705fi
f11781c5
AK
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4707$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4708
4709if test $ac_cv_header_sys_types_h_makedev = no; then
4710ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4711if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4712
4713$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4714
a946372e 4715fi
e2997b73 4716
e2997b73 4717
a946372e 4718
f11781c5
AK
4719 if test $ac_cv_header_sys_mkdev_h = no; then
4720 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4721if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4722
4723$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4724
e2997b73 4725fi
a946372e 4726
a946372e 4727
f11781c5
AK
4728 fi
4729fi
4730
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4732$as_echo_n "checking for ANSI C header files... " >&6; }
4733if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4734 $as_echo_n "(cached) " >&6
4735else
f11781c5 4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4737/* end confdefs.h. */
f11781c5
AK
4738#include <stdlib.h>
4739#include <stdarg.h>
4740#include <string.h>
4741#include <float.h>
a946372e 4742
a946372e
AK
4743int
4744main ()
4745{
f11781c5 4746
a946372e
AK
4747 ;
4748 return 0;
4749}
4750_ACEOF
f11781c5
AK
4751if ac_fn_c_try_compile "$LINENO"; then :
4752 ac_cv_header_stdc=yes
e2997b73 4753else
f11781c5
AK
4754 ac_cv_header_stdc=no
4755fi
4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757
4758if test $ac_cv_header_stdc = yes; then
4759 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h. */
4762#include <string.h>
4763
4764_ACEOF
4765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4766 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4767
f11781c5
AK
4768else
4769 ac_cv_header_stdc=no
a946372e 4770fi
f11781c5 4771rm -f conftest*
e2997b73 4772
a946372e 4773fi
e2997b73 4774
f11781c5
AK
4775if test $ac_cv_header_stdc = yes; then
4776 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778/* end confdefs.h. */
4779#include <stdlib.h>
4780
4781_ACEOF
4782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4783 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4784
e2997b73 4785else
f11781c5 4786 ac_cv_header_stdc=no
e2997b73 4787fi
f11781c5 4788rm -f conftest*
e2997b73 4789
f11781c5 4790fi
a946372e 4791
f11781c5
AK
4792if test $ac_cv_header_stdc = yes; then
4793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4794 if test "$cross_compiling" = yes; then :
4795 :
4796else
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798/* end confdefs.h. */
4799#include <ctype.h>
4800#include <stdlib.h>
4801#if ((' ' & 0x0FF) == 0x020)
4802# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4803# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4804#else
4805# define ISLOWER(c) \
4806 (('a' <= (c) && (c) <= 'i') \
4807 || ('j' <= (c) && (c) <= 'r') \
4808 || ('s' <= (c) && (c) <= 'z'))
4809# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4810#endif
e2997b73 4811
f11781c5
AK
4812#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4813int
4814main ()
4815{
4816 int i;
4817 for (i = 0; i < 256; i++)
4818 if (XOR (islower (i), ISLOWER (i))
4819 || toupper (i) != TOUPPER (i))
4820 return 2;
4821 return 0;
4822}
4823_ACEOF
4824if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4825
e2997b73 4826else
f11781c5 4827 ac_cv_header_stdc=no
e2997b73 4828fi
f11781c5
AK
4829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4830 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4831fi
f11781c5 4832
e2997b73 4833fi
e2997b73 4834fi
f11781c5
AK
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4836$as_echo "$ac_cv_header_stdc" >&6; }
4837if test $ac_cv_header_stdc = yes; then
e2997b73 4838
f11781c5 4839$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4840
f11781c5 4841fi
e2997b73 4842
f11781c5
AK
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4844$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4845if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
4847else
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849/* end confdefs.h. */
4850#include <sys/types.h>
4851#include <sys/wait.h>
4852#ifndef WEXITSTATUS
4853# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4854#endif
4855#ifndef WIFEXITED
4856# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4857#endif
e2997b73 4858
f11781c5
AK
4859int
4860main ()
4861{
4862 int s;
4863 wait (&s);
4864 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4865 ;
4866 return 0;
4867}
4868_ACEOF
4869if ac_fn_c_try_compile "$LINENO"; then :
4870 ac_cv_header_sys_wait_h=yes
e2997b73 4871else
f11781c5 4872 ac_cv_header_sys_wait_h=no
e2997b73 4873fi
f11781c5
AK
4874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875fi
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4877$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4878if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4879
f11781c5 4880$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4881
d0191583 4882fi
f11781c5
AK
4883
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4885$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4886if test "${ac_cv_header_time+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
fc54be10 4888else
f11781c5 4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4890/* end confdefs.h. */
f11781c5
AK
4891#include <sys/types.h>
4892#include <sys/time.h>
4893#include <time.h>
4894
4895int
4896main ()
4897{
4898if ((struct tm *) 0)
4899return 0;
4900 ;
4901 return 0;
4902}
a946372e 4903_ACEOF
f11781c5
AK
4904if ac_fn_c_try_compile "$LINENO"; then :
4905 ac_cv_header_time=yes
a946372e 4906else
f11781c5
AK
4907 ac_cv_header_time=no
4908fi
4909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910fi
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4912$as_echo "$ac_cv_header_time" >&6; }
4913if test $ac_cv_header_time = yes; then
4914
4915$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4916
4917fi
4918
4919
4920for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4921 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4922 sys/wait.h time.h
4923do :
4924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4925ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4926if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4927 cat >>confdefs.h <<_ACEOF
4928#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4929_ACEOF
d0191583 4930
f11781c5
AK
4931else
4932 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4933fi
4934
f11781c5 4935done
fddafd51 4936
f11781c5
AK
4937
4938case "$host_os" in
4939 linux*)
4940 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4941do :
4942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4943ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4944if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4945 cat >>confdefs.h <<_ACEOF
4946#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a946372e 4947_ACEOF
a946372e 4948
f11781c5
AK
4949else
4950 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
4951fi
4952
f11781c5
AK
4953done
4954 ;;
4955 darwin*)
4956 for ac_header in machine/endian.h sys/disk.h
4957do :
4958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4959ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4960if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4961 cat >>confdefs.h <<_ACEOF
4962#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4963_ACEOF
a946372e 4964
f11781c5
AK
4965else
4966 as_fn_error $? "bailing out" "$LINENO" 5
4967fi
a946372e 4968
f11781c5
AK
4969done
4970 ;;
a946372e 4971esac
f11781c5
AK
4972
4973for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4974 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4975 sys/types.h unistd.h
4976do :
4977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4978ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4979if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4980 cat >>confdefs.h <<_ACEOF
4981#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4982_ACEOF
4983
a946372e 4984else
f11781c5 4985 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 4986fi
a946372e 4987
f11781c5
AK
4988done
4989
4990for ac_header in termios.h sys/statvfs.h
4991do :
4992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4993ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
4995 cat >>confdefs.h <<_ACEOF
4996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4997_ACEOF
4998
a946372e
AK
4999fi
5000
5001done
5002
a946372e 5003
f11781c5
AK
5004################################################################################
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5006$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5007if test "${ac_cv_c_const+set}" = set; then :
a946372e 5008 $as_echo_n "(cached) " >&6
a946372e 5009else
f11781c5 5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5011/* end confdefs.h. */
a946372e 5012
f11781c5
AK
5013int
5014main ()
5015{
5016/* FIXME: Include the comments suggested by Paul. */
5017#ifndef __cplusplus
5018 /* Ultrix mips cc rejects this. */
5019 typedef int charset[2];
5020 const charset cs;
5021 /* SunOS 4.1.1 cc rejects this. */
5022 char const *const *pcpcc;
5023 char **ppc;
5024 /* NEC SVR4.0.2 mips cc rejects this. */
5025 struct point {int x, y;};
5026 static struct point const zero = {0,0};
5027 /* AIX XL C 1.02.0.0 rejects this.
5028 It does not let you subtract one const X* pointer from another in
5029 an arm of an if-expression whose if-part is not a constant
5030 expression */
5031 const char *g = "string";
5032 pcpcc = &g + (g ? g-g : 0);
5033 /* HPUX 7.0 cc rejects these. */
5034 ++pcpcc;
5035 ppc = (char**) pcpcc;
5036 pcpcc = (char const *const *) ppc;
5037 { /* SCO 3.2v4 cc rejects this. */
5038 char *t;
5039 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5040
f11781c5
AK
5041 *t++ = 0;
5042 if (s) return 0;
5043 }
5044 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5045 int x[] = {25, 17};
5046 const int *foo = &x[0];
5047 ++foo;
5048 }
5049 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5050 typedef const int *iptr;
5051 iptr p = 0;
5052 ++p;
5053 }
5054 { /* AIX XL C 1.02.0.0 rejects this saying
5055 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5056 struct s { int j; const int *ap[3]; };
5057 struct s *b; b->j = 5;
5058 }
5059 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5060 const int foo = 10;
5061 if (!foo) return 0;
5062 }
5063 return !cs[0] && !zero.x;
5064#endif
a946372e 5065
f11781c5
AK
5066 ;
5067 return 0;
5068}
a946372e 5069_ACEOF
f11781c5
AK
5070if ac_fn_c_try_compile "$LINENO"; then :
5071 ac_cv_c_const=yes
a946372e 5072else
f11781c5
AK
5073 ac_cv_c_const=no
5074fi
5075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5076fi
f11781c5
AK
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5078$as_echo "$ac_cv_c_const" >&6; }
5079if test $ac_cv_c_const = no; then
a946372e 5080
f11781c5 5081$as_echo "#define const /**/" >>confdefs.h
a946372e 5082
f11781c5 5083fi
a946372e 5084
f11781c5
AK
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5086$as_echo_n "checking for inline... " >&6; }
5087if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5088 $as_echo_n "(cached) " >&6
5089else
f11781c5
AK
5090 ac_cv_c_inline=no
5091for ac_kw in inline __inline__ __inline; do
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093/* end confdefs.h. */
5094#ifndef __cplusplus
5095typedef int foo_t;
5096static $ac_kw foo_t static_foo () {return 0; }
5097$ac_kw foo_t foo () {return 0; }
5098#endif
5099
5100_ACEOF
5101if ac_fn_c_try_compile "$LINENO"; then :
5102 ac_cv_c_inline=$ac_kw
a946372e 5103fi
f11781c5
AK
5104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 test "$ac_cv_c_inline" != no && break
5106done
a946372e
AK
5107
5108fi
f11781c5
AK
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5110$as_echo "$ac_cv_c_inline" >&6; }
5111
5112case $ac_cv_c_inline in
5113 inline | yes) ;;
5114 *)
5115 case $ac_cv_c_inline in
5116 no) ac_val=;;
5117 *) ac_val=$ac_cv_c_inline;;
5118 esac
5119 cat >>confdefs.h <<_ACEOF
5120#ifndef __cplusplus
5121#define inline $ac_val
5122#endif
5123_ACEOF
5124 ;;
5125esac
5126
5127ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5128if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5129
5130cat >>confdefs.h <<_ACEOF
5131#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5132_ACEOF
5133
f11781c5 5134
a946372e
AK
5135fi
5136
f11781c5
AK
5137ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5138if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5139
a946372e 5140else
f11781c5
AK
5141
5142cat >>confdefs.h <<_ACEOF
5143#define off_t long int
5144_ACEOF
5145
a946372e
AK
5146fi
5147
f11781c5
AK
5148ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5149if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5150
a946372e 5151else
f11781c5
AK
5152
5153cat >>confdefs.h <<_ACEOF
5154#define pid_t int
5155_ACEOF
5156
5157fi
5158
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5160$as_echo_n "checking return type of signal handlers... " >&6; }
5161if test "${ac_cv_type_signal+set}" = set; then :
5162 $as_echo_n "(cached) " >&6
a946372e 5163else
f11781c5
AK
5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165/* end confdefs.h. */
5166#include <sys/types.h>
5167#include <signal.h>
5168
5169int
5170main ()
5171{
5172return *(signal (0, 0)) (0) == 1;
5173 ;
5174 return 0;
5175}
5176_ACEOF
5177if ac_fn_c_try_compile "$LINENO"; then :
5178 ac_cv_type_signal=int
5179else
5180 ac_cv_type_signal=void
a946372e 5181fi
f11781c5 5182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5183fi
f11781c5
AK
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5185$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5186
f11781c5
AK
5187cat >>confdefs.h <<_ACEOF
5188#define RETSIGTYPE $ac_cv_type_signal
5189_ACEOF
a946372e
AK
5190
5191
f11781c5
AK
5192ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5193if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5194
a946372e 5195else
a946372e 5196
f11781c5
AK
5197cat >>confdefs.h <<_ACEOF
5198#define size_t unsigned int
5199_ACEOF
a946372e 5200
a946372e 5201fi
f11781c5
AK
5202
5203ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5204if test "x$ac_cv_type_mode_t" = x""yes; then :
5205
a946372e 5206else
f11781c5
AK
5207
5208cat >>confdefs.h <<_ACEOF
5209#define mode_t int
a946372e 5210_ACEOF
a946372e 5211
a946372e
AK
5212fi
5213
f11781c5
AK
5214ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5215case $ac_cv_c_int8_t in #(
5216 no|yes) ;; #(
5217 *)
a946372e 5218
f11781c5
AK
5219cat >>confdefs.h <<_ACEOF
5220#define int8_t $ac_cv_c_int8_t
a946372e 5221_ACEOF
f11781c5 5222;;
a946372e 5223esac
a946372e 5224
f11781c5
AK
5225ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5226case $ac_cv_c_int16_t in #(
5227 no|yes) ;; #(
5228 *)
a946372e 5229
f11781c5
AK
5230cat >>confdefs.h <<_ACEOF
5231#define int16_t $ac_cv_c_int16_t
5232_ACEOF
5233;;
5234esac
a946372e 5235
f11781c5
AK
5236ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5237case $ac_cv_c_int32_t in #(
5238 no|yes) ;; #(
5239 *)
a946372e 5240
f11781c5
AK
5241cat >>confdefs.h <<_ACEOF
5242#define int32_t $ac_cv_c_int32_t
5243_ACEOF
5244;;
a946372e 5245esac
a946372e 5246
f11781c5
AK
5247ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5248case $ac_cv_c_int64_t in #(
5249 no|yes) ;; #(
5250 *)
5251
5252cat >>confdefs.h <<_ACEOF
5253#define int64_t $ac_cv_c_int64_t
a946372e 5254_ACEOF
f11781c5
AK
5255;;
5256esac
5257
5258ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5259if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5260
5261else
a946372e 5262
f11781c5
AK
5263cat >>confdefs.h <<_ACEOF
5264#define ssize_t int
5265_ACEOF
a946372e 5266
f11781c5 5267fi
a946372e 5268
f11781c5
AK
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5270$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5271if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5272 $as_echo_n "(cached) " >&6
a946372e 5273else
f11781c5 5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5275/* end confdefs.h. */
f11781c5
AK
5276#include <sys/types.h>
5277
a946372e 5278_ACEOF
f11781c5
AK
5279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280 $EGREP "uid_t" >/dev/null 2>&1; then :
5281 ac_cv_type_uid_t=yes
a946372e 5282else
f11781c5
AK
5283 ac_cv_type_uid_t=no
5284fi
5285rm -f conftest*
a946372e 5286
a946372e 5287fi
f11781c5
AK
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5289$as_echo "$ac_cv_type_uid_t" >&6; }
5290if test $ac_cv_type_uid_t = no; then
a946372e 5291
f11781c5 5292$as_echo "#define uid_t int" >>confdefs.h
a946372e 5293
f11781c5
AK
5294
5295$as_echo "#define gid_t int" >>confdefs.h
5296
5297fi
5298
5299ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5300case $ac_cv_c_uint8_t in #(
5301 no|yes) ;; #(
5302 *)
5303
5304$as_echo "#define _UINT8_T 1" >>confdefs.h
5305
5306
5307cat >>confdefs.h <<_ACEOF
5308#define uint8_t $ac_cv_c_uint8_t
a946372e 5309_ACEOF
f11781c5
AK
5310;;
5311 esac
5312
5313ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5314case $ac_cv_c_uint16_t in #(
5315 no|yes) ;; #(
5316 *)
5317
5318
5319cat >>confdefs.h <<_ACEOF
5320#define uint16_t $ac_cv_c_uint16_t
a946372e 5321_ACEOF
f11781c5
AK
5322;;
5323 esac
a946372e 5324
f11781c5
AK
5325ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5326case $ac_cv_c_uint32_t in #(
5327 no|yes) ;; #(
5328 *)
a946372e 5329
f11781c5 5330$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5331
a946372e 5332
f11781c5
AK
5333cat >>confdefs.h <<_ACEOF
5334#define uint32_t $ac_cv_c_uint32_t
5335_ACEOF
5336;;
5337 esac
5338
5339ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5340case $ac_cv_c_uint64_t in #(
5341 no|yes) ;; #(
5342 *)
5343
5344$as_echo "#define _UINT64_T 1" >>confdefs.h
5345
5346
5347cat >>confdefs.h <<_ACEOF
5348#define uint64_t $ac_cv_c_uint64_t
5349_ACEOF
5350;;
5351 esac
5352
5353ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5354if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5355
5356cat >>confdefs.h <<_ACEOF
5357#define HAVE_STRUCT_STAT_ST_RDEV 1
5358_ACEOF
5359
5360
5361fi
5362
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5364$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5365if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5366 $as_echo_n "(cached) " >&6
5367else
f11781c5
AK
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h. */
5370#include <sys/types.h>
5371#include <time.h>
5372
5373int
5374main ()
5375{
5376struct tm tm;
5377 int *p = &tm.tm_sec;
5378 return !p;
5379 ;
5380 return 0;
5381}
5382_ACEOF
5383if ac_fn_c_try_compile "$LINENO"; then :
5384 ac_cv_struct_tm=time.h
5385else
5386 ac_cv_struct_tm=sys/time.h
a946372e 5387fi
f11781c5
AK
5388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389fi
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5391$as_echo "$ac_cv_struct_tm" >&6; }
5392if test $ac_cv_struct_tm = sys/time.h; then
5393
5394$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5395
5396fi
f11781c5
AK
5397
5398
5399################################################################################
5400for ac_func in ftruncate gethostname getpagesize \
5401 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5402 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5403 strstr strtol strtoul uname
5404do :
5405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5406ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5407if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5408 cat >>confdefs.h <<_ACEOF
f11781c5 5409#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5410_ACEOF
5411
5412else
f11781c5 5413 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5414fi
a946372e
AK
5415done
5416
f11781c5
AK
5417for ac_func in siginterrupt
5418do :
5419 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5420if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5421 cat >>confdefs.h <<_ACEOF
5422#define HAVE_SIGINTERRUPT 1
5423_ACEOF
a946372e 5424
f11781c5
AK
5425fi
5426done
a946372e 5427
f11781c5
AK
5428# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5429# for constant arguments. Useless!
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5431$as_echo_n "checking for working alloca.h... " >&6; }
5432if test "${ac_cv_working_alloca_h+set}" = set; then :
5433 $as_echo_n "(cached) " >&6
a946372e 5434else
f11781c5
AK
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h. */
5437#include <alloca.h>
5438int
5439main ()
5440{
5441char *p = (char *) alloca (2 * sizeof (int));
5442 if (p) return 0;
5443 ;
5444 return 0;
5445}
5446_ACEOF
5447if ac_fn_c_try_link "$LINENO"; then :
5448 ac_cv_working_alloca_h=yes
a946372e 5449else
f11781c5 5450 ac_cv_working_alloca_h=no
a946372e 5451fi
f11781c5
AK
5452rm -f core conftest.err conftest.$ac_objext \
5453 conftest$ac_exeext conftest.$ac_ext
a946372e 5454fi
f11781c5
AK
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5456$as_echo "$ac_cv_working_alloca_h" >&6; }
5457if test $ac_cv_working_alloca_h = yes; then
a946372e 5458
f11781c5 5459$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5460
a946372e 5461fi
a946372e 5462
f11781c5
AK
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5464$as_echo_n "checking for alloca... " >&6; }
5465if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5466 $as_echo_n "(cached) " >&6
a946372e 5467else
f11781c5 5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5469/* end confdefs.h. */
f11781c5
AK
5470#ifdef __GNUC__
5471# define alloca __builtin_alloca
5472#else
5473# ifdef _MSC_VER
5474# include <malloc.h>
5475# define alloca _alloca
5476# else
5477# ifdef HAVE_ALLOCA_H
5478# include <alloca.h>
5479# else
5480# ifdef _AIX
5481 #pragma alloca
5482# else
5483# ifndef alloca /* predefined by HP cc +Olibcalls */
5484char *alloca ();
5485# endif
5486# endif
5487# endif
5488# endif
5489#endif
a946372e 5490
f11781c5
AK
5491int
5492main ()
5493{
5494char *p = (char *) alloca (1);
5495 if (p) return 0;
5496 ;
5497 return 0;
5498}
a946372e 5499_ACEOF
f11781c5
AK
5500if ac_fn_c_try_link "$LINENO"; then :
5501 ac_cv_func_alloca_works=yes
a946372e 5502else
f11781c5 5503 ac_cv_func_alloca_works=no
a946372e 5504fi
f11781c5
AK
5505rm -f core conftest.err conftest.$ac_objext \
5506 conftest$ac_exeext conftest.$ac_ext
5507fi
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5509$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5510
f11781c5 5511if test $ac_cv_func_alloca_works = yes; then
a946372e 5512
f11781c5 5513$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5514
a946372e 5515else
f11781c5
AK
5516 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5517# that cause trouble. Some versions do not even contain alloca or
5518# contain a buggy version. If you still want to use their alloca,
5519# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5520
f11781c5 5521ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5522
f11781c5 5523$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5524
a946372e 5525
f11781c5
AK
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5527$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5528if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5529 $as_echo_n "(cached) " >&6
a946372e 5530else
f11781c5 5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5532/* end confdefs.h. */
f11781c5
AK
5533#if defined CRAY && ! defined CRAY2
5534webecray
5535#else
5536wenotbecray
5537#endif
5538
a946372e 5539_ACEOF
f11781c5
AK
5540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5541 $EGREP "webecray" >/dev/null 2>&1; then :
5542 ac_cv_os_cray=yes
a946372e 5543else
f11781c5 5544 ac_cv_os_cray=no
a946372e 5545fi
f11781c5 5546rm -f conftest*
a946372e 5547
f11781c5
AK
5548fi
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5550$as_echo "$ac_cv_os_cray" >&6; }
5551if test $ac_cv_os_cray = yes; then
5552 for ac_func in _getb67 GETB67 getb67; do
5553 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5554ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5555if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5556
f11781c5
AK
5557cat >>confdefs.h <<_ACEOF
5558#define CRAY_STACKSEG_END $ac_func
a946372e 5559_ACEOF
a946372e 5560
f11781c5 5561 break
a946372e
AK
5562fi
5563
f11781c5
AK
5564 done
5565fi
a946372e 5566
f11781c5
AK
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5568$as_echo_n "checking stack direction for C alloca... " >&6; }
5569if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5570 $as_echo_n "(cached) " >&6
5571else
f11781c5
AK
5572 if test "$cross_compiling" = yes; then :
5573 ac_cv_c_stack_direction=0
5574else
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576/* end confdefs.h. */
5577$ac_includes_default
5578int
5579find_stack_direction ()
5580{
5581 static char *addr = 0;
5582 auto char dummy;
5583 if (addr == 0)
5584 {
5585 addr = &dummy;
5586 return find_stack_direction ();
5587 }
5588 else
5589 return (&dummy > addr) ? 1 : -1;
5590}
5591
5592int
5593main ()
5594{
5595 return find_stack_direction () < 0;
5596}
5597_ACEOF
5598if ac_fn_c_try_run "$LINENO"; then :
5599 ac_cv_c_stack_direction=1
5600else
5601 ac_cv_c_stack_direction=-1
5602fi
5603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5604 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5605fi
a946372e
AK
5606
5607fi
f11781c5
AK
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5609$as_echo "$ac_cv_c_stack_direction" >&6; }
5610cat >>confdefs.h <<_ACEOF
5611#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5612_ACEOF
5613
f11781c5 5614
a946372e
AK
5615fi
5616
f11781c5
AK
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5618$as_echo_n "checking whether closedir returns void... " >&6; }
5619if test "${ac_cv_func_closedir_void+set}" = set; then :
5620 $as_echo_n "(cached) " >&6
5621else
5622 if test "$cross_compiling" = yes; then :
5623 ac_cv_func_closedir_void=yes
5624else
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h. */
5627$ac_includes_default
5628#include <$ac_header_dirent>
5629#ifndef __cplusplus
5630int closedir ();
5631#endif
a946372e 5632
f11781c5
AK
5633int
5634main ()
5635{
5636return closedir (opendir (".")) != 0;
5637 ;
5638 return 0;
5639}
5640_ACEOF
5641if ac_fn_c_try_run "$LINENO"; then :
5642 ac_cv_func_closedir_void=no
a946372e 5643else
f11781c5 5644 ac_cv_func_closedir_void=yes
a946372e 5645fi
f11781c5
AK
5646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5647 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5648fi
5649
f11781c5
AK
5650fi
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5652$as_echo "$ac_cv_func_closedir_void" >&6; }
5653if test $ac_cv_func_closedir_void = yes; then
a946372e 5654
f11781c5 5655$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5656
a946372e
AK
5657fi
5658
f11781c5
AK
5659for ac_header in unistd.h
5660do :
5661 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5662if test "x$ac_cv_header_unistd_h" = x""yes; then :
5663 cat >>confdefs.h <<_ACEOF
5664#define HAVE_UNISTD_H 1
5665_ACEOF
a946372e 5666
f11781c5 5667fi
a946372e 5668
f11781c5 5669done
a946372e 5670
f11781c5
AK
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5672$as_echo_n "checking for working chown... " >&6; }
5673if test "${ac_cv_func_chown_works+set}" = set; then :
5674 $as_echo_n "(cached) " >&6
a946372e 5675else
f11781c5
AK
5676 if test "$cross_compiling" = yes; then :
5677 ac_cv_func_chown_works=no
a946372e 5678else
f11781c5
AK
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h. */
5681$ac_includes_default
5682#include <fcntl.h>
a946372e 5683
f11781c5
AK
5684int
5685main ()
5686{
5687 char *f = "conftest.chown";
5688 struct stat before, after;
a946372e 5689
f11781c5
AK
5690 if (creat (f, 0600) < 0)
5691 return 1;
5692 if (stat (f, &before) < 0)
5693 return 1;
5694 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5695 return 1;
5696 if (stat (f, &after) < 0)
5697 return 1;
5698 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5699
f11781c5
AK
5700 ;
5701 return 0;
5702}
5703_ACEOF
5704if ac_fn_c_try_run "$LINENO"; then :
5705 ac_cv_func_chown_works=yes
a946372e 5706else
f11781c5 5707 ac_cv_func_chown_works=no
a946372e 5708fi
f11781c5
AK
5709rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5710 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5711fi
5712
f11781c5 5713rm -f conftest.chown
a946372e 5714
f11781c5
AK
5715fi
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5717$as_echo "$ac_cv_func_chown_works" >&6; }
5718if test $ac_cv_func_chown_works = yes; then
a946372e 5719
f11781c5 5720$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5721
a946372e 5722fi
a946372e 5723
f11781c5
AK
5724for ac_header in vfork.h
5725do :
5726 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5727if test "x$ac_cv_header_vfork_h" = x""yes; then :
5728 cat >>confdefs.h <<_ACEOF
5729#define HAVE_VFORK_H 1
5730_ACEOF
a946372e 5731
f11781c5 5732fi
a946372e 5733
f11781c5 5734done
a946372e 5735
f11781c5
AK
5736for ac_func in fork vfork
5737do :
5738 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5739ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5740if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5741 cat >>confdefs.h <<_ACEOF
5742#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5743_ACEOF
a946372e 5744
f11781c5
AK
5745fi
5746done
a946372e 5747
f11781c5
AK
5748if test "x$ac_cv_func_fork" = xyes; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5750$as_echo_n "checking for working fork... " >&6; }
5751if test "${ac_cv_func_fork_works+set}" = set; then :
5752 $as_echo_n "(cached) " >&6
5753else
5754 if test "$cross_compiling" = yes; then :
5755 ac_cv_func_fork_works=cross
5756else
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758/* end confdefs.h. */
5759$ac_includes_default
5760int
5761main ()
5762{
a946372e 5763
f11781c5
AK
5764 /* By Ruediger Kuhlmann. */
5765 return fork () < 0;
a946372e 5766
f11781c5
AK
5767 ;
5768 return 0;
5769}
5770_ACEOF
5771if ac_fn_c_try_run "$LINENO"; then :
5772 ac_cv_func_fork_works=yes
a946372e 5773else
f11781c5
AK
5774 ac_cv_func_fork_works=no
5775fi
5776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5777 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5778fi
a946372e 5779
f11781c5
AK
5780fi
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5782$as_echo "$ac_cv_func_fork_works" >&6; }
5783
a946372e 5784else
f11781c5 5785 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5786fi
f11781c5
AK
5787if test "x$ac_cv_func_fork_works" = xcross; then
5788 case $host in
5789 *-*-amigaos* | *-*-msdosdjgpp*)
5790 # Override, as these systems have only a dummy fork() stub
5791 ac_cv_func_fork_works=no
5792 ;;
5793 *)
5794 ac_cv_func_fork_works=yes
5795 ;;
5796 esac
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5798$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5799fi
f11781c5
AK
5800ac_cv_func_vfork_works=$ac_cv_func_vfork
5801if test "x$ac_cv_func_vfork" = xyes; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5803$as_echo_n "checking for working vfork... " >&6; }
5804if test "${ac_cv_func_vfork_works+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5806else
5807 if test "$cross_compiling" = yes; then :
5808 ac_cv_func_vfork_works=cross
5809else
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811/* end confdefs.h. */
5812/* Thanks to Paul Eggert for this test. */
5813$ac_includes_default
5814#include <sys/wait.h>
5815#ifdef HAVE_VFORK_H
5816# include <vfork.h>
5817#endif
5818/* On some sparc systems, changes by the child to local and incoming
5819 argument registers are propagated back to the parent. The compiler
5820 is told about this with #include <vfork.h>, but some compilers
5821 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5822 static variable whose address is put into a register that is
5823 clobbered by the vfork. */
5824static void
5825#ifdef __cplusplus
5826sparc_address_test (int arg)
5827# else
5828sparc_address_test (arg) int arg;
5829#endif
5830{
5831 static pid_t child;
5832 if (!child) {
5833 child = vfork ();
5834 if (child < 0) {
5835 perror ("vfork");
5836 _exit(2);
5837 }
5838 if (!child) {
5839 arg = getpid();
5840 write(-1, "", 0);
5841 _exit (arg);
5842 }
5843 }
5844}
a946372e 5845
f11781c5
AK
5846int
5847main ()
5848{
5849 pid_t parent = getpid ();
5850 pid_t child;
a946372e 5851
f11781c5 5852 sparc_address_test (0);
a946372e 5853
f11781c5 5854 child = vfork ();
a946372e 5855
f11781c5
AK
5856 if (child == 0) {
5857 /* Here is another test for sparc vfork register problems. This
5858 test uses lots of local variables, at least as many local
5859 variables as main has allocated so far including compiler
5860 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5861 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5862 reuse the register of parent for one of the local variables,
5863 since it will think that parent can't possibly be used any more
5864 in this routine. Assigning to the local variable will thus
5865 munge parent in the parent process. */
5866 pid_t
5867 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5868 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5869 /* Convince the compiler that p..p7 are live; otherwise, it might
5870 use the same hardware register for all 8 local variables. */
5871 if (p != p1 || p != p2 || p != p3 || p != p4
5872 || p != p5 || p != p6 || p != p7)
5873 _exit(1);
a946372e 5874
f11781c5
AK
5875 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5876 from child file descriptors. If the child closes a descriptor
5877 before it execs or exits, this munges the parent's descriptor
5878 as well. Test for this by closing stdout in the child. */
5879 _exit(close(fileno(stdout)) != 0);
5880 } else {
5881 int status;
5882 struct stat st;
5883
5884 while (wait(&status) != child)
5885 ;
5886 return (
5887 /* Was there some problem with vforking? */
5888 child < 0
5889
5890 /* Did the child fail? (This shouldn't happen.) */
5891 || status
5892
5893 /* Did the vfork/compiler bug occur? */
5894 || parent != getpid()
5895
5896 /* Did the file descriptor bug occur? */
5897 || fstat(fileno(stdout), &st) != 0
5898 );
5899 }
5900}
5901_ACEOF
5902if ac_fn_c_try_run "$LINENO"; then :
5903 ac_cv_func_vfork_works=yes
a946372e 5904else
f11781c5 5905 ac_cv_func_vfork_works=no
a946372e 5906fi
f11781c5
AK
5907rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5908 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5909fi
f11781c5 5910
a946372e 5911fi
f11781c5
AK
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5913$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5914
f11781c5
AK
5915fi;
5916if test "x$ac_cv_func_fork_works" = xcross; then
5917 ac_cv_func_vfork_works=$ac_cv_func_vfork
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5919$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5920fi
a946372e 5921
f11781c5 5922if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5923
f11781c5 5924$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5925
a946372e 5926else
a946372e 5927
f11781c5
AK
5928$as_echo "#define vfork fork" >>confdefs.h
5929
a946372e 5930fi
f11781c5 5931if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5932
f11781c5 5933$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5934
a946372e 5935fi
f11781c5
AK
5936
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5938$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5939if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
a946372e 5941else
f11781c5
AK
5942 rm -f conftest.sym conftest.file
5943echo >conftest.file
5944if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5945 if test "$cross_compiling" = yes; then :
5946 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5947else
f11781c5 5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5949/* end confdefs.h. */
f11781c5
AK
5950$ac_includes_default
5951int
5952main ()
5953{
5954struct stat sbuf;
5955 /* Linux will dereference the symlink and fail, as required by POSIX.
5956 That is better in the sense that it means we will not
5957 have to compile and use the lstat wrapper. */
5958 return lstat ("conftest.sym/", &sbuf) == 0;
5959 ;
5960 return 0;
5961}
a946372e 5962_ACEOF
f11781c5
AK
5963if ac_fn_c_try_run "$LINENO"; then :
5964 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 5965else
f11781c5 5966 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5967fi
f11781c5
AK
5968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5969 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5970fi
a946372e 5971
a946372e 5972else
f11781c5
AK
5973 # If the `ln -s' command failed, then we probably don't even
5974 # have an lstat function.
5975 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5976fi
f11781c5 5977rm -f conftest.sym conftest.file
a946372e 5978
f11781c5
AK
5979fi
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5981$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 5982
f11781c5 5983test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 5984
f11781c5
AK
5985cat >>confdefs.h <<_ACEOF
5986#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5987_ACEOF
a946372e 5988
a946372e 5989
f11781c5
AK
5990if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5991 case " $LIBOBJS " in
5992 *" lstat.$ac_objext "* ) ;;
5993 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5994 ;;
5995esac
a946372e 5996
f11781c5 5997fi
a946372e 5998
f11781c5
AK
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6000$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6001if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
a946372e 6003else
f11781c5
AK
6004 if test "$cross_compiling" = yes; then :
6005 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6006else
f11781c5
AK
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h. */
6009$ac_includes_default
6010int
6011main ()
6012{
6013struct stat sbuf;
6014 return lstat ("", &sbuf) == 0;
6015 ;
6016 return 0;
6017}
6018_ACEOF
6019if ac_fn_c_try_run "$LINENO"; then :
6020 ac_cv_func_lstat_empty_string_bug=no
6021else
6022 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6023fi
f11781c5
AK
6024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6025 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6026fi
6027
f11781c5
AK
6028fi
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6030$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6031if test $ac_cv_func_lstat_empty_string_bug = yes; then
6032 case " $LIBOBJS " in
6033 *" lstat.$ac_objext "* ) ;;
6034 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6035 ;;
6036esac
a946372e
AK
6037
6038
f11781c5
AK
6039cat >>confdefs.h <<_ACEOF
6040#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6041_ACEOF
a946372e 6042
a946372e 6043fi
a946372e 6044
f11781c5
AK
6045for ac_header in stdlib.h
6046do :
6047 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6048if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6049 cat >>confdefs.h <<_ACEOF
6050#define HAVE_STDLIB_H 1
6051_ACEOF
6052
a946372e
AK
6053fi
6054
f11781c5 6055done
a946372e 6056
f11781c5
AK
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6058$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6059if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061else
6062 if test "$cross_compiling" = yes; then :
6063 ac_cv_func_malloc_0_nonnull=no
6064else
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066/* end confdefs.h. */
6067#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6068# include <stdlib.h>
6069#else
6070char *malloc ();
6071#endif
a946372e 6072
f11781c5
AK
6073int
6074main ()
6075{
6076return ! malloc (0);
6077 ;
6078 return 0;
6079}
6080_ACEOF
6081if ac_fn_c_try_run "$LINENO"; then :
6082 ac_cv_func_malloc_0_nonnull=yes
a946372e 6083else
f11781c5 6084 ac_cv_func_malloc_0_nonnull=no
a946372e 6085fi
f11781c5
AK
6086rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6087 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6088fi
f11781c5 6089
a946372e 6090fi
f11781c5
AK
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6092$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6093if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6094
f11781c5 6095$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6096
f11781c5
AK
6097else
6098 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6099
f11781c5
AK
6100 case " $LIBOBJS " in
6101 *" malloc.$ac_objext "* ) ;;
6102 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6103 ;;
6104esac
6105
6106
6107$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6108
a946372e 6109fi
a946372e 6110
a946372e 6111
f11781c5
AK
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6113$as_echo_n "checking for working memcmp... " >&6; }
6114if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6115 $as_echo_n "(cached) " >&6
a946372e 6116else
f11781c5
AK
6117 if test "$cross_compiling" = yes; then :
6118 ac_cv_func_memcmp_working=no
6119else
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6121/* end confdefs.h. */
6122$ac_includes_default
f11781c5
AK
6123int
6124main ()
6125{
a946372e 6126
f11781c5
AK
6127 /* Some versions of memcmp are not 8-bit clean. */
6128 char c0 = '\100', c1 = '\200', c2 = '\201';
6129 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6130 return 1;
a946372e 6131
f11781c5
AK
6132 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6133 or more and with at least one buffer not starting on a 4-byte boundary.
6134 William Lewis provided this test program. */
6135 {
6136 char foo[21];
6137 char bar[21];
6138 int i;
6139 for (i = 0; i < 4; i++)
6140 {
6141 char *a = foo + i;
6142 char *b = bar + i;
6143 strcpy (a, "--------01111111");
6144 strcpy (b, "--------10000000");
6145 if (memcmp (a, b, 16) >= 0)
6146 return 1;
6147 }
6148 return 0;
6149 }
a946372e 6150
f11781c5
AK
6151 ;
6152 return 0;
6153}
a946372e 6154_ACEOF
f11781c5
AK
6155if ac_fn_c_try_run "$LINENO"; then :
6156 ac_cv_func_memcmp_working=yes
a946372e 6157else
f11781c5
AK
6158 ac_cv_func_memcmp_working=no
6159fi
6160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6161 conftest.$ac_objext conftest.beam conftest.$ac_ext
6162fi
a946372e 6163
a946372e 6164fi
f11781c5
AK
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6166$as_echo "$ac_cv_func_memcmp_working" >&6; }
6167test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6168 *" memcmp.$ac_objext "* ) ;;
6169 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6170 ;;
6171esac
a946372e 6172
a946372e 6173
a946372e 6174
a946372e 6175
f11781c5
AK
6176
6177 for ac_header in $ac_header_list
6178do :
6179 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6180ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6181"
6182if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6183 cat >>confdefs.h <<_ACEOF
6184#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6185_ACEOF
6186
a946372e
AK
6187fi
6188
6189done
6190
a946372e 6191
f11781c5
AK
6192
6193
6194
6195
6196
6197
6198for ac_func in getpagesize
6199do :
6200 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6201if test "x$ac_cv_func_getpagesize" = x""yes; then :
6202 cat >>confdefs.h <<_ACEOF
6203#define HAVE_GETPAGESIZE 1
6204_ACEOF
6205
a946372e 6206fi
f11781c5
AK
6207done
6208
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6210$as_echo_n "checking for working mmap... " >&6; }
6211if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6212 $as_echo_n "(cached) " >&6
a946372e 6213else
f11781c5
AK
6214 if test "$cross_compiling" = yes; then :
6215 ac_cv_func_mmap_fixed_mapped=no
6216else
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6218/* end confdefs.h. */
6219$ac_includes_default
f11781c5
AK
6220/* malloc might have been renamed as rpl_malloc. */
6221#undef malloc
6222
6223/* Thanks to Mike Haertel and Jim Avera for this test.
6224 Here is a matrix of mmap possibilities:
6225 mmap private not fixed
6226 mmap private fixed at somewhere currently unmapped
6227 mmap private fixed at somewhere already mapped
6228 mmap shared not fixed
6229 mmap shared fixed at somewhere currently unmapped
6230 mmap shared fixed at somewhere already mapped
6231 For private mappings, we should verify that changes cannot be read()
6232 back from the file, nor mmap's back from the file at a different
6233 address. (There have been systems where private was not correctly
6234 implemented like the infamous i386 svr4.0, and systems where the
6235 VM page cache was not coherent with the file system buffer cache
6236 like early versions of FreeBSD and possibly contemporary NetBSD.)
6237 For shared mappings, we should conversely verify that changes get
6238 propagated back to all the places they're supposed to be.
6239
6240 Grep wants private fixed already mapped.
6241 The main things grep needs to know about mmap are:
6242 * does it exist and is it safe to write into the mmap'd area
6243 * how to use it (BSD variants) */
6244
6245#include <fcntl.h>
6246#include <sys/mman.h>
6247
6248#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6249char *malloc ();
6250#endif
6251
6252/* This mess was copied from the GNU getpagesize.h. */
6253#ifndef HAVE_GETPAGESIZE
6254# ifdef _SC_PAGESIZE
6255# define getpagesize() sysconf(_SC_PAGESIZE)
6256# else /* no _SC_PAGESIZE */
6257# ifdef HAVE_SYS_PARAM_H
6258# include <sys/param.h>
6259# ifdef EXEC_PAGESIZE
6260# define getpagesize() EXEC_PAGESIZE
6261# else /* no EXEC_PAGESIZE */
6262# ifdef NBPG
6263# define getpagesize() NBPG * CLSIZE
6264# ifndef CLSIZE
6265# define CLSIZE 1
6266# endif /* no CLSIZE */
6267# else /* no NBPG */
6268# ifdef NBPC
6269# define getpagesize() NBPC
6270# else /* no NBPC */
6271# ifdef PAGESIZE
6272# define getpagesize() PAGESIZE
6273# endif /* PAGESIZE */
6274# endif /* no NBPC */
6275# endif /* no NBPG */
6276# endif /* no EXEC_PAGESIZE */
6277# else /* no HAVE_SYS_PARAM_H */
6278# define getpagesize() 8192 /* punt totally */
6279# endif /* no HAVE_SYS_PARAM_H */
6280# endif /* no _SC_PAGESIZE */
6281
6282#endif /* no HAVE_GETPAGESIZE */
6283
6284int
6285main ()
6286{
6287 char *data, *data2, *data3;
6288 const char *cdata2;
6289 int i, pagesize;
6290 int fd, fd2;
6291
6292 pagesize = getpagesize ();
6293
6294 /* First, make a file with some known garbage in it. */
6295 data = (char *) malloc (pagesize);
6296 if (!data)
6297 return 1;
6298 for (i = 0; i < pagesize; ++i)
6299 *(data + i) = rand ();
6300 umask (0);
6301 fd = creat ("conftest.mmap", 0600);
6302 if (fd < 0)
6303 return 2;
6304 if (write (fd, data, pagesize) != pagesize)
6305 return 3;
6306 close (fd);
6307
6308 /* Next, check that the tail of a page is zero-filled. File must have
6309 non-zero length, otherwise we risk SIGBUS for entire page. */
6310 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6311 if (fd2 < 0)
6312 return 4;
6313 cdata2 = "";
6314 if (write (fd2, cdata2, 1) != 1)
6315 return 5;
6316 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6317 if (data2 == MAP_FAILED)
6318 return 6;
6319 for (i = 0; i < pagesize; ++i)
6320 if (*(data2 + i))
6321 return 7;
6322 close (fd2);
6323 if (munmap (data2, pagesize))
6324 return 8;
6325
6326 /* Next, try to mmap the file at a fixed address which already has
6327 something else allocated at it. If we can, also make sure that
6328 we see the same garbage. */
6329 fd = open ("conftest.mmap", O_RDWR);
6330 if (fd < 0)
6331 return 9;
6332 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6333 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6334 return 10;
6335 for (i = 0; i < pagesize; ++i)
6336 if (*(data + i) != *(data2 + i))
6337 return 11;
6338
6339 /* Finally, make sure that changes to the mapped area do not
6340 percolate back to the file as seen by read(). (This is a bug on
6341 some variants of i386 svr4.0.) */
6342 for (i = 0; i < pagesize; ++i)
6343 *(data2 + i) = *(data2 + i) + 1;
6344 data3 = (char *) malloc (pagesize);
6345 if (!data3)
6346 return 12;
6347 if (read (fd, data3, pagesize) != pagesize)
6348 return 13;
6349 for (i = 0; i < pagesize; ++i)
6350 if (*(data + i) != *(data3 + i))
6351 return 14;
6352 close (fd);
6353 return 0;
6354}
a946372e 6355_ACEOF
f11781c5
AK
6356if ac_fn_c_try_run "$LINENO"; then :
6357 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6358else
f11781c5
AK
6359 ac_cv_func_mmap_fixed_mapped=no
6360fi
6361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6362 conftest.$ac_objext conftest.beam conftest.$ac_ext
6363fi
a946372e 6364
a946372e 6365fi
f11781c5
AK
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6367$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6368if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6369
f11781c5 6370$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6371
f11781c5
AK
6372fi
6373rm -f conftest.mmap conftest.txt
6374
6375for ac_header in stdlib.h
6376do :
6377 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6378if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6379 cat >>confdefs.h <<_ACEOF
6380#define HAVE_STDLIB_H 1
a946372e 6381_ACEOF
f11781c5
AK
6382
6383fi
6384
6385done
6386
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6388$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6389if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
6391else
6392 if test "$cross_compiling" = yes; then :
6393 ac_cv_func_realloc_0_nonnull=no
6394else
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6396/* end confdefs.h. */
f11781c5
AK
6397#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6398# include <stdlib.h>
6399#else
6400char *realloc ();
6401#endif
6402
6403int
6404main ()
6405{
6406return ! realloc (0, 0);
6407 ;
6408 return 0;
6409}
a946372e 6410_ACEOF
f11781c5
AK
6411if ac_fn_c_try_run "$LINENO"; then :
6412 ac_cv_func_realloc_0_nonnull=yes
a946372e 6413else
f11781c5
AK
6414 ac_cv_func_realloc_0_nonnull=no
6415fi
6416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6417 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6418fi
6419
f11781c5
AK
6420fi
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6422$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6423if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6424
f11781c5 6425$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6426
a946372e 6427else
f11781c5
AK
6428 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6429
6430 case " $LIBOBJS " in
6431 *" realloc.$ac_objext "* ) ;;
6432 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6433 ;;
6434esac
a946372e 6435
a946372e 6436
f11781c5
AK
6437$as_echo "#define realloc rpl_realloc" >>confdefs.h
6438
a946372e
AK
6439fi
6440
a946372e 6441
f11781c5
AK
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6443$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6444if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6445 $as_echo_n "(cached) " >&6
a946372e 6446else
f11781c5
AK
6447 if test "$cross_compiling" = yes; then :
6448 ac_cv_func_stat_empty_string_bug=yes
6449else
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451/* end confdefs.h. */
6452$ac_includes_default
6453int
6454main ()
6455{
6456struct stat sbuf;
6457 return stat ("", &sbuf) == 0;
6458 ;
6459 return 0;
6460}
6461_ACEOF
6462if ac_fn_c_try_run "$LINENO"; then :
6463 ac_cv_func_stat_empty_string_bug=no
6464else
6465 ac_cv_func_stat_empty_string_bug=yes
a946372e 6466fi
f11781c5
AK
6467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6468 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6469fi
6470
8c4e8a18 6471fi
f11781c5
AK
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6473$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6474if test $ac_cv_func_stat_empty_string_bug = yes; then
6475 case " $LIBOBJS " in
6476 *" stat.$ac_objext "* ) ;;
6477 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6478 ;;
6479esac
8c4e8a18
FDN
6480
6481
6482cat >>confdefs.h <<_ACEOF
f11781c5 6483#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6484_ACEOF
6485
6486fi
6487
f11781c5
AK
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6489$as_echo_n "checking for working strtod... " >&6; }
6490if test "${ac_cv_func_strtod+set}" = set; then :
6491 $as_echo_n "(cached) " >&6
66fd4529 6492else
f11781c5
AK
6493 if test "$cross_compiling" = yes; then :
6494 ac_cv_func_strtod=no
6495else
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497/* end confdefs.h. */
66fd4529 6498
f11781c5
AK
6499$ac_includes_default
6500#ifndef strtod
6501double strtod ();
6502#endif
6503int
6504main()
6505{
6506 {
6507 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6508 char *string = " +69";
6509 char *term;
6510 double value;
6511 value = strtod (string, &term);
6512 if (value != 69 || term != (string + 4))
6513 return 1;
6514 }
66fd4529 6515
f11781c5
AK
6516 {
6517 /* Under Solaris 2.4, strtod returns the wrong value for the
6518 terminating character under some conditions. */
6519 char *string = "NaN";
6520 char *term;
6521 strtod (string, &term);
6522 if (term != string && *(term - 1) == 0)
6523 return 1;
6524 }
6525 return 0;
6526}
66fd4529 6527
f11781c5
AK
6528_ACEOF
6529if ac_fn_c_try_run "$LINENO"; then :
6530 ac_cv_func_strtod=yes
66fd4529 6531else
f11781c5
AK
6532 ac_cv_func_strtod=no
6533fi
6534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6535 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6536fi
6537
f11781c5
AK
6538fi
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6540$as_echo "$ac_cv_func_strtod" >&6; }
6541if test $ac_cv_func_strtod = no; then
6542 case " $LIBOBJS " in
6543 *" strtod.$ac_objext "* ) ;;
6544 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6545 ;;
6546esac
71082be4 6547
f11781c5
AK
6548ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6549if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6550
66fd4529 6551fi
a946372e 6552
f11781c5
AK
6553if test $ac_cv_func_pow = no; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6555$as_echo_n "checking for pow in -lm... " >&6; }
6556if test "${ac_cv_lib_m_pow+set}" = set; then :
6557 $as_echo_n "(cached) " >&6
6558else
6559 ac_check_lib_save_LIBS=$LIBS
6560LIBS="-lm $LIBS"
6561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562/* end confdefs.h. */
90c80887 6563
f11781c5
AK
6564/* Override any GCC internal prototype to avoid an error.
6565 Use char because int might match the return type of a GCC
6566 builtin and then its argument prototype would still apply. */
6567#ifdef __cplusplus
6568extern "C"
6569#endif
6570char pow ();
6571int
6572main ()
6573{
6574return pow ();
6575 ;
6576 return 0;
6577}
6578_ACEOF
6579if ac_fn_c_try_link "$LINENO"; then :
6580 ac_cv_lib_m_pow=yes
90c80887 6581else
f11781c5 6582 ac_cv_lib_m_pow=no
90c80887 6583fi
f11781c5
AK
6584rm -f core conftest.err conftest.$ac_objext \
6585 conftest$ac_exeext conftest.$ac_ext
6586LIBS=$ac_check_lib_save_LIBS
90c80887 6587fi
f11781c5
AK
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6589$as_echo "$ac_cv_lib_m_pow" >&6; }
6590if test "x$ac_cv_lib_m_pow" = x""yes; then :
6591 POW_LIB=-lm
90c80887 6592else
f11781c5
AK
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6594$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6595fi
f11781c5 6596
90c80887
AK
6597fi
6598
f11781c5
AK
6599fi
6600
6601for ac_func in vprintf
6602do :
6603 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6604if test "x$ac_cv_func_vprintf" = x""yes; then :
6605 cat >>confdefs.h <<_ACEOF
6606#define HAVE_VPRINTF 1
6607_ACEOF
90c80887 6608
f11781c5
AK
6609ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6610if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6611
f11781c5 6612$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6613
90c80887 6614fi
90c80887 6615
f11781c5
AK
6616fi
6617done
90c80887 6618
90c80887 6619
90c80887 6620
f11781c5
AK
6621################################################################################
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6623$as_echo_n "checking whether to use static linking... " >&6; }
6624# Check whether --enable-static_link was given.
6625if test "${enable_static_link+set}" = set; then :
6626 enableval=$enable_static_link; STATIC_LINK=$enableval
6627else
6628 STATIC_LINK=no
6629fi
90c80887 6630
f11781c5
AK
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6632$as_echo "$STATIC_LINK" >&6; }
90c80887 6633
f11781c5 6634################################################################################
90c80887 6635
90c80887 6636
f11781c5
AK
6637################################################################################
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6639$as_echo_n "checking file owner... " >&6; }
90c80887 6640
f11781c5
AK
6641# Check whether --with-user was given.
6642if test "${with_user+set}" = set; then :
6643 withval=$with_user; OWNER=$withval
6644fi
90c80887 6645
f11781c5
AK
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6647$as_echo "$OWNER" >&6; }
90c80887 6648
f11781c5
AK
6649if test x$OWNER != x; then
6650 INSTALL="$INSTALL -o $OWNER"
90c80887 6651fi
a946372e 6652
f11781c5
AK
6653################################################################################
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6655$as_echo_n "checking group owner... " >&6; }
a946372e 6656
f11781c5
AK
6657# Check whether --with-group was given.
6658if test "${with_group+set}" = set; then :
6659 withval=$with_group; GROUP=$withval
a946372e 6660fi
f11781c5
AK
6661
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6663$as_echo "$GROUP" >&6; }
6664
6665if test x$GROUP != x; then
6666 INSTALL="$INSTALL -g $GROUP"
a946372e 6667fi
f11781c5
AK
6668
6669################################################################################
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6671$as_echo_n "checking device node uid... " >&6; }
6672
6673
6674# Check whether --with-device-uid was given.
6675if test "${with_device_uid+set}" = set; then :
6676 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6677else
f11781c5 6678 DM_DEVICE_UID=0
a946372e
AK
6679fi
6680
f11781c5
AK
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6682$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6683
f11781c5
AK
6684################################################################################
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6686$as_echo_n "checking device node gid... " >&6; }
a946372e 6687
a946372e 6688
f11781c5
AK
6689# Check whether --with-device-gid was given.
6690if test "${with_device_gid+set}" = set; then :
6691 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6692else
f11781c5 6693 DM_DEVICE_GID=0
a946372e 6694fi
a946372e 6695
f11781c5
AK
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6697$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6698
f11781c5
AK
6699################################################################################
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6701$as_echo_n "checking device node mode... " >&6; }
90c80887 6702
90c80887 6703
f11781c5
AK
6704# Check whether --with-device-mode was given.
6705if test "${with_device_mode+set}" = set; then :
6706 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6707else
6708 DM_DEVICE_MODE=0600
6709fi
90c80887 6710
f11781c5
AK
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6712$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6713
f11781c5
AK
6714################################################################################
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6716$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6717# Check whether --enable-lvm1_fallback was given.
6718if test "${enable_lvm1_fallback+set}" = set; then :
6719 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6720else
6721 LVM1_FALLBACK=no
6722fi
90c80887 6723
f11781c5
AK
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6725$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6726
f11781c5 6727if test x$LVM1_FALLBACK = xyes; then
90c80887 6728
f11781c5 6729$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6730
f11781c5 6731fi
90c80887 6732
f11781c5
AK
6733################################################################################
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6735$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6736
6737# Check whether --with-lvm1 was given.
6738if test "${with_lvm1+set}" = set; then :
6739 withval=$with_lvm1; LVM1=$withval
a946372e 6740else
f11781c5 6741 LVM1=internal
a946372e 6742fi
f11781c5
AK
6743
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6745$as_echo "$LVM1" >&6; }
6746
6747if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6748 then as_fn_error $? "--with-lvm1 parameter invalid
6749" "$LINENO" 5
6750fi;
6751
6752if test x$LVM1 = xinternal; then
6753
6754$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6755
a946372e
AK
6756fi
6757
6758################################################################################
f11781c5
AK
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6760$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6761
6762# Check whether --with-pool was given.
6763if test "${with_pool+set}" = set; then :
6764 withval=$with_pool; POOL=$withval
a946372e 6765else
f11781c5 6766 POOL=internal
a946372e
AK
6767fi
6768
f11781c5
AK
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6770$as_echo "$POOL" >&6; }
6771
6772if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6773 then as_fn_error $? "--with-pool parameter invalid
6774" "$LINENO" 5
6775fi;
6776
6777if test x$POOL = xinternal; then
6778
6779$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6780
a946372e
AK
6781fi
6782
6783################################################################################
f11781c5
AK
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6785$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6786
f11781c5
AK
6787# Check whether --with-cluster was given.
6788if test "${with_cluster+set}" = set; then :
6789 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6790fi
6791
f11781c5
AK
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6793$as_echo "$CLUSTER" >&6; }
a946372e 6794
f11781c5
AK
6795if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6796 then as_fn_error $? "--with-cluster parameter invalid
6797" "$LINENO" 5
6798fi;
fddafd51 6799
f11781c5 6800if test x$CLUSTER = xinternal; then
5556819a 6801
f11781c5 6802$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6803
fddafd51 6804fi
f11781c5
AK
6805
6806################################################################################
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6808$as_echo_n "checking whether to include snapshots... " >&6; }
6809
6810# Check whether --with-snapshots was given.
6811if test "${with_snapshots+set}" = set; then :
6812 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6813else
f11781c5 6814 SNAPSHOTS=internal
fddafd51
ZK
6815fi
6816
f11781c5
AK
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6818$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6819
f11781c5
AK
6820if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6821 then as_fn_error $? "--with-snapshots parameter invalid
6822" "$LINENO" 5
6823fi;
fddafd51 6824
f11781c5
AK
6825if test x$SNAPSHOTS = xinternal; then
6826
6827$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6828
6829fi
6830
6831################################################################################
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6833$as_echo_n "checking whether to include mirrors... " >&6; }
6834
6835# Check whether --with-mirrors was given.
6836if test "${with_mirrors+set}" = set; then :
6837 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6838else
f11781c5 6839 MIRRORS=internal
fddafd51
ZK
6840fi
6841
f11781c5
AK
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6843$as_echo "$MIRRORS" >&6; }
fddafd51 6844
f11781c5
AK
6845if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6846 then as_fn_error $? "--with-mirrors parameter invalid
6847" "$LINENO" 5
6848fi;
6849
6850if test x$MIRRORS = xinternal; then
6851
6852$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6853
6854fi
6855
6856################################################################################
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6858$as_echo_n "checking whether to include replicators... " >&6; }
6859
6860# Check whether --with-replicators was given.
6861if test "${with_replicators+set}" = set; then :
6862 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6863else
f11781c5
AK
6864 REPLICATORS=none
6865fi
fd4728e1 6866
f11781c5
AK
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6868$as_echo "$REPLICATORS" >&6; }
6869
6870case "$REPLICATORS" in
6871 none|shared) ;;
6872 internal)
6873$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6874 ;;
6875 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 6876esac
f11781c5
AK
6877
6878################################################################################
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6880$as_echo_n "checking whether to enable readline... " >&6; }
6881# Check whether --enable-readline was given.
6882if test "${enable_readline+set}" = set; then :
6883 enableval=$enable_readline; READLINE=$enableval
fd4728e1 6884else
f11781c5 6885 READLINE=maybe
fd4728e1
ZK
6886fi
6887
f11781c5
AK
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6889$as_echo "$READLINE" >&6; }
fd4728e1 6890
f11781c5
AK
6891################################################################################
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6893$as_echo_n "checking whether to enable realtime support... " >&6; }
6894# Check whether --enable-realtime was given.
6895if test "${enable_realtime+set}" = set; then :
6896 enableval=$enable_realtime; REALTIME=$enableval
5556819a 6897fi
d0191583 6898
f11781c5
AK
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6900$as_echo "$REALTIME" >&6; }
6901
54b362f9 6902################################################################################
f11781c5
AK
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6904$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6905# Check whether --enable-ocf was given.
6906if test "${enable_ocf+set}" = set; then :
6907 enableval=$enable_ocf; OCF=$enableval
54b362f9 6908else
f11781c5 6909 OCF=no
54b362f9
AK
6910fi
6911
f11781c5
AK
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6913$as_echo "$OCF" >&6; }
54b362f9 6914
606d0858
AK
6915# Check whether --with-ocfdir was given.
6916if test "${with_ocfdir+set}" = set; then :
6917 withval=$with_ocfdir; OCFDIR=$withval
6918else
6919 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
6920fi
6921
6922
f11781c5
AK
6923################################################################################
6924pkg_config_init() {
6925
6926
6927
6928
6929
6930
6931if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6932 if test -n "$ac_tool_prefix"; then
6933 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6934set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 6936$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 6937if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
6938 $as_echo_n "(cached) " >&6
6939else
f11781c5 6940 case $PKG_CONFIG in
54b362f9 6941 [\\/]* | ?:[\\/]*)
f11781c5 6942 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
6943 ;;
6944 *)
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
f11781c5 6950 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
6952 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
6954 break 2
6955 fi
6956done
f11781c5 6957 done
54b362f9
AK
6958IFS=$as_save_IFS
6959
6960 ;;
6961esac
6962fi
f11781c5
AK
6963PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6964if test -n "$PKG_CONFIG"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6966$as_echo "$PKG_CONFIG" >&6; }
54b362f9 6967else
f11781c5 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
6969$as_echo "no" >&6; }
6970fi
6971
6972
f11781c5
AK
6973fi
6974if test -z "$ac_cv_path_PKG_CONFIG"; then
6975 ac_pt_PKG_CONFIG=$PKG_CONFIG
6976 # Extract the first word of "pkg-config", so it can be a program name with args.
6977set dummy pkg-config; ac_word=$2
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 6979$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 6980if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
6981 $as_echo_n "(cached) " >&6
6982else
f11781c5 6983 case $ac_pt_PKG_CONFIG in
54b362f9 6984 [\\/]* | ?:[\\/]*)
f11781c5 6985 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
6986 ;;
6987 *)
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
f11781c5 6993 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
6995 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
6997 break 2
6998 fi
6999done
f11781c5 7000 done
54b362f9
AK
7001IFS=$as_save_IFS
7002
7003 ;;
7004esac
7005fi
f11781c5
AK
7006ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7007if test -n "$ac_pt_PKG_CONFIG"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7009$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7010else
f11781c5 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7012$as_echo "no" >&6; }
7013fi
7014
f11781c5
AK
7015 if test "x$ac_pt_PKG_CONFIG" = x; then
7016 PKG_CONFIG=""
7017 else
7018 case $cross_compiling:$ac_tool_warned in
7019yes:)
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022ac_tool_warned=yes ;;
7023esac
7024 PKG_CONFIG=$ac_pt_PKG_CONFIG
7025 fi
d1e8046f 7026else
f11781c5 7027 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7028fi
7029
f11781c5
AK
7030fi
7031if test -n "$PKG_CONFIG"; then
7032 _pkg_min_version=0.9.0
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7034$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7035 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7037$as_echo "yes" >&6; }
7038 else
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040$as_echo "no" >&6; }
7041 PKG_CONFIG=""
7042 fi
7043fi
d1e8046f 7044
f11781c5
AK
7045pkg_failed=no
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7047$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7048
f11781c5
AK
7049if test -n "$PKGCONFIGINIT_CFLAGS"; then
7050 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7051 elif test -n "$PKG_CONFIG"; then
7052 if test -n "$PKG_CONFIG" && \
7053 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7054 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7055 ac_status=$?
7056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7057 test $ac_status = 0; }; then
7058 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7059else
f11781c5
AK
7060 pkg_failed=yes
7061fi
7062 else
7063 pkg_failed=untried
7064fi
7065if test -n "$PKGCONFIGINIT_LIBS"; then
7066 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7067 elif test -n "$PKG_CONFIG"; then
7068 if test -n "$PKG_CONFIG" && \
7069 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7070 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7071 ac_status=$?
f11781c5
AK
7072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7073 test $ac_status = 0; }; then
7074 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7075else
f11781c5
AK
7076 pkg_failed=yes
7077fi
7078 else
7079 pkg_failed=untried
d1e8046f
AK
7080fi
7081
d1e8046f 7082
f11781c5
AK
7083
7084if test $pkg_failed = yes; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086$as_echo "no" >&6; }
7087
7088if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7089 _pkg_short_errors_supported=yes
7090else
7091 _pkg_short_errors_supported=no
7092fi
7093 if test $_pkg_short_errors_supported = yes; then
7094 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7095 else
7096 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7097 fi
7098 # Put the nasty error message in config.log where it belongs
7099 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7100
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7102$as_echo "pkg-config initialized" >&6; }
7103elif test $pkg_failed = untried; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105$as_echo "no" >&6; }
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7107$as_echo "pkg-config initialized" >&6; }
d1e8046f 7108else
f11781c5
AK
7109 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7110 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7112$as_echo "yes" >&6; }
d1e8046f 7113
d1e8046f 7114fi
f11781c5
AK
7115 PKGCONFIG_INIT=1
7116}
d1e8046f 7117
f11781c5
AK
7118################################################################################
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7120$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7121
f11781c5
AK
7122# Check whether --with-clvmd was given.
7123if test "${with_clvmd+set}" = set; then :
7124 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7125else
f11781c5 7126 CLVMD=none
d1e8046f 7127fi
d1e8046f 7128
f11781c5
AK
7129if test x$CLVMD = xyes; then
7130 CLVMD=all
d1e8046f 7131fi
f11781c5
AK
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7133$as_echo "$CLVMD" >&6; }
d1e8046f 7134
f11781c5
AK
7135if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7136 CLUSTER=internal
d1e8046f
AK
7137fi
7138
f11781c5
AK
7139if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7140 pkg_config_init
7141fi
d1e8046f 7142
f11781c5
AK
7143CLVMD_CMANAGERS=""
7144CLVMD_NEEDS_QDISKD=no
d1e8046f 7145
f11781c5
AK
7146if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7147 BUILDGULM=yes
7148 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
7149 CLVMD_NEEDS_QDISKD=yes
d1e8046f 7150fi
f11781c5
AK
7151if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7152 BUILDCMAN=yes
7153 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7154 CLVMD_NEEDS_QDISKD=yes
7155fi
7156if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7157 BUILDCOROSYNC=yes
7158 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7159fi
7160if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7161 BUILDOPENAIS=yes
7162 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7163fi
7164if test x$CLVMD_NEEDS_QDISKD != xno; then
7165 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7166fi
7167
f11781c5
AK
7168if test x$BUILDGULM = xyes; then
7169 if test x$BUILDCOROSYNC = xyes || \
7170 test x$BUILDOPENAIS = xyes; then
7171 as_fn_error $? "requested clvmd configuration is not valid" "$LINENO" 5
7172 fi
7173fi
ad6254c5 7174
f11781c5
AK
7175soft_bailout() {
7176 NOTFOUND=1
7177}
ad6254c5 7178
f11781c5
AK
7179hard_bailout() {
7180 as_fn_error $? "bailing out" "$LINENO" 5
7181}
ad6254c5 7182
f11781c5
AK
7183if test x$CLVMD = xall; then
7184 bailout=soft_bailout
7185 BUILDGULM=yes
7186 BUILDCMAN=yes
7187 BUILDCOROSYNC=yes
7188 BUILDOPENAIS=yes
a5f46f6a 7189else
f11781c5 7190 bailout=hard_bailout
a5f46f6a
AK
7191fi
7192
f11781c5
AK
7193check_lib_no_libs() {
7194 lib_no_libs_arg1=$1
7195 shift
7196 lib_no_libs_arg2=$1
7197 shift
7198 lib_no_libs_args=$@
7199 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7201$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7202if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7203 $as_echo_n "(cached) " >&6
7204else
7205 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7206LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7208/* end confdefs.h. */
7209
7210/* Override any GCC internal prototype to avoid an error.
7211 Use char because int might match the return type of a GCC
7212 builtin and then its argument prototype would still apply. */
7213#ifdef __cplusplus
7214extern "C"
7215#endif
f11781c5 7216char $lib_no_libs_arg2 ();
90c80887
AK
7217int
7218main ()
7219{
f11781c5 7220return $lib_no_libs_arg2 ();
90c80887
AK
7221 ;
7222 return 0;
7223}
7224_ACEOF
f11781c5
AK
7225if ac_fn_c_try_link "$LINENO"; then :
7226 eval "$as_ac_Lib=yes"
90c80887 7227else
f11781c5 7228 eval "$as_ac_Lib=no"
90c80887 7229fi
f11781c5
AK
7230rm -f core conftest.err conftest.$ac_objext \
7231 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7232LIBS=$ac_check_lib_save_LIBS
7233fi
f11781c5
AK
7234eval ac_res=\$$as_ac_Lib
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7236$as_echo "$ac_res" >&6; }
7237if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7238 cat >>confdefs.h <<_ACEOF
7239#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7240_ACEOF
7241
7242 LIBS="-l$lib_no_libs_arg1 $LIBS"
7243
90c80887 7244else
f11781c5 7245 $bailout
90c80887
AK
7246fi
7247
f11781c5
AK
7248 LIBS=$ac_check_lib_save_LIBS
7249}
90c80887 7250
f11781c5 7251if test x$BUILDGULM = xyes; then
90c80887 7252
f11781c5
AK
7253pkg_failed=no
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCS" >&5
7255$as_echo_n "checking for CCS... " >&6; }
90c80887 7256
f11781c5
AK
7257if test -n "$CCS_CFLAGS"; then
7258 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
7259 elif test -n "$PKG_CONFIG"; then
7260 if test -n "$PKG_CONFIG" && \
7261 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7262 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7263 ac_status=$?
7264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265 test $ac_status = 0; }; then
7266 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
5161ecb9 7267else
f11781c5
AK
7268 pkg_failed=yes
7269fi
7270 else
7271 pkg_failed=untried
7272fi
7273if test -n "$CCS_LIBS"; then
7274 pkg_cv_CCS_LIBS="$CCS_LIBS"
7275 elif test -n "$PKG_CONFIG"; then
7276 if test -n "$PKG_CONFIG" && \
7277 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7278 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7279 ac_status=$?
7280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281 test $ac_status = 0; }; then
7282 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
7283else
7284 pkg_failed=yes
7285fi
7286 else
7287 pkg_failed=untried
5161ecb9
PR
7288fi
7289
5161ecb9 7290
f11781c5
AK
7291
7292if test $pkg_failed = yes; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294$as_echo "no" >&6; }
7295
7296if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7297 _pkg_short_errors_supported=yes
93bd259b 7298else
f11781c5 7299 _pkg_short_errors_supported=no
93bd259b 7300fi
f11781c5
AK
7301 if test $_pkg_short_errors_supported = yes; then
7302 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
7303 else
7304 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
7305 fi
7306 # Put the nasty error message in config.log where it belongs
7307 echo "$CCS_PKG_ERRORS" >&5
93bd259b 7308
f11781c5
AK
7309 NOTFOUND=0
7310 for ac_header in ccs.h
7311do :
7312 ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7313if test "x$ac_cv_header_ccs_h" = x""yes; then :
7314 cat >>confdefs.h <<_ACEOF
7315#define HAVE_CCS_H 1
7316_ACEOF
93bd259b 7317
95eaa683 7318else
f11781c5 7319 $bailout
95eaa683
AK
7320fi
7321
f11781c5 7322done
95eaa683 7323
f11781c5
AK
7324 check_lib_no_libs ccs ccs_connect
7325 if test $NOTFOUND = 0; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7327$as_echo "no pkg for libccs, using -lccs" >&6; }
7328 CCS_LIBS="-lccs"
7329 HAVE_CCS=yes
7330 fi
7331elif test $pkg_failed = untried; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333$as_echo "no" >&6; }
7334 NOTFOUND=0
7335 for ac_header in ccs.h
7336do :
7337 ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7338if test "x$ac_cv_header_ccs_h" = x""yes; then :
7339 cat >>confdefs.h <<_ACEOF
7340#define HAVE_CCS_H 1
95eaa683
AK
7341_ACEOF
7342
f11781c5
AK
7343else
7344 $bailout
95eaa683
AK
7345fi
7346
f11781c5
AK
7347done
7348
7349 check_lib_no_libs ccs ccs_connect
7350 if test $NOTFOUND = 0; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7352$as_echo "no pkg for libccs, using -lccs" >&6; }
7353 CCS_LIBS="-lccs"
7354 HAVE_CCS=yes
7355 fi
7356else
7357 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
7358 CCS_LIBS=$pkg_cv_CCS_LIBS
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7360$as_echo "yes" >&6; }
7361 HAVE_CCS=yes
7362fi
7363
7364pkg_failed=no
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GULM" >&5
7366$as_echo_n "checking for GULM... " >&6; }
7367
7368if test -n "$GULM_CFLAGS"; then
7369 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
7370 elif test -n "$PKG_CONFIG"; then
7371 if test -n "$PKG_CONFIG" && \
7372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7373 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7374 ac_status=$?
7375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7376 test $ac_status = 0; }; then
7377 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
7378else
7379 pkg_failed=yes
7380fi
7381 else
7382 pkg_failed=untried
7383fi
7384if test -n "$GULM_LIBS"; then
7385 pkg_cv_GULM_LIBS="$GULM_LIBS"
7386 elif test -n "$PKG_CONFIG"; then
7387 if test -n "$PKG_CONFIG" && \
7388 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7389 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7390 ac_status=$?
7391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7392 test $ac_status = 0; }; then
7393 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
7394else
7395 pkg_failed=yes
93bd259b 7396fi
f11781c5
AK
7397 else
7398 pkg_failed=untried
ad6254c5 7399fi
ad6254c5 7400
ad6254c5
AK
7401
7402
f11781c5
AK
7403if test $pkg_failed = yes; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405$as_echo "no" >&6; }
ad6254c5 7406
f11781c5
AK
7407if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7408 _pkg_short_errors_supported=yes
572fefeb 7409else
f11781c5 7410 _pkg_short_errors_supported=no
572fefeb 7411fi
f11781c5
AK
7412 if test $_pkg_short_errors_supported = yes; then
7413 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
7414 else
7415 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
7416 fi
7417 # Put the nasty error message in config.log where it belongs
7418 echo "$GULM_PKG_ERRORS" >&5
572fefeb 7419
f11781c5
AK
7420 NOTFOUND=0
7421 for ac_header in libgulm.h
7422do :
7423 ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7424if test "x$ac_cv_header_libgulm_h" = x""yes; then :
7425 cat >>confdefs.h <<_ACEOF
7426#define HAVE_LIBGULM_H 1
7427_ACEOF
572fefeb 7428
ad6254c5 7429else
f11781c5 7430 $bailout
d0191583 7431fi
8a2fc586 7432
f11781c5 7433done
8a2fc586 7434
f11781c5
AK
7435 check_lib_no_libs gulm lg_core_login
7436 if test $NOTFOUND = 0; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7438$as_echo "no pkg for libgulm, using -lgulm" >&6; }
7439 GULM_LIBS="-lgulm"
7440 HAVE_GULM=yes
7441 fi
7442elif test $pkg_failed = untried; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444$as_echo "no" >&6; }
7445 NOTFOUND=0
7446 for ac_header in libgulm.h
7447do :
7448 ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7449if test "x$ac_cv_header_libgulm_h" = x""yes; then :
7450 cat >>confdefs.h <<_ACEOF
7451#define HAVE_LIBGULM_H 1
7452_ACEOF
d179cc7a 7453
93bd259b 7454else
f11781c5 7455 $bailout
93bd259b
AK
7456fi
7457
f11781c5 7458done
2a9a80c9 7459
f11781c5
AK
7460 check_lib_no_libs gulm lg_core_login
7461 if test $NOTFOUND = 0; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7463$as_echo "no pkg for libgulm, using -lgulm" >&6; }
7464 GULM_LIBS="-lgulm"
7465 HAVE_GULM=yes
7466 fi
23b059e7 7467else
f11781c5
AK
7468 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
7469 GULM_LIBS=$pkg_cv_GULM_LIBS
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7471$as_echo "yes" >&6; }
7472 HAVE_GULM=yes
d0191583 7473fi
d0191583 7474fi
ad6254c5 7475
f11781c5 7476if test x$BUILDCMAN = xyes; then
ad6254c5 7477
f11781c5
AK
7478pkg_failed=no
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7480$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7481
f11781c5
AK
7482if test -n "$CMAN_CFLAGS"; then
7483 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7484 elif test -n "$PKG_CONFIG"; then
7485 if test -n "$PKG_CONFIG" && \
7486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7487 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7488 ac_status=$?
7489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7490 test $ac_status = 0; }; then
7491 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7492else
7493 pkg_failed=yes
ad6254c5 7494fi
f11781c5
AK
7495 else
7496 pkg_failed=untried
ad6254c5 7497fi
f11781c5
AK
7498if test -n "$CMAN_LIBS"; then
7499 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7500 elif test -n "$PKG_CONFIG"; then
7501 if test -n "$PKG_CONFIG" && \
7502 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7503 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 7504 ac_status=$?
f11781c5
AK
7505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7506 test $ac_status = 0; }; then
7507 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7508else
f11781c5
AK
7509 pkg_failed=yes
7510fi
7511 else
7512 pkg_failed=untried
93bd259b
AK
7513fi
7514
f11781c5
AK
7515
7516
7517if test $pkg_failed = yes; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519$as_echo "no" >&6; }
7520
7521if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7522 _pkg_short_errors_supported=yes
7523else
7524 _pkg_short_errors_supported=no
93bd259b 7525fi
f11781c5
AK
7526 if test $_pkg_short_errors_supported = yes; then
7527 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7528 else
7529 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7530 fi
7531 # Put the nasty error message in config.log where it belongs
7532 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7533
f11781c5
AK
7534 NOTFOUND=0
7535 for ac_header in libcman.h
7536do :
7537 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7538if test "x$ac_cv_header_libcman_h" = x""yes; then :
7539 cat >>confdefs.h <<_ACEOF
7540#define HAVE_LIBCMAN_H 1
93bd259b
AK
7541_ACEOF
7542
f11781c5
AK
7543else
7544 $bailout
93bd259b
AK
7545fi
7546
f11781c5 7547done
93bd259b 7548
f11781c5
AK
7549 check_lib_no_libs cman cman_init
7550 if test $NOTFOUND = 0; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7552$as_echo "no pkg for libcman, using -lcman" >&6; }
7553 CMAN_LIBS="-lcman"
7554 HAVE_CMAN=yes
7555 fi
7556elif test $pkg_failed = untried; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558$as_echo "no" >&6; }
7559 NOTFOUND=0
7560 for ac_header in libcman.h
7561do :
7562 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7563if test "x$ac_cv_header_libcman_h" = x""yes; then :
7564 cat >>confdefs.h <<_ACEOF
7565#define HAVE_LIBCMAN_H 1
93bd259b 7566_ACEOF
93bd259b 7567
93bd259b 7568else
f11781c5 7569 $bailout
93bd259b
AK
7570fi
7571
f11781c5
AK
7572done
7573
7574 check_lib_no_libs cman cman_init
7575 if test $NOTFOUND = 0; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7577$as_echo "no pkg for libcman, using -lcman" >&6; }
7578 CMAN_LIBS="-lcman"
7579 HAVE_CMAN=yes
7580 fi
7581else
7582 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7583 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7585$as_echo "yes" >&6; }
7586 HAVE_CMAN=yes
93bd259b 7587fi
f11781c5
AK
7588 CHECKCONFDB=yes
7589 CHECKDLM=yes
93bd259b
AK
7590fi
7591
f11781c5
AK
7592if test x$BUILDCOROSYNC = xyes || \
7593 test x$BUILDOPENAIS = xyes; then
93bd259b 7594
f11781c5
AK
7595pkg_failed=no
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7597$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7598
f11781c5
AK
7599if test -n "$COROSYNC_CFLAGS"; then
7600 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7601 elif test -n "$PKG_CONFIG"; then
7602 if test -n "$PKG_CONFIG" && \
7603 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7604 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7605 ac_status=$?
7606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7607 test $ac_status = 0; }; then
7608 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7609else
f11781c5
AK
7610 pkg_failed=yes
7611fi
7612 else
7613 pkg_failed=untried
7614fi
7615if test -n "$COROSYNC_LIBS"; then
7616 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7617 elif test -n "$PKG_CONFIG"; then
7618 if test -n "$PKG_CONFIG" && \
7619 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7620 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7621 ac_status=$?
f11781c5
AK
7622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7623 test $ac_status = 0; }; then
7624 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7625else
f11781c5 7626 pkg_failed=yes
ad6254c5 7627fi
f11781c5
AK
7628 else
7629 pkg_failed=untried
ad6254c5 7630fi
ad6254c5 7631
72b2cb61 7632
72b2cb61 7633
f11781c5
AK
7634if test $pkg_failed = yes; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636$as_echo "no" >&6; }
19a2c6e0 7637
f11781c5
AK
7638if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7639 _pkg_short_errors_supported=yes
7640else
7641 _pkg_short_errors_supported=no
ad6254c5 7642fi
f11781c5
AK
7643 if test $_pkg_short_errors_supported = yes; then
7644 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7645 else
7646 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7647 fi
7648 # Put the nasty error message in config.log where it belongs
7649 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7650
f11781c5
AK
7651 $bailout
7652elif test $pkg_failed = untried; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654$as_echo "no" >&6; }
7655 $bailout
7656else
7657 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7658 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7660$as_echo "yes" >&6; }
7661 HAVE_COROSYNC=yes
7662fi
7663 CHECKCONFDB=yes
ad6254c5
AK
7664fi
7665
f11781c5 7666if test x$BUILDCOROSYNC = xyes; then
f30875db 7667
f11781c5
AK
7668pkg_failed=no
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7670$as_echo_n "checking for QUORUM... " >&6; }
7671
7672if test -n "$QUORUM_CFLAGS"; then
7673 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7674 elif test -n "$PKG_CONFIG"; then
7675 if test -n "$PKG_CONFIG" && \
7676 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7677 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7678 ac_status=$?
f11781c5
AK
7679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7680 test $ac_status = 0; }; then
7681 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7682else
f11781c5 7683 pkg_failed=yes
f30875db 7684fi
f11781c5
AK
7685 else
7686 pkg_failed=untried
f30875db 7687fi
f11781c5
AK
7688if test -n "$QUORUM_LIBS"; then
7689 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7690 elif test -n "$PKG_CONFIG"; then
7691 if test -n "$PKG_CONFIG" && \
7692 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7693 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7694 ac_status=$?
7695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7696 test $ac_status = 0; }; then
7697 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7698else
f11781c5 7699 pkg_failed=yes
f30875db 7700fi
f11781c5
AK
7701 else
7702 pkg_failed=untried
7703fi
7704
f30875db 7705
f11781c5
AK
7706
7707if test $pkg_failed = yes; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709$as_echo "no" >&6; }
7710
7711if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7712 _pkg_short_errors_supported=yes
7713else
7714 _pkg_short_errors_supported=no
f30875db 7715fi
f11781c5
AK
7716 if test $_pkg_short_errors_supported = yes; then
7717 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7718 else
7719 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7720 fi
7721 # Put the nasty error message in config.log where it belongs
7722 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7723
f11781c5
AK
7724 $bailout
7725elif test $pkg_failed = untried; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727$as_echo "no" >&6; }
7728 $bailout
7729else
7730 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7731 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7733$as_echo "yes" >&6; }
7734 HAVE_QUORUM=yes
7735fi
7736 CHECKCPG=yes
7737 CHECKDLM=yes
d0191583
JM
7738fi
7739
f11781c5 7740if test x$BUILDOPENAIS = xyes; then
d0191583 7741
f11781c5
AK
7742pkg_failed=no
7743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7744$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7745
f11781c5
AK
7746if test -n "$SALCK_CFLAGS"; then
7747 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7748 elif test -n "$PKG_CONFIG"; then
7749 if test -n "$PKG_CONFIG" && \
7750 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7751 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7752 ac_status=$?
7753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7754 test $ac_status = 0; }; then
7755 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7756else
7757 pkg_failed=yes
7758fi
7759 else
7760 pkg_failed=untried
7761fi
7762if test -n "$SALCK_LIBS"; then
7763 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7764 elif test -n "$PKG_CONFIG"; then
7765 if test -n "$PKG_CONFIG" && \
7766 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7767 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7768 ac_status=$?
f11781c5
AK
7769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7770 test $ac_status = 0; }; then
7771 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7772else
f11781c5 7773 pkg_failed=yes
8a2fc586 7774fi
f11781c5
AK
7775 else
7776 pkg_failed=untried
8a2fc586 7777fi
d0191583 7778
d0191583 7779
f8f6ec92 7780
f11781c5
AK
7781if test $pkg_failed = yes; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783$as_echo "no" >&6; }
8a2fc586 7784
f11781c5
AK
7785if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7786 _pkg_short_errors_supported=yes
ad6254c5 7787else
f11781c5
AK
7788 _pkg_short_errors_supported=no
7789fi
7790 if test $_pkg_short_errors_supported = yes; then
7791 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7792 else
7793 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7794 fi
7795 # Put the nasty error message in config.log where it belongs
7796 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7797
f11781c5
AK
7798 $bailout
7799elif test $pkg_failed = untried; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801$as_echo "no" >&6; }
7802 $bailout
ad6254c5 7803else
f11781c5
AK
7804 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7805 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7807$as_echo "yes" >&6; }
7808 HAVE_SALCK=yes
ad6254c5 7809fi
f11781c5 7810 CHECKCPG=yes
ad6254c5 7811fi
ad6254c5 7812
72b2cb61 7813
f8f6ec92 7814
f11781c5 7815if test x$CHECKCONFDB = xyes; then
f8f6ec92 7816
f11781c5
AK
7817pkg_failed=no
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7819$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7820
f11781c5
AK
7821if test -n "$CONFDB_CFLAGS"; then
7822 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7823 elif test -n "$PKG_CONFIG"; then
7824 if test -n "$PKG_CONFIG" && \
7825 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7826 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7827 ac_status=$?
f11781c5
AK
7828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7829 test $ac_status = 0; }; then
7830 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7831else
f11781c5
AK
7832 pkg_failed=yes
7833fi
7834 else
7835 pkg_failed=untried
7836fi
7837if test -n "$CONFDB_LIBS"; then
7838 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7839 elif test -n "$PKG_CONFIG"; then
7840 if test -n "$PKG_CONFIG" && \
7841 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7842 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7843 ac_status=$?
7844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7845 test $ac_status = 0; }; then
7846 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7847else
7848 pkg_failed=yes
7849fi
7850 else
7851 pkg_failed=untried
f8f6ec92
ZK
7852fi
7853
f8f6ec92 7854
66e941e8 7855
f11781c5
AK
7856if test $pkg_failed = yes; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858$as_echo "no" >&6; }
7859
7860if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7861 _pkg_short_errors_supported=yes
f8f6ec92 7862else
f11781c5 7863 _pkg_short_errors_supported=no
66e941e8 7864fi
f11781c5
AK
7865 if test $_pkg_short_errors_supported = yes; then
7866 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7867 else
7868 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7869 fi
7870 # Put the nasty error message in config.log where it belongs
7871 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7872
f11781c5
AK
7873 HAVE_CONFDB=no
7874elif test $pkg_failed = untried; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876$as_echo "no" >&6; }
7877 HAVE_CONFDB=no
7878else
7879 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7880 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7882$as_echo "yes" >&6; }
7883 HAVE_CONFDB=yes
66e941e8 7884fi
f11781c5
AK
7885
7886 for ac_header in corosync/confdb.h
7887do :
7888 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7889if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7890 cat >>confdefs.h <<_ACEOF
f11781c5 7891#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7892_ACEOF
f11781c5 7893 HAVE_CONFDB_H=yes
66e941e8 7894else
f11781c5 7895 HAVE_CONFDB_H=no
66e941e8 7896fi
dd1f2c09
MB
7897
7898done
7899
7900
f11781c5
AK
7901 if test x$HAVE_CONFDB != xyes && \
7902 test x$HAVE_CONFDB_H = xyes; then
7903 check_lib_no_libs confdb confdb_initialize
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7905$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7906 CONFDB_LIBS="-lconfdb"
7907 HAVE_CONFDB=yes
7908 fi
7909
7910 if test x$BUILDCOROSYNC = xyes && \
7911 test x$HAVE_CONFDB != xyes &&
7912 test x$CLVMD != xall; then
7913 as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5
7914 fi
dd1f2c09 7915fi
f11781c5
AK
7916
7917if test x$CHECKCPG = xyes; then
7918
7919pkg_failed=no
7920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7921$as_echo_n "checking for CPG... " >&6; }
7922
7923if test -n "$CPG_CFLAGS"; then
7924 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7925 elif test -n "$PKG_CONFIG"; then
7926 if test -n "$PKG_CONFIG" && \
7927 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7928 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7929 ac_status=$?
7930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7931 test $ac_status = 0; }; then
7932 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 7933else
f11781c5
AK
7934 pkg_failed=yes
7935fi
7936 else
7937 pkg_failed=untried
7938fi
7939if test -n "$CPG_LIBS"; then
7940 pkg_cv_CPG_LIBS="$CPG_LIBS"
7941 elif test -n "$PKG_CONFIG"; then
7942 if test -n "$PKG_CONFIG" && \
7943 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7944 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 7945 ac_status=$?
f11781c5
AK
7946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7947 test $ac_status = 0; }; then
7948 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 7949else
f11781c5
AK
7950 pkg_failed=yes
7951fi
7952 else
7953 pkg_failed=untried
7954fi
7955
7956
7957
7958if test $pkg_failed = yes; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960$as_echo "no" >&6; }
7961
7962if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7963 _pkg_short_errors_supported=yes
7964else
7965 _pkg_short_errors_supported=no
7966fi
7967 if test $_pkg_short_errors_supported = yes; then
7968 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7969 else
7970 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7971 fi
7972 # Put the nasty error message in config.log where it belongs
7973 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 7974
f11781c5
AK
7975 $bailout
7976elif test $pkg_failed = untried; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978$as_echo "no" >&6; }
7979 $bailout
7980else
7981 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
7982 CPG_LIBS=$pkg_cv_CPG_LIBS
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7984$as_echo "yes" >&6; }
7985 HAVE_CPG=yes
7986fi
dd1f2c09
MB
7987fi
7988
f11781c5 7989if test x$CHECKDLM = xyes; then
dd1f2c09 7990
f11781c5
AK
7991pkg_failed=no
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
7993$as_echo_n "checking for DLM... " >&6; }
7994
7995if test -n "$DLM_CFLAGS"; then
7996 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
7997 elif test -n "$PKG_CONFIG"; then
7998 if test -n "$PKG_CONFIG" && \
7999 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8000 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 8001 ac_status=$?
f11781c5
AK
8002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8003 test $ac_status = 0; }; then
8004 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 8005else
f11781c5
AK
8006 pkg_failed=yes
8007fi
8008 else
8009 pkg_failed=untried
8010fi
8011if test -n "$DLM_LIBS"; then
8012 pkg_cv_DLM_LIBS="$DLM_LIBS"
8013 elif test -n "$PKG_CONFIG"; then
8014 if test -n "$PKG_CONFIG" && \
8015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8016 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8017 ac_status=$?
8018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8019 test $ac_status = 0; }; then
8020 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8021else
8022 pkg_failed=yes
8023fi
8024 else
8025 pkg_failed=untried
dd1f2c09
MB
8026fi
8027
dd1f2c09 8028
dd1f2c09 8029
f11781c5
AK
8030if test $pkg_failed = yes; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032$as_echo "no" >&6; }
8033
8034if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8035 _pkg_short_errors_supported=yes
dd1f2c09 8036else
f11781c5 8037 _pkg_short_errors_supported=no
dd1f2c09 8038fi
f11781c5
AK
8039 if test $_pkg_short_errors_supported = yes; then
8040 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8041 else
8042 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8043 fi
8044 # Put the nasty error message in config.log where it belongs
8045 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 8046
f11781c5
AK
8047 NOTFOUND=0
8048 for ac_header in libdlm.h
8049do :
8050 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8051if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 8052 cat >>confdefs.h <<_ACEOF
f11781c5 8053#define HAVE_LIBDLM_H 1
dd1f2c09
MB
8054_ACEOF
8055
f11781c5
AK
8056else
8057 $bailout
dd1f2c09 8058fi
f8f6ec92
ZK
8059
8060done
8061
f11781c5
AK
8062 check_lib_no_libs dlm dlm_lock -lpthread
8063 if test $NOTFOUND = 0; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8065$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8066 DLM_LIBS="-ldlm -lpthread"
8067 HAVE_DLM=yes
8068 fi
8069elif test $pkg_failed = untried; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071$as_echo "no" >&6; }
8072 NOTFOUND=0
8073 for ac_header in libdlm.h
8074do :
8075 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8076if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8077 cat >>confdefs.h <<_ACEOF
8078#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
8079_ACEOF
8080
f8f6ec92 8081else
f11781c5 8082 $bailout
ad6254c5
AK
8083fi
8084
f11781c5 8085done
8b1a3214 8086
f11781c5
AK
8087 check_lib_no_libs dlm dlm_lock -lpthread
8088 if test $NOTFOUND = 0; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8090$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8091 DLM_LIBS="-ldlm -lpthread"
8092 HAVE_DLM=yes
8093 fi
8b1a3214 8094else
f11781c5
AK
8095 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8096 DLM_LIBS=$pkg_cv_DLM_LIBS
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8098$as_echo "yes" >&6; }
8099 HAVE_DLM=yes
8b1a3214 8100fi
8b1a3214
AK
8101fi
8102
f11781c5
AK
8103if test x$CLVMD = xall; then
8104 CLVMD=none
8105 CLVMD_CMANAGERS=""
8106 CLVMD_NEEDS_QDISKD=no
8107 if test x$HAVE_CCS = xyes && \
8108 test x$HAVE_GULM = xyes; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd gulm cluster manager" >&5
8110$as_echo "Enabling clvmd gulm cluster manager" >&6; }
8111 CLVMD="$CLVMD,gulm"
8112 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
8113 CLVMD_NEEDS_QDISKD=yes
8114 fi
8115 if test x$HAVE_CMAN = xyes && \
8116 test x$HAVE_DLM = xyes; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8118$as_echo "Enabling clvmd cman cluster manager" >&6; }
8119 CLVMD="$CLVMD,cman"
8120 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8121 CLVMD_NEEDS_QDISKD=yes
8122 fi
8123 if test x$HAVE_COROSYNC = xyes && \
8124 test x$HAVE_QUORUM = xyes && \
8125 test x$HAVE_CPG = xyes && \
8126 test x$HAVE_DLM = xyes && \
8127 test x$HAVE_CONFDB = xyes; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8129$as_echo "Enabling clvmd corosync cluster manager" >&6; }
8130 CLVMD="$CLVMD,corosync"
8131 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
8132 fi
8133 if test x$HAVE_COROSYNC = xyes && \
8134 test x$HAVE_CPG = xyes && \
8135 test x$HAVE_SALCK = xyes; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8137$as_echo "Enabling clvmd openais cluster manager" >&6; }
8138 CLVMD="$CLVMD,openais"
8139 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8140 fi
8141 if test x$CLVMD_NEEDS_QDISKD != xno; then
8142 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8143 fi
8144 if test x$CLVMD = xnone; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8146$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
8147 fi
8148fi
8149
ad6254c5 8150################################################################################
f11781c5 8151if test "x$CLVMD" != xnone; then
ad6254c5 8152
f11781c5
AK
8153# Check whether --with-clvmd-pidfile was given.
8154if test "${with_clvmd_pidfile+set}" = set; then :
8155 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 8156else
f11781c5 8157 CLVMD_PIDFILE="/var/run/clvmd.pid"
ad6254c5 8158fi
7a197a62 8159
ad6254c5 8160
f11781c5
AK
8161cat >>confdefs.h <<_ACEOF
8162#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 8163_ACEOF
ad6254c5 8164
ad6254c5 8165fi
7a197a62 8166
f11781c5
AK
8167################################################################################
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8169$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8170# Check whether --enable-cmirrord was given.
8171if test "${enable_cmirrord+set}" = set; then :
8172 enableval=$enable_cmirrord; CMIRRORD=$enableval
8173else
8174 CMIRRORD=no
8175fi
8176
8177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8178$as_echo "$CMIRRORD" >&6; }
ad6254c5 8179
f11781c5 8180BUILD_CMIRRORD=$CMIRRORD
7a197a62 8181
f11781c5
AK
8182################################################################################
8183if test "x$BUILD_CMIRRORD" = xyes; then
8184
8185# Check whether --with-cmirrord-pidfile was given.
8186if test "${with_cmirrord_pidfile+set}" = set; then :
8187 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 8188else
f11781c5 8189 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
ad6254c5 8190fi
ad6254c5 8191
72b2cb61 8192
f11781c5
AK
8193cat >>confdefs.h <<_ACEOF
8194#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8195_ACEOF
8196
ad6254c5
AK
8197fi
8198
f11781c5
AK
8199################################################################################
8200if [ "x$BUILD_CMIRRORD" = xyes ]; then
8201 if test x$PKGCONFIG_INIT != x1; then
8202 pkg_config_init
8203 fi
ad6254c5 8204
f11781c5
AK
8205pkg_failed=no
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8207$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8208
f11781c5
AK
8209if test -n "$SACKPT_CFLAGS"; then
8210 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8211 elif test -n "$PKG_CONFIG"; then
8212 if test -n "$PKG_CONFIG" && \
8213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8214 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8215 ac_status=$?
8216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8217 test $ac_status = 0; }; then
8218 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8219else
f11781c5
AK
8220 pkg_failed=yes
8221fi
8222 else
8223 pkg_failed=untried
8224fi
8225if test -n "$SACKPT_LIBS"; then
8226 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8227 elif test -n "$PKG_CONFIG"; then
8228 if test -n "$PKG_CONFIG" && \
8229 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8230 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 8231 ac_status=$?
f11781c5
AK
8232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8233 test $ac_status = 0; }; then
8234 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8235else
f11781c5
AK
8236 pkg_failed=yes
8237fi
8238 else
8239 pkg_failed=untried
8240fi
539f4a77
ZK
8241
8242
539f4a77 8243
f11781c5
AK
8244if test $pkg_failed = yes; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246$as_echo "no" >&6; }
8247
8248if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8249 _pkg_short_errors_supported=yes
539f4a77 8250else
f11781c5 8251 _pkg_short_errors_supported=no
539f4a77 8252fi
f11781c5
AK
8253 if test $_pkg_short_errors_supported = yes; then
8254 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8255 else
8256 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8257 fi
8258 # Put the nasty error message in config.log where it belongs
8259 echo "$SACKPT_PKG_ERRORS" >&5
8260
8261 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8262
8263$SACKPT_PKG_ERRORS
8264
8265Consider adjusting the PKG_CONFIG_PATH environment variable if you
8266installed software in a non-standard prefix.
8267
8268Alternatively, you may set the environment variables SACKPT_CFLAGS
8269and SACKPT_LIBS to avoid the need to call pkg-config.
8270See the pkg-config man page for more details." "$LINENO" 5
8271
8272elif test $pkg_failed = untried; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274$as_echo "no" >&6; }
8275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8277as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8278is in your PATH or set the PKG_CONFIG environment variable to the full
8279path to pkg-config.
8280
8281Alternatively, you may set the environment variables SACKPT_CFLAGS
8282and SACKPT_LIBS to avoid the need to call pkg-config.
8283See the pkg-config man page for more details.
8284
8285To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8286See \`config.log' for more details" "$LINENO" 5; }
8287
539f4a77 8288else
f11781c5
AK
8289 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8290 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8292$as_echo "yes" >&6; }
539f4a77 8293
539f4a77 8294fi
f11781c5 8295 if test x$HAVE_CPG != xyes; then
539f4a77 8296
f11781c5
AK
8297pkg_failed=no
8298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8299$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8300
f11781c5
AK
8301if test -n "$CPG_CFLAGS"; then
8302 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8303 elif test -n "$PKG_CONFIG"; then
8304 if test -n "$PKG_CONFIG" && \
8305 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8306 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8307 ac_status=$?
f11781c5
AK
8308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8309 test $ac_status = 0; }; then
8310 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8311else
f11781c5
AK
8312 pkg_failed=yes
8313fi
8314 else
8315 pkg_failed=untried
8316fi
8317if test -n "$CPG_LIBS"; then
8318 pkg_cv_CPG_LIBS="$CPG_LIBS"
8319 elif test -n "$PKG_CONFIG"; then
8320 if test -n "$PKG_CONFIG" && \
8321 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8322 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8323 ac_status=$?
8324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8325 test $ac_status = 0; }; then
8326 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8327else
8328 pkg_failed=yes
8329fi
8330 else
8331 pkg_failed=untried
8332fi
8333
8334
8335
8336if test $pkg_failed = yes; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338$as_echo "no" >&6; }
ad6254c5 8339
f11781c5
AK
8340if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8341 _pkg_short_errors_supported=yes
8342else
8343 _pkg_short_errors_supported=no
ad6254c5 8344fi
f11781c5
AK
8345 if test $_pkg_short_errors_supported = yes; then
8346 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8347 else
8348 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8349 fi
8350 # Put the nasty error message in config.log where it belongs
8351 echo "$CPG_PKG_ERRORS" >&5
8352
8353 as_fn_error $? "Package requirements (libcpg) were not met:
8354
8355$CPG_PKG_ERRORS
8356
8357Consider adjusting the PKG_CONFIG_PATH environment variable if you
8358installed software in a non-standard prefix.
8359
8360Alternatively, you may set the environment variables CPG_CFLAGS
8361and CPG_LIBS to avoid the need to call pkg-config.
8362See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8363
f11781c5
AK
8364elif test $pkg_failed = untried; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366$as_echo "no" >&6; }
8367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8369as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8370is in your PATH or set the PKG_CONFIG environment variable to the full
8371path to pkg-config.
539f4a77 8372
f11781c5
AK
8373Alternatively, you may set the environment variables CPG_CFLAGS
8374and CPG_LIBS to avoid the need to call pkg-config.
8375See the pkg-config man page for more details.
539f4a77 8376
f11781c5
AK
8377To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8378See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8379
539f4a77 8380else
f11781c5
AK
8381 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8382 CPG_LIBS=$pkg_cv_CPG_LIBS
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8384$as_echo "yes" >&6; }
bc1024f8 8385
f11781c5
AK
8386fi
8387 fi
8388fi
8389
8390################################################################################
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8392$as_echo_n "checking whether to enable debugging... " >&6; }
8393# Check whether --enable-debug was given.
8394if test "${enable_debug+set}" = set; then :
8395 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8396else
f11781c5
AK
8397 DEBUG=no
8398fi
8399
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8401$as_echo "$DEBUG" >&6; }
539f4a77 8402
f11781c5
AK
8403if test x$DEBUG = xyes; then
8404 COPTIMISE_FLAG=
8405else
8406 CSCOPE_CMD=
06e459df
JM
8407fi
8408
f11781c5
AK
8409################################################################################
8410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8411$as_echo_n "checking for C optimisation flag... " >&6; }
8412
8413# Check whether --with-optimisation was given.
8414if test "${with_optimisation+set}" = set; then :
8415 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8416fi
539f4a77 8417
f11781c5
AK
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8419$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8420
f11781c5
AK
8421################################################################################
8422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8423$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8424# Check whether --enable-profiling was given.
8425if test "${enable_profiling+set}" = set; then :
8426 enableval=$enable_profiling; PROFILING=$enableval
8427else
8428 PROFILING=no
539f4a77
ZK
8429fi
8430
f11781c5
AK
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8432$as_echo "$PROFILING" >&6; }
8433
8434if test "x$PROFILING" = xyes; then
8435 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8436 # Extract the first word of "lcov", so it can be a program name with args.
8437set dummy lcov; ac_word=$2
8438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439$as_echo_n "checking for $ac_word... " >&6; }
8440if test "${ac_cv_path_LCOV+set}" = set; then :
8441 $as_echo_n "(cached) " >&6
539f4a77 8442else
f11781c5
AK
8443 case $LCOV in
8444 [\\/]* | ?:[\\/]*)
8445 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8446 ;;
8447 *)
8448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449for as_dir in $PATH
8450do
8451 IFS=$as_save_IFS
8452 test -z "$as_dir" && as_dir=.
8453 for ac_exec_ext in '' $ac_executable_extensions; do
8454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8455 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8457 break 2
8458 fi
8459done
8460 done
8461IFS=$as_save_IFS
539f4a77 8462
f11781c5
AK
8463 ;;
8464esac
8465fi
8466LCOV=$ac_cv_path_LCOV
8467if test -n "$LCOV"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8469$as_echo "$LCOV" >&6; }
8470else
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472$as_echo "no" >&6; }
539f4a77
ZK
8473fi
8474
bc1024f8 8475
f11781c5
AK
8476 # Extract the first word of "genhtml", so it can be a program name with args.
8477set dummy genhtml; ac_word=$2
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479$as_echo_n "checking for $ac_word... " >&6; }
8480if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8481 $as_echo_n "(cached) " >&6
ad6254c5 8482else
f11781c5
AK
8483 case $GENHTML in
8484 [\\/]* | ?:[\\/]*)
8485 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8486 ;;
8487 *)
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489for as_dir in $PATH
8490do
8491 IFS=$as_save_IFS
8492 test -z "$as_dir" && as_dir=.
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8495 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497 break 2
8498 fi
8499done
8500 done
8501IFS=$as_save_IFS
8a2fc586 8502
f11781c5
AK
8503 ;;
8504esac
8505fi
8506GENHTML=$ac_cv_path_GENHTML
8507if test -n "$GENHTML"; then
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8509$as_echo "$GENHTML" >&6; }
8510else
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512$as_echo "no" >&6; }
8513fi
8a2fc586 8514
8a2fc586 8515
f11781c5
AK
8516 if test -z "$LCOV" -o -z "$GENHTML"; then
8517 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8518 fi
8519 # Extract the first word of "genpng", so it can be a program name with args.
8520set dummy genpng; ac_word=$2
8521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8522$as_echo_n "checking for $ac_word... " >&6; }
8523if test "${ac_cv_path_GENPNG+set}" = set; then :
8524 $as_echo_n "(cached) " >&6
8525else
8526 case $GENPNG in
8527 [\\/]* | ?:[\\/]*)
8528 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8529 ;;
8530 *)
8531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532for as_dir in $PATH
8533do
8534 IFS=$as_save_IFS
8535 test -z "$as_dir" && as_dir=.
8536 for ac_exec_ext in '' $ac_executable_extensions; do
8537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8538 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 break 2
8541 fi
8542done
8543 done
8544IFS=$as_save_IFS
ad6254c5 8545
f11781c5 8546 ;;
7a197a62 8547esac
f11781c5
AK
8548fi
8549GENPNG=$ac_cv_path_GENPNG
8550if test -n "$GENPNG"; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8552$as_echo "$GENPNG" >&6; }
ad6254c5 8553else
f11781c5
AK
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555$as_echo "no" >&6; }
8556fi
8557
8558
8559 if test -n "$GENPNG"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8561$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8562 if $GENPNG --help > /dev/null 2>&1 ; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8564$as_echo "ok" >&6; }
8565 GENHTML="$GENHTML --frames"
8566 else
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8568$as_echo "not supported" >&6; }
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8570$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8571 GENPNG=
8572 fi
8573 fi
8574fi
ad6254c5 8575
f11781c5
AK
8576################################################################################
8577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8578$as_echo_n "checking whether to enable unit testing... " >&6; }
8579# Check whether --enable-testing was given.
8580if test "${enable_testing+set}" = set; then :
8581 enableval=$enable_testing; TESTING=$enableval
8582else
8583 TESTING=no
ad6254c5 8584fi
7a197a62 8585
f11781c5
AK
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8587$as_echo "$TESTING" >&6; }
72b2cb61 8588
f11781c5
AK
8589if test "$TESTING" = yes; then
8590 # Extract the first word of "ruby1.9", so it can be a program name with args.
8591set dummy ruby1.9; ac_word=$2
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593$as_echo_n "checking for $ac_word... " >&6; }
8594if test "${ac_cv_path_RUBY19+set}" = set; then :
8595 $as_echo_n "(cached) " >&6
8596else
8597 case $RUBY19 in
8598 [\\/]* | ?:[\\/]*)
8599 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
8600 ;;
8601 *)
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603for as_dir in $PATH
8604do
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8609 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 break 2
8612 fi
bc1024f8 8613done
f11781c5
AK
8614 done
8615IFS=$as_save_IFS
ad6254c5 8616
f11781c5
AK
8617 ;;
8618esac
ad6254c5 8619fi
f11781c5
AK
8620RUBY19=$ac_cv_path_RUBY19
8621if test -n "$RUBY19"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8623$as_echo "$RUBY19" >&6; }
ad6254c5 8624else
f11781c5
AK
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626$as_echo "no" >&6; }
7a197a62
AK
8627fi
8628
ad6254c5 8629
f11781c5
AK
8630 # Extract the first word of "valgrind", so it can be a program name with args.
8631set dummy valgrind; ac_word=$2
8632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 8633$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 8634if test "${ac_cv_path_VALGRIND+set}" = set; then :
ec6a6fbe 8635 $as_echo_n "(cached) " >&6
ad6254c5 8636else
f11781c5 8637 case $VALGRIND in
ad6254c5 8638 [\\/]* | ?:[\\/]*)
f11781c5 8639 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
ad6254c5
AK
8640 ;;
8641 *)
8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643for as_dir in $PATH
8644do
8645 IFS=$as_save_IFS
8646 test -z "$as_dir" && as_dir=.
f11781c5 8647 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 8648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
8649 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
8650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
8651 break 2
8652 fi
8653done
f11781c5 8654 done
7a197a62 8655IFS=$as_save_IFS
ad6254c5
AK
8656
8657 ;;
8658esac
8659fi
f11781c5
AK
8660VALGRIND=$ac_cv_path_VALGRIND
8661if test -n "$VALGRIND"; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8663$as_echo "$VALGRIND" >&6; }
ad6254c5 8664else
f11781c5 8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 8666$as_echo "no" >&6; }
ad6254c5
AK
8667fi
8668
7a197a62 8669
f11781c5
AK
8670 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8671 as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5
8672 fi
8673fi
ad6254c5 8674
f11781c5
AK
8675################################################################################
8676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8677$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8678# Check whether --enable-valgrind_pool was given.
8679if test "${enable_valgrind_pool+set}" = set; then :
8680 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8681else
8682 VALGRIND_POOL=no
8683fi
8684
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8686$as_echo "$VALGRIND_POOL" >&6; }
8687
8688if test "$VALGRIND_POOL" = yes; then
8689 for ac_header in valgrind/memcheck.h
8690do :
8691 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8692if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8693 cat >>confdefs.h <<_ACEOF
8694#define HAVE_VALGRIND_MEMCHECK_H 1
8695_ACEOF
ad6254c5 8696
ad6254c5 8697else
f11781c5 8698 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8699fi
8700
f11781c5
AK
8701done
8702
8703
8704$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8705
ad6254c5
AK
8706fi
8707
8708################################################################################
f11781c5
AK
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8710$as_echo_n "checking whether to use device-mapper... " >&6; }
8711# Check whether --enable-devmapper was given.
8712if test "${enable_devmapper+set}" = set; then :
8713 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8714fi
8715
f11781c5
AK
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8717$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8718
f11781c5 8719if test x$DEVMAPPER = xyes; then
ad6254c5 8720
f11781c5
AK
8721$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8722
8723fi
8724
8725################################################################################
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8727$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8728# Check whether --enable-udev_sync was given.
8729if test "${enable_udev_sync+set}" = set; then :
8730 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8731else
f11781c5 8732 UDEV_SYNC=no
7a197a62 8733fi
ad6254c5 8734
f11781c5
AK
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8736$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8737
f11781c5
AK
8738if test x$UDEV_SYNC = xyes; then
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_queue_get_udev_is_active in -ludev" >&5
8740$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
8741if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then :
8742 $as_echo_n "(cached) " >&6
8743else
8744 ac_check_lib_save_LIBS=$LIBS
8745LIBS="-ludev $LIBS"
8746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747/* end confdefs.h. */
7a197a62 8748
f11781c5
AK
8749/* Override any GCC internal prototype to avoid an error.
8750 Use char because int might match the return type of a GCC
8751 builtin and then its argument prototype would still apply. */
8752#ifdef __cplusplus
8753extern "C"
8754#endif
8755char udev_queue_get_udev_is_active ();
8756int
8757main ()
8758{
8759return udev_queue_get_udev_is_active ();
8760 ;
8761 return 0;
8762}
8763_ACEOF
8764if ac_fn_c_try_link "$LINENO"; then :
8765 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
68f2de6d 8766else
f11781c5
AK
8767 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
8768fi
8769rm -f core conftest.err conftest.$ac_objext \
8770 conftest$ac_exeext conftest.$ac_ext
8771LIBS=$ac_check_lib_save_LIBS
8772fi
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
8774$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
8775if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then :
8776 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
8777else
8778 as_fn_error $? "bailing out... libudev library is required" "$LINENO" 5
68f2de6d
AK
8779fi
8780
8781
f11781c5 8782$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8783
f11781c5
AK
8784fi
8785
8786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8787$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8788# Check whether --enable-udev_rules was given.
8789if test "${enable_udev_rules+set}" = set; then :
8790 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 8791else
f11781c5 8792 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
8793fi
8794
f11781c5
AK
8795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8796$as_echo "$UDEV_RULES" >&6; }
68f2de6d 8797
a5f46f6a 8798################################################################################
f11781c5
AK
8799# Check whether --enable-compat was given.
8800if test "${enable_compat+set}" = set; then :
8801 enableval=$enable_compat; DM_COMPAT=$enableval
8802else
8803 DM_COMPAT=no
8804fi
a5f46f6a 8805
f11781c5
AK
8806
8807################################################################################
8808# Check whether --enable-units-compat was given.
8809if test "${enable_units_compat+set}" = set; then :
8810 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 8811else
f11781c5 8812 UNITS_COMPAT=no
a5f46f6a
AK
8813fi
8814
8815
f11781c5 8816if test x$UNITS_COMPAT = xyes; then
78ce7acc 8817
f11781c5
AK
8818$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8819
8820fi
8821
8822################################################################################
8823# Check whether --enable-ioctl was given.
8824if test "${enable_ioctl+set}" = set; then :
8825 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
8826fi
8827
a5f46f6a 8828
ad6254c5 8829################################################################################
f11781c5
AK
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8831$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8832# Check whether --enable-o_direct was given.
8833if test "${enable_o_direct+set}" = set; then :
8834 enableval=$enable_o_direct; ODIRECT=$enableval
8835fi
ad6254c5 8836
f11781c5
AK
8837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8838$as_echo "$ODIRECT" >&6; }
8839
8840if test x$ODIRECT = xyes; then
8841
8842$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 8843
ad6254c5 8844fi
ad6254c5 8845
f11781c5
AK
8846################################################################################
8847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8848$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8849# Check whether --enable-applib was given.
8850if test "${enable_applib+set}" = set; then :
8851 enableval=$enable_applib; APPLIB=$enableval
8852else
8853 APPLIB=no
ad6254c5 8854fi
7a197a62 8855
f11781c5
AK
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8857$as_echo "$APPLIB" >&6; }
ad6254c5 8858
f11781c5
AK
8859test x$APPLIB = xyes \
8860 && LVM2APP_LIB=-llvm2app \
8861 || LVM2APP_LIB=
ad6254c5 8862
f11781c5
AK
8863################################################################################
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8865$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8866# Check whether --enable-cmdlib was given.
8867if test "${enable_cmdlib+set}" = set; then :
8868 enableval=$enable_cmdlib; CMDLIB=$enableval
8869else
8870 CMDLIB=no
ad6254c5 8871fi
7a197a62 8872
f11781c5
AK
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8874$as_echo "$CMDLIB" >&6; }
7a197a62 8875
f11781c5
AK
8876test x$CMDLIB = xyes \
8877 && LVM2CMD_LIB=-llvm2cmd \
8878 || LVM2CMD_LIB=
8879
8880################################################################################
8881# Check whether --enable-pkgconfig was given.
8882if test "${enable_pkgconfig+set}" = set; then :
8883 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 8884else
f11781c5 8885 PKGCONFIG=no
ad6254c5 8886fi
ad6254c5 8887
ad6254c5 8888
f11781c5
AK
8889################################################################################
8890# Check whether --enable-write_install was given.
8891if test "${enable_write_install+set}" = set; then :
8892 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 8893else
f11781c5 8894 WRITE_INSTALL=no
ad6254c5
AK
8895fi
8896
ad6254c5 8897
f11781c5
AK
8898################################################################################
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8900$as_echo_n "checking whether to install fsadm... " >&6; }
8901# Check whether --enable-fsadm was given.
8902if test "${enable_fsadm+set}" = set; then :
8903 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
8904fi
8905
f11781c5
AK
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8907$as_echo "$FSADM" >&6; }
ad6254c5 8908
f11781c5
AK
8909################################################################################
8910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8911$as_echo_n "checking whether to use dmeventd... " >&6; }
8912# Check whether --enable-dmeventd was given.
8913if test "${enable_dmeventd+set}" = set; then :
8914 enableval=$enable_dmeventd; DMEVENTD=$enableval
8915fi
ad6254c5 8916
f11781c5
AK
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
8918$as_echo "$DMEVENTD" >&6; }
ad6254c5 8919
f11781c5 8920BUILD_DMEVENTD=$DMEVENTD
ad6254c5 8921
f11781c5
AK
8922if test x$DMEVENTD = xyes; then
8923 if test x$MIRRORS != xinternal; then
8924 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
8925 " "$LINENO" 5
8926 fi
8927 if test x$CMDLIB = xno; then
8928 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
8929 " "$LINENO" 5
8930 fi
8931fi
ad6254c5 8932
f11781c5 8933if test x$DMEVENTD = xyes; then
ad6254c5 8934
f11781c5 8935$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 8936
f11781c5 8937fi
ad6254c5 8938
f11781c5 8939################################################################################
ad6254c5 8940
f11781c5
AK
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
8942$as_echo_n "checking for getline in -lc... " >&6; }
8943if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 8944 $as_echo_n "(cached) " >&6
ad6254c5 8945else
f11781c5
AK
8946 ac_check_lib_save_LIBS=$LIBS
8947LIBS="-lc $LIBS"
8948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8949/* end confdefs.h. */
f11781c5
AK
8950
8951/* Override any GCC internal prototype to avoid an error.
8952 Use char because int might match the return type of a GCC
8953 builtin and then its argument prototype would still apply. */
8954#ifdef __cplusplus
8955extern "C"
8956#endif
8957char getline ();
8958int
8959main ()
8960{
8961return getline ();
8962 ;
8963 return 0;
8964}
ad6254c5 8965_ACEOF
f11781c5
AK
8966if ac_fn_c_try_link "$LINENO"; then :
8967 ac_cv_lib_c_getline=yes
ad6254c5 8968else
f11781c5
AK
8969 ac_cv_lib_c_getline=no
8970fi
8971rm -f core conftest.err conftest.$ac_objext \
8972 conftest$ac_exeext conftest.$ac_ext
8973LIBS=$ac_check_lib_save_LIBS
8974fi
8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
8976$as_echo "$ac_cv_lib_c_getline" >&6; }
8977if test "x$ac_cv_lib_c_getline" = x""yes; then :
8978
8979$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 8980
ad6254c5 8981fi
7a197a62 8982
ad6254c5 8983
f11781c5
AK
8984################################################################################
8985
8986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
8987$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
8988if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
8989 $as_echo_n "(cached) " >&6
8990else
8991 ac_check_lib_save_LIBS=$LIBS
8992LIBS="-lc $LIBS"
8993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8994/* end confdefs.h. */
f11781c5
AK
8995
8996/* Override any GCC internal prototype to avoid an error.
8997 Use char because int might match the return type of a GCC
8998 builtin and then its argument prototype would still apply. */
8999#ifdef __cplusplus
9000extern "C"
9001#endif
9002char canonicalize_file_name ();
9003int
9004main ()
9005{
9006return canonicalize_file_name ();
9007 ;
9008 return 0;
9009}
ad6254c5 9010_ACEOF
f11781c5
AK
9011if ac_fn_c_try_link "$LINENO"; then :
9012 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 9013else
f11781c5
AK
9014 ac_cv_lib_c_canonicalize_file_name=no
9015fi
9016rm -f core conftest.err conftest.$ac_objext \
9017 conftest$ac_exeext conftest.$ac_ext
9018LIBS=$ac_check_lib_save_LIBS
9019fi
9020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9021$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9022if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9023
9024$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 9025
ad6254c5 9026fi
7a197a62 9027
ad6254c5 9028
f11781c5
AK
9029################################################################################
9030if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9031 then exec_prefix="";
9032fi;
7a197a62 9033
f11781c5
AK
9034################################################################################
9035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9036$as_echo_n "checking for dlopen in -ldl... " >&6; }
9037if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 9038 $as_echo_n "(cached) " >&6
ad6254c5 9039else
f11781c5
AK
9040 ac_check_lib_save_LIBS=$LIBS
9041LIBS="-ldl $LIBS"
9042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043/* end confdefs.h. */
ad6254c5 9044
f11781c5
AK
9045/* Override any GCC internal prototype to avoid an error.
9046 Use char because int might match the return type of a GCC
9047 builtin and then its argument prototype would still apply. */
9048#ifdef __cplusplus
9049extern "C"
9050#endif
9051char dlopen ();
9052int
9053main ()
9054{
9055return dlopen ();
9056 ;
9057 return 0;
9058}
ad6254c5 9059_ACEOF
f11781c5
AK
9060if ac_fn_c_try_link "$LINENO"; then :
9061 ac_cv_lib_dl_dlopen=yes
ad6254c5 9062else
f11781c5 9063 ac_cv_lib_dl_dlopen=no
795ca3e5 9064fi
f11781c5
AK
9065rm -f core conftest.err conftest.$ac_objext \
9066 conftest$ac_exeext conftest.$ac_ext
9067LIBS=$ac_check_lib_save_LIBS
9068fi
9069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9070$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9071if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 9072
ad6254c5 9073
f11781c5 9074$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 9075
f11781c5
AK
9076 DL_LIBS="-ldl"
9077 HAVE_LIBDL=yes
9078else
795ca3e5 9079
f11781c5
AK
9080 DL_LIBS=
9081 HAVE_LIBDL=no
9082fi
8106cdd5 9083
ad6254c5 9084
f11781c5
AK
9085################################################################################
9086if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9087 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9088 \) -a "x$STATIC_LINK" = xyes ];
9089 then as_fn_error $? "Features cannot be 'shared' when building statically
9090" "$LINENO" 5
9091fi
ad6254c5 9092
f11781c5
AK
9093################################################################################
9094if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9096$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9097if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 9098 $as_echo_n "(cached) " >&6
795ca3e5 9099else
f11781c5
AK
9100 ac_check_lib_save_LIBS=$LIBS
9101LIBS="-lpthread $LIBS"
9102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9103/* end confdefs.h. */
8a2fc586 9104
f11781c5
AK
9105/* Override any GCC internal prototype to avoid an error.
9106 Use char because int might match the return type of a GCC
9107 builtin and then its argument prototype would still apply. */
9108#ifdef __cplusplus
9109extern "C"
ad6254c5 9110#endif
f11781c5
AK
9111char pthread_mutex_lock ();
9112int
9113main ()
9114{
9115return pthread_mutex_lock ();
9116 ;
9117 return 0;
9118}
9119_ACEOF
9120if ac_fn_c_try_link "$LINENO"; then :
9121 ac_cv_lib_pthread_pthread_mutex_lock=yes
9122else
9123 ac_cv_lib_pthread_pthread_mutex_lock=no
9124fi
9125rm -f core conftest.err conftest.$ac_objext \
9126 conftest$ac_exeext conftest.$ac_ext
9127LIBS=$ac_check_lib_save_LIBS
9128fi
9129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9130$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9131if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9132 PTHREAD_LIBS="-lpthread"
9133else
9134 hard_bailout
9135fi
9136
9137fi
9138
9139################################################################################
9140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9141$as_echo_n "checking whether to enable selinux support... " >&6; }
9142# Check whether --enable-selinux was given.
9143if test "${enable_selinux+set}" = set; then :
9144 enableval=$enable_selinux; SELINUX=$enableval
9145fi
9146
9147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9148$as_echo "$SELINUX" >&6; }
8a2fc586 9149
f11781c5
AK
9150################################################################################
9151if test x$SELINUX = xyes; then
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9153$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9154if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
9156else
9157 ac_check_lib_save_LIBS=$LIBS
9158LIBS="-lsepol $LIBS"
9159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160/* end confdefs.h. */
8a2fc586 9161
7a197a62
AK
9162/* Override any GCC internal prototype to avoid an error.
9163 Use char because int might match the return type of a GCC
9164 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9165#ifdef __cplusplus
9166extern "C"
ad6254c5 9167#endif
f11781c5 9168char sepol_check_context ();
ad6254c5
AK
9169int
9170main ()
9171{
f11781c5 9172return sepol_check_context ();
ad6254c5
AK
9173 ;
9174 return 0;
9175}
9176_ACEOF
f11781c5
AK
9177if ac_fn_c_try_link "$LINENO"; then :
9178 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9179else
f11781c5
AK
9180 ac_cv_lib_sepol_sepol_check_context=no
9181fi
9182rm -f core conftest.err conftest.$ac_objext \
9183 conftest$ac_exeext conftest.$ac_ext
9184LIBS=$ac_check_lib_save_LIBS
80992638 9185fi
f11781c5
AK
9186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9187$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9188if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9189
80992638 9190
f11781c5
AK
9191$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9192
9193 SELINUX_LIBS="-lsepol"
8106cdd5 9194fi
795ca3e5 9195
f11781c5
AK
9196
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9198$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9199if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9200 $as_echo_n "(cached) " >&6
25fbec5b 9201else
f11781c5
AK
9202 ac_check_lib_save_LIBS=$LIBS
9203LIBS="-lselinux $LIBS"
9204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9205/* end confdefs.h. */
80992638 9206
7a197a62
AK
9207/* Override any GCC internal prototype to avoid an error.
9208 Use char because int might match the return type of a GCC
ad6254c5 9209 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9210#ifdef __cplusplus
9211extern "C"
9212#endif
f11781c5 9213char is_selinux_enabled ();
ad6254c5
AK
9214int
9215main ()
9216{
f11781c5 9217return is_selinux_enabled ();
ad6254c5
AK
9218 ;
9219 return 0;
9220}
9221_ACEOF
f11781c5
AK
9222if ac_fn_c_try_link "$LINENO"; then :
9223 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9224else
f11781c5 9225 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9226fi
f11781c5
AK
9227rm -f core conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext conftest.$ac_ext
9229LIBS=$ac_check_lib_save_LIBS
25fbec5b 9230fi
f11781c5
AK
9231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9232$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9233if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9234
f11781c5
AK
9235 for ac_header in selinux/selinux.h
9236do :
9237 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9238if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9239 cat >>confdefs.h <<_ACEOF
9240#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9241_ACEOF
795ca3e5 9242
25fbec5b 9243else
f11781c5 9244 hard_bailout
795ca3e5 9245fi
795ca3e5 9246
f11781c5 9247done
795ca3e5 9248
f11781c5
AK
9249 for ac_header in selinux/label.h
9250do :
9251 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9252if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9253 cat >>confdefs.h <<_ACEOF
9254#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9255_ACEOF
ad6254c5 9256
ad6254c5 9257fi
7a197a62 9258
f11781c5 9259done
7a197a62 9260
ad6254c5 9261
f11781c5 9262$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9263
f11781c5
AK
9264 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9265 SELINUX_PC="libselinux"
9266 HAVE_SELINUX=yes
ad6254c5 9267else
8106cdd5 9268
f11781c5
AK
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9270$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9271 SELINUX_LIBS=
9272 SELINUX_PC=
9273 HAVE_SELINUX=no
795ca3e5 9274fi
ad6254c5 9275
795ca3e5
AK
9276fi
9277
f11781c5
AK
9278################################################################################
9279if test x$REALTIME = xyes; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9281$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9282if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9283 $as_echo_n "(cached) " >&6
26e7f2e0 9284else
f11781c5
AK
9285 ac_check_lib_save_LIBS=$LIBS
9286LIBS="-lrt $LIBS"
9287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9288/* end confdefs.h. */
ad6254c5 9289
f11781c5
AK
9290/* Override any GCC internal prototype to avoid an error.
9291 Use char because int might match the return type of a GCC
9292 builtin and then its argument prototype would still apply. */
9293#ifdef __cplusplus
9294extern "C"
9295#endif
9296char clock_gettime ();
ad6254c5
AK
9297int
9298main ()
9299{
f11781c5 9300return clock_gettime ();
ad6254c5
AK
9301 ;
9302 return 0;
9303}
9304_ACEOF
f11781c5
AK
9305if ac_fn_c_try_link "$LINENO"; then :
9306 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9307else
f11781c5 9308 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9309fi
f11781c5
AK
9310rm -f core conftest.err conftest.$ac_objext \
9311 conftest$ac_exeext conftest.$ac_ext
9312LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9313fi
f11781c5
AK
9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9315$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9316if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9317 HAVE_REALTIME=yes
9318else
9319 HAVE_REALTIME=no
8106cdd5 9320fi
ad6254c5 9321
ad6254c5 9322
f11781c5 9323 if test x$HAVE_REALTIME = xyes; then
7a197a62 9324
f11781c5 9325$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9326
f11781c5
AK
9327 LIBS="-lrt $LIBS"
9328 else
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9330$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9331 fi
9332fi
9333
9334################################################################################
9335for ac_header in getopt.h
9336do :
9337 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9338if test "x$ac_cv_header_getopt_h" = x""yes; then :
9339 cat >>confdefs.h <<_ACEOF
9340#define HAVE_GETOPT_H 1
9341_ACEOF
9342
9343$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9344
ad6254c5 9345fi
7a197a62 9346
f11781c5 9347done
ad6254c5 9348
7a197a62 9349
f11781c5
AK
9350################################################################################
9351if test x$READLINE != xno; then
9352 lvm_saved_libs=$LIBS
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9354$as_echo_n "checking for library containing tgetent... " >&6; }
9355if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9356 $as_echo_n "(cached) " >&6
ad6254c5 9357else
f11781c5
AK
9358 ac_func_search_save_LIBS=$LIBS
9359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360/* end confdefs.h. */
ad6254c5 9361
f11781c5
AK
9362/* Override any GCC internal prototype to avoid an error.
9363 Use char because int might match the return type of a GCC
9364 builtin and then its argument prototype would still apply. */
9365#ifdef __cplusplus
9366extern "C"
9367#endif
9368char tgetent ();
9369int
9370main ()
9371{
9372return tgetent ();
9373 ;
9374 return 0;
9375}
ad6254c5 9376_ACEOF
f11781c5
AK
9377for ac_lib in '' tinfo ncurses curses termcap termlib; do
9378 if test -z "$ac_lib"; then
9379 ac_res="none required"
9380 else
9381 ac_res=-l$ac_lib
9382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9383 fi
9384 if ac_fn_c_try_link "$LINENO"; then :
9385 ac_cv_search_tgetent=$ac_res
9386fi
9387rm -f core conftest.err conftest.$ac_objext \
9388 conftest$ac_exeext
9389 if test "${ac_cv_search_tgetent+set}" = set; then :
9390 break
9391fi
9392done
9393if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9394
80992638 9395else
f11781c5 9396 ac_cv_search_tgetent=no
b896caa1 9397fi
f11781c5
AK
9398rm conftest.$ac_ext
9399LIBS=$ac_func_search_save_LIBS
9400fi
9401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9402$as_echo "$ac_cv_search_tgetent" >&6; }
9403ac_res=$ac_cv_search_tgetent
9404if test "$ac_res" != no; then :
9405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9406 READLINE_LIBS=$ac_cv_search_tgetent
9407else
ad6254c5 9408
f11781c5
AK
9409 if test "$READLINE" = yes; then
9410 as_fn_error $? "termcap could not be found which is required for the
9411--enable-readline option (which is enabled by default). Either disable readline
9412support with --disable-readline or download and install termcap from:
9413 ftp.gnu.org/gnu/termcap
9414Note: if you are using precompiled packages you will also need the development
9415 package as well (which may be called termcap-devel or something similar).
9416Note: (n)curses also seems to work as a substitute for termcap. This was
9417 not found either - but you could try installing that as well." "$LINENO" 5
9418 fi
9419fi
b896caa1 9420
f11781c5
AK
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9422$as_echo_n "checking for readline in -lreadline... " >&6; }
9423if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9424 $as_echo_n "(cached) " >&6
795ca3e5 9425else
f11781c5
AK
9426 ac_check_lib_save_LIBS=$LIBS
9427LIBS="-lreadline $LIBS"
9428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9429/* end confdefs.h. */
8a2fc586 9430
f11781c5
AK
9431/* Override any GCC internal prototype to avoid an error.
9432 Use char because int might match the return type of a GCC
9433 builtin and then its argument prototype would still apply. */
9434#ifdef __cplusplus
9435extern "C"
ad6254c5 9436#endif
f11781c5
AK
9437char readline ();
9438int
9439main ()
9440{
9441return readline ();
9442 ;
9443 return 0;
9444}
9445_ACEOF
9446if ac_fn_c_try_link "$LINENO"; then :
9447 ac_cv_lib_readline_readline=yes
9448else
9449 ac_cv_lib_readline_readline=no
9450fi
9451rm -f core conftest.err conftest.$ac_objext \
9452 conftest$ac_exeext conftest.$ac_ext
9453LIBS=$ac_check_lib_save_LIBS
9454fi
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9456$as_echo "$ac_cv_lib_readline_readline" >&6; }
9457if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9458
8a2fc586 9459
f11781c5
AK
9460$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9461
9462 LIBS=$lvm_saved_libs
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9464$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9465if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9466 $as_echo_n "(cached) " >&6
9467else
9468 ac_check_lib_save_LIBS=$LIBS
9469LIBS="-lreadline $LIBS"
9470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471/* end confdefs.h. */
8a2fc586 9472
7a197a62
AK
9473/* Override any GCC internal prototype to avoid an error.
9474 Use char because int might match the return type of a GCC
9475 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9476#ifdef __cplusplus
9477extern "C"
ad6254c5 9478#endif
f11781c5 9479char rl_line_buffer ();
ad6254c5
AK
9480int
9481main ()
9482{
f11781c5 9483return rl_line_buffer ();
ad6254c5
AK
9484 ;
9485 return 0;
9486}
9487_ACEOF
f11781c5
AK
9488if ac_fn_c_try_link "$LINENO"; then :
9489 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9490else
f11781c5
AK
9491 ac_cv_lib_readline_rl_line_buffer=no
9492fi
9493rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495LIBS=$ac_check_lib_save_LIBS
9496fi
9497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9498$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9499if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9500 READLINE_LIBS="-lreadline"
9501else
9502
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9504$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9505 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9506
ad6254c5 9507fi
7a197a62 9508
f11781c5
AK
9509else
9510
9511 READLINE_LIBS=
9512 if test "$READLINE" = yes; then
9513 as_fn_error $? "GNU Readline could not be found which is required for the
9514--enable-readline option (which is enabled by default). Either disable readline
9515support with --disable-readline or download and install readline from:
9516 ftp.gnu.org/gnu/readline
9517Note: if you are using precompiled packages you will also need the development
9518package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9519 fi
ad6254c5 9520fi
f11781c5
AK
9521
9522 LIBS="$READLINE_LIBS $lvm_saved_libs"
9523 for ac_func in rl_completion_matches
9524do :
9525 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9526if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9527 cat >>confdefs.h <<_ACEOF
f11781c5 9528#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9529_ACEOF
9530
ad6254c5
AK
9531fi
9532done
9533
f11781c5 9534 LIBS=$lvm_saved_libs
ad6254c5
AK
9535fi
9536
f11781c5
AK
9537################################################################################
9538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9539$as_echo_n "checking whether to enable internationalisation... " >&6; }
9540# Check whether --enable-nls was given.
9541if test "${enable_nls+set}" = set; then :
9542 enableval=$enable_nls; INTL=$enableval
9543else
9544 INTL=no
9545fi
d911ec67 9546
f11781c5
AK
9547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9548$as_echo "$INTL" >&6; }
9549
9550if test x$INTL = xyes; then
9551# FIXME - Move this - can be device-mapper too
9552 INTL_PACKAGE="lvm2"
9553 # Extract the first word of "msgfmt", so it can be a program name with args.
9554set dummy msgfmt; ac_word=$2
9555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9556$as_echo_n "checking for $ac_word... " >&6; }
9557if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9558 $as_echo_n "(cached) " >&6
d911ec67 9559else
f11781c5
AK
9560 case $MSGFMT in
9561 [\\/]* | ?:[\\/]*)
9562 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9563 ;;
9564 *)
9565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9566for as_dir in $PATH
9567do
9568 IFS=$as_save_IFS
9569 test -z "$as_dir" && as_dir=.
9570 for ac_exec_ext in '' $ac_executable_extensions; do
9571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9572 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9574 break 2
9575 fi
9576done
9577 done
9578IFS=$as_save_IFS
9579
9580 ;;
d911ec67 9581esac
f11781c5
AK
9582fi
9583MSGFMT=$ac_cv_path_MSGFMT
9584if test -n "$MSGFMT"; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9586$as_echo "$MSGFMT" >&6; }
d911ec67 9587else
f11781c5
AK
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9589$as_echo "no" >&6; }
9590fi
d911ec67 9591
f11781c5
AK
9592
9593 if [ "x$MSGFMT" == x ];
9594 then as_fn_error $? "msgfmt not found in path $PATH
9595 " "$LINENO" 5
9596 fi;
9597
9598
9599# Check whether --with-localedir was given.
9600if test "${with_localedir+set}" = set; then :
9601 withval=$with_localedir; LOCALEDIR=$withval
9602else
9603 LOCALEDIR='${prefix}/share/locale'
9604fi
9605
9606fi
9607
9608################################################################################
9609
9610# Check whether --with-confdir was given.
9611if test "${with_confdir+set}" = set; then :
9612 withval=$with_confdir; CONFDIR=$withval
9613else
9614 CONFDIR="/etc"
9615fi
9616
9617
9618
9619# Check whether --with-staticdir was given.
9620if test "${with_staticdir+set}" = set; then :
9621 withval=$with_staticdir; STATICDIR=$withval
9622else
9623 STATICDIR='${exec_prefix}/sbin'
9624fi
9625
9626
9627
9628# Check whether --with-usrlibdir was given.
9629if test "${with_usrlibdir+set}" = set; then :
9630 withval=$with_usrlibdir; usrlibdir=$withval
9631else
9632 usrlibdir='${prefix}/lib'
d911ec67
AK
9633fi
9634
d911ec67 9635
d911ec67 9636
f11781c5
AK
9637# Check whether --with-usrsbindir was given.
9638if test "${with_usrsbindir+set}" = set; then :
9639 withval=$with_usrsbindir; usrsbindir=$withval
9640else
9641 usrsbindir='${prefix}/sbin'
d911ec67
AK
9642fi
9643
d911ec67 9644
f11781c5 9645################################################################################
d911ec67 9646
f11781c5
AK
9647# Check whether --with-udev_prefix was given.
9648if test "${with_udev_prefix+set}" = set; then :
9649 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9650else
f11781c5 9651 udev_prefix='${exec_prefix}'
d911ec67 9652fi
d911ec67 9653
f11781c5
AK
9654
9655
9656# Check whether --with-udevdir was given.
9657if test "${with_udevdir+set}" = set; then :
9658 withval=$with_udevdir; udevdir=$withval
9659else
9660 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9661fi
f11781c5
AK
9662
9663
9664################################################################################
9665if test x$READLINE = xyes; then
9666 for ac_header in readline/readline.h readline/history.h
9667do :
9668 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9669ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9670if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9671 cat >>confdefs.h <<_ACEOF
9672#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9673_ACEOF
9674
9675else
f11781c5 9676 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9677fi
9678
9679done
9680
9681fi
9682
f11781c5
AK
9683if test x$CLVMD != xnone; then
9684 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
9685do :
9686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9687ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9688if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9689 cat >>confdefs.h <<_ACEOF
9690#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9691_ACEOF
ad6254c5 9692
f11781c5
AK
9693else
9694 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9695fi
7a197a62 9696
f11781c5 9697done
ad6254c5 9698
f11781c5
AK
9699 for ac_func in dup2 getmntent memmove select socket
9700do :
9701 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9702ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9703if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9704 cat >>confdefs.h <<_ACEOF
9705#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9706_ACEOF
ad6254c5 9707
f11781c5
AK
9708else
9709 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9710fi
f11781c5 9711done
7a197a62 9712
f11781c5
AK
9713 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9714# -lseq on Dynix/PTX, -lgen on Unixware.
9715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9716$as_echo_n "checking for library containing getmntent... " >&6; }
9717if test "${ac_cv_search_getmntent+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
9719else
9720 ac_func_search_save_LIBS=$LIBS
9721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722/* end confdefs.h. */
ad6254c5 9723
f11781c5
AK
9724/* Override any GCC internal prototype to avoid an error.
9725 Use char because int might match the return type of a GCC
9726 builtin and then its argument prototype would still apply. */
9727#ifdef __cplusplus
9728extern "C"
9729#endif
9730char getmntent ();
9731int
9732main ()
9733{
9734return getmntent ();
9735 ;
9736 return 0;
9737}
9738_ACEOF
9739for ac_lib in '' sun seq gen; do
9740 if test -z "$ac_lib"; then
9741 ac_res="none required"
9742 else
9743 ac_res=-l$ac_lib
9744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9745 fi
9746 if ac_fn_c_try_link "$LINENO"; then :
9747 ac_cv_search_getmntent=$ac_res
9748fi
9749rm -f core conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext
9751 if test "${ac_cv_search_getmntent+set}" = set; then :
9752 break
9753fi
9754done
9755if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 9756
ad6254c5 9757else
f11781c5 9758 ac_cv_search_getmntent=no
795ca3e5 9759fi
f11781c5
AK
9760rm conftest.$ac_ext
9761LIBS=$ac_func_search_save_LIBS
9762fi
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9764$as_echo "$ac_cv_search_getmntent" >&6; }
9765ac_res=$ac_cv_search_getmntent
9766if test "$ac_res" != no; then :
9767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9768 ac_cv_func_getmntent=yes
9769
9770$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 9771
f11781c5
AK
9772else
9773 ac_cv_func_getmntent=no
8106cdd5 9774fi
f11781c5
AK
9775
9776
9777 for ac_header in sys/select.h sys/socket.h
9778do :
9779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9780ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9781if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 9782 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9783#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9784_ACEOF
795ca3e5 9785
795ca3e5
AK
9786fi
9787
ad6254c5 9788done
80992638 9789
f11781c5
AK
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9791$as_echo_n "checking types of arguments for select... " >&6; }
9792if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 9793 $as_echo_n "(cached) " >&6
83912faa 9794else
f11781c5
AK
9795 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9796 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9797 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
9799/* end confdefs.h. */
9800$ac_includes_default
f11781c5
AK
9801#ifdef HAVE_SYS_SELECT_H
9802# include <sys/select.h>
9803#endif
9804#ifdef HAVE_SYS_SOCKET_H
9805# include <sys/socket.h>
9806#endif
9807
9808int
9809main ()
9810{
9811extern int select ($ac_arg1,
9812 $ac_arg234, $ac_arg234, $ac_arg234,
9813 $ac_arg5);
9814 ;
9815 return 0;
9816}
ad6254c5 9817_ACEOF
f11781c5
AK
9818if ac_fn_c_try_compile "$LINENO"; then :
9819 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9820fi
9821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822 done
9823 done
9824done
9825# Provide a safe default value.
9826: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 9827
ad6254c5 9828fi
f11781c5
AK
9829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9830$as_echo "$ac_cv_func_select_args" >&6; }
9831ac_save_IFS=$IFS; IFS=','
9832set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9833IFS=$ac_save_IFS
9834shift
7a197a62 9835
f11781c5
AK
9836cat >>confdefs.h <<_ACEOF
9837#define SELECT_TYPE_ARG1 $1
9838_ACEOF
ad6254c5 9839
f11781c5
AK
9840
9841cat >>confdefs.h <<_ACEOF
9842#define SELECT_TYPE_ARG234 ($2)
ad6254c5 9843_ACEOF
f11781c5
AK
9844
9845
9846cat >>confdefs.h <<_ACEOF
9847#define SELECT_TYPE_ARG5 ($3)
ad6254c5 9848_ACEOF
ad6254c5 9849
f11781c5
AK
9850rm -f conftest*
9851
ad6254c5 9852fi
7a197a62 9853
f11781c5
AK
9854if test x$CLUSTER != xnone; then
9855 for ac_header in sys/socket.h sys/un.h
9856do :
9857 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9858ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9859if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9860 cat >>confdefs.h <<_ACEOF
9861#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9862_ACEOF
ad6254c5 9863
f11781c5
AK
9864else
9865 as_fn_error $? "bailing out" "$LINENO" 5
9866fi
9867
9868done
9869
9870 for ac_func in socket
9871do :
9872 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9873if test "x$ac_cv_func_socket" = x""yes; then :
9874 cat >>confdefs.h <<_ACEOF
9875#define HAVE_SOCKET 1
9876_ACEOF
7a197a62 9877
80992638 9878else
f11781c5 9879 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 9880fi
f11781c5 9881done
83912faa 9882
69792976 9883fi
f11781c5
AK
9884
9885if test x$DMEVENTD = xyes; then
9886 for ac_header in arpa/inet.h
9887do :
9888 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9889if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 9890 cat >>confdefs.h <<_ACEOF
f11781c5 9891#define HAVE_ARPA_INET_H 1
ad6254c5 9892_ACEOF
69792976 9893
69792976 9894else
f11781c5 9895 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
9896fi
9897
ad6254c5 9898done
69792976 9899
ad6254c5
AK
9900fi
9901
f11781c5
AK
9902if test x$HAVE_LIBDL = xyes; then
9903 for ac_header in dlfcn.h
9904do :
9905 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9906if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9907 cat >>confdefs.h <<_ACEOF
9908#define HAVE_DLFCN_H 1
a5f46f6a 9909_ACEOF
a5f46f6a 9910
f11781c5
AK
9911else
9912 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9913fi
9914
f11781c5 9915done
a5f46f6a 9916
a5f46f6a
AK
9917fi
9918
f11781c5
AK
9919if test x$INTL = xyes; then
9920 for ac_header in libintl.h
9921do :
9922 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9923if test "x$ac_cv_header_libintl_h" = x""yes; then :
9924 cat >>confdefs.h <<_ACEOF
9925#define HAVE_LIBINTL_H 1
9926_ACEOF
a5f46f6a 9927
a5f46f6a 9928else
f11781c5 9929 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 9930fi
f11781c5
AK
9931
9932done
a5f46f6a
AK
9933
9934fi
f11781c5
AK
9935
9936if test x$UDEV_SYNC = xyes; then
9937 for ac_header in sys/ipc.h sys/sem.h
9938do :
9939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9940ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9941if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
9942 cat >>confdefs.h <<_ACEOF
9943#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9944_ACEOF
9945
9946else
f11781c5 9947 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9948fi
9949
9950done
9951
9952fi
9953
a653923f
AK
9954################################################################################
9955# Extract the first word of "modprobe", so it can be a program name with args.
9956set dummy modprobe; ac_word=$2
f11781c5 9957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 9958$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 9959if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 9960 $as_echo_n "(cached) " >&6
72b2cb61
AK
9961else
9962 case $MODPROBE_CMD in
9963 [\\/]* | ?:[\\/]*)
9964 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
9965 ;;
9966 *)
9967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968for as_dir in $PATH
9969do
9970 IFS=$as_save_IFS
9971 test -z "$as_dir" && as_dir=.
f11781c5 9972 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 9973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 9974 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 9975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
9976 break 2
9977 fi
9978done
f11781c5 9979 done
7a197a62 9980IFS=$as_save_IFS
72b2cb61
AK
9981
9982 ;;
9983esac
9984fi
9985MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 9986if test -n "$MODPROBE_CMD"; then
f11781c5 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 9988$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 9989else
f11781c5 9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 9991$as_echo "no" >&6; }
72b2cb61
AK
9992fi
9993
a653923f 9994
7a197a62 9995
a653923f 9996if test x$MODPROBE_CMD != x; then
72b2cb61
AK
9997
9998cat >>confdefs.h <<_ACEOF
9999#define MODPROBE_CMD "$MODPROBE_CMD"
10000_ACEOF
10001
a653923f
AK
10002fi
10003
b5c2529b 10004
a9b601e2
ZK
10005lvm_exec_prefix=$exec_prefix
10006test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10007test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
10008
b5c2529b 10009cat >>confdefs.h <<_ACEOF
a9b601e2 10010#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
10011_ACEOF
10012
10013
10014if test "$CLVMD" != none; then
10015 clvmd_prefix=$ac_default_prefix
10016 test "$prefix" != NONE && clvmd_prefix=$prefix
10017
10018cat >>confdefs.h <<_ACEOF
10019#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
10020_ACEOF
10021
10022fi
10023
80992638 10024################################################################################
93bd259b
AK
10025if test "$BUILD_DMEVENTD" = yes; then
10026
10027# Check whether --with-dmeventd-pidfile was given.
f11781c5 10028if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 10029 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 10030else
71082be4 10031 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
10032fi
10033
93bd259b 10034
71082be4
ZK
10035cat >>confdefs.h <<_ACEOF
10036#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10037_ACEOF
93bd259b 10038
71082be4 10039fi
93bd259b
AK
10040
10041if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
10042
10043# Check whether --with-dmeventd-path was given.
f11781c5 10044if test "${with_dmeventd_path+set}" = set; then :
71082be4 10045 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 10046else
71082be4 10047 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
10048fi
10049
93bd259b 10050
71082be4
ZK
10051cat >>confdefs.h <<_ACEOF
10052#define DMEVENTD_PATH "$DMEVENTD_PATH"
10053_ACEOF
3399ae32 10054
71082be4 10055fi
3399ae32 10056
8bae0a1e
AK
10057
10058
8bae0a1e 10059# Check whether --with-default-run-dir was given.
f11781c5 10060if test "${with_default_run_dir+set}" = set; then :
8bae0a1e
AK
10061 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
10062else
10063 DEFAULT_RUN_DIR="/var/run/lvm"
10064fi
10065
10066cat >>confdefs.h <<_ACEOF
10067#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10068_ACEOF
10069
10070
71082be4 10071################################################################################
3399ae32
AK
10072
10073# Check whether --with-default-system-dir was given.
f11781c5 10074if test "${with_default_system_dir+set}" = set; then :
71082be4 10075 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 10076else
71082be4 10077 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
10078fi
10079
71082be4 10080
3399ae32
AK
10081cat >>confdefs.h <<_ACEOF
10082#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10083_ACEOF
10084
10085
10086
3399ae32 10087# Check whether --with-default-archive-subdir was given.
f11781c5 10088if test "${with_default_archive_subdir+set}" = set; then :
71082be4 10089 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 10090else
71082be4 10091 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
10092fi
10093
71082be4 10094
3399ae32
AK
10095cat >>confdefs.h <<_ACEOF
10096#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10097_ACEOF
10098
10099
10100
3399ae32 10101# Check whether --with-default-backup-subdir was given.
f11781c5 10102if test "${with_default_backup_subdir+set}" = set; then :
71082be4 10103 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 10104else
71082be4 10105 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
10106fi
10107
71082be4 10108
3399ae32
AK
10109cat >>confdefs.h <<_ACEOF
10110#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10111_ACEOF
10112
10113
10114
3399ae32 10115# Check whether --with-default-cache-subdir was given.
f11781c5 10116if test "${with_default_cache_subdir+set}" = set; then :
71082be4 10117 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 10118else
71082be4 10119 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
10120fi
10121
71082be4 10122
3399ae32
AK
10123cat >>confdefs.h <<_ACEOF
10124#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10125_ACEOF
10126
10127
10128
3399ae32 10129# Check whether --with-default-locking-dir was given.
f11781c5 10130if test "${with_default_locking_dir+set}" = set; then :
71082be4 10131 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 10132else
71082be4 10133 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
10134fi
10135
71082be4 10136
3399ae32
AK
10137cat >>confdefs.h <<_ACEOF
10138#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10139_ACEOF
10140
10141
fea55602
DW
10142################################################################################
10143
10144# Check whether --with-default-data-alignment was given.
f11781c5 10145if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
10146 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10147else
10148 DEFAULT_DATA_ALIGNMENT=1
10149fi
10150
10151
10152cat >>confdefs.h <<_ACEOF
10153#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10154_ACEOF
10155
10156
93bd259b 10157################################################################################
f11781c5 10158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10159$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10160
10161# Check whether --with-interface was given.
f11781c5 10162if test "${with_interface+set}" = set; then :
71082be4 10163 withval=$with_interface; interface=$withval
93bd259b 10164else
71082be4 10165 interface=ioctl
93bd259b
AK
10166fi
10167
10168if [ "x$interface" != xioctl ];
10169then
f11781c5 10170 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10171fi
f11781c5 10172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10173$as_echo "$interface" >&6; }
93bd259b
AK
10174
10175################################################################################
db8b5af9 10176DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10177
10178cat >>confdefs.h <<_ACEOF
10179#define DM_LIB_VERSION $DM_LIB_VERSION
10180_ACEOF
10181
10182
db8b5af9 10183DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10184
db8b5af9 10185LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10186
db8b5af9 10187VER=`cat "$srcdir"/VERSION`
bf456146 10188LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10189VER=`echo "$VER" | $AWK '{print $1}'`
10190LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10191VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10192LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10193LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10194LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10195LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10196
80992638 10197################################################################################
fae0c576 10198
83912faa 10199
795ca3e5
AK
10200
10201
10202
10203
10204
10205
5a52dca9 10206
8ef2b021 10207
199e490e 10208
69792976
AK
10209
10210
10211
d0191583 10212
69792976 10213
8106cdd5
AK
10214
10215
10216
10217
10218
d68a82ec 10219
036f273a 10220
7d1552c9 10221
8106cdd5 10222
0a62c911 10223
8106cdd5 10224
4a7f3eb2 10225
4922197a
AK
10226
10227
d8ac0fbc 10228
1a9ea74d 10229
8a2fc586
AK
10230
10231
d0191583 10232
93bd259b
AK
10233
10234
10235
10236
10237
d0191583
JM
10238
10239
10240
10241
10242
8a2fc586 10243
19a2c6e0 10244
f7f0854e
ZK
10245
10246
3ceb7608 10247
8ce0cbda 10248
8b1a3214 10249
ec6a6fbe
AK
10250
10251
10252
10253
e2997b73
AK
10254
10255
10256
10257
10258
10259
a946372e
AK
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
ec6a6fbe 10271
33f732c5 10272
66e941e8 10273
d3c8211f 10274
7e3fe830 10275
a5f46f6a
AK
10276
10277
10278
572fefeb 10279
90c80887 10280
3399ae32
AK
10281
10282
10283
10284
10285
90c80887 10286
bf456146 10287
e1b8a236 10288
0878503f 10289
8fea97b7 10290
54b362f9 10291
b1f08e51 10292
d1e8046f 10293
fea55602 10294
c89bc357 10295
37ddf259 10296
606d0858 10297
68f2de6d
AK
10298
10299
80992638 10300################################################################################
d1e8046f 10301ac_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/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 10302
ad6254c5 10303cat >confcache <<\_ACEOF
795ca3e5
AK
10304# This file is a shell script that caches the results of configure
10305# tests run on this system so they can be shared between configure
ad6254c5
AK
10306# scripts and configure runs, see configure's option --config-cache.
10307# It is not useful on other systems. If it contains results you don't
10308# want to keep, you may remove or edit it.
795ca3e5 10309#
ad6254c5
AK
10310# config.status only pays attention to the cache file if you give it
10311# the --recheck option to rerun configure.
795ca3e5 10312#
ad6254c5
AK
10313# `ac_cv_env_foo' variables (set or unset) will be overridden when
10314# loading this file, other *unset* `ac_cv_foo' will be assigned the
10315# following values.
10316
10317_ACEOF
10318
795ca3e5
AK
10319# The following way of writing the cache mishandles newlines in values,
10320# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10321# So, we kill variables containing newlines.
795ca3e5
AK
10322# Ultrix sh set writes to stderr and can't be redirected directly,
10323# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10324(
10325 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10326 eval ac_val=\$$ac_var
10327 case $ac_val in #(
10328 *${as_nl}*)
10329 case $ac_var in #(
f11781c5 10330 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10331$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10332 esac
10333 case $ac_var in #(
10334 _ | IFS | as_nl) ;; #(
ec6a6fbe 10335 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10336 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10337 esac ;;
10338 esac
10339 done
10340
ad6254c5 10341 (set) 2>&1 |
7a197a62
AK
10342 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10343 *${as_nl}ac_space=\ *)
f11781c5
AK
10344 # `set' does not quote correctly, so add quotes: double-quote
10345 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10346 sed -n \
8a2fc586
AK
10347 "s/'/'\\\\''/g;
10348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10349 ;; #(
ad6254c5
AK
10350 *)
10351 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10353 ;;
7a197a62
AK
10354 esac |
10355 sort
10356) |
ad6254c5 10357 sed '
7a197a62 10358 /^ac_cv_env_/b end
ad6254c5 10359 t clear
7a197a62 10360 :clear
ad6254c5
AK
10361 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10362 t end
7a197a62
AK
10363 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10364 :end' >>confcache
10365if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10366 if test -w "$cache_file"; then
10367 test "x$cache_file" != "x/dev/null" &&
f11781c5 10368 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10369$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10370 cat confcache >$cache_file
795ca3e5 10371 else
f11781c5 10372 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10373$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10374 fi
10375fi
10376rm -f confcache
10377
795ca3e5
AK
10378test "x$prefix" = xNONE && prefix=$ac_default_prefix
10379# Let make expand exec_prefix.
10380test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10381
72b2cb61 10382DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10383
10384ac_libobjs=
10385ac_ltlibobjs=
f11781c5 10386U=
ad6254c5
AK
10387for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10388 # 1. Remove the extension, and $U if already installed.
7a197a62 10389 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10390 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10391 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10392 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10393 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10394 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10395done
10396LIBOBJS=$ac_libobjs
80992638 10397
ad6254c5
AK
10398LTLIBOBJS=$ac_ltlibobjs
10399
10400
10401
10402: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10403ac_write_fail=0
ad6254c5
AK
10404ac_clean_files_save=$ac_clean_files
10405ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10406{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10407$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10408as_write_fail=0
10409cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10410#! $SHELL
10411# Generated by $as_me.
795ca3e5 10412# Run this file to recreate the current configuration.
795ca3e5 10413# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10414# configure, is in config.log if it exists.
10415
10416debug=false
10417ac_cs_recheck=false
10418ac_cs_silent=false
ad6254c5 10419
f11781c5
AK
10420SHELL=\${CONFIG_SHELL-$SHELL}
10421export SHELL
10422_ASEOF
10423cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10424## -------------------- ##
10425## M4sh Initialization. ##
10426## -------------------- ##
ad6254c5 10427
25fbec5b
AK
10428# Be more Bourne compatible
10429DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10430if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10431 emulate sh
10432 NULLCMD=:
ec6a6fbe 10433 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10434 # is contrary to our usage. Disable this feature.
10435 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10436 setopt NO_GLOB_SUBST
10437else
f11781c5
AK
10438 case `(set -o) 2>/dev/null` in #(
10439 *posix*) :
10440 set -o posix ;; #(
10441 *) :
10442 ;;
25fbec5b 10443esac
7a197a62 10444fi
25fbec5b
AK
10445
10446
ec6a6fbe
AK
10447as_nl='
10448'
10449export as_nl
10450# Printing a long string crashes Solaris 7 /usr/bin/printf.
10451as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10452as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10453as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10454# Prefer a ksh shell builtin over an external printf program on Solaris,
10455# but without wasting forks for bash or zsh.
10456if test -z "$BASH_VERSION$ZSH_VERSION" \
10457 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10458 as_echo='print -r --'
10459 as_echo_n='print -rn --'
10460elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10461 as_echo='printf %s\n'
10462 as_echo_n='printf %s'
10463else
10464 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10465 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10466 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10467 else
ec6a6fbe
AK
10468 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10469 as_echo_n_body='eval
10470 arg=$1;
f11781c5 10471 case $arg in #(
ec6a6fbe
AK
10472 *"$as_nl"*)
10473 expr "X$arg" : "X\\(.*\\)$as_nl";
10474 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10475 esac;
10476 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10477 '
10478 export as_echo_n_body
10479 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10480 fi
ec6a6fbe
AK
10481 export as_echo_body
10482 as_echo='sh -c $as_echo_body as_echo'
10483fi
10484
10485# The user is always right.
10486if test "${PATH_SEPARATOR+set}" != set; then
10487 PATH_SEPARATOR=:
10488 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10489 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10490 PATH_SEPARATOR=';'
10491 }
ad6254c5
AK
10492fi
10493
ad6254c5 10494
7a197a62
AK
10495# IFS
10496# We need space, tab and new line, in precisely that order. Quoting is
10497# there to prevent editors from complaining about space-tab.
10498# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10499# splitting by setting IFS to empty value.)
7a197a62
AK
10500IFS=" "" $as_nl"
10501
10502# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10503case $0 in #((
7a197a62
AK
10504 *[\\/]* ) as_myself=$0 ;;
10505 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506for as_dir in $PATH
10507do
10508 IFS=$as_save_IFS
10509 test -z "$as_dir" && as_dir=.
f11781c5
AK
10510 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10511 done
7a197a62
AK
10512IFS=$as_save_IFS
10513
10514 ;;
10515esac
10516# We did not find ourselves, most probably we were run as `sh COMMAND'
10517# in which case we are not to be found in the path.
10518if test "x$as_myself" = x; then
10519 as_myself=$0
10520fi
10521if test ! -f "$as_myself"; then
ec6a6fbe 10522 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10523 exit 1
7a197a62
AK
10524fi
10525
f11781c5
AK
10526# Unset variables that we do not need and which cause bugs (e.g. in
10527# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10528# suppresses any "Segmentation fault" message there. '((' could
10529# trigger a bug in pdksh 5.2.14.
10530for as_var in BASH_ENV ENV MAIL MAILPATH
10531do eval test x\${$as_var+set} = xset \
10532 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10533done
ad6254c5
AK
10534PS1='$ '
10535PS2='> '
10536PS4='+ '
10537
10538# NLS nuisances.
ec6a6fbe
AK
10539LC_ALL=C
10540export LC_ALL
10541LANGUAGE=C
10542export LANGUAGE
8106cdd5 10543
f11781c5
AK
10544# CDPATH.
10545(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10546
10547
10548# as_fn_error STATUS ERROR [LINENO LOG_FD]
10549# ----------------------------------------
10550# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10551# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10552# script with STATUS, using 1 if that was 0.
10553as_fn_error ()
10554{
10555 as_status=$1; test $as_status -eq 0 && as_status=1
10556 if test "$4"; then
10557 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10558 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10559 fi
10560 $as_echo "$as_me: error: $2" >&2
10561 as_fn_exit $as_status
10562} # as_fn_error
10563
10564
10565# as_fn_set_status STATUS
10566# -----------------------
10567# Set $? to STATUS, without forking.
10568as_fn_set_status ()
10569{
10570 return $1
10571} # as_fn_set_status
10572
10573# as_fn_exit STATUS
10574# -----------------
10575# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10576as_fn_exit ()
10577{
10578 set +e
10579 as_fn_set_status $1
10580 exit $1
10581} # as_fn_exit
10582
10583# as_fn_unset VAR
10584# ---------------
10585# Portably unset VAR.
10586as_fn_unset ()
10587{
10588 { eval $1=; unset $1;}
10589}
10590as_unset=as_fn_unset
10591# as_fn_append VAR VALUE
10592# ----------------------
10593# Append the text in VALUE to the end of the definition contained in VAR. Take
10594# advantage of any shell optimizations that allow amortized linear growth over
10595# repeated appends, instead of the typical quadratic growth present in naive
10596# implementations.
10597if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10598 eval 'as_fn_append ()
10599 {
10600 eval $1+=\$2
10601 }'
10602else
10603 as_fn_append ()
10604 {
10605 eval $1=\$$1\$2
10606 }
10607fi # as_fn_append
10608
10609# as_fn_arith ARG...
10610# ------------------
10611# Perform arithmetic evaluation on the ARGs, and store the result in the
10612# global $as_val. Take advantage of shells that can avoid forks. The arguments
10613# must be portable across $(()) and expr.
10614if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10615 eval 'as_fn_arith ()
10616 {
10617 as_val=$(( $* ))
10618 }'
10619else
10620 as_fn_arith ()
10621 {
10622 as_val=`expr "$@" || test $? -eq 1`
10623 }
10624fi # as_fn_arith
10625
10626
7a197a62
AK
10627if expr a : '\(a\)' >/dev/null 2>&1 &&
10628 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10629 as_expr=expr
10630else
10631 as_expr=false
10632fi
8106cdd5 10633
7a197a62 10634if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10635 as_basename=basename
10636else
10637 as_basename=false
10638fi
10639
f11781c5
AK
10640if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10641 as_dirname=dirname
10642else
10643 as_dirname=false
10644fi
ad6254c5 10645
7a197a62 10646as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10647$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10648 X"$0" : 'X\(//\)$' \| \
7a197a62 10649 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10650$as_echo X/"$0" |
7a197a62
AK
10651 sed '/^.*\/\([^/][^/]*\)\/*$/{
10652 s//\1/
10653 q
10654 }
10655 /^X\/\(\/\/\)$/{
10656 s//\1/
10657 q
10658 }
10659 /^X\/\(\/\).*/{
10660 s//\1/
10661 q
10662 }
10663 s/.*/./; q'`
ad6254c5 10664
f11781c5
AK
10665# Avoid depending upon Character Ranges.
10666as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10667as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10668as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10669as_cr_digits='0123456789'
10670as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10671
10672ECHO_C= ECHO_N= ECHO_T=
f11781c5 10673case `echo -n x` in #(((((
7a197a62 10674-n*)
f11781c5 10675 case `echo 'xy\c'` in
7a197a62 10676 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10677 xy) ECHO_C='\c';;
10678 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10679 ECHO_T=' ';;
7a197a62
AK
10680 esac;;
10681*)
10682 ECHO_N='-n';;
ad6254c5 10683esac
80992638 10684
ad6254c5 10685rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10686if test -d conf$$.dir; then
10687 rm -f conf$$.dir/conf$$.file
10688else
10689 rm -f conf$$.dir
ec6a6fbe
AK
10690 mkdir conf$$.dir 2>/dev/null
10691fi
10692if (echo >conf$$.file) 2>/dev/null; then
10693 if ln -s conf$$.file conf$$ 2>/dev/null; then
10694 as_ln_s='ln -s'
10695 # ... but there are two gotchas:
10696 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10697 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10698 # In both cases, we have to default to `cp -p'.
10699 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10700 as_ln_s='cp -p'
10701 elif ln conf$$.file conf$$ 2>/dev/null; then
10702 as_ln_s=ln
10703 else
ad6254c5 10704 as_ln_s='cp -p'
ec6a6fbe 10705 fi
ad6254c5
AK
10706else
10707 as_ln_s='cp -p'
10708fi
7a197a62
AK
10709rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10710rmdir conf$$.dir 2>/dev/null
8106cdd5 10711
f11781c5
AK
10712
10713# as_fn_mkdir_p
10714# -------------
10715# Create "$as_dir" as a directory, including parents if necessary.
10716as_fn_mkdir_p ()
10717{
10718
10719 case $as_dir in #(
10720 -*) as_dir=./$as_dir;;
10721 esac
10722 test -d "$as_dir" || eval $as_mkdir_p || {
10723 as_dirs=
10724 while :; do
10725 case $as_dir in #(
10726 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10727 *) as_qdir=$as_dir;;
10728 esac
10729 as_dirs="'$as_qdir' $as_dirs"
10730 as_dir=`$as_dirname -- "$as_dir" ||
10731$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10732 X"$as_dir" : 'X\(//\)[^/]' \| \
10733 X"$as_dir" : 'X\(//\)$' \| \
10734 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10735$as_echo X"$as_dir" |
10736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10737 s//\1/
10738 q
10739 }
10740 /^X\(\/\/\)[^/].*/{
10741 s//\1/
10742 q
10743 }
10744 /^X\(\/\/\)$/{
10745 s//\1/
10746 q
10747 }
10748 /^X\(\/\).*/{
10749 s//\1/
10750 q
10751 }
10752 s/.*/./; q'`
10753 test -d "$as_dir" && break
10754 done
10755 test -z "$as_dirs" || eval "mkdir $as_dirs"
10756 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10757
10758
10759} # as_fn_mkdir_p
ad6254c5 10760if mkdir -p . 2>/dev/null; then
f11781c5 10761 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 10762else
8a2fc586 10763 test -d ./-p && rmdir ./-p
ad6254c5
AK
10764 as_mkdir_p=false
10765fi
10766
25fbec5b
AK
10767if test -x / >/dev/null 2>&1; then
10768 as_test_x='test -x'
7a197a62 10769else
25fbec5b
AK
10770 if ls -dL / >/dev/null 2>&1; then
10771 as_ls_L_option=L
10772 else
10773 as_ls_L_option=
10774 fi
10775 as_test_x='
10776 eval sh -c '\''
10777 if test -d "$1"; then
ec6a6fbe 10778 test -d "$1/.";
25fbec5b 10779 else
f11781c5 10780 case $1 in #(
ec6a6fbe 10781 -*)set "./$1";;
25fbec5b 10782 esac;
f11781c5 10783 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
10784 ???[sx]*):;;*)false;;esac;fi
10785 '\'' sh
10786 '
7a197a62 10787fi
25fbec5b 10788as_executable_p=$as_test_x
ad6254c5
AK
10789
10790# Sed expression to map a string onto a valid CPP name.
8a2fc586 10791as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10792
10793# Sed expression to map a string onto a valid variable name.
8a2fc586 10794as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10795
10796
ad6254c5 10797exec 6>&1
f11781c5
AK
10798## ----------------------------------- ##
10799## Main body of $CONFIG_STATUS script. ##
10800## ----------------------------------- ##
10801_ASEOF
10802test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 10803
f11781c5
AK
10804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10805# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 10806# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
10807# values after options handling.
10808ac_log="
ad6254c5 10809This file was extended by $as_me, which was
f11781c5 10810generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
10811
10812 CONFIG_FILES = $CONFIG_FILES
10813 CONFIG_HEADERS = $CONFIG_HEADERS
10814 CONFIG_LINKS = $CONFIG_LINKS
10815 CONFIG_COMMANDS = $CONFIG_COMMANDS
10816 $ $0 $@
10817
7a197a62
AK
10818on `(hostname || uname -n) 2>/dev/null | sed 1q`
10819"
10820
ad6254c5
AK
10821_ACEOF
10822
ec6a6fbe
AK
10823case $ac_config_files in *"
10824"*) set x $ac_config_files; shift; ac_config_files=$*;;
10825esac
10826
10827case $ac_config_headers in *"
10828"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10829esac
10830
10831
10832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10833# Files that config.status was made for.
68f2de6d
AK
10834config_files="$ac_config_files"
10835config_headers="$ac_config_headers"
ad6254c5 10836
7a197a62 10837_ACEOF
ad6254c5 10838
ec6a6fbe 10839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 10840ac_cs_usage="\
f11781c5
AK
10841\`$as_me' instantiates files and other configuration actions
10842from templates according to the current configuration. Unless the files
10843and actions are specified as TAGs, all are instantiated by default.
ad6254c5 10844
f11781c5 10845Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
10846
10847 -h, --help print this help, then exit
25fbec5b 10848 -V, --version print version number and configuration settings, then exit
f11781c5 10849 --config print configuration, then exit
ec6a6fbe
AK
10850 -q, --quiet, --silent
10851 do not print progress messages
ad6254c5
AK
10852 -d, --debug don't remove temporary files
10853 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
10854 --file=FILE[:TEMPLATE]
10855 instantiate the configuration file FILE
10856 --header=FILE[:TEMPLATE]
10857 instantiate the configuration header FILE
ad6254c5
AK
10858
10859Configuration files:
10860$config_files
10861
72b2cb61
AK
10862Configuration headers:
10863$config_headers
10864
f11781c5 10865Report bugs to the package provider."
ad6254c5 10866
7a197a62 10867_ACEOF
ec6a6fbe 10868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 10869ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
10870ac_cs_version="\\
10871config.status
f11781c5
AK
10872configured by $0, generated by GNU Autoconf 2.66,
10873 with options \\"\$ac_cs_config\\"
ad6254c5 10874
f11781c5 10875Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
10876This config.status script is free software; the Free Software Foundation
10877gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
10878
10879ac_pwd='$ac_pwd'
10880srcdir='$srcdir'
10881INSTALL='$INSTALL'
fddafd51 10882MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
10883AWK='$AWK'
10884test -n "\$AWK" || AWK=awk
ad6254c5
AK
10885_ACEOF
10886
ec6a6fbe
AK
10887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10888# The default lists apply if the user does not specify any file.
ad6254c5
AK
10889ac_need_defaults=:
10890while test $# != 0
10891do
10892 case $1 in
10893 --*=*)
7a197a62
AK
10894 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10895 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
10896 ac_shift=:
10897 ;;
7a197a62 10898 *)
ad6254c5
AK
10899 ac_option=$1
10900 ac_optarg=$2
10901 ac_shift=shift
10902 ;;
ad6254c5
AK
10903 esac
10904
10905 case $ac_option in
10906 # Handling of the options.
ad6254c5
AK
10907 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10908 ac_cs_recheck=: ;;
7a197a62 10909 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 10910 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
10911 --config | --confi | --conf | --con | --co | --c )
10912 $as_echo "$ac_cs_config"; exit ;;
7a197a62 10913 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
10914 debug=: ;;
10915 --file | --fil | --fi | --f )
10916 $ac_shift
ec6a6fbe
AK
10917 case $ac_optarg in
10918 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10919 esac
f11781c5 10920 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
10921 ac_need_defaults=false;;
10922 --header | --heade | --head | --hea )
10923 $ac_shift
ec6a6fbe
AK
10924 case $ac_optarg in
10925 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10926 esac
f11781c5 10927 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 10928 ac_need_defaults=false;;
7a197a62
AK
10929 --he | --h)
10930 # Conflict between --help and --header
f11781c5
AK
10931 as_fn_error $? "ambiguous option: \`$1'
10932Try \`$0 --help' for more information.";;
7a197a62 10933 --help | --hel | -h )
ec6a6fbe 10934 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
10935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10936 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10937 ac_cs_silent=: ;;
10938
10939 # This is an error.
f11781c5
AK
10940 -*) as_fn_error $? "unrecognized option: \`$1'
10941Try \`$0 --help' for more information." ;;
ad6254c5 10942
f11781c5 10943 *) as_fn_append ac_config_targets " $1"
7a197a62 10944 ac_need_defaults=false ;;
ad6254c5
AK
10945
10946 esac
10947 shift
10948done
10949
10950ac_configure_extra_args=
10951
10952if $ac_cs_silent; then
10953 exec 6>/dev/null
10954 ac_configure_extra_args="$ac_configure_extra_args --silent"
10955fi
10956
10957_ACEOF
ec6a6fbe 10958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10959if \$ac_cs_recheck; then
ec6a6fbe
AK
10960 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10961 shift
10962 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10963 CONFIG_SHELL='$SHELL'
7a197a62 10964 export CONFIG_SHELL
ec6a6fbe 10965 exec "\$@"
ad6254c5
AK
10966fi
10967
10968_ACEOF
ec6a6fbe 10969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10970exec 5>>config.log
10971{
10972 echo
10973 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10974## Running $as_me. ##
10975_ASBOX
ec6a6fbe 10976 $as_echo "$ac_log"
7a197a62 10977} >&5
ad6254c5 10978
7a197a62 10979_ACEOF
ec6a6fbe 10980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 10981_ACEOF
ad6254c5 10982
ec6a6fbe 10983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10984
10985# Handling of arguments.
ad6254c5
AK
10986for ac_config_target in $ac_config_targets
10987do
7a197a62
AK
10988 case $ac_config_target in
10989 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
10990 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10991 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
10992 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
10993 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 10994 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
10995 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
10996 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 10997 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 10998 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
10999 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11000 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 11001 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 11002 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 11003 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
11004 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11005 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
11006 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11007 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11008 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11009 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 11010 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 11011 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 11012 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
11013 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11014 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 11015 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 11016 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
11017 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11018 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 11019 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 11020 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 11021 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 11022 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 11023 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 11024 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 11025 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 11026 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
11027 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11028 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 11029 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 11030
f11781c5 11031 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 11032 esac
ad6254c5
AK
11033done
11034
7a197a62 11035
ad6254c5
AK
11036# If the user did not use the arguments to specify the items to instantiate,
11037# then the envvar interface is used. Set only those that are not.
11038# We use the long form for the default assignment because of an extremely
11039# bizarre bug on SunOS 4.1.3.
11040if $ac_need_defaults; then
11041 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 11042 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
11043fi
11044
11045# Have a temporary directory for convenience. Make it in the build tree
7a197a62 11046# simply because there is no reason against having it here, and in addition,
ad6254c5 11047# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
11048# Hook for its removal unless debugging.
11049# Note that there is a small window in which the directory will not be cleaned:
11050# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
11051$debug ||
11052{
7a197a62
AK
11053 tmp=
11054 trap 'exit_status=$?
11055 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11056' 0
f11781c5 11057 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 11058}
ad6254c5
AK
11059# Create a (secure) tmp directory for tmp files.
11060
11061{
7a197a62 11062 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
11063 test -n "$tmp" && test -d "$tmp"
11064} ||
11065{
7a197a62
AK
11066 tmp=./conf$$-$RANDOM
11067 (umask 077 && mkdir "$tmp")
f11781c5 11068} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 11069
ec6a6fbe
AK
11070# Set up the scripts for CONFIG_FILES section.
11071# No need to generate them if there are no CONFIG_FILES.
11072# This happens for instance with `./config.status config.h'.
1995c9ff 11073if test -n "$CONFIG_FILES"; then
7a197a62 11074
68f2de6d 11075
f11781c5
AK
11076ac_cr=`echo X | tr X '\015'`
11077# On cygwin, bash can eat \r inside `` if the user requested igncr.
11078# But we know of no other shell where ac_cr would be empty at this
11079# point, so we can use a bashism as a fallback.
11080if test "x$ac_cr" = x; then
11081 eval ac_cr=\$\'\\r\'
11082fi
ec6a6fbe
AK
11083ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11084if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11085 ac_cs_awk_cr='\\r'
11086else
11087 ac_cs_awk_cr=$ac_cr
1995c9ff 11088fi
7a197a62 11089
ec6a6fbe 11090echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 11091_ACEOF
7a197a62 11092
8106cdd5 11093
ec6a6fbe
AK
11094{
11095 echo "cat >conf$$subs.awk <<_ACEOF" &&
11096 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11097 echo "_ACEOF"
11098} >conf$$subs.sh ||
f11781c5
AK
11099 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11100ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
11101ac_delim='%!_!# '
11102for ac_last_try in false false false false false :; do
ec6a6fbe 11103 . ./conf$$subs.sh ||
f11781c5 11104 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
11105
11106 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11107 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
11108 break
11109 elif $ac_last_try; then
f11781c5 11110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
11111 else
11112 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11113 fi
11114done
ec6a6fbe
AK
11115rm -f conf$$subs.sh
11116
11117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11118cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11119_ACEOF
11120sed -n '
11121h
11122s/^/S["/; s/!.*/"]=/
11123p
11124g
11125s/^[^!]*!//
11126:repl
11127t repl
11128s/'"$ac_delim"'$//
11129t delim
11130:nl
11131h
f11781c5 11132s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11133t more1
11134s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11135p
11136n
11137b repl
11138:more1
11139s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11140p
11141g
11142s/.\{148\}//
11143t nl
11144:delim
11145h
f11781c5 11146s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11147t more2
11148s/["\\]/\\&/g; s/^/"/; s/$/"/
11149p
11150b
11151:more2
11152s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11153p
11154g
11155s/.\{148\}//
11156t delim
11157' <conf$$subs.awk | sed '
11158/^[^""]/{
11159 N
11160 s/\n//
11161}
11162' >>$CONFIG_STATUS || ac_write_fail=1
11163rm -f conf$$subs.awk
11164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11165_ACAWK
11166cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11167 for (key in S) S_is_set[key] = 1
11168 FS = "\a"
7a197a62 11169
ec6a6fbe
AK
11170}
11171{
11172 line = $ 0
11173 nfields = split(line, field, "@")
11174 substed = 0
11175 len = length(field[1])
11176 for (i = 2; i < nfields; i++) {
11177 key = field[i]
11178 keylen = length(key)
11179 if (S_is_set[key]) {
11180 value = S[key]
11181 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11182 len += length(value) + length(field[++i])
11183 substed = 1
11184 } else
11185 len += 1 + keylen
11186 }
11187
11188 print line
11189}
fddafd51 11190
ec6a6fbe 11191_ACAWK
1995c9ff 11192_ACEOF
ec6a6fbe
AK
11193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11194if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11195 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11196else
11197 cat
11198fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11199 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11200_ACEOF
11201
f11781c5
AK
11202# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11203# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11204# trailing colons and then remove the whole line if VPATH becomes empty
11205# (actually we leave an empty line to preserve line numbers).
11206if test "x$srcdir" = x.; then
f11781c5
AK
11207 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11208h
11209s///
11210s/^/:/
11211s/[ ]*$/:/
11212s/:\$(srcdir):/:/g
11213s/:\${srcdir}:/:/g
11214s/:@srcdir@:/:/g
11215s/^:*//
7a197a62 11216s/:*$//
f11781c5
AK
11217x
11218s/\(=[ ]*\).*/\1/
11219G
11220s/\n//
7a197a62
AK
11221s/^[^=]*=[ ]*$//
11222}'
11223fi
11224
ec6a6fbe 11225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11226fi # test -n "$CONFIG_FILES"
11227
ec6a6fbe
AK
11228# Set up the scripts for CONFIG_HEADERS section.
11229# No need to generate them if there are no CONFIG_HEADERS.
11230# This happens for instance with `./config.status Makefile'.
11231if test -n "$CONFIG_HEADERS"; then
11232cat >"$tmp/defines.awk" <<\_ACAWK ||
11233BEGIN {
11234_ACEOF
11235
11236# Transform confdefs.h into an awk script `defines.awk', embedded as
11237# here-document in config.status, that substitutes the proper values into
11238# config.h.in to produce config.h.
11239
11240# Create a delimiter string that does not exist in confdefs.h, to ease
11241# handling of long lines.
11242ac_delim='%!_!# '
11243for ac_last_try in false false :; do
11244 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11245 if test -z "$ac_t"; then
11246 break
11247 elif $ac_last_try; then
f11781c5 11248 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11249 else
11250 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11251 fi
11252done
11253
11254# For the awk script, D is an array of macro values keyed by name,
11255# likewise P contains macro parameters if any. Preserve backslash
11256# newline sequences.
11257
11258ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11259sed -n '
11260s/.\{148\}/&'"$ac_delim"'/g
11261t rset
11262:rset
11263s/^[ ]*#[ ]*define[ ][ ]*/ /
11264t def
11265d
11266:def
11267s/\\$//
11268t bsnl
11269s/["\\]/\\&/g
11270s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11271D["\1"]=" \3"/p
11272s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11273d
11274:bsnl
11275s/["\\]/\\&/g
11276s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11277D["\1"]=" \3\\\\\\n"\\/p
11278t cont
11279s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11280t cont
11281d
11282:cont
11283n
11284s/.\{148\}/&'"$ac_delim"'/g
11285t clear
11286:clear
11287s/\\$//
11288t bsnlc
11289s/["\\]/\\&/g; s/^/"/; s/$/"/p
11290d
11291:bsnlc
11292s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11293b cont
11294' <confdefs.h | sed '
11295s/'"$ac_delim"'/"\\\
11296"/g' >>$CONFIG_STATUS || ac_write_fail=1
11297
11298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11299 for (key in D) D_is_set[key] = 1
11300 FS = "\a"
11301}
11302/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11303 line = \$ 0
11304 split(line, arg, " ")
11305 if (arg[1] == "#") {
11306 defundef = arg[2]
11307 mac1 = arg[3]
11308 } else {
11309 defundef = substr(arg[1], 2)
11310 mac1 = arg[2]
11311 }
11312 split(mac1, mac2, "(") #)
11313 macro = mac2[1]
11314 prefix = substr(line, 1, index(line, defundef) - 1)
11315 if (D_is_set[macro]) {
11316 # Preserve the white space surrounding the "#".
11317 print prefix "define", macro P[macro] D[macro]
11318 next
11319 } else {
11320 # Replace #undef with comments. This is necessary, for example,
11321 # in the case of _POSIX_SOURCE, which is predefined and required
11322 # on some systems where configure will not decide to define it.
11323 if (defundef == "undef") {
11324 print "/*", prefix defundef, macro, "*/"
11325 next
11326 }
11327 }
11328}
11329{ print }
11330_ACAWK
11331_ACEOF
11332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11333 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11334fi # test -n "$CONFIG_HEADERS"
11335
7a197a62 11336
ec6a6fbe
AK
11337eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11338shift
11339for ac_tag
7a197a62
AK
11340do
11341 case $ac_tag in
11342 :[FHLC]) ac_mode=$ac_tag; continue;;
11343 esac
11344 case $ac_mode$ac_tag in
11345 :[FHL]*:*);;
f11781c5 11346 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11347 :[FH]-) ac_tag=-:-;;
11348 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11349 esac
11350 ac_save_IFS=$IFS
11351 IFS=:
11352 set x $ac_tag
11353 IFS=$ac_save_IFS
11354 shift
11355 ac_file=$1
11356 shift
11357
11358 case $ac_mode in
11359 :L) ac_source=$1;;
11360 :[FH])
11361 ac_file_inputs=
11362 for ac_f
11363 do
11364 case $ac_f in
11365 -) ac_f="$tmp/stdin";;
11366 *) # Look for the file first in the build tree, then in the source tree
11367 # (if the path is not absolute). The absolute path cannot be DOS-style,
11368 # because $ac_f cannot contain `:'.
11369 test -f "$ac_f" ||
11370 case $ac_f in
11371 [\\/$]*) false;;
11372 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11373 esac ||
f11781c5 11374 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11375 esac
ec6a6fbe 11376 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11377 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11378 done
11379
11380 # Let's still pretend it is `configure' which instantiates (i.e., don't
11381 # use $as_me), people would be surprised to read:
11382 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11383 configure_input='Generated from '`
11384 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11385 `' by configure.'
7a197a62
AK
11386 if test x"$ac_file" != x-; then
11387 configure_input="$ac_file. $configure_input"
f11781c5 11388 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11389$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11390 fi
ec6a6fbe
AK
11391 # Neutralize special characters interpreted by sed in replacement strings.
11392 case $configure_input in #(
11393 *\&* | *\|* | *\\* )
11394 ac_sed_conf_input=`$as_echo "$configure_input" |
11395 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11396 *) ac_sed_conf_input=$configure_input;;
11397 esac
7a197a62
AK
11398
11399 case $ac_tag in
ec6a6fbe 11400 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11402 esac
11403 ;;
80992638 11404 esac
8106cdd5 11405
7a197a62 11406 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11407$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11408 X"$ac_file" : 'X\(//\)[^/]' \| \
11409 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11410 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11411$as_echo X"$ac_file" |
7a197a62
AK
11412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11413 s//\1/
11414 q
11415 }
11416 /^X\(\/\/\)[^/].*/{
11417 s//\1/
11418 q
11419 }
11420 /^X\(\/\/\)$/{
11421 s//\1/
11422 q
11423 }
11424 /^X\(\/\).*/{
11425 s//\1/
11426 q
11427 }
11428 s/.*/./; q'`
f11781c5 11429 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11430 ac_builddir=.
11431
7a197a62
AK
11432case "$ac_dir" in
11433.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11434*)
ec6a6fbe 11435 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11436 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11437 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11438 case $ac_top_builddir_sub in
11439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11441 esac ;;
11442esac
11443ac_abs_top_builddir=$ac_pwd
11444ac_abs_builddir=$ac_pwd$ac_dir_suffix
11445# for backward compatibility:
11446ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11447
11448case $srcdir in
7a197a62 11449 .) # We are building in place.
ad6254c5 11450 ac_srcdir=.
7a197a62
AK
11451 ac_top_srcdir=$ac_top_builddir_sub
11452 ac_abs_top_srcdir=$ac_pwd ;;
11453 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11454 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11455 ac_top_srcdir=$srcdir
11456 ac_abs_top_srcdir=$srcdir ;;
11457 *) # Relative name.
11458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11459 ac_top_srcdir=$ac_top_build_prefix$srcdir
11460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11461esac
7a197a62 11462ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11463
ad6254c5 11464
7a197a62
AK
11465 case $ac_mode in
11466 :F)
11467 #
11468 # CONFIG_FILE
11469 #
ad6254c5
AK
11470
11471 case $INSTALL in
11472 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11473 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11474 esac
fddafd51
ZK
11475 ac_MKDIR_P=$MKDIR_P
11476 case $MKDIR_P in
11477 [\\/$]* | ?:[\\/]* ) ;;
11478 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11479 esac
7a197a62 11480_ACEOF
795ca3e5 11481
ec6a6fbe 11482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11483# If the template does not know about datarootdir, expand it.
11484# FIXME: This hack should be removed a few years after 2.60.
11485ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11486ac_sed_dataroot='
11487/datarootdir/ {
7a197a62
AK
11488 p
11489 q
11490}
11491/@datadir@/p
11492/@docdir@/p
11493/@infodir@/p
11494/@localedir@/p
f11781c5 11495/@mandir@/p'
ec6a6fbe 11496case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11497*datarootdir*) ac_datarootdir_seen=yes;;
11498*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11500$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11501_ACEOF
ec6a6fbe 11502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11503 ac_datarootdir_hack='
11504 s&@datadir@&$datadir&g
11505 s&@docdir@&$docdir&g
11506 s&@infodir@&$infodir&g
11507 s&@localedir@&$localedir&g
11508 s&@mandir@&$mandir&g
f11781c5 11509 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11510esac
11511_ACEOF
11512
11513# Neutralize VPATH when `$srcdir' = `.'.
11514# Shell code in configure.ac might set extrasub.
11515# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11516cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11517ac_sed_extra="$ac_vpsub
ad6254c5
AK
11518$extrasub
11519_ACEOF
ec6a6fbe 11520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11521:t
11522/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11523s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11524s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11525s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11526s&@srcdir@&$ac_srcdir&;t t
11527s&@abs_srcdir@&$ac_abs_srcdir&;t t
11528s&@top_srcdir@&$ac_top_srcdir&;t t
11529s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11530s&@builddir@&$ac_builddir&;t t
11531s&@abs_builddir@&$ac_abs_builddir&;t t
11532s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11533s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11534s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11535$ac_datarootdir_hack
ec6a6fbe
AK
11536"
11537eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11539
11540test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11541 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11542 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11544which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11545$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11546which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11547
11548 rm -f "$tmp/stdin"
72b2cb61 11549 case $ac_file in
ec6a6fbe
AK
11550 -) cat "$tmp/out" && rm -f "$tmp/out";;
11551 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11552 esac \
f11781c5 11553 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11554 ;;
11555 :H)
11556 #
11557 # CONFIG_HEADER
11558 #
72b2cb61 11559 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11560 {
11561 $as_echo "/* $configure_input */" \
11562 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11563 } >"$tmp/config.h" \
f11781c5 11564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11565 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11566 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11567$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11568 else
ec6a6fbe
AK
11569 rm -f "$ac_file"
11570 mv "$tmp/config.h" "$ac_file" \
f11781c5 11571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11572 fi
11573 else
ec6a6fbe
AK
11574 $as_echo "/* $configure_input */" \
11575 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11576 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11577 fi
7a197a62
AK
11578 ;;
11579
11580
11581 esac
11582
11583done # for ac_tag
795ca3e5 11584
795ca3e5 11585
f11781c5 11586as_fn_exit 0
ad6254c5 11587_ACEOF
ad6254c5
AK
11588ac_clean_files=$ac_clean_files_save
11589
ec6a6fbe 11590test $ac_write_fail = 0 ||
f11781c5 11591 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11592
ad6254c5
AK
11593
11594# configure is writing to config.log, and then calls config.status.
11595# config.status does its own redirection, appending to config.log.
11596# Unfortunately, on DOS this fails, as config.log is still kept open
11597# by configure, so config.status won't be able to write to it; its
11598# output is simply discarded. So we exec the FD to /dev/null,
11599# effectively closing config.log, so it can be properly (re)opened and
11600# appended to by config.status. When coming back to configure, we
11601# need to make the FD available again.
11602if test "$no_create" != yes; then
11603 ac_cs_success=:
11604 ac_config_status_args=
11605 test "$silent" = yes &&
11606 ac_config_status_args="$ac_config_status_args --quiet"
11607 exec 5>/dev/null
11608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11609 exec 5>>config.log
11610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11611 # would make configure fail if this is the last instruction.
f11781c5 11612 $ac_cs_success || as_fn_exit 1
ad6254c5 11613fi
ec6a6fbe 11614if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11616$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11617fi
795ca3e5 11618
2dc95e1c
AK
11619
11620if test x$ODIRECT != xyes; then
f11781c5 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11622$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11623fi
This page took 1.621138 seconds and 5 git commands to generate.