]> sourceware.org Git - lvm2.git/blame_incremental - configure
thin: tighten discard string conversions
[lvm2.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.66.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
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
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
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'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
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'
69 fi
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 }
81fi
82
83
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.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92case $0 in #((
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=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
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
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113fi
114
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 || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
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
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378else
379 as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384else
385 as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
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'`
412
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
419
420
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; }
443
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
450}
451
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
464
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
471fi
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
486else
487 as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
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
497fi
498
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501else
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 '
519fi
520as_executable_p=$as_test_x
521
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'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
531
532# Name of the host.
533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541ac_clean_files=
542ac_config_libobj_dir=.
543LIBOBJS=
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
548
549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
555PACKAGE_URL=
556
557ac_unique_file="lib/device/dev-cache.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
561#ifdef HAVE_SYS_TYPES_H
562# include <sys/types.h>
563#endif
564#ifdef HAVE_SYS_STAT_H
565# include <sys/stat.h>
566#endif
567#ifdef STDC_HEADERS
568# include <stdlib.h>
569# include <stddef.h>
570#else
571# ifdef HAVE_STDLIB_H
572# include <stdlib.h>
573# endif
574#endif
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577# include <memory.h>
578# endif
579# include <string.h>
580#endif
581#ifdef HAVE_STRINGS_H
582# include <strings.h>
583#endif
584#ifdef HAVE_INTTYPES_H
585# include <inttypes.h>
586#endif
587#ifdef HAVE_STDINT_H
588# include <stdint.h>
589#endif
590#ifdef HAVE_UNISTD_H
591# include <unistd.h>
592#endif"
593
594ac_header_list=
595ac_default_prefix=/usr
596ac_subst_vars='LTLIBOBJS
597usrsbindir
598usrlibdir
599tmpfilesdir
600systemdutildir
601systemdsystemunitdir
602udevdir
603udev_prefix
604tmpdir
605kernelvsn
606missingkernel
607kerneldir
608interface
609LVMETAD_PIDFILE
610DMEVENTD_PIDFILE
611WRITE_INSTALL
612UDEV_HAS_BUILTIN_BLKID
613UDEV_RULE_EXEC_DETECTION
614UDEV_SYNC
615UDEV_RULES
616UDEV_PC
617THIN
618TESTING
619STATIC_LINK
620STATICDIR
621SNAPSHOTS
622SELINUX_PC
623SELINUX_LIBS
624REPLICATORS
625READLINE_LIBS
626RAID
627PTHREAD_LIBS
628POOL
629PKGCONFIG
630OCFDIR
631OCF
632MIRRORS
633LVM_RELEASE_DATE
634LVM_RELEASE
635LVM_PATH
636LVM_PATCHLEVEL
637LVM_MINOR
638LVM_MAJOR
639LVM_LIBAPI
640LVM_VERSION
641LVM1_FALLBACK
642LVM1
643LOCALEDIR
644LIB_SUFFIX
645LDDEPS
646JOBS
647INTL_PACKAGE
648INTL
649HAVE_REALTIME
650HAVE_LIBDL
651FSADM
652ELDFLAGS
653DM_LIB_PATCHLEVEL
654DM_LIB_VERSION
655DM_IOCTLS
656DM_DEVICE_UID
657DM_DEVICE_MODE
658DM_DEVICE_GID
659DM_COMPAT
660DMEVENTD_PATH
661DMEVENTD
662DL_LIBS
663DEVMAPPER
664DEFAULT_RUN_DIR
665DEFAULT_DM_RUN_DIR
666DEFAULT_LOCK_DIR
667DEFAULT_DATA_ALIGNMENT
668DEFAULT_CACHE_SUBDIR
669DEFAULT_BACKUP_SUBDIR
670DEFAULT_ARCHIVE_SUBDIR
671DEFAULT_SYS_DIR
672DEBUG
673COPTIMISE_FLAG
674CONFDIR
675CMDLIB
676CLVMD_PATH
677CLVMD_CMANAGERS
678CLVMD
679CLUSTER
680CLDWHOLEARCHIVE
681CLDNOWHOLEARCHIVE
682CLDFLAGS
683BUILD_LVMETAD
684BUILD_DMEVENTD
685BUILD_CMIRRORD
686APPLIB
687MODPROBE_CMD
688MSGFMT
689LVM2CMD_LIB
690LVM2APP_LIB
691UDEV_LIBS
692UDEV_CFLAGS
693CUNIT_LIBS
694CUNIT_CFLAGS
695GENPNG
696GENHTML
697LCOV
698SACKPT_LIBS
699SACKPT_CFLAGS
700DLM_LIBS
701DLM_CFLAGS
702CPG_LIBS
703CPG_CFLAGS
704CMAP_LIBS
705CMAP_CFLAGS
706CONFDB_LIBS
707CONFDB_CFLAGS
708SALCK_LIBS
709SALCK_CFLAGS
710QUORUM_LIBS
711QUORUM_CFLAGS
712COROSYNC_LIBS
713COROSYNC_CFLAGS
714CMAN_LIBS
715CMAN_CFLAGS
716PKGCONFIGINIT_LIBS
717PKGCONFIGINIT_CFLAGS
718PKG_CONFIG_LIBDIR
719PKG_CONFIG_PATH
720PKG_CONFIG
721THIN_CHECK_CMD
722POW_LIB
723LIBOBJS
724ALLOCA
725CSCOPE_CMD
726CFLOW_CMD
727RANLIB
728MKDIR_P
729SET_MAKE
730LN_S
731INSTALL_DATA
732INSTALL_SCRIPT
733INSTALL_PROGRAM
734EGREP
735GREP
736CPP
737OBJEXT
738EXEEXT
739ac_ct_CC
740CPPFLAGS
741LDFLAGS
742CFLAGS
743CC
744AWK
745SED
746target_os
747target_vendor
748target_cpu
749target
750host_os
751host_vendor
752host_cpu
753host
754build_os
755build_vendor
756build_cpu
757build
758target_alias
759host_alias
760build_alias
761LIBS
762ECHO_T
763ECHO_N
764ECHO_C
765DEFS
766mandir
767localedir
768libdir
769psdir
770pdfdir
771dvidir
772htmldir
773infodir
774docdir
775oldincludedir
776includedir
777localstatedir
778sharedstatedir
779sysconfdir
780datadir
781datarootdir
782libexecdir
783sbindir
784bindir
785program_transform_name
786prefix
787exec_prefix
788PACKAGE_URL
789PACKAGE_BUGREPORT
790PACKAGE_STRING
791PACKAGE_VERSION
792PACKAGE_TARNAME
793PACKAGE_NAME
794PATH_SEPARATOR
795SHELL'
796ac_subst_files=''
797ac_user_opts='
798enable_option_checking
799enable_static_link
800with_user
801with_group
802with_device_uid
803with_device_gid
804with_device_mode
805with_device_nodes_on
806with_default_name_mangling
807enable_lvm1_fallback
808with_lvm1
809with_pool
810with_cluster
811with_snapshots
812with_mirrors
813with_raid
814with_replicators
815with_thin
816with_thin_check
817enable_readline
818enable_realtime
819enable_ocf
820with_ocfdir
821with_default_pid_dir
822with_default_dm_run_dir
823with_default_run_dir
824with_clvmd
825with_clvmd_pidfile
826enable_cmirrord
827with_cmirrord_pidfile
828enable_debug
829with_optimisation
830enable_profiling
831enable_testing
832enable_valgrind_pool
833enable_devmapper
834enable_lvmetad
835with_lvmetad_pidfile
836enable_udev_sync
837enable_udev_rules
838enable_udev_rule_exec_detection
839enable_compat
840enable_units_compat
841enable_ioctl
842enable_o_direct
843enable_applib
844enable_cmdlib
845enable_pkgconfig
846enable_write_install
847enable_fsadm
848enable_dmeventd
849enable_selinux
850enable_nls
851with_localedir
852with_confdir
853with_staticdir
854with_usrlibdir
855with_usrsbindir
856with_udev_prefix
857with_udevdir
858with_systemdsystemunitdir
859with_tmpfilesdir
860with_dmeventd_pidfile
861with_dmeventd_path
862with_default_system_dir
863with_default_archive_subdir
864with_default_backup_subdir
865with_default_cache_subdir
866with_default_locking_dir
867with_default_data_alignment
868with_interface
869'
870 ac_precious_vars='build_alias
871host_alias
872target_alias
873CC
874CFLAGS
875LDFLAGS
876LIBS
877CPPFLAGS
878CPP
879PKG_CONFIG
880PKG_CONFIG_PATH
881PKG_CONFIG_LIBDIR
882PKGCONFIGINIT_CFLAGS
883PKGCONFIGINIT_LIBS
884CMAN_CFLAGS
885CMAN_LIBS
886COROSYNC_CFLAGS
887COROSYNC_LIBS
888QUORUM_CFLAGS
889QUORUM_LIBS
890SALCK_CFLAGS
891SALCK_LIBS
892CONFDB_CFLAGS
893CONFDB_LIBS
894CMAP_CFLAGS
895CMAP_LIBS
896CPG_CFLAGS
897CPG_LIBS
898DLM_CFLAGS
899DLM_LIBS
900SACKPT_CFLAGS
901SACKPT_LIBS
902CUNIT_CFLAGS
903CUNIT_LIBS
904UDEV_CFLAGS
905UDEV_LIBS'
906
907
908# Initialize some variables set by options.
909ac_init_help=
910ac_init_version=false
911ac_unrecognized_opts=
912ac_unrecognized_sep=
913# The variables have the same names as the options, with
914# dashes changed to underlines.
915cache_file=/dev/null
916exec_prefix=NONE
917no_create=
918no_recursion=
919prefix=NONE
920program_prefix=NONE
921program_suffix=NONE
922program_transform_name=s,x,x,
923silent=
924site=
925srcdir=
926verbose=
927x_includes=NONE
928x_libraries=NONE
929
930# Installation directory options.
931# These are left unexpanded so users can "make install exec_prefix=/foo"
932# and all the variables that are supposed to be based on exec_prefix
933# by default will actually change.
934# Use braces instead of parens because sh, perl, etc. also accept them.
935# (The list follows the same order as the GNU Coding Standards.)
936bindir='${exec_prefix}/bin'
937sbindir='${exec_prefix}/sbin'
938libexecdir='${exec_prefix}/libexec'
939datarootdir='${prefix}/share'
940datadir='${datarootdir}'
941sysconfdir='${prefix}/etc'
942sharedstatedir='${prefix}/com'
943localstatedir='${prefix}/var'
944includedir='${prefix}/include'
945oldincludedir='/usr/include'
946docdir='${datarootdir}/doc/${PACKAGE}'
947infodir='${datarootdir}/info'
948htmldir='${docdir}'
949dvidir='${docdir}'
950pdfdir='${docdir}'
951psdir='${docdir}'
952libdir='${exec_prefix}/lib'
953localedir='${datarootdir}/locale'
954mandir='${datarootdir}/man'
955
956ac_prev=
957ac_dashdash=
958for ac_option
959do
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
963 ac_prev=
964 continue
965 fi
966
967 case $ac_option in
968 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 *) ac_optarg=yes ;;
970 esac
971
972 # Accept the important Cygnus configure options, so we can diagnose typos.
973
974 case $ac_dashdash$ac_option in
975 --)
976 ac_dashdash=yes ;;
977
978 -bindir | --bindir | --bindi | --bind | --bin | --bi)
979 ac_prev=bindir ;;
980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981 bindir=$ac_optarg ;;
982
983 -build | --build | --buil | --bui | --bu)
984 ac_prev=build_alias ;;
985 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986 build_alias=$ac_optarg ;;
987
988 -cache-file | --cache-file | --cache-fil | --cache-fi \
989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990 ac_prev=cache_file ;;
991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993 cache_file=$ac_optarg ;;
994
995 --config-cache | -C)
996 cache_file=config.cache ;;
997
998 -datadir | --datadir | --datadi | --datad)
999 ac_prev=datadir ;;
1000 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001 datadir=$ac_optarg ;;
1002
1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004 | --dataroo | --dataro | --datar)
1005 ac_prev=datarootdir ;;
1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008 datarootdir=$ac_optarg ;;
1009
1010 -disable-* | --disable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 as_fn_error $? "invalid feature name: $ac_useropt"
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019"enable_$ac_useropt"
1020"*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=no ;;
1025
1026 -docdir | --docdir | --docdi | --doc | --do)
1027 ac_prev=docdir ;;
1028 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029 docdir=$ac_optarg ;;
1030
1031 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032 ac_prev=dvidir ;;
1033 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034 dvidir=$ac_optarg ;;
1035
1036 -enable-* | --enable-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error $? "invalid feature name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045"enable_$ac_useropt"
1046"*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=\$ac_optarg ;;
1051
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
1059 exec_prefix=$ac_optarg ;;
1060
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1063 with_gas=yes ;;
1064
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
1071
1072 -host | --host | --hos | --ho)
1073 ac_prev=host_alias ;;
1074 -host=* | --host=* | --hos=* | --ho=*)
1075 host_alias=$ac_optarg ;;
1076
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1082
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
1088 includedir=$ac_optarg ;;
1089
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 ac_prev=infodir ;;
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093 infodir=$ac_optarg ;;
1094
1095 -libdir | --libdir | --libdi | --libd)
1096 ac_prev=libdir ;;
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098 libdir=$ac_optarg ;;
1099
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
1105 libexecdir=$ac_optarg ;;
1106
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1111
1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
1113 | --localstate | --localstat | --localsta | --localst | --locals)
1114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1117 localstatedir=$ac_optarg ;;
1118
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 ac_prev=mandir ;;
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122 mandir=$ac_optarg ;;
1123
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1126 with_fp=no ;;
1127
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129 | --no-cr | --no-c | -n)
1130 no_create=yes ;;
1131
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 no_recursion=yes ;;
1135
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143 oldincludedir=$ac_optarg ;;
1144
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 ac_prev=prefix ;;
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148 prefix=$ac_optarg ;;
1149
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155 program_prefix=$ac_optarg ;;
1156
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162 program_suffix=$ac_optarg ;;
1163
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
1179 program_transform_name=$ac_optarg ;;
1180
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1185
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1190
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 silent=yes ;;
1194
1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196 ac_prev=sbindir ;;
1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198 | --sbi=* | --sb=*)
1199 sbindir=$ac_optarg ;;
1200
1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203 | --sharedst | --shareds | --shared | --share | --shar \
1204 | --sha | --sh)
1205 ac_prev=sharedstatedir ;;
1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209 | --sha=* | --sh=*)
1210 sharedstatedir=$ac_optarg ;;
1211
1212 -site | --site | --sit)
1213 ac_prev=site ;;
1214 -site=* | --site=* | --sit=*)
1215 site=$ac_optarg ;;
1216
1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218 ac_prev=srcdir ;;
1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1220 srcdir=$ac_optarg ;;
1221
1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223 | --syscon | --sysco | --sysc | --sys | --sy)
1224 ac_prev=sysconfdir ;;
1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1227 sysconfdir=$ac_optarg ;;
1228
1229 -target | --target | --targe | --targ | --tar | --ta | --t)
1230 ac_prev=target_alias ;;
1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1232 target_alias=$ac_optarg ;;
1233
1234 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 verbose=yes ;;
1236
1237 -version | --version | --versio | --versi | --vers | -V)
1238 ac_init_version=: ;;
1239
1240 -with-* | --with-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid package name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249"with_$ac_useropt"
1250"*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=\$ac_optarg ;;
1255
1256 -without-* | --without-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260 as_fn_error $? "invalid package name: $ac_useropt"
1261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1264 *"
1265"with_$ac_useropt"
1266"*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval with_$ac_useropt=no ;;
1271
1272 --x)
1273 # Obsolete; use --with-x.
1274 with_x=yes ;;
1275
1276 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1277 | --x-incl | --x-inc | --x-in | --x-i)
1278 ac_prev=x_includes ;;
1279 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1280 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1281 x_includes=$ac_optarg ;;
1282
1283 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1284 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1285 ac_prev=x_libraries ;;
1286 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1287 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1288 x_libraries=$ac_optarg ;;
1289
1290 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1291Try \`$0 --help' for more information"
1292 ;;
1293
1294 *=*)
1295 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1296 # Reject names that are not valid shell variable names.
1297 case $ac_envvar in #(
1298 '' | [0-9]* | *[!_$as_cr_alnum]* )
1299 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1300 esac
1301 eval $ac_envvar=\$ac_optarg
1302 export $ac_envvar ;;
1303
1304 *)
1305 # FIXME: should be removed in autoconf 3.0.
1306 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1308 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1309 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1310 ;;
1311
1312 esac
1313done
1314
1315if test -n "$ac_prev"; then
1316 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1317 as_fn_error $? "missing argument to $ac_option"
1318fi
1319
1320if test -n "$ac_unrecognized_opts"; then
1321 case $enable_option_checking in
1322 no) ;;
1323 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1324 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1325 esac
1326fi
1327
1328# Check all directory arguments for consistency.
1329for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1333do
1334 eval ac_val=\$$ac_var
1335 # Remove trailing slashes.
1336 case $ac_val in
1337 */ )
1338 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1339 eval $ac_var=\$ac_val;;
1340 esac
1341 # Be sure to have absolute directory names.
1342 case $ac_val in
1343 [\\/$]* | ?:[\\/]* ) continue;;
1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345 esac
1346 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1347done
1348
1349# There might be people who depend on the old broken behavior: `$host'
1350# used to hold the argument of --host etc.
1351# FIXME: To remove some day.
1352build=$build_alias
1353host=$host_alias
1354target=$target_alias
1355
1356# FIXME: To remove some day.
1357if test "x$host_alias" != x; then
1358 if test "x$build_alias" = x; then
1359 cross_compiling=maybe
1360 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1361 If a cross compiler is detected then cross compile mode will be used" >&2
1362 elif test "x$build_alias" != "x$host_alias"; then
1363 cross_compiling=yes
1364 fi
1365fi
1366
1367ac_tool_prefix=
1368test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370test "$silent" = yes && exec 6>/dev/null
1371
1372
1373ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374ac_ls_di=`ls -di .` &&
1375ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376 as_fn_error $? "working directory cannot be determined"
1377test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 as_fn_error $? "pwd does not report name of working directory"
1379
1380
1381# Find the source files, if location was not specified.
1382if test -z "$srcdir"; then
1383 ac_srcdir_defaulted=yes
1384 # Try the directory containing this script, then the parent directory.
1385 ac_confdir=`$as_dirname -- "$as_myself" ||
1386$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387 X"$as_myself" : 'X\(//\)[^/]' \| \
1388 X"$as_myself" : 'X\(//\)$' \| \
1389 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390$as_echo X"$as_myself" |
1391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)[^/].*/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\/\)$/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\).*/{
1404 s//\1/
1405 q
1406 }
1407 s/.*/./; q'`
1408 srcdir=$ac_confdir
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410 srcdir=..
1411 fi
1412else
1413 ac_srcdir_defaulted=no
1414fi
1415if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1418fi
1419ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420ac_abs_confdir=`(
1421 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1422 pwd)`
1423# When building in place, set srcdir=.
1424if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 srcdir=.
1426fi
1427# Remove unnecessary trailing slashes from srcdir.
1428# Double slashes in file names in object file debugging info
1429# mess up M-x gdb in Emacs.
1430case $srcdir in
1431*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432esac
1433for ac_var in $ac_precious_vars; do
1434 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_env_${ac_var}_value=\$${ac_var}
1436 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438done
1439
1440#
1441# Report the --help message.
1442#
1443if test "$ac_init_help" = "long"; then
1444 # Omit some internal or obsolete options to make the list less imposing.
1445 # This message is too long to be a string in the A/UX 3.1 sh.
1446 cat <<_ACEOF
1447\`configure' configures this package to adapt to many kinds of systems.
1448
1449Usage: $0 [OPTION]... [VAR=VALUE]...
1450
1451To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452VAR=VALUE. See below for descriptions of some of the useful variables.
1453
1454Defaults for the options are specified in brackets.
1455
1456Configuration:
1457 -h, --help display this help and exit
1458 --help=short display options specific to this package
1459 --help=recursive display the short help of all the included packages
1460 -V, --version display version information and exit
1461 -q, --quiet, --silent do not print \`checking ...' messages
1462 --cache-file=FILE cache test results in FILE [disabled]
1463 -C, --config-cache alias for \`--cache-file=config.cache'
1464 -n, --no-create do not create output files
1465 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466
1467Installation directories:
1468 --prefix=PREFIX install architecture-independent files in PREFIX
1469 [$ac_default_prefix]
1470 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1471 [PREFIX]
1472
1473By default, \`make install' will install all the files in
1474\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476for instance \`--prefix=\$HOME'.
1477
1478For better control, use the options below.
1479
1480Fine tuning of the installation directories:
1481 --bindir=DIR user executables [EPREFIX/bin]
1482 --sbindir=DIR system admin executables [EPREFIX/sbin]
1483 --libexecdir=DIR program executables [EPREFIX/libexec]
1484 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
1500_ACEOF
1501
1502 cat <<\_ACEOF
1503
1504System types:
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507 --target=TARGET configure for building compilers for TARGET [HOST]
1508_ACEOF
1509fi
1510
1511if test -n "$ac_init_help"; then
1512
1513 cat <<\_ACEOF
1514
1515Optional Features:
1516 --disable-option-checking ignore unrecognized --enable/--with options
1517 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1518 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1519 --enable-static_link use this to link the tools to their libraries
1520 statically (default is dynamic linking
1521 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
1522 device-mapper is missing from the kernel
1523 --disable-readline disable readline support
1524 --enable-realtime enable realtime clock support
1525 --enable-ocf enable Open Cluster Framework (OCF) compliant
1526 resource agents
1527 --enable-cmirrord enable the cluster mirror log daemon
1528 --enable-debug enable debugging
1529 --enable-profiling gather gcov profiling data
1530 --enable-testing enable testing targets in the makefile
1531 --enable-valgrind-pool enable valgrind awareness of pools
1532 --disable-devmapper disable LVM2 device-mapper interaction
1533 --enable-lvmetad enable the LVM Metadata Daemon
1534 --enable-udev_sync enable synchronisation with udev processing
1535 --enable-udev_rules install rule files needed for udev synchronisation
1536 --enable-udev-rule-exec-detection
1537 enable executable path detection in udev rules
1538 --enable-compat enable support for old device-mapper versions
1539 --enable-units-compat enable output compatibility with old versions that
1540 that do not use KiB-style unit suffixes
1541 --disable-driver disable calls to device-mapper in the kernel
1542 --disable-o_direct disable O_DIRECT
1543 --enable-applib build application library
1544 --enable-cmdlib build shared command library
1545 --enable-pkgconfig install pkgconfig support
1546 --enable-write_install install user writable files
1547 --disable-fsadm disable fsadm
1548 --enable-dmeventd enable the device-mapper event daemon
1549 --disable-selinux disable selinux support
1550 --enable-nls enable Native Language Support
1551
1552Optional Packages:
1553 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1554 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1555 --with-user=USER set the owner of installed files [[USER=]]
1556 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1557 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1558 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1559 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
1560 --with-device-nodes-on=ON
1561 create nodes on resume or create [[ON=resume]]
1562 --with-default-name-mangling=MANGLING
1563 default name mangling: auto/none/hex
1564 [[MANGLING=auto]]
1565 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1566 [[TYPE=internal]]
1567 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1568 [[TYPE=internal]]
1569 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1570 [[TYPE=internal]]
1571 --with-snapshots=TYPE snapshot support: internal/shared/none
1572 [[TYPE=internal]]
1573 --with-mirrors=TYPE mirror support: internal/shared/none
1574 [[TYPE=internal]]
1575 --with-raid=TYPE mirror support: internal/shared/none
1576 [[TYPE=internal]]
1577 --with-replicators=TYPE replicator support: internal/shared/none
1578 [[TYPE=none]]
1579 --with-thin=TYPE thin provisioning support: internal/shared/none
1580 [[TYPE=none]]
1581 --with-thin-check=PATH thin_check tool: [[autodetect]]
1582 --with-ocfdir=DIR install OCF files in DIR
1583 [[PREFIX/lib/ocf/resource.d/lvm2]]
1584 --with-default-pid-dir=PID_DIR
1585 Default directory to keep PID files in. [[/var/run]]
1586 --with-default-dm-run-dir=DM_RUN_DIR
1587 Default DM run directory. [[/var/run]]
1588 --with-default-run-dir=RUN_DIR
1589 Default LVM run directory. [[/var/run/lvm]]
1590 --with-clvmd=TYPE build cluster LVM Daemon
1591 The following cluster manager combinations are valid:
1592 * cman (RHEL5 or equivalent)
1593 * cman,corosync,openais (or selection of them)
1594 * singlenode (localhost only)
1595 * all (autodetect)
1596 * none (disable build)
1597 [TYPE=none]
1598 --with-clvmd-pidfile=PATH
1599 clvmd pidfile [[PID_DIR/clvmd.pid]]
1600 --with-cmirrord-pidfile=PATH
1601 cmirrord pidfile [[PID_DIR/cmirrord.pid]]
1602 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1603 --with-lvmetad-pidfile=PATH
1604 lvmetad pidfile [[PID_DIR/lvmetad.pid]]
1605 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1606 --with-confdir=DIR configuration files in DIR [[/etc]]
1607 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1608 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1609 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
1610 --with-udev-prefix=UPREFIX
1611 install udev rule files in UPREFIX [[EPREFIX]]
1612 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
1613 --with-systemdsystemunitdir=DIR
1614 systemd service files in DIR
1615 --with-tmpfilesdir=DIR install configuration files for management of
1616 volatile files and directories in DIR
1617 [[PREFIX/lib/tmpfiles.d]]
1618 --with-dmeventd-pidfile=PATH
1619 dmeventd pidfile [[PID_DIR/dmeventd.pid]]
1620 --with-dmeventd-path=PATH
1621 dmeventd path [[EPREFIX/sbin/dmeventd]]
1622 --with-default-system-dir=DIR
1623 default LVM system directory [[/etc/lvm]]
1624 --with-default-archive-subdir=SUBDIR
1625 default metadata archive subdir [[archive]]
1626 --with-default-backup-subdir=SUBDIR
1627 default metadata backup subdir [[backup]]
1628 --with-default-cache-subdir=SUBDIR
1629 default metadata cache subdir [[cache]]
1630 --with-default-locking-dir=DIR
1631 default locking directory [[/var/lock/lvm]]
1632 --with-default-data-alignment=NUM
1633 set the default data alignment in MiB [[1]]
1634 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
1635
1636Some influential environment variables:
1637 CC C compiler command
1638 CFLAGS C compiler flags
1639 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1640 nonstandard directory <lib dir>
1641 LIBS libraries to pass to the linker, e.g. -l<library>
1642 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1643 you have headers in a nonstandard directory <include dir>
1644 CPP C preprocessor
1645 PKG_CONFIG path to pkg-config utility
1646 PKG_CONFIG_PATH
1647 directories to add to pkg-config's search path
1648 PKG_CONFIG_LIBDIR
1649 path overriding pkg-config's built-in search path
1650 PKGCONFIGINIT_CFLAGS
1651 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1652 PKGCONFIGINIT_LIBS
1653 linker flags for PKGCONFIGINIT, overriding pkg-config
1654 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1655 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1656 COROSYNC_CFLAGS
1657 C compiler flags for COROSYNC, overriding pkg-config
1658 COROSYNC_LIBS
1659 linker flags for COROSYNC, overriding pkg-config
1660 QUORUM_CFLAGS
1661 C compiler flags for QUORUM, overriding pkg-config
1662 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1663 SALCK_CFLAGS
1664 C compiler flags for SALCK, overriding pkg-config
1665 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1666 CONFDB_CFLAGS
1667 C compiler flags for CONFDB, overriding pkg-config
1668 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1669 CMAP_CFLAGS C compiler flags for CMAP, overriding pkg-config
1670 CMAP_LIBS linker flags for CMAP, overriding pkg-config
1671 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1672 CPG_LIBS linker flags for CPG, overriding pkg-config
1673 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1674 DLM_LIBS linker flags for DLM, overriding pkg-config
1675 SACKPT_CFLAGS
1676 C compiler flags for SACKPT, overriding pkg-config
1677 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1678 CUNIT_CFLAGS
1679 C compiler flags for CUNIT, overriding pkg-config
1680 CUNIT_LIBS linker flags for CUNIT, overriding pkg-config
1681 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1682 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1683
1684Use these variables to override the choices made by `configure' or to help
1685it to find libraries and programs with nonstandard names/locations.
1686
1687Report bugs to the package provider.
1688_ACEOF
1689ac_status=$?
1690fi
1691
1692if test "$ac_init_help" = "recursive"; then
1693 # If there are subdirs, report their specific --help.
1694 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1695 test -d "$ac_dir" ||
1696 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1697 continue
1698 ac_builddir=.
1699
1700case "$ac_dir" in
1701.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702*)
1703 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1704 # A ".." for each directory in $ac_dir_suffix.
1705 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1706 case $ac_top_builddir_sub in
1707 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1708 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1709 esac ;;
1710esac
1711ac_abs_top_builddir=$ac_pwd
1712ac_abs_builddir=$ac_pwd$ac_dir_suffix
1713# for backward compatibility:
1714ac_top_builddir=$ac_top_build_prefix
1715
1716case $srcdir in
1717 .) # We are building in place.
1718 ac_srcdir=.
1719 ac_top_srcdir=$ac_top_builddir_sub
1720 ac_abs_top_srcdir=$ac_pwd ;;
1721 [\\/]* | ?:[\\/]* ) # Absolute name.
1722 ac_srcdir=$srcdir$ac_dir_suffix;
1723 ac_top_srcdir=$srcdir
1724 ac_abs_top_srcdir=$srcdir ;;
1725 *) # Relative name.
1726 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1727 ac_top_srcdir=$ac_top_build_prefix$srcdir
1728 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1729esac
1730ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1731
1732 cd "$ac_dir" || { ac_status=$?; continue; }
1733 # Check for guested configure.
1734 if test -f "$ac_srcdir/configure.gnu"; then
1735 echo &&
1736 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1737 elif test -f "$ac_srcdir/configure"; then
1738 echo &&
1739 $SHELL "$ac_srcdir/configure" --help=recursive
1740 else
1741 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1742 fi || ac_status=$?
1743 cd "$ac_pwd" || { ac_status=$?; break; }
1744 done
1745fi
1746
1747test -n "$ac_init_help" && exit $ac_status
1748if $ac_init_version; then
1749 cat <<\_ACEOF
1750configure
1751generated by GNU Autoconf 2.66
1752
1753Copyright (C) 2010 Free Software Foundation, Inc.
1754This configure script is free software; the Free Software Foundation
1755gives unlimited permission to copy, distribute and modify it.
1756_ACEOF
1757 exit
1758fi
1759
1760## ------------------------ ##
1761## Autoconf initialization. ##
1762## ------------------------ ##
1763
1764# ac_fn_c_try_compile LINENO
1765# --------------------------
1766# Try to compile conftest.$ac_ext, and return whether this succeeded.
1767ac_fn_c_try_compile ()
1768{
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext
1771 if { { ac_try="$ac_compile"
1772case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_compile") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1784 fi
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest.$ac_objext; then :
1790 ac_retval=0
1791else
1792 $as_echo "$as_me: failed program was:" >&5
1793sed 's/^/| /' conftest.$ac_ext >&5
1794
1795 ac_retval=1
1796fi
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 as_fn_set_status $ac_retval
1799
1800} # ac_fn_c_try_compile
1801
1802# ac_fn_c_try_cpp LINENO
1803# ----------------------
1804# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1805ac_fn_c_try_cpp ()
1806{
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { { ac_try="$ac_cpp conftest.$ac_ext"
1809case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1816 ac_status=$?
1817 if test -s conftest.err; then
1818 grep -v '^ *+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1821 fi
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } >/dev/null && {
1824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1825 test ! -s conftest.err
1826 }; then :
1827 ac_retval=0
1828else
1829 $as_echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=1
1833fi
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835 as_fn_set_status $ac_retval
1836
1837} # ac_fn_c_try_cpp
1838
1839# ac_fn_c_try_link LINENO
1840# -----------------------
1841# Try to link conftest.$ac_ext, and return whether this succeeded.
1842ac_fn_c_try_link ()
1843{
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext conftest$ac_exeext
1846 if { { ac_try="$ac_link"
1847case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850esac
1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852$as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_link") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1859 fi
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest$ac_exeext && {
1865 test "$cross_compiling" = yes ||
1866 $as_test_x conftest$ac_exeext
1867 }; then :
1868 ac_retval=0
1869else
1870 $as_echo "$as_me: failed program was:" >&5
1871sed 's/^/| /' conftest.$ac_ext >&5
1872
1873 ac_retval=1
1874fi
1875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1877 # interfere with the next link command; also delete a directory that is
1878 # left behind by Apple's compiler. We do this before executing the actions.
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 as_fn_set_status $ac_retval
1882
1883} # ac_fn_c_try_link
1884
1885# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886# -------------------------------------------------------
1887# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888# the include files in INCLUDES and setting the cache variable VAR
1889# accordingly.
1890ac_fn_c_check_header_mongrel ()
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if eval "test \"\${$3+set}\"" = set; then :
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895$as_echo_n "checking for $2... " >&6; }
1896if eval "test \"\${$3+set}\"" = set; then :
1897 $as_echo_n "(cached) " >&6
1898fi
1899eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901$as_echo "$ac_res" >&6; }
1902else
1903 # Is the header compilable?
1904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905$as_echo_n "checking $2 usability... " >&6; }
1906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907/* end confdefs.h. */
1908$4
1909#include <$2>
1910_ACEOF
1911if ac_fn_c_try_compile "$LINENO"; then :
1912 ac_header_compiler=yes
1913else
1914 ac_header_compiler=no
1915fi
1916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918$as_echo "$ac_header_compiler" >&6; }
1919
1920# Is the header present?
1921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922$as_echo_n "checking $2 presence... " >&6; }
1923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h. */
1925#include <$2>
1926_ACEOF
1927if ac_fn_c_try_cpp "$LINENO"; then :
1928 ac_header_preproc=yes
1929else
1930 ac_header_preproc=no
1931fi
1932rm -f conftest.err conftest.$ac_ext
1933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934$as_echo "$ac_header_preproc" >&6; }
1935
1936# So? What about this header?
1937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1938 yes:no: )
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 ;;
1944 no:yes:* )
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1948$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1952$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955 ;;
1956esac
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958$as_echo_n "checking for $2... " >&6; }
1959if eval "test \"\${$3+set}\"" = set; then :
1960 $as_echo_n "(cached) " >&6
1961else
1962 eval "$3=\$ac_header_compiler"
1963fi
1964eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966$as_echo "$ac_res" >&6; }
1967fi
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1969
1970} # ac_fn_c_check_header_mongrel
1971
1972# ac_fn_c_try_run LINENO
1973# ----------------------
1974# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1975# that executables *can* be run.
1976ac_fn_c_try_run ()
1977{
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if { { ac_try="$ac_link"
1980case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983esac
1984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985$as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_link") 2>&5
1987 ac_status=$?
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1990 { { case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993esac
1994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995$as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_try") 2>&5
1997 ac_status=$?
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; }; }; then :
2000 ac_retval=0
2001else
2002 $as_echo "$as_me: program exited with status $ac_status" >&5
2003 $as_echo "$as_me: failed program was:" >&5
2004sed 's/^/| /' conftest.$ac_ext >&5
2005
2006 ac_retval=$ac_status
2007fi
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010 as_fn_set_status $ac_retval
2011
2012} # ac_fn_c_try_run
2013
2014# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2015# -------------------------------------------------------
2016# Tests whether HEADER exists and can be compiled using the include files in
2017# INCLUDES, setting the cache variable VAR accordingly.
2018ac_fn_c_check_header_compile ()
2019{
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022$as_echo_n "checking for $2... " >&6; }
2023if eval "test \"\${$3+set}\"" = set; then :
2024 $as_echo_n "(cached) " >&6
2025else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027/* end confdefs.h. */
2028$4
2029#include <$2>
2030_ACEOF
2031if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$3=yes"
2033else
2034 eval "$3=no"
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037fi
2038eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040$as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042
2043} # ac_fn_c_check_header_compile
2044
2045# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2046# ----------------------------------------------------
2047# Tries to find if the field MEMBER exists in type AGGR, after including
2048# INCLUDES, setting cache variable VAR accordingly.
2049ac_fn_c_check_member ()
2050{
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2053$as_echo_n "checking for $2.$3... " >&6; }
2054if eval "test \"\${$4+set}\"" = set; then :
2055 $as_echo_n "(cached) " >&6
2056else
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h. */
2059$5
2060int
2061main ()
2062{
2063static $2 ac_aggr;
2064if (ac_aggr.$3)
2065return 0;
2066 ;
2067 return 0;
2068}
2069_ACEOF
2070if ac_fn_c_try_compile "$LINENO"; then :
2071 eval "$4=yes"
2072else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h. */
2075$5
2076int
2077main ()
2078{
2079static $2 ac_aggr;
2080if (sizeof ac_aggr.$3)
2081return 0;
2082 ;
2083 return 0;
2084}
2085_ACEOF
2086if ac_fn_c_try_compile "$LINENO"; then :
2087 eval "$4=yes"
2088else
2089 eval "$4=no"
2090fi
2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094fi
2095eval ac_res=\$$4
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097$as_echo "$ac_res" >&6; }
2098 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2099
2100} # ac_fn_c_check_member
2101
2102# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2103# -------------------------------------------
2104# Tests whether TYPE exists after having included INCLUDES, setting cache
2105# variable VAR accordingly.
2106ac_fn_c_check_type ()
2107{
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2110$as_echo_n "checking for $2... " >&6; }
2111if eval "test \"\${$3+set}\"" = set; then :
2112 $as_echo_n "(cached) " >&6
2113else
2114 eval "$3=no"
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116/* end confdefs.h. */
2117$4
2118int
2119main ()
2120{
2121if (sizeof ($2))
2122 return 0;
2123 ;
2124 return 0;
2125}
2126_ACEOF
2127if ac_fn_c_try_compile "$LINENO"; then :
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h. */
2130$4
2131int
2132main ()
2133{
2134if (sizeof (($2)))
2135 return 0;
2136 ;
2137 return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141
2142else
2143 eval "$3=yes"
2144fi
2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146fi
2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148fi
2149eval ac_res=\$$3
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151$as_echo "$ac_res" >&6; }
2152 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2153
2154} # ac_fn_c_check_type
2155
2156# ac_fn_c_find_intX_t LINENO BITS VAR
2157# -----------------------------------
2158# Finds a signed integer type with width BITS, setting cache variable VAR
2159# accordingly.
2160ac_fn_c_find_intX_t ()
2161{
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2164$as_echo_n "checking for int$2_t... " >&6; }
2165if eval "test \"\${$3+set}\"" = set; then :
2166 $as_echo_n "(cached) " >&6
2167else
2168 eval "$3=no"
2169 # Order is important - never check a type that is potentially smaller
2170 # than half of the expected target width.
2171 for ac_type in int$2_t 'int' 'long int' \
2172 'long long int' 'short int' 'signed char'; do
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h. */
2175$ac_includes_default
2176 enum { N = $2 / 2 - 1 };
2177int
2178main ()
2179{
2180static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2181test_array [0] = 0
2182
2183 ;
2184 return 0;
2185}
2186_ACEOF
2187if ac_fn_c_try_compile "$LINENO"; then :
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189/* end confdefs.h. */
2190$ac_includes_default
2191 enum { N = $2 / 2 - 1 };
2192int
2193main ()
2194{
2195static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2196 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2197test_array [0] = 0
2198
2199 ;
2200 return 0;
2201}
2202_ACEOF
2203if ac_fn_c_try_compile "$LINENO"; then :
2204
2205else
2206 case $ac_type in #(
2207 int$2_t) :
2208 eval "$3=yes" ;; #(
2209 *) :
2210 eval "$3=\$ac_type" ;;
2211esac
2212fi
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214fi
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 if eval test \"x\$"$3"\" = x"no"; then :
2217
2218else
2219 break
2220fi
2221 done
2222fi
2223eval ac_res=\$$3
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225$as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2227
2228} # ac_fn_c_find_intX_t
2229
2230# ac_fn_c_find_uintX_t LINENO BITS VAR
2231# ------------------------------------
2232# Finds an unsigned integer type with width BITS, setting cache variable VAR
2233# accordingly.
2234ac_fn_c_find_uintX_t ()
2235{
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2238$as_echo_n "checking for uint$2_t... " >&6; }
2239if eval "test \"\${$3+set}\"" = set; then :
2240 $as_echo_n "(cached) " >&6
2241else
2242 eval "$3=no"
2243 # Order is important - never check a type that is potentially smaller
2244 # than half of the expected target width.
2245 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2246 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248/* end confdefs.h. */
2249$ac_includes_default
2250int
2251main ()
2252{
2253static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2254test_array [0] = 0
2255
2256 ;
2257 return 0;
2258}
2259_ACEOF
2260if ac_fn_c_try_compile "$LINENO"; then :
2261 case $ac_type in #(
2262 uint$2_t) :
2263 eval "$3=yes" ;; #(
2264 *) :
2265 eval "$3=\$ac_type" ;;
2266esac
2267fi
2268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 if eval test \"x\$"$3"\" = x"no"; then :
2270
2271else
2272 break
2273fi
2274 done
2275fi
2276eval ac_res=\$$3
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278$as_echo "$ac_res" >&6; }
2279 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2280
2281} # ac_fn_c_find_uintX_t
2282
2283# ac_fn_c_check_func LINENO FUNC VAR
2284# ----------------------------------
2285# Tests whether FUNC exists, setting the cache variable VAR accordingly
2286ac_fn_c_check_func ()
2287{
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2290$as_echo_n "checking for $2... " >&6; }
2291if eval "test \"\${$3+set}\"" = set; then :
2292 $as_echo_n "(cached) " >&6
2293else
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295/* end confdefs.h. */
2296/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2298#define $2 innocuous_$2
2299
2300/* System header to define __stub macros and hopefully few prototypes,
2301 which can conflict with char $2 (); below.
2302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2303 <limits.h> exists even on freestanding compilers. */
2304
2305#ifdef __STDC__
2306# include <limits.h>
2307#else
2308# include <assert.h>
2309#endif
2310
2311#undef $2
2312
2313/* Override any GCC internal prototype to avoid an error.
2314 Use char because int might match the return type of a GCC
2315 builtin and then its argument prototype would still apply. */
2316#ifdef __cplusplus
2317extern "C"
2318#endif
2319char $2 ();
2320/* The GNU C library defines this for functions which it implements
2321 to always fail with ENOSYS. Some functions are actually named
2322 something starting with __ and the normal name is an alias. */
2323#if defined __stub_$2 || defined __stub___$2
2324choke me
2325#endif
2326
2327int
2328main ()
2329{
2330return $2 ();
2331 ;
2332 return 0;
2333}
2334_ACEOF
2335if ac_fn_c_try_link "$LINENO"; then :
2336 eval "$3=yes"
2337else
2338 eval "$3=no"
2339fi
2340rm -f core conftest.err conftest.$ac_objext \
2341 conftest$ac_exeext conftest.$ac_ext
2342fi
2343eval ac_res=\$$3
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345$as_echo "$ac_res" >&6; }
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347
2348} # ac_fn_c_check_func
2349cat >config.log <<_ACEOF
2350This file contains any messages produced by compilers while
2351running configure, to aid debugging if configure makes a mistake.
2352
2353It was created by $as_me, which was
2354generated by GNU Autoconf 2.66. Invocation command line was
2355
2356 $ $0 $@
2357
2358_ACEOF
2359exec 5>>config.log
2360{
2361cat <<_ASUNAME
2362## --------- ##
2363## Platform. ##
2364## --------- ##
2365
2366hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2367uname -m = `(uname -m) 2>/dev/null || echo unknown`
2368uname -r = `(uname -r) 2>/dev/null || echo unknown`
2369uname -s = `(uname -s) 2>/dev/null || echo unknown`
2370uname -v = `(uname -v) 2>/dev/null || echo unknown`
2371
2372/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2373/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2374
2375/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2376/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2377/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2378/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2379/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2380/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2381/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2382
2383_ASUNAME
2384
2385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386for as_dir in $PATH
2387do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 $as_echo "PATH: $as_dir"
2391 done
2392IFS=$as_save_IFS
2393
2394} >&5
2395
2396cat >&5 <<_ACEOF
2397
2398
2399## ----------- ##
2400## Core tests. ##
2401## ----------- ##
2402
2403_ACEOF
2404
2405
2406# Keep a trace of the command line.
2407# Strip out --no-create and --no-recursion so they do not pile up.
2408# Strip out --silent because we don't want to record it for future runs.
2409# Also quote any args containing shell meta-characters.
2410# Make two passes to allow for proper duplicate-argument suppression.
2411ac_configure_args=
2412ac_configure_args0=
2413ac_configure_args1=
2414ac_must_keep_next=false
2415for ac_pass in 1 2
2416do
2417 for ac_arg
2418 do
2419 case $ac_arg in
2420 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2422 | -silent | --silent | --silen | --sile | --sil)
2423 continue ;;
2424 *\'*)
2425 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2426 esac
2427 case $ac_pass in
2428 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2429 2)
2430 as_fn_append ac_configure_args1 " '$ac_arg'"
2431 if test $ac_must_keep_next = true; then
2432 ac_must_keep_next=false # Got value, back to normal.
2433 else
2434 case $ac_arg in
2435 *=* | --config-cache | -C | -disable-* | --disable-* \
2436 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2437 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2438 | -with-* | --with-* | -without-* | --without-* | --x)
2439 case "$ac_configure_args0 " in
2440 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2441 esac
2442 ;;
2443 -* ) ac_must_keep_next=true ;;
2444 esac
2445 fi
2446 as_fn_append ac_configure_args " '$ac_arg'"
2447 ;;
2448 esac
2449 done
2450done
2451{ ac_configure_args0=; unset ac_configure_args0;}
2452{ ac_configure_args1=; unset ac_configure_args1;}
2453
2454# When interrupted or exit'd, cleanup temporary files, and complete
2455# config.log. We remove comments because anyway the quotes in there
2456# would cause problems or look ugly.
2457# WARNING: Use '\'' to represent an apostrophe within the trap.
2458# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2459trap 'exit_status=$?
2460 # Save into config.log some information that might help in debugging.
2461 {
2462 echo
2463
2464 $as_echo "## ---------------- ##
2465## Cache variables. ##
2466## ---------------- ##"
2467 echo
2468 # The following way of writing the cache mishandles newlines in values,
2469(
2470 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2471 eval ac_val=\$$ac_var
2472 case $ac_val in #(
2473 *${as_nl}*)
2474 case $ac_var in #(
2475 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2476$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2477 esac
2478 case $ac_var in #(
2479 _ | IFS | as_nl) ;; #(
2480 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2481 *) { eval $ac_var=; unset $ac_var;} ;;
2482 esac ;;
2483 esac
2484 done
2485 (set) 2>&1 |
2486 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2487 *${as_nl}ac_space=\ *)
2488 sed -n \
2489 "s/'\''/'\''\\\\'\'''\''/g;
2490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2491 ;; #(
2492 *)
2493 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2494 ;;
2495 esac |
2496 sort
2497)
2498 echo
2499
2500 $as_echo "## ----------------- ##
2501## Output variables. ##
2502## ----------------- ##"
2503 echo
2504 for ac_var in $ac_subst_vars
2505 do
2506 eval ac_val=\$$ac_var
2507 case $ac_val in
2508 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2509 esac
2510 $as_echo "$ac_var='\''$ac_val'\''"
2511 done | sort
2512 echo
2513
2514 if test -n "$ac_subst_files"; then
2515 $as_echo "## ------------------- ##
2516## File substitutions. ##
2517## ------------------- ##"
2518 echo
2519 for ac_var in $ac_subst_files
2520 do
2521 eval ac_val=\$$ac_var
2522 case $ac_val in
2523 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2524 esac
2525 $as_echo "$ac_var='\''$ac_val'\''"
2526 done | sort
2527 echo
2528 fi
2529
2530 if test -s confdefs.h; then
2531 $as_echo "## ----------- ##
2532## confdefs.h. ##
2533## ----------- ##"
2534 echo
2535 cat confdefs.h
2536 echo
2537 fi
2538 test "$ac_signal" != 0 &&
2539 $as_echo "$as_me: caught signal $ac_signal"
2540 $as_echo "$as_me: exit $exit_status"
2541 } >&5
2542 rm -f core *.core core.conftest.* &&
2543 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2544 exit $exit_status
2545' 0
2546for ac_signal in 1 2 13 15; do
2547 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2548done
2549ac_signal=0
2550
2551# confdefs.h avoids OS command line length limits that DEFS can exceed.
2552rm -f -r conftest* confdefs.h
2553
2554$as_echo "/* confdefs.h */" > confdefs.h
2555
2556# Predefined preprocessor variables.
2557
2558cat >>confdefs.h <<_ACEOF
2559#define PACKAGE_NAME "$PACKAGE_NAME"
2560_ACEOF
2561
2562cat >>confdefs.h <<_ACEOF
2563#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2564_ACEOF
2565
2566cat >>confdefs.h <<_ACEOF
2567#define PACKAGE_VERSION "$PACKAGE_VERSION"
2568_ACEOF
2569
2570cat >>confdefs.h <<_ACEOF
2571#define PACKAGE_STRING "$PACKAGE_STRING"
2572_ACEOF
2573
2574cat >>confdefs.h <<_ACEOF
2575#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2576_ACEOF
2577
2578cat >>confdefs.h <<_ACEOF
2579#define PACKAGE_URL "$PACKAGE_URL"
2580_ACEOF
2581
2582
2583# Let the site file select an alternate cache file if it wants to.
2584# Prefer an explicitly selected file to automatically selected ones.
2585ac_site_file1=NONE
2586ac_site_file2=NONE
2587if test -n "$CONFIG_SITE"; then
2588 # We do not want a PATH search for config.site.
2589 case $CONFIG_SITE in #((
2590 -*) ac_site_file1=./$CONFIG_SITE;;
2591 */*) ac_site_file1=$CONFIG_SITE;;
2592 *) ac_site_file1=./$CONFIG_SITE;;
2593 esac
2594elif test "x$prefix" != xNONE; then
2595 ac_site_file1=$prefix/share/config.site
2596 ac_site_file2=$prefix/etc/config.site
2597else
2598 ac_site_file1=$ac_default_prefix/share/config.site
2599 ac_site_file2=$ac_default_prefix/etc/config.site
2600fi
2601for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2602do
2603 test "x$ac_site_file" = xNONE && continue
2604 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2606$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2607 sed 's/^/| /' "$ac_site_file" >&5
2608 . "$ac_site_file" \
2609 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2611as_fn_error $? "failed to load site script $ac_site_file
2612See \`config.log' for more details" "$LINENO" 5; }
2613 fi
2614done
2615
2616if test -r "$cache_file"; then
2617 # Some versions of bash will fail to source /dev/null (special files
2618 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2619 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2621$as_echo "$as_me: loading cache $cache_file" >&6;}
2622 case $cache_file in
2623 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2624 *) . "./$cache_file";;
2625 esac
2626 fi
2627else
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2629$as_echo "$as_me: creating cache $cache_file" >&6;}
2630 >$cache_file
2631fi
2632
2633as_fn_append ac_header_list " stdlib.h"
2634as_fn_append ac_header_list " unistd.h"
2635as_fn_append ac_header_list " sys/param.h"
2636# Check that the precious variables saved in the cache have kept the same
2637# value.
2638ac_cache_corrupted=false
2639for ac_var in $ac_precious_vars; do
2640 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2641 eval ac_new_set=\$ac_env_${ac_var}_set
2642 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2643 eval ac_new_val=\$ac_env_${ac_var}_value
2644 case $ac_old_set,$ac_new_set in
2645 set,)
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2647$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2648 ac_cache_corrupted=: ;;
2649 ,set)
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2651$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2652 ac_cache_corrupted=: ;;
2653 ,);;
2654 *)
2655 if test "x$ac_old_val" != "x$ac_new_val"; then
2656 # differences in whitespace do not lead to failure.
2657 ac_old_val_w=`echo x $ac_old_val`
2658 ac_new_val_w=`echo x $ac_new_val`
2659 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2661$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2662 ac_cache_corrupted=:
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2665$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2666 eval $ac_var=\$ac_old_val
2667 fi
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2669$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2671$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2672 fi;;
2673 esac
2674 # Pass precious variables to config.status.
2675 if test "$ac_new_set" = set; then
2676 case $ac_new_val in
2677 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2678 *) ac_arg=$ac_var=$ac_new_val ;;
2679 esac
2680 case " $ac_configure_args " in
2681 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2682 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2683 esac
2684 fi
2685done
2686if $ac_cache_corrupted; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2690$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2691 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2692fi
2693## -------------------- ##
2694## Main body of script. ##
2695## -------------------- ##
2696
2697ac_ext=c
2698ac_cpp='$CPP $CPPFLAGS'
2699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2701ac_compiler_gnu=$ac_cv_c_compiler_gnu
2702
2703
2704
2705ac_config_headers="$ac_config_headers lib/misc/configure.h"
2706
2707
2708################################################################################
2709ac_aux_dir=
2710for ac_dir in autoconf "$srcdir"/autoconf; do
2711 if test -f "$ac_dir/install-sh"; then
2712 ac_aux_dir=$ac_dir
2713 ac_install_sh="$ac_aux_dir/install-sh -c"
2714 break
2715 elif test -f "$ac_dir/install.sh"; then
2716 ac_aux_dir=$ac_dir
2717 ac_install_sh="$ac_aux_dir/install.sh -c"
2718 break
2719 elif test -f "$ac_dir/shtool"; then
2720 ac_aux_dir=$ac_dir
2721 ac_install_sh="$ac_aux_dir/shtool install -c"
2722 break
2723 fi
2724done
2725if test -z "$ac_aux_dir"; then
2726 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2727fi
2728
2729# These three variables are undocumented and unsupported,
2730# and are intended to be withdrawn in a future Autoconf release.
2731# They can cause serious problems if a builder's source tree is in a directory
2732# whose full name contains unusual characters.
2733ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2734ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2735ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2736
2737
2738
2739################################################################################
2740# Make sure we can run config.sub.
2741$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2742 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2743
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2745$as_echo_n "checking build system type... " >&6; }
2746if test "${ac_cv_build+set}" = set; then :
2747 $as_echo_n "(cached) " >&6
2748else
2749 ac_build_alias=$build_alias
2750test "x$ac_build_alias" = x &&
2751 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2752test "x$ac_build_alias" = x &&
2753 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2754ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2755 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2756
2757fi
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2759$as_echo "$ac_cv_build" >&6; }
2760case $ac_cv_build in
2761*-*-*) ;;
2762*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2763esac
2764build=$ac_cv_build
2765ac_save_IFS=$IFS; IFS='-'
2766set x $ac_cv_build
2767shift
2768build_cpu=$1
2769build_vendor=$2
2770shift; shift
2771# Remember, the first character of IFS is used to create $*,
2772# except with old shells:
2773build_os=$*
2774IFS=$ac_save_IFS
2775case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2776
2777
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2779$as_echo_n "checking host system type... " >&6; }
2780if test "${ac_cv_host+set}" = set; then :
2781 $as_echo_n "(cached) " >&6
2782else
2783 if test "x$host_alias" = x; then
2784 ac_cv_host=$ac_cv_build
2785else
2786 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2787 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2788fi
2789
2790fi
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2792$as_echo "$ac_cv_host" >&6; }
2793case $ac_cv_host in
2794*-*-*) ;;
2795*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2796esac
2797host=$ac_cv_host
2798ac_save_IFS=$IFS; IFS='-'
2799set x $ac_cv_host
2800shift
2801host_cpu=$1
2802host_vendor=$2
2803shift; shift
2804# Remember, the first character of IFS is used to create $*,
2805# except with old shells:
2806host_os=$*
2807IFS=$ac_save_IFS
2808case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2809
2810
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2812$as_echo_n "checking target system type... " >&6; }
2813if test "${ac_cv_target+set}" = set; then :
2814 $as_echo_n "(cached) " >&6
2815else
2816 if test "x$target_alias" = x; then
2817 ac_cv_target=$ac_cv_host
2818else
2819 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2820 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2821fi
2822
2823fi
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2825$as_echo "$ac_cv_target" >&6; }
2826case $ac_cv_target in
2827*-*-*) ;;
2828*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2829esac
2830target=$ac_cv_target
2831ac_save_IFS=$IFS; IFS='-'
2832set x $ac_cv_target
2833shift
2834target_cpu=$1
2835target_vendor=$2
2836shift; shift
2837# Remember, the first character of IFS is used to create $*,
2838# except with old shells:
2839target_os=$*
2840IFS=$ac_save_IFS
2841case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2842
2843
2844# The aliases save the names the user supplied, while $host etc.
2845# will get canonicalized.
2846test -n "$target_alias" &&
2847 test "$program_prefix$program_suffix$program_transform_name" = \
2848 NONENONEs,x,x, &&
2849 program_prefix=${target_alias}-
2850
2851case "$host_os" in
2852 linux*)
2853 CFLAGS="$CFLAGS"
2854 COPTIMISE_FLAG="-O2"
2855 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2856 ELDFLAGS="-Wl,--export-dynamic"
2857 # FIXME Generate list and use --dynamic-list=.dlopen.sym
2858 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2859 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2860 LDDEPS="$LDDEPS .export.sym"
2861 LIB_SUFFIX=so
2862 DEVMAPPER=yes
2863 LVMETAD=no
2864 ODIRECT=yes
2865 DM_IOCTLS=yes
2866 SELINUX=yes
2867 CLUSTER=internal
2868 FSADM=yes
2869 ;;
2870 darwin*)
2871 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2872 COPTIMISE_FLAG="-O2"
2873 CLDFLAGS="$CLDFLAGS"
2874 ELDFLAGS=
2875 CLDWHOLEARCHIVE="-all_load"
2876 CLDNOWHOLEARCHIVE=
2877 LIB_SUFFIX=dylib
2878 DEVMAPPER=yes
2879 ODIRECT=no
2880 DM_IOCTLS=no
2881 SELINUX=no
2882 CLUSTER=none
2883 FSADM=no
2884 ;;
2885esac
2886
2887################################################################################
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2889$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2890if test "${ac_cv_path_SED+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
2892else
2893 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2894 for ac_i in 1 2 3 4 5 6 7; do
2895 ac_script="$ac_script$as_nl$ac_script"
2896 done
2897 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2898 { ac_script=; unset ac_script;}
2899 if test -z "$SED"; then
2900 ac_path_SED_found=false
2901 # Loop through the user's path and test for each of PROGNAME-LIST
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_prog in sed gsed; do
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2910 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2911# Check for GNU ac_path_SED and select it if it is found.
2912 # Check for GNU $ac_path_SED
2913case `"$ac_path_SED" --version 2>&1` in
2914*GNU*)
2915 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2916*)
2917 ac_count=0
2918 $as_echo_n 0123456789 >"conftest.in"
2919 while :
2920 do
2921 cat "conftest.in" "conftest.in" >"conftest.tmp"
2922 mv "conftest.tmp" "conftest.in"
2923 cp "conftest.in" "conftest.nl"
2924 $as_echo '' >> "conftest.nl"
2925 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2927 as_fn_arith $ac_count + 1 && ac_count=$as_val
2928 if test $ac_count -gt ${ac_path_SED_max-0}; then
2929 # Best one so far, save it but keep looking for a better one
2930 ac_cv_path_SED="$ac_path_SED"
2931 ac_path_SED_max=$ac_count
2932 fi
2933 # 10*(2^10) chars as input seems more than enough
2934 test $ac_count -gt 10 && break
2935 done
2936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2937esac
2938
2939 $ac_path_SED_found && break 3
2940 done
2941 done
2942 done
2943IFS=$as_save_IFS
2944 if test -z "$ac_cv_path_SED"; then
2945 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2946 fi
2947else
2948 ac_cv_path_SED=$SED
2949fi
2950
2951fi
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2953$as_echo "$ac_cv_path_SED" >&6; }
2954 SED="$ac_cv_path_SED"
2955 rm -f conftest.sed
2956
2957for ac_prog in gawk mawk nawk awk
2958do
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960set dummy $ac_prog; ac_word=$2
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962$as_echo_n "checking for $ac_word... " >&6; }
2963if test "${ac_cv_prog_AWK+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
2965else
2966 if test -n "$AWK"; then
2967 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2968else
2969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970for as_dir in $PATH
2971do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_AWK="$ac_prog"
2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2979 fi
2980done
2981 done
2982IFS=$as_save_IFS
2983
2984fi
2985fi
2986AWK=$ac_cv_prog_AWK
2987if test -n "$AWK"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2989$as_echo "$AWK" >&6; }
2990else
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992$as_echo "no" >&6; }
2993fi
2994
2995
2996 test -n "$AWK" && break
2997done
2998
2999ac_ext=c
3000ac_cpp='$CPP $CPPFLAGS'
3001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004if test -n "$ac_tool_prefix"; then
3005 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3006set dummy ${ac_tool_prefix}gcc; ac_word=$2
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008$as_echo_n "checking for $ac_word... " >&6; }
3009if test "${ac_cv_prog_CC+set}" = set; then :
3010 $as_echo_n "(cached) " >&6
3011else
3012 if test -n "$CC"; then
3013 ac_cv_prog_CC="$CC" # Let the user override the test.
3014else
3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3025 fi
3026done
3027 done
3028IFS=$as_save_IFS
3029
3030fi
3031fi
3032CC=$ac_cv_prog_CC
3033if test -n "$CC"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035$as_echo "$CC" >&6; }
3036else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038$as_echo "no" >&6; }
3039fi
3040
3041
3042fi
3043if test -z "$ac_cv_prog_CC"; then
3044 ac_ct_CC=$CC
3045 # Extract the first word of "gcc", so it can be a program name with args.
3046set dummy gcc; ac_word=$2
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048$as_echo_n "checking for $ac_word... " >&6; }
3049if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3051else
3052 if test -n "$ac_ct_CC"; then
3053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3054else
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_ac_ct_CC="gcc"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066done
3067 done
3068IFS=$as_save_IFS
3069
3070fi
3071fi
3072ac_ct_CC=$ac_cv_prog_ac_ct_CC
3073if test -n "$ac_ct_CC"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3075$as_echo "$ac_ct_CC" >&6; }
3076else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078$as_echo "no" >&6; }
3079fi
3080
3081 if test "x$ac_ct_CC" = x; then
3082 CC=""
3083 else
3084 case $cross_compiling:$ac_tool_warned in
3085yes:)
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3088ac_tool_warned=yes ;;
3089esac
3090 CC=$ac_ct_CC
3091 fi
3092else
3093 CC="$ac_cv_prog_CC"
3094fi
3095
3096if test -z "$CC"; then
3097 if test -n "$ac_tool_prefix"; then
3098 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3099set dummy ${ac_tool_prefix}cc; ac_word=$2
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101$as_echo_n "checking for $ac_word... " >&6; }
3102if test "${ac_cv_prog_CC+set}" = set; then :
3103 $as_echo_n "(cached) " >&6
3104else
3105 if test -n "$CC"; then
3106 ac_cv_prog_CC="$CC" # Let the user override the test.
3107else
3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109for as_dir in $PATH
3110do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115 ac_cv_prog_CC="${ac_tool_prefix}cc"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119done
3120 done
3121IFS=$as_save_IFS
3122
3123fi
3124fi
3125CC=$ac_cv_prog_CC
3126if test -n "$CC"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3128$as_echo "$CC" >&6; }
3129else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131$as_echo "no" >&6; }
3132fi
3133
3134
3135 fi
3136fi
3137if test -z "$CC"; then
3138 # Extract the first word of "cc", so it can be a program name with args.
3139set dummy cc; ac_word=$2
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141$as_echo_n "checking for $ac_word... " >&6; }
3142if test "${ac_cv_prog_CC+set}" = set; then :
3143 $as_echo_n "(cached) " >&6
3144else
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3147else
3148 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3157 ac_prog_rejected=yes
3158 continue
3159 fi
3160 ac_cv_prog_CC="cc"
3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3163 fi
3164done
3165 done
3166IFS=$as_save_IFS
3167
3168if test $ac_prog_rejected = yes; then
3169 # We found a bogon in the path, so make sure we never use it.
3170 set dummy $ac_cv_prog_CC
3171 shift
3172 if test $# != 0; then
3173 # We chose a different compiler from the bogus one.
3174 # However, it has the same basename, so the bogon will be chosen
3175 # first if we set CC to just the basename; use the full file name.
3176 shift
3177 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3178 fi
3179fi
3180fi
3181fi
3182CC=$ac_cv_prog_CC
3183if test -n "$CC"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185$as_echo "$CC" >&6; }
3186else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188$as_echo "no" >&6; }
3189fi
3190
3191
3192fi
3193if test -z "$CC"; then
3194 if test -n "$ac_tool_prefix"; then
3195 for ac_prog in cl.exe
3196 do
3197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3198set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200$as_echo_n "checking for $ac_word... " >&6; }
3201if test "${ac_cv_prog_CC+set}" = set; then :
3202 $as_echo_n "(cached) " >&6
3203else
3204 if test -n "$CC"; then
3205 ac_cv_prog_CC="$CC" # Let the user override the test.
3206else
3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH
3209do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3217 fi
3218done
3219 done
3220IFS=$as_save_IFS
3221
3222fi
3223fi
3224CC=$ac_cv_prog_CC
3225if test -n "$CC"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3227$as_echo "$CC" >&6; }
3228else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230$as_echo "no" >&6; }
3231fi
3232
3233
3234 test -n "$CC" && break
3235 done
3236fi
3237if test -z "$CC"; then
3238 ac_ct_CC=$CC
3239 for ac_prog in cl.exe
3240do
3241 # Extract the first word of "$ac_prog", so it can be a program name with args.
3242set dummy $ac_prog; ac_word=$2
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244$as_echo_n "checking for $ac_word... " >&6; }
3245if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3246 $as_echo_n "(cached) " >&6
3247else
3248 if test -n "$ac_ct_CC"; then
3249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3250else
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 ac_cv_prog_ac_ct_CC="$ac_prog"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3261 fi
3262done
3263 done
3264IFS=$as_save_IFS
3265
3266fi
3267fi
3268ac_ct_CC=$ac_cv_prog_ac_ct_CC
3269if test -n "$ac_ct_CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3271$as_echo "$ac_ct_CC" >&6; }
3272else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274$as_echo "no" >&6; }
3275fi
3276
3277
3278 test -n "$ac_ct_CC" && break
3279done
3280
3281 if test "x$ac_ct_CC" = x; then
3282 CC=""
3283 else
3284 case $cross_compiling:$ac_tool_warned in
3285yes:)
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3288ac_tool_warned=yes ;;
3289esac
3290 CC=$ac_ct_CC
3291 fi
3292fi
3293
3294fi
3295
3296
3297test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299as_fn_error $? "no acceptable C compiler found in \$PATH
3300See \`config.log' for more details" "$LINENO" 5; }
3301
3302# Provide some information about the compiler.
3303$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3304set X $ac_compile
3305ac_compiler=$2
3306for ac_option in --version -v -V -qversion; do
3307 { { ac_try="$ac_compiler $ac_option >&5"
3308case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311esac
3312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313$as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3315 ac_status=$?
3316 if test -s conftest.err; then
3317 sed '10a\
3318... rest of stderr output deleted ...
3319 10q' conftest.err >conftest.er1
3320 cat conftest.er1 >&5
3321 fi
3322 rm -f conftest.er1 conftest.err
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }
3325done
3326
3327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328/* end confdefs.h. */
3329
3330int
3331main ()
3332{
3333
3334 ;
3335 return 0;
3336}
3337_ACEOF
3338ac_clean_files_save=$ac_clean_files
3339ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3340# Try to create an executable without -o first, disregard a.out.
3341# It will help us diagnose broken compilers, and finding out an intuition
3342# of exeext.
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3344$as_echo_n "checking whether the C compiler works... " >&6; }
3345ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3346
3347# The possible output files:
3348ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3349
3350ac_rmfiles=
3351for ac_file in $ac_files
3352do
3353 case $ac_file in
3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3355 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3356 esac
3357done
3358rm -f $ac_rmfiles
3359
3360if { { ac_try="$ac_link_default"
3361case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364esac
3365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366$as_echo "$ac_try_echo"; } >&5
3367 (eval "$ac_link_default") 2>&5
3368 ac_status=$?
3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370 test $ac_status = 0; }; then :
3371 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3372# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3373# in a Makefile. We should not override ac_cv_exeext if it was cached,
3374# so that the user can short-circuit this test for compilers unknown to
3375# Autoconf.
3376for ac_file in $ac_files ''
3377do
3378 test -f "$ac_file" || continue
3379 case $ac_file in
3380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3381 ;;
3382 [ab].out )
3383 # We found the default executable, but exeext='' is most
3384 # certainly right.
3385 break;;
3386 *.* )
3387 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3388 then :; else
3389 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390 fi
3391 # We set ac_cv_exeext here because the later test for it is not
3392 # safe: cross compilers may not add the suffix if given an `-o'
3393 # argument, so we may need to know it at that point already.
3394 # Even if this section looks crufty: it has the advantage of
3395 # actually working.
3396 break;;
3397 * )
3398 break;;
3399 esac
3400done
3401test "$ac_cv_exeext" = no && ac_cv_exeext=
3402
3403else
3404 ac_file=''
3405fi
3406if test -z "$ac_file"; then :
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408$as_echo "no" >&6; }
3409$as_echo "$as_me: failed program was:" >&5
3410sed 's/^/| /' conftest.$ac_ext >&5
3411
3412{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414as_fn_error 77 "C compiler cannot create executables
3415See \`config.log' for more details" "$LINENO" 5; }
3416else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3418$as_echo "yes" >&6; }
3419fi
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3421$as_echo_n "checking for C compiler default output file name... " >&6; }
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3423$as_echo "$ac_file" >&6; }
3424ac_exeext=$ac_cv_exeext
3425
3426rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3427ac_clean_files=$ac_clean_files_save
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3429$as_echo_n "checking for suffix of executables... " >&6; }
3430if { { ac_try="$ac_link"
3431case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434esac
3435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436$as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_link") 2>&5
3438 ac_status=$?
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }; then :
3441 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3442# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3443# work properly (i.e., refer to `conftest.exe'), while it won't with
3444# `rm'.
3445for ac_file in conftest.exe conftest conftest.*; do
3446 test -f "$ac_file" || continue
3447 case $ac_file in
3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3449 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3450 break;;
3451 * ) break;;
3452 esac
3453done
3454else
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 compute suffix of executables: cannot compile and link
3458See \`config.log' for more details" "$LINENO" 5; }
3459fi
3460rm -f conftest conftest$ac_cv_exeext
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3462$as_echo "$ac_cv_exeext" >&6; }
3463
3464rm -f conftest.$ac_ext
3465EXEEXT=$ac_cv_exeext
3466ac_exeext=$EXEEXT
3467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h. */
3469#include <stdio.h>
3470int
3471main ()
3472{
3473FILE *f = fopen ("conftest.out", "w");
3474 return ferror (f) || fclose (f) != 0;
3475
3476 ;
3477 return 0;
3478}
3479_ACEOF
3480ac_clean_files="$ac_clean_files conftest.out"
3481# Check that the compiler produces executables we can run. If not, either
3482# the compiler is broken, or we cross compile.
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3484$as_echo_n "checking whether we are cross compiling... " >&6; }
3485if test "$cross_compiling" != yes; then
3486 { { ac_try="$ac_link"
3487case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490esac
3491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492$as_echo "$ac_try_echo"; } >&5
3493 (eval "$ac_link") 2>&5
3494 ac_status=$?
3495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496 test $ac_status = 0; }
3497 if { ac_try='./conftest$ac_cv_exeext'
3498 { { case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501esac
3502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503$as_echo "$ac_try_echo"; } >&5
3504 (eval "$ac_try") 2>&5
3505 ac_status=$?
3506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507 test $ac_status = 0; }; }; then
3508 cross_compiling=no
3509 else
3510 if test "$cross_compiling" = maybe; then
3511 cross_compiling=yes
3512 else
3513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515as_fn_error $? "cannot run C compiled programs.
3516If you meant to cross compile, use \`--host'.
3517See \`config.log' for more details" "$LINENO" 5; }
3518 fi
3519 fi
3520fi
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3522$as_echo "$cross_compiling" >&6; }
3523
3524rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3525ac_clean_files=$ac_clean_files_save
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3527$as_echo_n "checking for suffix of object files... " >&6; }
3528if test "${ac_cv_objext+set}" = set; then :
3529 $as_echo_n "(cached) " >&6
3530else
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532/* end confdefs.h. */
3533
3534int
3535main ()
3536{
3537
3538 ;
3539 return 0;
3540}
3541_ACEOF
3542rm -f conftest.o conftest.obj
3543if { { ac_try="$ac_compile"
3544case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547esac
3548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549$as_echo "$ac_try_echo"; } >&5
3550 (eval "$ac_compile") 2>&5
3551 ac_status=$?
3552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553 test $ac_status = 0; }; then :
3554 for ac_file in conftest.o conftest.obj conftest.*; do
3555 test -f "$ac_file" || continue;
3556 case $ac_file in
3557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3558 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3559 break;;
3560 esac
3561done
3562else
3563 $as_echo "$as_me: failed program was:" >&5
3564sed 's/^/| /' conftest.$ac_ext >&5
3565
3566{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568as_fn_error $? "cannot compute suffix of object files: cannot compile
3569See \`config.log' for more details" "$LINENO" 5; }
3570fi
3571rm -f conftest.$ac_cv_objext conftest.$ac_ext
3572fi
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3574$as_echo "$ac_cv_objext" >&6; }
3575OBJEXT=$ac_cv_objext
3576ac_objext=$OBJEXT
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3578$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3579if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3581else
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583/* end confdefs.h. */
3584
3585int
3586main ()
3587{
3588#ifndef __GNUC__
3589 choke me
3590#endif
3591
3592 ;
3593 return 0;
3594}
3595_ACEOF
3596if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_compiler_gnu=yes
3598else
3599 ac_compiler_gnu=no
3600fi
3601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602ac_cv_c_compiler_gnu=$ac_compiler_gnu
3603
3604fi
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3606$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3607if test $ac_compiler_gnu = yes; then
3608 GCC=yes
3609else
3610 GCC=
3611fi
3612ac_test_CFLAGS=${CFLAGS+set}
3613ac_save_CFLAGS=$CFLAGS
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3615$as_echo_n "checking whether $CC accepts -g... " >&6; }
3616if test "${ac_cv_prog_cc_g+set}" = set; then :
3617 $as_echo_n "(cached) " >&6
3618else
3619 ac_save_c_werror_flag=$ac_c_werror_flag
3620 ac_c_werror_flag=yes
3621 ac_cv_prog_cc_g=no
3622 CFLAGS="-g"
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624/* end confdefs.h. */
3625
3626int
3627main ()
3628{
3629
3630 ;
3631 return 0;
3632}
3633_ACEOF
3634if ac_fn_c_try_compile "$LINENO"; then :
3635 ac_cv_prog_cc_g=yes
3636else
3637 CFLAGS=""
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639/* end confdefs.h. */
3640
3641int
3642main ()
3643{
3644
3645 ;
3646 return 0;
3647}
3648_ACEOF
3649if ac_fn_c_try_compile "$LINENO"; then :
3650
3651else
3652 ac_c_werror_flag=$ac_save_c_werror_flag
3653 CFLAGS="-g"
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655/* end confdefs.h. */
3656
3657int
3658main ()
3659{
3660
3661 ;
3662 return 0;
3663}
3664_ACEOF
3665if ac_fn_c_try_compile "$LINENO"; then :
3666 ac_cv_prog_cc_g=yes
3667fi
3668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669fi
3670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671fi
3672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 ac_c_werror_flag=$ac_save_c_werror_flag
3674fi
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3676$as_echo "$ac_cv_prog_cc_g" >&6; }
3677if test "$ac_test_CFLAGS" = set; then
3678 CFLAGS=$ac_save_CFLAGS
3679elif test $ac_cv_prog_cc_g = yes; then
3680 if test "$GCC" = yes; then
3681 CFLAGS="-g -O2"
3682 else
3683 CFLAGS="-g"
3684 fi
3685else
3686 if test "$GCC" = yes; then
3687 CFLAGS="-O2"
3688 else
3689 CFLAGS=
3690 fi
3691fi
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3693$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3694if test "${ac_cv_prog_cc_c89+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3696else
3697 ac_cv_prog_cc_c89=no
3698ac_save_CC=$CC
3699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h. */
3701#include <stdarg.h>
3702#include <stdio.h>
3703#include <sys/types.h>
3704#include <sys/stat.h>
3705/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3706struct buf { int x; };
3707FILE * (*rcsopen) (struct buf *, struct stat *, int);
3708static char *e (p, i)
3709 char **p;
3710 int i;
3711{
3712 return p[i];
3713}
3714static char *f (char * (*g) (char **, int), char **p, ...)
3715{
3716 char *s;
3717 va_list v;
3718 va_start (v,p);
3719 s = g (p, va_arg (v,int));
3720 va_end (v);
3721 return s;
3722}
3723
3724/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3725 function prototypes and stuff, but not '\xHH' hex character constants.
3726 These don't provoke an error unfortunately, instead are silently treated
3727 as 'x'. The following induces an error, until -std is added to get
3728 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3729 array size at least. It's necessary to write '\x00'==0 to get something
3730 that's true only with -std. */
3731int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3732
3733/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3734 inside strings and character constants. */
3735#define FOO(x) 'x'
3736int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3737
3738int test (int i, double x);
3739struct s1 {int (*f) (int a);};
3740struct s2 {int (*f) (double a);};
3741int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3742int argc;
3743char **argv;
3744int
3745main ()
3746{
3747return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3748 ;
3749 return 0;
3750}
3751_ACEOF
3752for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3753 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3754do
3755 CC="$ac_save_CC $ac_arg"
3756 if ac_fn_c_try_compile "$LINENO"; then :
3757 ac_cv_prog_cc_c89=$ac_arg
3758fi
3759rm -f core conftest.err conftest.$ac_objext
3760 test "x$ac_cv_prog_cc_c89" != "xno" && break
3761done
3762rm -f conftest.$ac_ext
3763CC=$ac_save_CC
3764
3765fi
3766# AC_CACHE_VAL
3767case "x$ac_cv_prog_cc_c89" in
3768 x)
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3770$as_echo "none needed" >&6; } ;;
3771 xno)
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3773$as_echo "unsupported" >&6; } ;;
3774 *)
3775 CC="$CC $ac_cv_prog_cc_c89"
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3777$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3778esac
3779if test "x$ac_cv_prog_cc_c89" != xno; then :
3780
3781fi
3782
3783ac_ext=c
3784ac_cpp='$CPP $CPPFLAGS'
3785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788
3789
3790
3791ac_ext=c
3792ac_cpp='$CPP $CPPFLAGS'
3793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3797$as_echo_n "checking how to run the C preprocessor... " >&6; }
3798# On Suns, sometimes $CPP names a directory.
3799if test -n "$CPP" && test -d "$CPP"; then
3800 CPP=
3801fi
3802if test -z "$CPP"; then
3803 if test "${ac_cv_prog_CPP+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3805else
3806 # Double quotes because CPP needs to be expanded
3807 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3808 do
3809 ac_preproc_ok=false
3810for ac_c_preproc_warn_flag in '' yes
3811do
3812 # Use a header file that comes with gcc, so configuring glibc
3813 # with a fresh cross-compiler works.
3814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3815 # <limits.h> exists even on freestanding compilers.
3816 # On the NeXT, cc -E runs the code through the compiler's parser,
3817 # not just through cpp. "Syntax error" is here to catch this case.
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819/* end confdefs.h. */
3820#ifdef __STDC__
3821# include <limits.h>
3822#else
3823# include <assert.h>
3824#endif
3825 Syntax error
3826_ACEOF
3827if ac_fn_c_try_cpp "$LINENO"; then :
3828
3829else
3830 # Broken: fails on valid input.
3831continue
3832fi
3833rm -f conftest.err conftest.$ac_ext
3834
3835 # OK, works on sane cases. Now check whether nonexistent headers
3836 # can be detected and how.
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838/* end confdefs.h. */
3839#include <ac_nonexistent.h>
3840_ACEOF
3841if ac_fn_c_try_cpp "$LINENO"; then :
3842 # Broken: success on invalid input.
3843continue
3844else
3845 # Passes both tests.
3846ac_preproc_ok=:
3847break
3848fi
3849rm -f conftest.err conftest.$ac_ext
3850
3851done
3852# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853rm -f conftest.err conftest.$ac_ext
3854if $ac_preproc_ok; then :
3855 break
3856fi
3857
3858 done
3859 ac_cv_prog_CPP=$CPP
3860
3861fi
3862 CPP=$ac_cv_prog_CPP
3863else
3864 ac_cv_prog_CPP=$CPP
3865fi
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3867$as_echo "$CPP" >&6; }
3868ac_preproc_ok=false
3869for ac_c_preproc_warn_flag in '' yes
3870do
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878/* end confdefs.h. */
3879#ifdef __STDC__
3880# include <limits.h>
3881#else
3882# include <assert.h>
3883#endif
3884 Syntax error
3885_ACEOF
3886if ac_fn_c_try_cpp "$LINENO"; then :
3887
3888else
3889 # Broken: fails on valid input.
3890continue
3891fi
3892rm -f conftest.err conftest.$ac_ext
3893
3894 # OK, works on sane cases. Now check whether nonexistent headers
3895 # can be detected and how.
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897/* end confdefs.h. */
3898#include <ac_nonexistent.h>
3899_ACEOF
3900if ac_fn_c_try_cpp "$LINENO"; then :
3901 # Broken: success on invalid input.
3902continue
3903else
3904 # Passes both tests.
3905ac_preproc_ok=:
3906break
3907fi
3908rm -f conftest.err conftest.$ac_ext
3909
3910done
3911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3912rm -f conftest.err conftest.$ac_ext
3913if $ac_preproc_ok; then :
3914
3915else
3916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3919See \`config.log' for more details" "$LINENO" 5; }
3920fi
3921
3922ac_ext=c
3923ac_cpp='$CPP $CPPFLAGS'
3924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927
3928
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3930$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3931if test "${ac_cv_path_GREP+set}" = set; then :
3932 $as_echo_n "(cached) " >&6
3933else
3934 if test -z "$GREP"; then
3935 ac_path_GREP_found=false
3936 # Loop through the user's path and test for each of PROGNAME-LIST
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3939do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_prog in grep ggrep; do
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3945 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3946# Check for GNU ac_path_GREP and select it if it is found.
3947 # Check for GNU $ac_path_GREP
3948case `"$ac_path_GREP" --version 2>&1` in
3949*GNU*)
3950 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3951*)
3952 ac_count=0
3953 $as_echo_n 0123456789 >"conftest.in"
3954 while :
3955 do
3956 cat "conftest.in" "conftest.in" >"conftest.tmp"
3957 mv "conftest.tmp" "conftest.in"
3958 cp "conftest.in" "conftest.nl"
3959 $as_echo 'GREP' >> "conftest.nl"
3960 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3962 as_fn_arith $ac_count + 1 && ac_count=$as_val
3963 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3964 # Best one so far, save it but keep looking for a better one
3965 ac_cv_path_GREP="$ac_path_GREP"
3966 ac_path_GREP_max=$ac_count
3967 fi
3968 # 10*(2^10) chars as input seems more than enough
3969 test $ac_count -gt 10 && break
3970 done
3971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3972esac
3973
3974 $ac_path_GREP_found && break 3
3975 done
3976 done
3977 done
3978IFS=$as_save_IFS
3979 if test -z "$ac_cv_path_GREP"; then
3980 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3981 fi
3982else
3983 ac_cv_path_GREP=$GREP
3984fi
3985
3986fi
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3988$as_echo "$ac_cv_path_GREP" >&6; }
3989 GREP="$ac_cv_path_GREP"
3990
3991
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3993$as_echo_n "checking for egrep... " >&6; }
3994if test "${ac_cv_path_EGREP+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3996else
3997 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3998 then ac_cv_path_EGREP="$GREP -E"
3999 else
4000 if test -z "$EGREP"; then
4001 ac_path_EGREP_found=false
4002 # Loop through the user's path and test for each of PROGNAME-LIST
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
4008 for ac_prog in egrep; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4012# Check for GNU ac_path_EGREP and select it if it is found.
4013 # Check for GNU $ac_path_EGREP
4014case `"$ac_path_EGREP" --version 2>&1` in
4015*GNU*)
4016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4017*)
4018 ac_count=0
4019 $as_echo_n 0123456789 >"conftest.in"
4020 while :
4021 do
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
4025 $as_echo 'EGREP' >> "conftest.nl"
4026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028 as_fn_arith $ac_count + 1 && ac_count=$as_val
4029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_EGREP="$ac_path_EGREP"
4032 ac_path_EGREP_max=$ac_count
4033 fi
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4036 done
4037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038esac
4039
4040 $ac_path_EGREP_found && break 3
4041 done
4042 done
4043 done
4044IFS=$as_save_IFS
4045 if test -z "$ac_cv_path_EGREP"; then
4046 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4047 fi
4048else
4049 ac_cv_path_EGREP=$EGREP
4050fi
4051
4052 fi
4053fi
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4055$as_echo "$ac_cv_path_EGREP" >&6; }
4056 EGREP="$ac_cv_path_EGREP"
4057
4058
4059if test $ac_cv_c_compiler_gnu = yes; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4061$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4062if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
4064else
4065 ac_pattern="Autoconf.*'x'"
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067/* end confdefs.h. */
4068#include <sgtty.h>
4069Autoconf TIOCGETP
4070_ACEOF
4071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4072 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4073 ac_cv_prog_gcc_traditional=yes
4074else
4075 ac_cv_prog_gcc_traditional=no
4076fi
4077rm -f conftest*
4078
4079
4080 if test $ac_cv_prog_gcc_traditional = no; then
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082/* end confdefs.h. */
4083#include <termio.h>
4084Autoconf TCGETA
4085_ACEOF
4086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4087 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4088 ac_cv_prog_gcc_traditional=yes
4089fi
4090rm -f conftest*
4091
4092 fi
4093fi
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4095$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4096 if test $ac_cv_prog_gcc_traditional = yes; then
4097 CC="$CC -traditional"
4098 fi
4099fi
4100
4101# Find a good install program. We prefer a C program (faster),
4102# so one script is as good as another. But avoid the broken or
4103# incompatible versions:
4104# SysV /etc/install, /usr/sbin/install
4105# SunOS /usr/etc/install
4106# IRIX /sbin/install
4107# AIX /bin/install
4108# AmigaOS /C/install, which installs bootblocks on floppy discs
4109# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4110# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4111# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4112# OS/2's system install, which has a completely different semantic
4113# ./install, which can be erroneously created by make from ./install.sh.
4114# Reject install programs that cannot install multiple files.
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4116$as_echo_n "checking for a BSD-compatible install... " >&6; }
4117if test -z "$INSTALL"; then
4118if test "${ac_cv_path_install+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
4120else
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122for as_dir in $PATH
4123do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 # Account for people who put trailing slashes in PATH elements.
4127case $as_dir/ in #((
4128 ./ | .// | /[cC]/* | \
4129 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4130 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4131 /usr/ucb/* ) ;;
4132 *)
4133 # OSF1 and SCO ODT 3.0 have their own names for install.
4134 # Don't use installbsd from OSF since it installs stuff as root
4135 # by default.
4136 for ac_prog in ginstall scoinst install; do
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4139 if test $ac_prog = install &&
4140 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4141 # AIX install. It has an incompatible calling convention.
4142 :
4143 elif test $ac_prog = install &&
4144 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4145 # program-specific install script used by HP pwplus--don't use.
4146 :
4147 else
4148 rm -rf conftest.one conftest.two conftest.dir
4149 echo one > conftest.one
4150 echo two > conftest.two
4151 mkdir conftest.dir
4152 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4153 test -s conftest.one && test -s conftest.two &&
4154 test -s conftest.dir/conftest.one &&
4155 test -s conftest.dir/conftest.two
4156 then
4157 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4158 break 3
4159 fi
4160 fi
4161 fi
4162 done
4163 done
4164 ;;
4165esac
4166
4167 done
4168IFS=$as_save_IFS
4169
4170rm -rf conftest.one conftest.two conftest.dir
4171
4172fi
4173 if test "${ac_cv_path_install+set}" = set; then
4174 INSTALL=$ac_cv_path_install
4175 else
4176 # As a last resort, use the slow shell script. Don't cache a
4177 # value for INSTALL within a source directory, because that will
4178 # break other packages using the cache if that directory is
4179 # removed, or if the value is a relative name.
4180 INSTALL=$ac_install_sh
4181 fi
4182fi
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4184$as_echo "$INSTALL" >&6; }
4185
4186# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4187# It thinks the first close brace ends the variable substitution.
4188test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4189
4190test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4191
4192test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4193
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4195$as_echo_n "checking whether ln -s works... " >&6; }
4196LN_S=$as_ln_s
4197if test "$LN_S" = "ln -s"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4199$as_echo "yes" >&6; }
4200else
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4202$as_echo "no, using $LN_S" >&6; }
4203fi
4204
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4206$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4207set x ${MAKE-make}
4208ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4209if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4210 $as_echo_n "(cached) " >&6
4211else
4212 cat >conftest.make <<\_ACEOF
4213SHELL = /bin/sh
4214all:
4215 @echo '@@@%%%=$(MAKE)=@@@%%%'
4216_ACEOF
4217# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4218case `${MAKE-make} -f conftest.make 2>/dev/null` in
4219 *@@@%%%=?*=@@@%%%*)
4220 eval ac_cv_prog_make_${ac_make}_set=yes;;
4221 *)
4222 eval ac_cv_prog_make_${ac_make}_set=no;;
4223esac
4224rm -f conftest.make
4225fi
4226if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228$as_echo "yes" >&6; }
4229 SET_MAKE=
4230else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232$as_echo "no" >&6; }
4233 SET_MAKE="MAKE=${MAKE-make}"
4234fi
4235
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4237$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4238if test -z "$MKDIR_P"; then
4239 if test "${ac_cv_path_mkdir+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
4241else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4244do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_prog in mkdir gmkdir; do
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4250 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4251 'mkdir (GNU coreutils) '* | \
4252 'mkdir (coreutils) '* | \
4253 'mkdir (fileutils) '4.1*)
4254 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4255 break 3;;
4256 esac
4257 done
4258 done
4259 done
4260IFS=$as_save_IFS
4261
4262fi
4263
4264 test -d ./--version && rmdir ./--version
4265 if test "${ac_cv_path_mkdir+set}" = set; then
4266 MKDIR_P="$ac_cv_path_mkdir -p"
4267 else
4268 # As a last resort, use the slow shell script. Don't cache a
4269 # value for MKDIR_P within a source directory, because that will
4270 # break other packages using the cache if that directory is
4271 # removed, or if the value is a relative name.
4272 MKDIR_P="$ac_install_sh -d"
4273 fi
4274fi
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4276$as_echo "$MKDIR_P" >&6; }
4277
4278if test -n "$ac_tool_prefix"; then
4279 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4280set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4282$as_echo_n "checking for $ac_word... " >&6; }
4283if test "${ac_cv_prog_RANLIB+set}" = set; then :
4284 $as_echo_n "(cached) " >&6
4285else
4286 if test -n "$RANLIB"; then
4287 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4288else
4289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290for as_dir in $PATH
4291do
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4296 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 break 2
4299 fi
4300done
4301 done
4302IFS=$as_save_IFS
4303
4304fi
4305fi
4306RANLIB=$ac_cv_prog_RANLIB
4307if test -n "$RANLIB"; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4309$as_echo "$RANLIB" >&6; }
4310else
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312$as_echo "no" >&6; }
4313fi
4314
4315
4316fi
4317if test -z "$ac_cv_prog_RANLIB"; then
4318 ac_ct_RANLIB=$RANLIB
4319 # Extract the first word of "ranlib", so it can be a program name with args.
4320set dummy ranlib; ac_word=$2
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322$as_echo_n "checking for $ac_word... " >&6; }
4323if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4324 $as_echo_n "(cached) " >&6
4325else
4326 if test -n "$ac_ct_RANLIB"; then
4327 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4328else
4329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH
4331do
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4336 ac_cv_prog_ac_ct_RANLIB="ranlib"
4337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 break 2
4339 fi
4340done
4341 done
4342IFS=$as_save_IFS
4343
4344fi
4345fi
4346ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4347if test -n "$ac_ct_RANLIB"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4349$as_echo "$ac_ct_RANLIB" >&6; }
4350else
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352$as_echo "no" >&6; }
4353fi
4354
4355 if test "x$ac_ct_RANLIB" = x; then
4356 RANLIB=":"
4357 else
4358 case $cross_compiling:$ac_tool_warned in
4359yes:)
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4362ac_tool_warned=yes ;;
4363esac
4364 RANLIB=$ac_ct_RANLIB
4365 fi
4366else
4367 RANLIB="$ac_cv_prog_RANLIB"
4368fi
4369
4370# Extract the first word of "cflow", so it can be a program name with args.
4371set dummy cflow; ac_word=$2
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373$as_echo_n "checking for $ac_word... " >&6; }
4374if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
4376else
4377 case $CFLOW_CMD in
4378 [\\/]* | ?:[\\/]*)
4379 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4380 ;;
4381 *)
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383for as_dir in $PATH
4384do
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4389 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4392 fi
4393done
4394 done
4395IFS=$as_save_IFS
4396
4397 ;;
4398esac
4399fi
4400CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4401if test -n "$CFLOW_CMD"; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4403$as_echo "$CFLOW_CMD" >&6; }
4404else
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406$as_echo "no" >&6; }
4407fi
4408
4409
4410# Extract the first word of "cscope", so it can be a program name with args.
4411set dummy cscope; ac_word=$2
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413$as_echo_n "checking for $ac_word... " >&6; }
4414if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
4415 $as_echo_n "(cached) " >&6
4416else
4417 case $CSCOPE_CMD in
4418 [\\/]* | ?:[\\/]*)
4419 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4420 ;;
4421 *)
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in $PATH
4424do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4432 fi
4433done
4434 done
4435IFS=$as_save_IFS
4436
4437 ;;
4438esac
4439fi
4440CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4441if test -n "$CSCOPE_CMD"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4443$as_echo "$CSCOPE_CMD" >&6; }
4444else
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446$as_echo "no" >&6; }
4447fi
4448
4449
4450
4451################################################################################
4452ac_header_dirent=no
4453for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4454 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4456$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4457if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4458 $as_echo_n "(cached) " >&6
4459else
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461/* end confdefs.h. */
4462#include <sys/types.h>
4463#include <$ac_hdr>
4464
4465int
4466main ()
4467{
4468if ((DIR *) 0)
4469return 0;
4470 ;
4471 return 0;
4472}
4473_ACEOF
4474if ac_fn_c_try_compile "$LINENO"; then :
4475 eval "$as_ac_Header=yes"
4476else
4477 eval "$as_ac_Header=no"
4478fi
4479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480fi
4481eval ac_res=\$$as_ac_Header
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4483$as_echo "$ac_res" >&6; }
4484if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4485 cat >>confdefs.h <<_ACEOF
4486#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4487_ACEOF
4488
4489ac_header_dirent=$ac_hdr; break
4490fi
4491
4492done
4493# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4494if test $ac_header_dirent = dirent.h; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4496$as_echo_n "checking for library containing opendir... " >&6; }
4497if test "${ac_cv_search_opendir+set}" = set; then :
4498 $as_echo_n "(cached) " >&6
4499else
4500 ac_func_search_save_LIBS=$LIBS
4501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502/* end confdefs.h. */
4503
4504/* Override any GCC internal prototype to avoid an error.
4505 Use char because int might match the return type of a GCC
4506 builtin and then its argument prototype would still apply. */
4507#ifdef __cplusplus
4508extern "C"
4509#endif
4510char opendir ();
4511int
4512main ()
4513{
4514return opendir ();
4515 ;
4516 return 0;
4517}
4518_ACEOF
4519for ac_lib in '' dir; do
4520 if test -z "$ac_lib"; then
4521 ac_res="none required"
4522 else
4523 ac_res=-l$ac_lib
4524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4525 fi
4526 if ac_fn_c_try_link "$LINENO"; then :
4527 ac_cv_search_opendir=$ac_res
4528fi
4529rm -f core conftest.err conftest.$ac_objext \
4530 conftest$ac_exeext
4531 if test "${ac_cv_search_opendir+set}" = set; then :
4532 break
4533fi
4534done
4535if test "${ac_cv_search_opendir+set}" = set; then :
4536
4537else
4538 ac_cv_search_opendir=no
4539fi
4540rm conftest.$ac_ext
4541LIBS=$ac_func_search_save_LIBS
4542fi
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4544$as_echo "$ac_cv_search_opendir" >&6; }
4545ac_res=$ac_cv_search_opendir
4546if test "$ac_res" != no; then :
4547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4548
4549fi
4550
4551else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4553$as_echo_n "checking for library containing opendir... " >&6; }
4554if test "${ac_cv_search_opendir+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4556else
4557 ac_func_search_save_LIBS=$LIBS
4558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559/* end confdefs.h. */
4560
4561/* Override any GCC internal prototype to avoid an error.
4562 Use char because int might match the return type of a GCC
4563 builtin and then its argument prototype would still apply. */
4564#ifdef __cplusplus
4565extern "C"
4566#endif
4567char opendir ();
4568int
4569main ()
4570{
4571return opendir ();
4572 ;
4573 return 0;
4574}
4575_ACEOF
4576for ac_lib in '' x; do
4577 if test -z "$ac_lib"; then
4578 ac_res="none required"
4579 else
4580 ac_res=-l$ac_lib
4581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4582 fi
4583 if ac_fn_c_try_link "$LINENO"; then :
4584 ac_cv_search_opendir=$ac_res
4585fi
4586rm -f core conftest.err conftest.$ac_objext \
4587 conftest$ac_exeext
4588 if test "${ac_cv_search_opendir+set}" = set; then :
4589 break
4590fi
4591done
4592if test "${ac_cv_search_opendir+set}" = set; then :
4593
4594else
4595 ac_cv_search_opendir=no
4596fi
4597rm conftest.$ac_ext
4598LIBS=$ac_func_search_save_LIBS
4599fi
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4601$as_echo "$ac_cv_search_opendir" >&6; }
4602ac_res=$ac_cv_search_opendir
4603if test "$ac_res" != no; then :
4604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4605
4606fi
4607
4608fi
4609
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4611$as_echo_n "checking for ANSI C header files... " >&6; }
4612if test "${ac_cv_header_stdc+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614else
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616/* end confdefs.h. */
4617#include <stdlib.h>
4618#include <stdarg.h>
4619#include <string.h>
4620#include <float.h>
4621
4622int
4623main ()
4624{
4625
4626 ;
4627 return 0;
4628}
4629_ACEOF
4630if ac_fn_c_try_compile "$LINENO"; then :
4631 ac_cv_header_stdc=yes
4632else
4633 ac_cv_header_stdc=no
4634fi
4635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636
4637if test $ac_cv_header_stdc = yes; then
4638 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640/* end confdefs.h. */
4641#include <string.h>
4642
4643_ACEOF
4644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645 $EGREP "memchr" >/dev/null 2>&1; then :
4646
4647else
4648 ac_cv_header_stdc=no
4649fi
4650rm -f conftest*
4651
4652fi
4653
4654if test $ac_cv_header_stdc = yes; then
4655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657/* end confdefs.h. */
4658#include <stdlib.h>
4659
4660_ACEOF
4661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4662 $EGREP "free" >/dev/null 2>&1; then :
4663
4664else
4665 ac_cv_header_stdc=no
4666fi
4667rm -f conftest*
4668
4669fi
4670
4671if test $ac_cv_header_stdc = yes; then
4672 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4673 if test "$cross_compiling" = yes; then :
4674 :
4675else
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677/* end confdefs.h. */
4678#include <ctype.h>
4679#include <stdlib.h>
4680#if ((' ' & 0x0FF) == 0x020)
4681# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4682# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4683#else
4684# define ISLOWER(c) \
4685 (('a' <= (c) && (c) <= 'i') \
4686 || ('j' <= (c) && (c) <= 'r') \
4687 || ('s' <= (c) && (c) <= 'z'))
4688# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4689#endif
4690
4691#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4692int
4693main ()
4694{
4695 int i;
4696 for (i = 0; i < 256; i++)
4697 if (XOR (islower (i), ISLOWER (i))
4698 || toupper (i) != TOUPPER (i))
4699 return 2;
4700 return 0;
4701}
4702_ACEOF
4703if ac_fn_c_try_run "$LINENO"; then :
4704
4705else
4706 ac_cv_header_stdc=no
4707fi
4708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4709 conftest.$ac_objext conftest.beam conftest.$ac_ext
4710fi
4711
4712fi
4713fi
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4715$as_echo "$ac_cv_header_stdc" >&6; }
4716if test $ac_cv_header_stdc = yes; then
4717
4718$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4719
4720fi
4721
4722# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4723for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4724 inttypes.h stdint.h unistd.h
4725do :
4726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4727ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4728"
4729if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4730 cat >>confdefs.h <<_ACEOF
4731#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4732_ACEOF
4733
4734fi
4735
4736done
4737
4738
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4740$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4741if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
4743else
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745/* end confdefs.h. */
4746#include <sys/types.h>
4747int
4748main ()
4749{
4750return makedev(0, 0);
4751 ;
4752 return 0;
4753}
4754_ACEOF
4755if ac_fn_c_try_link "$LINENO"; then :
4756 ac_cv_header_sys_types_h_makedev=yes
4757else
4758 ac_cv_header_sys_types_h_makedev=no
4759fi
4760rm -f core conftest.err conftest.$ac_objext \
4761 conftest$ac_exeext conftest.$ac_ext
4762
4763fi
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4765$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4766
4767if test $ac_cv_header_sys_types_h_makedev = no; then
4768ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4769if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4770
4771$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
4772
4773fi
4774
4775
4776
4777 if test $ac_cv_header_sys_mkdev_h = no; then
4778 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4779if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4780
4781$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4782
4783fi
4784
4785
4786 fi
4787fi
4788
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4790$as_echo_n "checking for ANSI C header files... " >&6; }
4791if test "${ac_cv_header_stdc+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4793else
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795/* end confdefs.h. */
4796#include <stdlib.h>
4797#include <stdarg.h>
4798#include <string.h>
4799#include <float.h>
4800
4801int
4802main ()
4803{
4804
4805 ;
4806 return 0;
4807}
4808_ACEOF
4809if ac_fn_c_try_compile "$LINENO"; then :
4810 ac_cv_header_stdc=yes
4811else
4812 ac_cv_header_stdc=no
4813fi
4814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815
4816if test $ac_cv_header_stdc = yes; then
4817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819/* end confdefs.h. */
4820#include <string.h>
4821
4822_ACEOF
4823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4824 $EGREP "memchr" >/dev/null 2>&1; then :
4825
4826else
4827 ac_cv_header_stdc=no
4828fi
4829rm -f conftest*
4830
4831fi
4832
4833if test $ac_cv_header_stdc = yes; then
4834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836/* end confdefs.h. */
4837#include <stdlib.h>
4838
4839_ACEOF
4840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4841 $EGREP "free" >/dev/null 2>&1; then :
4842
4843else
4844 ac_cv_header_stdc=no
4845fi
4846rm -f conftest*
4847
4848fi
4849
4850if test $ac_cv_header_stdc = yes; then
4851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4852 if test "$cross_compiling" = yes; then :
4853 :
4854else
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856/* end confdefs.h. */
4857#include <ctype.h>
4858#include <stdlib.h>
4859#if ((' ' & 0x0FF) == 0x020)
4860# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4861# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4862#else
4863# define ISLOWER(c) \
4864 (('a' <= (c) && (c) <= 'i') \
4865 || ('j' <= (c) && (c) <= 'r') \
4866 || ('s' <= (c) && (c) <= 'z'))
4867# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4868#endif
4869
4870#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4871int
4872main ()
4873{
4874 int i;
4875 for (i = 0; i < 256; i++)
4876 if (XOR (islower (i), ISLOWER (i))
4877 || toupper (i) != TOUPPER (i))
4878 return 2;
4879 return 0;
4880}
4881_ACEOF
4882if ac_fn_c_try_run "$LINENO"; then :
4883
4884else
4885 ac_cv_header_stdc=no
4886fi
4887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4888 conftest.$ac_objext conftest.beam conftest.$ac_ext
4889fi
4890
4891fi
4892fi
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4894$as_echo "$ac_cv_header_stdc" >&6; }
4895if test $ac_cv_header_stdc = yes; then
4896
4897$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4898
4899fi
4900
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4902$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4903if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4904 $as_echo_n "(cached) " >&6
4905else
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907/* end confdefs.h. */
4908#include <sys/types.h>
4909#include <sys/wait.h>
4910#ifndef WEXITSTATUS
4911# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4912#endif
4913#ifndef WIFEXITED
4914# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4915#endif
4916
4917int
4918main ()
4919{
4920 int s;
4921 wait (&s);
4922 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4923 ;
4924 return 0;
4925}
4926_ACEOF
4927if ac_fn_c_try_compile "$LINENO"; then :
4928 ac_cv_header_sys_wait_h=yes
4929else
4930 ac_cv_header_sys_wait_h=no
4931fi
4932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933fi
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4935$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4936if test $ac_cv_header_sys_wait_h = yes; then
4937
4938$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4939
4940fi
4941
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4943$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4944if test "${ac_cv_header_time+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4946else
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948/* end confdefs.h. */
4949#include <sys/types.h>
4950#include <sys/time.h>
4951#include <time.h>
4952
4953int
4954main ()
4955{
4956if ((struct tm *) 0)
4957return 0;
4958 ;
4959 return 0;
4960}
4961_ACEOF
4962if ac_fn_c_try_compile "$LINENO"; then :
4963 ac_cv_header_time=yes
4964else
4965 ac_cv_header_time=no
4966fi
4967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968fi
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4970$as_echo "$ac_cv_header_time" >&6; }
4971if test $ac_cv_header_time = yes; then
4972
4973$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4974
4975fi
4976
4977
4978for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4979 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4980 sys/wait.h time.h
4981do :
4982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4984if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4985 cat >>confdefs.h <<_ACEOF
4986#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4987_ACEOF
4988
4989else
4990 as_fn_error $? "bailing out" "$LINENO" 5
4991fi
4992
4993done
4994
4995
4996case "$host_os" in
4997 linux*)
4998 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4999do :
5000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5001ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5002if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5003 cat >>confdefs.h <<_ACEOF
5004#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5005_ACEOF
5006
5007else
5008 as_fn_error $? "bailing out" "$LINENO" 5
5009fi
5010
5011done
5012 ;;
5013 darwin*)
5014 for ac_header in machine/endian.h sys/disk.h
5015do :
5016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5017ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5018if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5019 cat >>confdefs.h <<_ACEOF
5020#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5021_ACEOF
5022
5023else
5024 as_fn_error $? "bailing out" "$LINENO" 5
5025fi
5026
5027done
5028 ;;
5029esac
5030
5031for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5032 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5033 sys/types.h unistd.h
5034do :
5035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5036ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5037if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5038 cat >>confdefs.h <<_ACEOF
5039#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5040_ACEOF
5041
5042else
5043 as_fn_error $? "bailing out" "$LINENO" 5
5044fi
5045
5046done
5047
5048for ac_header in termios.h sys/statvfs.h
5049do :
5050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5051ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5052if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5053 cat >>confdefs.h <<_ACEOF
5054#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5055_ACEOF
5056
5057fi
5058
5059done
5060
5061
5062################################################################################
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5064$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5065if test "${ac_cv_c_const+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5067else
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069/* end confdefs.h. */
5070
5071int
5072main ()
5073{
5074/* FIXME: Include the comments suggested by Paul. */
5075#ifndef __cplusplus
5076 /* Ultrix mips cc rejects this. */
5077 typedef int charset[2];
5078 const charset cs;
5079 /* SunOS 4.1.1 cc rejects this. */
5080 char const *const *pcpcc;
5081 char **ppc;
5082 /* NEC SVR4.0.2 mips cc rejects this. */
5083 struct point {int x, y;};
5084 static struct point const zero = {0,0};
5085 /* AIX XL C 1.02.0.0 rejects this.
5086 It does not let you subtract one const X* pointer from another in
5087 an arm of an if-expression whose if-part is not a constant
5088 expression */
5089 const char *g = "string";
5090 pcpcc = &g + (g ? g-g : 0);
5091 /* HPUX 7.0 cc rejects these. */
5092 ++pcpcc;
5093 ppc = (char**) pcpcc;
5094 pcpcc = (char const *const *) ppc;
5095 { /* SCO 3.2v4 cc rejects this. */
5096 char *t;
5097 char const *s = 0 ? (char *) 0 : (char const *) 0;
5098
5099 *t++ = 0;
5100 if (s) return 0;
5101 }
5102 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5103 int x[] = {25, 17};
5104 const int *foo = &x[0];
5105 ++foo;
5106 }
5107 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5108 typedef const int *iptr;
5109 iptr p = 0;
5110 ++p;
5111 }
5112 { /* AIX XL C 1.02.0.0 rejects this saying
5113 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5114 struct s { int j; const int *ap[3]; };
5115 struct s *b; b->j = 5;
5116 }
5117 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5118 const int foo = 10;
5119 if (!foo) return 0;
5120 }
5121 return !cs[0] && !zero.x;
5122#endif
5123
5124 ;
5125 return 0;
5126}
5127_ACEOF
5128if ac_fn_c_try_compile "$LINENO"; then :
5129 ac_cv_c_const=yes
5130else
5131 ac_cv_c_const=no
5132fi
5133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134fi
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5136$as_echo "$ac_cv_c_const" >&6; }
5137if test $ac_cv_c_const = no; then
5138
5139$as_echo "#define const /**/" >>confdefs.h
5140
5141fi
5142
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5144$as_echo_n "checking for inline... " >&6; }
5145if test "${ac_cv_c_inline+set}" = set; then :
5146 $as_echo_n "(cached) " >&6
5147else
5148 ac_cv_c_inline=no
5149for ac_kw in inline __inline__ __inline; do
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151/* end confdefs.h. */
5152#ifndef __cplusplus
5153typedef int foo_t;
5154static $ac_kw foo_t static_foo () {return 0; }
5155$ac_kw foo_t foo () {return 0; }
5156#endif
5157
5158_ACEOF
5159if ac_fn_c_try_compile "$LINENO"; then :
5160 ac_cv_c_inline=$ac_kw
5161fi
5162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163 test "$ac_cv_c_inline" != no && break
5164done
5165
5166fi
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5168$as_echo "$ac_cv_c_inline" >&6; }
5169
5170case $ac_cv_c_inline in
5171 inline | yes) ;;
5172 *)
5173 case $ac_cv_c_inline in
5174 no) ac_val=;;
5175 *) ac_val=$ac_cv_c_inline;;
5176 esac
5177 cat >>confdefs.h <<_ACEOF
5178#ifndef __cplusplus
5179#define inline $ac_val
5180#endif
5181_ACEOF
5182 ;;
5183esac
5184
5185ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5186if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5187
5188cat >>confdefs.h <<_ACEOF
5189#define HAVE_STRUCT_STAT_ST_RDEV 1
5190_ACEOF
5191
5192
5193fi
5194
5195ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5196if test "x$ac_cv_type_off_t" = x""yes; then :
5197
5198else
5199
5200cat >>confdefs.h <<_ACEOF
5201#define off_t long int
5202_ACEOF
5203
5204fi
5205
5206ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5207if test "x$ac_cv_type_pid_t" = x""yes; then :
5208
5209else
5210
5211cat >>confdefs.h <<_ACEOF
5212#define pid_t int
5213_ACEOF
5214
5215fi
5216
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5218$as_echo_n "checking return type of signal handlers... " >&6; }
5219if test "${ac_cv_type_signal+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5221else
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223/* end confdefs.h. */
5224#include <sys/types.h>
5225#include <signal.h>
5226
5227int
5228main ()
5229{
5230return *(signal (0, 0)) (0) == 1;
5231 ;
5232 return 0;
5233}
5234_ACEOF
5235if ac_fn_c_try_compile "$LINENO"; then :
5236 ac_cv_type_signal=int
5237else
5238 ac_cv_type_signal=void
5239fi
5240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241fi
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5243$as_echo "$ac_cv_type_signal" >&6; }
5244
5245cat >>confdefs.h <<_ACEOF
5246#define RETSIGTYPE $ac_cv_type_signal
5247_ACEOF
5248
5249
5250ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5251if test "x$ac_cv_type_size_t" = x""yes; then :
5252
5253else
5254
5255cat >>confdefs.h <<_ACEOF
5256#define size_t unsigned int
5257_ACEOF
5258
5259fi
5260
5261ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5262if test "x$ac_cv_type_mode_t" = x""yes; then :
5263
5264else
5265
5266cat >>confdefs.h <<_ACEOF
5267#define mode_t int
5268_ACEOF
5269
5270fi
5271
5272ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5273case $ac_cv_c_int8_t in #(
5274 no|yes) ;; #(
5275 *)
5276
5277cat >>confdefs.h <<_ACEOF
5278#define int8_t $ac_cv_c_int8_t
5279_ACEOF
5280;;
5281esac
5282
5283ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5284case $ac_cv_c_int16_t in #(
5285 no|yes) ;; #(
5286 *)
5287
5288cat >>confdefs.h <<_ACEOF
5289#define int16_t $ac_cv_c_int16_t
5290_ACEOF
5291;;
5292esac
5293
5294ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5295case $ac_cv_c_int32_t in #(
5296 no|yes) ;; #(
5297 *)
5298
5299cat >>confdefs.h <<_ACEOF
5300#define int32_t $ac_cv_c_int32_t
5301_ACEOF
5302;;
5303esac
5304
5305ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5306case $ac_cv_c_int64_t in #(
5307 no|yes) ;; #(
5308 *)
5309
5310cat >>confdefs.h <<_ACEOF
5311#define int64_t $ac_cv_c_int64_t
5312_ACEOF
5313;;
5314esac
5315
5316ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5317if test "x$ac_cv_type_ssize_t" = x""yes; then :
5318
5319else
5320
5321cat >>confdefs.h <<_ACEOF
5322#define ssize_t int
5323_ACEOF
5324
5325fi
5326
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5328$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5329if test "${ac_cv_type_uid_t+set}" = set; then :
5330 $as_echo_n "(cached) " >&6
5331else
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h. */
5334#include <sys/types.h>
5335
5336_ACEOF
5337if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5338 $EGREP "uid_t" >/dev/null 2>&1; then :
5339 ac_cv_type_uid_t=yes
5340else
5341 ac_cv_type_uid_t=no
5342fi
5343rm -f conftest*
5344
5345fi
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5347$as_echo "$ac_cv_type_uid_t" >&6; }
5348if test $ac_cv_type_uid_t = no; then
5349
5350$as_echo "#define uid_t int" >>confdefs.h
5351
5352
5353$as_echo "#define gid_t int" >>confdefs.h
5354
5355fi
5356
5357ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5358case $ac_cv_c_uint8_t in #(
5359 no|yes) ;; #(
5360 *)
5361
5362$as_echo "#define _UINT8_T 1" >>confdefs.h
5363
5364
5365cat >>confdefs.h <<_ACEOF
5366#define uint8_t $ac_cv_c_uint8_t
5367_ACEOF
5368;;
5369 esac
5370
5371ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5372case $ac_cv_c_uint16_t in #(
5373 no|yes) ;; #(
5374 *)
5375
5376
5377cat >>confdefs.h <<_ACEOF
5378#define uint16_t $ac_cv_c_uint16_t
5379_ACEOF
5380;;
5381 esac
5382
5383ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5384case $ac_cv_c_uint32_t in #(
5385 no|yes) ;; #(
5386 *)
5387
5388$as_echo "#define _UINT32_T 1" >>confdefs.h
5389
5390
5391cat >>confdefs.h <<_ACEOF
5392#define uint32_t $ac_cv_c_uint32_t
5393_ACEOF
5394;;
5395 esac
5396
5397ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5398case $ac_cv_c_uint64_t in #(
5399 no|yes) ;; #(
5400 *)
5401
5402$as_echo "#define _UINT64_T 1" >>confdefs.h
5403
5404
5405cat >>confdefs.h <<_ACEOF
5406#define uint64_t $ac_cv_c_uint64_t
5407_ACEOF
5408;;
5409 esac
5410
5411ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5412if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5413
5414cat >>confdefs.h <<_ACEOF
5415#define HAVE_STRUCT_STAT_ST_RDEV 1
5416_ACEOF
5417
5418
5419fi
5420
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5422$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5423if test "${ac_cv_struct_tm+set}" = set; then :
5424 $as_echo_n "(cached) " >&6
5425else
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427/* end confdefs.h. */
5428#include <sys/types.h>
5429#include <time.h>
5430
5431int
5432main ()
5433{
5434struct tm tm;
5435 int *p = &tm.tm_sec;
5436 return !p;
5437 ;
5438 return 0;
5439}
5440_ACEOF
5441if ac_fn_c_try_compile "$LINENO"; then :
5442 ac_cv_struct_tm=time.h
5443else
5444 ac_cv_struct_tm=sys/time.h
5445fi
5446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447fi
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5449$as_echo "$ac_cv_struct_tm" >&6; }
5450if test $ac_cv_struct_tm = sys/time.h; then
5451
5452$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5453
5454fi
5455
5456
5457################################################################################
5458for ac_func in ftruncate gethostname getpagesize \
5459 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5460 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5461 strstr strtol strtoul uname
5462do :
5463 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5464ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5465if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5466 cat >>confdefs.h <<_ACEOF
5467#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5468_ACEOF
5469
5470else
5471 as_fn_error $? "bailing out" "$LINENO" 5
5472fi
5473done
5474
5475for ac_func in siginterrupt
5476do :
5477 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5478if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5479 cat >>confdefs.h <<_ACEOF
5480#define HAVE_SIGINTERRUPT 1
5481_ACEOF
5482
5483fi
5484done
5485
5486# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5487# for constant arguments. Useless!
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5489$as_echo_n "checking for working alloca.h... " >&6; }
5490if test "${ac_cv_working_alloca_h+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
5492else
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h. */
5495#include <alloca.h>
5496int
5497main ()
5498{
5499char *p = (char *) alloca (2 * sizeof (int));
5500 if (p) return 0;
5501 ;
5502 return 0;
5503}
5504_ACEOF
5505if ac_fn_c_try_link "$LINENO"; then :
5506 ac_cv_working_alloca_h=yes
5507else
5508 ac_cv_working_alloca_h=no
5509fi
5510rm -f core conftest.err conftest.$ac_objext \
5511 conftest$ac_exeext conftest.$ac_ext
5512fi
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5514$as_echo "$ac_cv_working_alloca_h" >&6; }
5515if test $ac_cv_working_alloca_h = yes; then
5516
5517$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5518
5519fi
5520
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5522$as_echo_n "checking for alloca... " >&6; }
5523if test "${ac_cv_func_alloca_works+set}" = set; then :
5524 $as_echo_n "(cached) " >&6
5525else
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527/* end confdefs.h. */
5528#ifdef __GNUC__
5529# define alloca __builtin_alloca
5530#else
5531# ifdef _MSC_VER
5532# include <malloc.h>
5533# define alloca _alloca
5534# else
5535# ifdef HAVE_ALLOCA_H
5536# include <alloca.h>
5537# else
5538# ifdef _AIX
5539 #pragma alloca
5540# else
5541# ifndef alloca /* predefined by HP cc +Olibcalls */
5542char *alloca ();
5543# endif
5544# endif
5545# endif
5546# endif
5547#endif
5548
5549int
5550main ()
5551{
5552char *p = (char *) alloca (1);
5553 if (p) return 0;
5554 ;
5555 return 0;
5556}
5557_ACEOF
5558if ac_fn_c_try_link "$LINENO"; then :
5559 ac_cv_func_alloca_works=yes
5560else
5561 ac_cv_func_alloca_works=no
5562fi
5563rm -f core conftest.err conftest.$ac_objext \
5564 conftest$ac_exeext conftest.$ac_ext
5565fi
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5567$as_echo "$ac_cv_func_alloca_works" >&6; }
5568
5569if test $ac_cv_func_alloca_works = yes; then
5570
5571$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5572
5573else
5574 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5575# that cause trouble. Some versions do not even contain alloca or
5576# contain a buggy version. If you still want to use their alloca,
5577# use ar to extract alloca.o from them instead of compiling alloca.c.
5578
5579ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5580
5581$as_echo "#define C_ALLOCA 1" >>confdefs.h
5582
5583
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5585$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5586if test "${ac_cv_os_cray+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5588else
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590/* end confdefs.h. */
5591#if defined CRAY && ! defined CRAY2
5592webecray
5593#else
5594wenotbecray
5595#endif
5596
5597_ACEOF
5598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5599 $EGREP "webecray" >/dev/null 2>&1; then :
5600 ac_cv_os_cray=yes
5601else
5602 ac_cv_os_cray=no
5603fi
5604rm -f conftest*
5605
5606fi
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5608$as_echo "$ac_cv_os_cray" >&6; }
5609if test $ac_cv_os_cray = yes; then
5610 for ac_func in _getb67 GETB67 getb67; do
5611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5612ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5613if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5614
5615cat >>confdefs.h <<_ACEOF
5616#define CRAY_STACKSEG_END $ac_func
5617_ACEOF
5618
5619 break
5620fi
5621
5622 done
5623fi
5624
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5626$as_echo_n "checking stack direction for C alloca... " >&6; }
5627if test "${ac_cv_c_stack_direction+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5629else
5630 if test "$cross_compiling" = yes; then :
5631 ac_cv_c_stack_direction=0
5632else
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h. */
5635$ac_includes_default
5636int
5637find_stack_direction ()
5638{
5639 static char *addr = 0;
5640 auto char dummy;
5641 if (addr == 0)
5642 {
5643 addr = &dummy;
5644 return find_stack_direction ();
5645 }
5646 else
5647 return (&dummy > addr) ? 1 : -1;
5648}
5649
5650int
5651main ()
5652{
5653 return find_stack_direction () < 0;
5654}
5655_ACEOF
5656if ac_fn_c_try_run "$LINENO"; then :
5657 ac_cv_c_stack_direction=1
5658else
5659 ac_cv_c_stack_direction=-1
5660fi
5661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5662 conftest.$ac_objext conftest.beam conftest.$ac_ext
5663fi
5664
5665fi
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5667$as_echo "$ac_cv_c_stack_direction" >&6; }
5668cat >>confdefs.h <<_ACEOF
5669#define STACK_DIRECTION $ac_cv_c_stack_direction
5670_ACEOF
5671
5672
5673fi
5674
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5676$as_echo_n "checking whether closedir returns void... " >&6; }
5677if test "${ac_cv_func_closedir_void+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5679else
5680 if test "$cross_compiling" = yes; then :
5681 ac_cv_func_closedir_void=yes
5682else
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h. */
5685$ac_includes_default
5686#include <$ac_header_dirent>
5687#ifndef __cplusplus
5688int closedir ();
5689#endif
5690
5691int
5692main ()
5693{
5694return closedir (opendir (".")) != 0;
5695 ;
5696 return 0;
5697}
5698_ACEOF
5699if ac_fn_c_try_run "$LINENO"; then :
5700 ac_cv_func_closedir_void=no
5701else
5702 ac_cv_func_closedir_void=yes
5703fi
5704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5705 conftest.$ac_objext conftest.beam conftest.$ac_ext
5706fi
5707
5708fi
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5710$as_echo "$ac_cv_func_closedir_void" >&6; }
5711if test $ac_cv_func_closedir_void = yes; then
5712
5713$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5714
5715fi
5716
5717for ac_header in unistd.h
5718do :
5719 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5720if test "x$ac_cv_header_unistd_h" = x""yes; then :
5721 cat >>confdefs.h <<_ACEOF
5722#define HAVE_UNISTD_H 1
5723_ACEOF
5724
5725fi
5726
5727done
5728
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5730$as_echo_n "checking for working chown... " >&6; }
5731if test "${ac_cv_func_chown_works+set}" = set; then :
5732 $as_echo_n "(cached) " >&6
5733else
5734 if test "$cross_compiling" = yes; then :
5735 ac_cv_func_chown_works=no
5736else
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738/* end confdefs.h. */
5739$ac_includes_default
5740#include <fcntl.h>
5741
5742int
5743main ()
5744{
5745 char *f = "conftest.chown";
5746 struct stat before, after;
5747
5748 if (creat (f, 0600) < 0)
5749 return 1;
5750 if (stat (f, &before) < 0)
5751 return 1;
5752 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5753 return 1;
5754 if (stat (f, &after) < 0)
5755 return 1;
5756 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
5757
5758 ;
5759 return 0;
5760}
5761_ACEOF
5762if ac_fn_c_try_run "$LINENO"; then :
5763 ac_cv_func_chown_works=yes
5764else
5765 ac_cv_func_chown_works=no
5766fi
5767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5768 conftest.$ac_objext conftest.beam conftest.$ac_ext
5769fi
5770
5771rm -f conftest.chown
5772
5773fi
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5775$as_echo "$ac_cv_func_chown_works" >&6; }
5776if test $ac_cv_func_chown_works = yes; then
5777
5778$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
5779
5780fi
5781
5782for ac_header in vfork.h
5783do :
5784 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5785if test "x$ac_cv_header_vfork_h" = x""yes; then :
5786 cat >>confdefs.h <<_ACEOF
5787#define HAVE_VFORK_H 1
5788_ACEOF
5789
5790fi
5791
5792done
5793
5794for ac_func in fork vfork
5795do :
5796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5797ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5798if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5799 cat >>confdefs.h <<_ACEOF
5800#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5801_ACEOF
5802
5803fi
5804done
5805
5806if test "x$ac_cv_func_fork" = xyes; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5808$as_echo_n "checking for working fork... " >&6; }
5809if test "${ac_cv_func_fork_works+set}" = set; then :
5810 $as_echo_n "(cached) " >&6
5811else
5812 if test "$cross_compiling" = yes; then :
5813 ac_cv_func_fork_works=cross
5814else
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816/* end confdefs.h. */
5817$ac_includes_default
5818int
5819main ()
5820{
5821
5822 /* By Ruediger Kuhlmann. */
5823 return fork () < 0;
5824
5825 ;
5826 return 0;
5827}
5828_ACEOF
5829if ac_fn_c_try_run "$LINENO"; then :
5830 ac_cv_func_fork_works=yes
5831else
5832 ac_cv_func_fork_works=no
5833fi
5834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5835 conftest.$ac_objext conftest.beam conftest.$ac_ext
5836fi
5837
5838fi
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5840$as_echo "$ac_cv_func_fork_works" >&6; }
5841
5842else
5843 ac_cv_func_fork_works=$ac_cv_func_fork
5844fi
5845if test "x$ac_cv_func_fork_works" = xcross; then
5846 case $host in
5847 *-*-amigaos* | *-*-msdosdjgpp*)
5848 # Override, as these systems have only a dummy fork() stub
5849 ac_cv_func_fork_works=no
5850 ;;
5851 *)
5852 ac_cv_func_fork_works=yes
5853 ;;
5854 esac
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5856$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5857fi
5858ac_cv_func_vfork_works=$ac_cv_func_vfork
5859if test "x$ac_cv_func_vfork" = xyes; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5861$as_echo_n "checking for working vfork... " >&6; }
5862if test "${ac_cv_func_vfork_works+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5864else
5865 if test "$cross_compiling" = yes; then :
5866 ac_cv_func_vfork_works=cross
5867else
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869/* end confdefs.h. */
5870/* Thanks to Paul Eggert for this test. */
5871$ac_includes_default
5872#include <sys/wait.h>
5873#ifdef HAVE_VFORK_H
5874# include <vfork.h>
5875#endif
5876/* On some sparc systems, changes by the child to local and incoming
5877 argument registers are propagated back to the parent. The compiler
5878 is told about this with #include <vfork.h>, but some compilers
5879 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5880 static variable whose address is put into a register that is
5881 clobbered by the vfork. */
5882static void
5883#ifdef __cplusplus
5884sparc_address_test (int arg)
5885# else
5886sparc_address_test (arg) int arg;
5887#endif
5888{
5889 static pid_t child;
5890 if (!child) {
5891 child = vfork ();
5892 if (child < 0) {
5893 perror ("vfork");
5894 _exit(2);
5895 }
5896 if (!child) {
5897 arg = getpid();
5898 write(-1, "", 0);
5899 _exit (arg);
5900 }
5901 }
5902}
5903
5904int
5905main ()
5906{
5907 pid_t parent = getpid ();
5908 pid_t child;
5909
5910 sparc_address_test (0);
5911
5912 child = vfork ();
5913
5914 if (child == 0) {
5915 /* Here is another test for sparc vfork register problems. This
5916 test uses lots of local variables, at least as many local
5917 variables as main has allocated so far including compiler
5918 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5919 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5920 reuse the register of parent for one of the local variables,
5921 since it will think that parent can't possibly be used any more
5922 in this routine. Assigning to the local variable will thus
5923 munge parent in the parent process. */
5924 pid_t
5925 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5926 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5927 /* Convince the compiler that p..p7 are live; otherwise, it might
5928 use the same hardware register for all 8 local variables. */
5929 if (p != p1 || p != p2 || p != p3 || p != p4
5930 || p != p5 || p != p6 || p != p7)
5931 _exit(1);
5932
5933 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5934 from child file descriptors. If the child closes a descriptor
5935 before it execs or exits, this munges the parent's descriptor
5936 as well. Test for this by closing stdout in the child. */
5937 _exit(close(fileno(stdout)) != 0);
5938 } else {
5939 int status;
5940 struct stat st;
5941
5942 while (wait(&status) != child)
5943 ;
5944 return (
5945 /* Was there some problem with vforking? */
5946 child < 0
5947
5948 /* Did the child fail? (This shouldn't happen.) */
5949 || status
5950
5951 /* Did the vfork/compiler bug occur? */
5952 || parent != getpid()
5953
5954 /* Did the file descriptor bug occur? */
5955 || fstat(fileno(stdout), &st) != 0
5956 );
5957 }
5958}
5959_ACEOF
5960if ac_fn_c_try_run "$LINENO"; then :
5961 ac_cv_func_vfork_works=yes
5962else
5963 ac_cv_func_vfork_works=no
5964fi
5965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5966 conftest.$ac_objext conftest.beam conftest.$ac_ext
5967fi
5968
5969fi
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5971$as_echo "$ac_cv_func_vfork_works" >&6; }
5972
5973fi;
5974if test "x$ac_cv_func_fork_works" = xcross; then
5975 ac_cv_func_vfork_works=$ac_cv_func_vfork
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5977$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5978fi
5979
5980if test "x$ac_cv_func_vfork_works" = xyes; then
5981
5982$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5983
5984else
5985
5986$as_echo "#define vfork fork" >>confdefs.h
5987
5988fi
5989if test "x$ac_cv_func_fork_works" = xyes; then
5990
5991$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5992
5993fi
5994
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5996$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5997if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999else
6000 rm -f conftest.sym conftest.file
6001echo >conftest.file
6002if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6003 if test "$cross_compiling" = yes; then :
6004 ac_cv_func_lstat_dereferences_slashed_symlink=no
6005else
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h. */
6008$ac_includes_default
6009int
6010main ()
6011{
6012struct stat sbuf;
6013 /* Linux will dereference the symlink and fail, as required by POSIX.
6014 That is better in the sense that it means we will not
6015 have to compile and use the lstat wrapper. */
6016 return lstat ("conftest.sym/", &sbuf) == 0;
6017 ;
6018 return 0;
6019}
6020_ACEOF
6021if ac_fn_c_try_run "$LINENO"; then :
6022 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6023else
6024 ac_cv_func_lstat_dereferences_slashed_symlink=no
6025fi
6026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6027 conftest.$ac_objext conftest.beam conftest.$ac_ext
6028fi
6029
6030else
6031 # If the `ln -s' command failed, then we probably don't even
6032 # have an lstat function.
6033 ac_cv_func_lstat_dereferences_slashed_symlink=no
6034fi
6035rm -f conftest.sym conftest.file
6036
6037fi
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6039$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6040
6041test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6042
6043cat >>confdefs.h <<_ACEOF
6044#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6045_ACEOF
6046
6047
6048if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6049 case " $LIBOBJS " in
6050 *" lstat.$ac_objext "* ) ;;
6051 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6052 ;;
6053esac
6054
6055fi
6056
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6058$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6059if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061else
6062 if test "$cross_compiling" = yes; then :
6063 ac_cv_func_lstat_empty_string_bug=yes
6064else
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066/* end confdefs.h. */
6067$ac_includes_default
6068int
6069main ()
6070{
6071struct stat sbuf;
6072 return lstat ("", &sbuf) == 0;
6073 ;
6074 return 0;
6075}
6076_ACEOF
6077if ac_fn_c_try_run "$LINENO"; then :
6078 ac_cv_func_lstat_empty_string_bug=no
6079else
6080 ac_cv_func_lstat_empty_string_bug=yes
6081fi
6082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6083 conftest.$ac_objext conftest.beam conftest.$ac_ext
6084fi
6085
6086fi
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6088$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6089if test $ac_cv_func_lstat_empty_string_bug = yes; then
6090 case " $LIBOBJS " in
6091 *" lstat.$ac_objext "* ) ;;
6092 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6093 ;;
6094esac
6095
6096
6097cat >>confdefs.h <<_ACEOF
6098#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6099_ACEOF
6100
6101fi
6102
6103for ac_header in stdlib.h
6104do :
6105 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6106if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6107 cat >>confdefs.h <<_ACEOF
6108#define HAVE_STDLIB_H 1
6109_ACEOF
6110
6111fi
6112
6113done
6114
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6116$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6117if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6118 $as_echo_n "(cached) " >&6
6119else
6120 if test "$cross_compiling" = yes; then :
6121 ac_cv_func_malloc_0_nonnull=no
6122else
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124/* end confdefs.h. */
6125#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6126# include <stdlib.h>
6127#else
6128char *malloc ();
6129#endif
6130
6131int
6132main ()
6133{
6134return ! malloc (0);
6135 ;
6136 return 0;
6137}
6138_ACEOF
6139if ac_fn_c_try_run "$LINENO"; then :
6140 ac_cv_func_malloc_0_nonnull=yes
6141else
6142 ac_cv_func_malloc_0_nonnull=no
6143fi
6144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6145 conftest.$ac_objext conftest.beam conftest.$ac_ext
6146fi
6147
6148fi
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6150$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6151if test $ac_cv_func_malloc_0_nonnull = yes; then :
6152
6153$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6154
6155else
6156 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6157
6158 case " $LIBOBJS " in
6159 *" malloc.$ac_objext "* ) ;;
6160 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6161 ;;
6162esac
6163
6164
6165$as_echo "#define malloc rpl_malloc" >>confdefs.h
6166
6167fi
6168
6169
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6171$as_echo_n "checking for working memcmp... " >&6; }
6172if test "${ac_cv_func_memcmp_working+set}" = set; then :
6173 $as_echo_n "(cached) " >&6
6174else
6175 if test "$cross_compiling" = yes; then :
6176 ac_cv_func_memcmp_working=no
6177else
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179/* end confdefs.h. */
6180$ac_includes_default
6181int
6182main ()
6183{
6184
6185 /* Some versions of memcmp are not 8-bit clean. */
6186 char c0 = '\100', c1 = '\200', c2 = '\201';
6187 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6188 return 1;
6189
6190 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6191 or more and with at least one buffer not starting on a 4-byte boundary.
6192 William Lewis provided this test program. */
6193 {
6194 char foo[21];
6195 char bar[21];
6196 int i;
6197 for (i = 0; i < 4; i++)
6198 {
6199 char *a = foo + i;
6200 char *b = bar + i;
6201 strcpy (a, "--------01111111");
6202 strcpy (b, "--------10000000");
6203 if (memcmp (a, b, 16) >= 0)
6204 return 1;
6205 }
6206 return 0;
6207 }
6208
6209 ;
6210 return 0;
6211}
6212_ACEOF
6213if ac_fn_c_try_run "$LINENO"; then :
6214 ac_cv_func_memcmp_working=yes
6215else
6216 ac_cv_func_memcmp_working=no
6217fi
6218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6219 conftest.$ac_objext conftest.beam conftest.$ac_ext
6220fi
6221
6222fi
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6224$as_echo "$ac_cv_func_memcmp_working" >&6; }
6225test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6226 *" memcmp.$ac_objext "* ) ;;
6227 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6228 ;;
6229esac
6230
6231
6232
6233
6234
6235 for ac_header in $ac_header_list
6236do :
6237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6238ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6239"
6240if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6241 cat >>confdefs.h <<_ACEOF
6242#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6243_ACEOF
6244
6245fi
6246
6247done
6248
6249
6250
6251
6252
6253
6254
6255
6256for ac_func in getpagesize
6257do :
6258 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6259if test "x$ac_cv_func_getpagesize" = x""yes; then :
6260 cat >>confdefs.h <<_ACEOF
6261#define HAVE_GETPAGESIZE 1
6262_ACEOF
6263
6264fi
6265done
6266
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6268$as_echo_n "checking for working mmap... " >&6; }
6269if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6270 $as_echo_n "(cached) " >&6
6271else
6272 if test "$cross_compiling" = yes; then :
6273 ac_cv_func_mmap_fixed_mapped=no
6274else
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276/* end confdefs.h. */
6277$ac_includes_default
6278/* malloc might have been renamed as rpl_malloc. */
6279#undef malloc
6280
6281/* Thanks to Mike Haertel and Jim Avera for this test.
6282 Here is a matrix of mmap possibilities:
6283 mmap private not fixed
6284 mmap private fixed at somewhere currently unmapped
6285 mmap private fixed at somewhere already mapped
6286 mmap shared not fixed
6287 mmap shared fixed at somewhere currently unmapped
6288 mmap shared fixed at somewhere already mapped
6289 For private mappings, we should verify that changes cannot be read()
6290 back from the file, nor mmap's back from the file at a different
6291 address. (There have been systems where private was not correctly
6292 implemented like the infamous i386 svr4.0, and systems where the
6293 VM page cache was not coherent with the file system buffer cache
6294 like early versions of FreeBSD and possibly contemporary NetBSD.)
6295 For shared mappings, we should conversely verify that changes get
6296 propagated back to all the places they're supposed to be.
6297
6298 Grep wants private fixed already mapped.
6299 The main things grep needs to know about mmap are:
6300 * does it exist and is it safe to write into the mmap'd area
6301 * how to use it (BSD variants) */
6302
6303#include <fcntl.h>
6304#include <sys/mman.h>
6305
6306#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6307char *malloc ();
6308#endif
6309
6310/* This mess was copied from the GNU getpagesize.h. */
6311#ifndef HAVE_GETPAGESIZE
6312# ifdef _SC_PAGESIZE
6313# define getpagesize() sysconf(_SC_PAGESIZE)
6314# else /* no _SC_PAGESIZE */
6315# ifdef HAVE_SYS_PARAM_H
6316# include <sys/param.h>
6317# ifdef EXEC_PAGESIZE
6318# define getpagesize() EXEC_PAGESIZE
6319# else /* no EXEC_PAGESIZE */
6320# ifdef NBPG
6321# define getpagesize() NBPG * CLSIZE
6322# ifndef CLSIZE
6323# define CLSIZE 1
6324# endif /* no CLSIZE */
6325# else /* no NBPG */
6326# ifdef NBPC
6327# define getpagesize() NBPC
6328# else /* no NBPC */
6329# ifdef PAGESIZE
6330# define getpagesize() PAGESIZE
6331# endif /* PAGESIZE */
6332# endif /* no NBPC */
6333# endif /* no NBPG */
6334# endif /* no EXEC_PAGESIZE */
6335# else /* no HAVE_SYS_PARAM_H */
6336# define getpagesize() 8192 /* punt totally */
6337# endif /* no HAVE_SYS_PARAM_H */
6338# endif /* no _SC_PAGESIZE */
6339
6340#endif /* no HAVE_GETPAGESIZE */
6341
6342int
6343main ()
6344{
6345 char *data, *data2, *data3;
6346 const char *cdata2;
6347 int i, pagesize;
6348 int fd, fd2;
6349
6350 pagesize = getpagesize ();
6351
6352 /* First, make a file with some known garbage in it. */
6353 data = (char *) malloc (pagesize);
6354 if (!data)
6355 return 1;
6356 for (i = 0; i < pagesize; ++i)
6357 *(data + i) = rand ();
6358 umask (0);
6359 fd = creat ("conftest.mmap", 0600);
6360 if (fd < 0)
6361 return 2;
6362 if (write (fd, data, pagesize) != pagesize)
6363 return 3;
6364 close (fd);
6365
6366 /* Next, check that the tail of a page is zero-filled. File must have
6367 non-zero length, otherwise we risk SIGBUS for entire page. */
6368 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6369 if (fd2 < 0)
6370 return 4;
6371 cdata2 = "";
6372 if (write (fd2, cdata2, 1) != 1)
6373 return 5;
6374 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6375 if (data2 == MAP_FAILED)
6376 return 6;
6377 for (i = 0; i < pagesize; ++i)
6378 if (*(data2 + i))
6379 return 7;
6380 close (fd2);
6381 if (munmap (data2, pagesize))
6382 return 8;
6383
6384 /* Next, try to mmap the file at a fixed address which already has
6385 something else allocated at it. If we can, also make sure that
6386 we see the same garbage. */
6387 fd = open ("conftest.mmap", O_RDWR);
6388 if (fd < 0)
6389 return 9;
6390 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6391 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6392 return 10;
6393 for (i = 0; i < pagesize; ++i)
6394 if (*(data + i) != *(data2 + i))
6395 return 11;
6396
6397 /* Finally, make sure that changes to the mapped area do not
6398 percolate back to the file as seen by read(). (This is a bug on
6399 some variants of i386 svr4.0.) */
6400 for (i = 0; i < pagesize; ++i)
6401 *(data2 + i) = *(data2 + i) + 1;
6402 data3 = (char *) malloc (pagesize);
6403 if (!data3)
6404 return 12;
6405 if (read (fd, data3, pagesize) != pagesize)
6406 return 13;
6407 for (i = 0; i < pagesize; ++i)
6408 if (*(data + i) != *(data3 + i))
6409 return 14;
6410 close (fd);
6411 return 0;
6412}
6413_ACEOF
6414if ac_fn_c_try_run "$LINENO"; then :
6415 ac_cv_func_mmap_fixed_mapped=yes
6416else
6417 ac_cv_func_mmap_fixed_mapped=no
6418fi
6419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6420 conftest.$ac_objext conftest.beam conftest.$ac_ext
6421fi
6422
6423fi
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6425$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6426if test $ac_cv_func_mmap_fixed_mapped = yes; then
6427
6428$as_echo "#define HAVE_MMAP 1" >>confdefs.h
6429
6430fi
6431rm -f conftest.mmap conftest.txt
6432
6433for ac_header in stdlib.h
6434do :
6435 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6436if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6437 cat >>confdefs.h <<_ACEOF
6438#define HAVE_STDLIB_H 1
6439_ACEOF
6440
6441fi
6442
6443done
6444
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6446$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6447if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
6449else
6450 if test "$cross_compiling" = yes; then :
6451 ac_cv_func_realloc_0_nonnull=no
6452else
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454/* end confdefs.h. */
6455#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6456# include <stdlib.h>
6457#else
6458char *realloc ();
6459#endif
6460
6461int
6462main ()
6463{
6464return ! realloc (0, 0);
6465 ;
6466 return 0;
6467}
6468_ACEOF
6469if ac_fn_c_try_run "$LINENO"; then :
6470 ac_cv_func_realloc_0_nonnull=yes
6471else
6472 ac_cv_func_realloc_0_nonnull=no
6473fi
6474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6475 conftest.$ac_objext conftest.beam conftest.$ac_ext
6476fi
6477
6478fi
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6480$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6481if test $ac_cv_func_realloc_0_nonnull = yes; then :
6482
6483$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6484
6485else
6486 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6487
6488 case " $LIBOBJS " in
6489 *" realloc.$ac_objext "* ) ;;
6490 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6491 ;;
6492esac
6493
6494
6495$as_echo "#define realloc rpl_realloc" >>confdefs.h
6496
6497fi
6498
6499
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6501$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6502if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6503 $as_echo_n "(cached) " >&6
6504else
6505 if test "$cross_compiling" = yes; then :
6506 ac_cv_func_stat_empty_string_bug=yes
6507else
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509/* end confdefs.h. */
6510$ac_includes_default
6511int
6512main ()
6513{
6514struct stat sbuf;
6515 return stat ("", &sbuf) == 0;
6516 ;
6517 return 0;
6518}
6519_ACEOF
6520if ac_fn_c_try_run "$LINENO"; then :
6521 ac_cv_func_stat_empty_string_bug=no
6522else
6523 ac_cv_func_stat_empty_string_bug=yes
6524fi
6525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6526 conftest.$ac_objext conftest.beam conftest.$ac_ext
6527fi
6528
6529fi
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6531$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6532if test $ac_cv_func_stat_empty_string_bug = yes; then
6533 case " $LIBOBJS " in
6534 *" stat.$ac_objext "* ) ;;
6535 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6536 ;;
6537esac
6538
6539
6540cat >>confdefs.h <<_ACEOF
6541#define HAVE_STAT_EMPTY_STRING_BUG 1
6542_ACEOF
6543
6544fi
6545
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6547$as_echo_n "checking for working strtod... " >&6; }
6548if test "${ac_cv_func_strtod+set}" = set; then :
6549 $as_echo_n "(cached) " >&6
6550else
6551 if test "$cross_compiling" = yes; then :
6552 ac_cv_func_strtod=no
6553else
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555/* end confdefs.h. */
6556
6557$ac_includes_default
6558#ifndef strtod
6559double strtod ();
6560#endif
6561int
6562main()
6563{
6564 {
6565 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6566 char *string = " +69";
6567 char *term;
6568 double value;
6569 value = strtod (string, &term);
6570 if (value != 69 || term != (string + 4))
6571 return 1;
6572 }
6573
6574 {
6575 /* Under Solaris 2.4, strtod returns the wrong value for the
6576 terminating character under some conditions. */
6577 char *string = "NaN";
6578 char *term;
6579 strtod (string, &term);
6580 if (term != string && *(term - 1) == 0)
6581 return 1;
6582 }
6583 return 0;
6584}
6585
6586_ACEOF
6587if ac_fn_c_try_run "$LINENO"; then :
6588 ac_cv_func_strtod=yes
6589else
6590 ac_cv_func_strtod=no
6591fi
6592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6593 conftest.$ac_objext conftest.beam conftest.$ac_ext
6594fi
6595
6596fi
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6598$as_echo "$ac_cv_func_strtod" >&6; }
6599if test $ac_cv_func_strtod = no; then
6600 case " $LIBOBJS " in
6601 *" strtod.$ac_objext "* ) ;;
6602 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6603 ;;
6604esac
6605
6606ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6607if test "x$ac_cv_func_pow" = x""yes; then :
6608
6609fi
6610
6611if test $ac_cv_func_pow = no; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6613$as_echo_n "checking for pow in -lm... " >&6; }
6614if test "${ac_cv_lib_m_pow+set}" = set; then :
6615 $as_echo_n "(cached) " >&6
6616else
6617 ac_check_lib_save_LIBS=$LIBS
6618LIBS="-lm $LIBS"
6619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h. */
6621
6622/* Override any GCC internal prototype to avoid an error.
6623 Use char because int might match the return type of a GCC
6624 builtin and then its argument prototype would still apply. */
6625#ifdef __cplusplus
6626extern "C"
6627#endif
6628char pow ();
6629int
6630main ()
6631{
6632return pow ();
6633 ;
6634 return 0;
6635}
6636_ACEOF
6637if ac_fn_c_try_link "$LINENO"; then :
6638 ac_cv_lib_m_pow=yes
6639else
6640 ac_cv_lib_m_pow=no
6641fi
6642rm -f core conftest.err conftest.$ac_objext \
6643 conftest$ac_exeext conftest.$ac_ext
6644LIBS=$ac_check_lib_save_LIBS
6645fi
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6647$as_echo "$ac_cv_lib_m_pow" >&6; }
6648if test "x$ac_cv_lib_m_pow" = x""yes; then :
6649 POW_LIB=-lm
6650else
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6652$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6653fi
6654
6655fi
6656
6657fi
6658
6659for ac_func in vprintf
6660do :
6661 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6662if test "x$ac_cv_func_vprintf" = x""yes; then :
6663 cat >>confdefs.h <<_ACEOF
6664#define HAVE_VPRINTF 1
6665_ACEOF
6666
6667ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6668if test "x$ac_cv_func__doprnt" = x""yes; then :
6669
6670$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6671
6672fi
6673
6674fi
6675done
6676
6677
6678
6679################################################################################
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6681$as_echo_n "checking whether to use static linking... " >&6; }
6682# Check whether --enable-static_link was given.
6683if test "${enable_static_link+set}" = set; then :
6684 enableval=$enable_static_link; STATIC_LINK=$enableval
6685else
6686 STATIC_LINK=no
6687fi
6688
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6690$as_echo "$STATIC_LINK" >&6; }
6691
6692################################################################################
6693
6694
6695################################################################################
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6697$as_echo_n "checking file owner... " >&6; }
6698
6699# Check whether --with-user was given.
6700if test "${with_user+set}" = set; then :
6701 withval=$with_user; OWNER=$withval
6702fi
6703
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6705$as_echo "$OWNER" >&6; }
6706
6707if test x$OWNER != x; then
6708 INSTALL="$INSTALL -o $OWNER"
6709fi
6710
6711################################################################################
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6713$as_echo_n "checking group owner... " >&6; }
6714
6715# Check whether --with-group was given.
6716if test "${with_group+set}" = set; then :
6717 withval=$with_group; GROUP=$withval
6718fi
6719
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6721$as_echo "$GROUP" >&6; }
6722
6723if test x$GROUP != x; then
6724 INSTALL="$INSTALL -g $GROUP"
6725fi
6726
6727################################################################################
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6729$as_echo_n "checking device node uid... " >&6; }
6730
6731
6732# Check whether --with-device-uid was given.
6733if test "${with_device_uid+set}" = set; then :
6734 withval=$with_device_uid; DM_DEVICE_UID=$withval
6735else
6736 DM_DEVICE_UID=0
6737fi
6738
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6740$as_echo "$DM_DEVICE_UID" >&6; }
6741
6742################################################################################
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6744$as_echo_n "checking device node gid... " >&6; }
6745
6746
6747# Check whether --with-device-gid was given.
6748if test "${with_device_gid+set}" = set; then :
6749 withval=$with_device_gid; DM_DEVICE_GID=$withval
6750else
6751 DM_DEVICE_GID=0
6752fi
6753
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6755$as_echo "$DM_DEVICE_GID" >&6; }
6756
6757################################################################################
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6759$as_echo_n "checking device node mode... " >&6; }
6760
6761
6762# Check whether --with-device-mode was given.
6763if test "${with_device_mode+set}" = set; then :
6764 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6765else
6766 DM_DEVICE_MODE=0600
6767fi
6768
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6770$as_echo "$DM_DEVICE_MODE" >&6; }
6771
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6773$as_echo_n "checking when to create device nodes... " >&6; }
6774
6775# Check whether --with-device-nodes-on was given.
6776if test "${with_device_nodes_on+set}" = set; then :
6777 withval=$with_device_nodes_on; ADD_NODE=$withval
6778else
6779 ADD_NODE=resume
6780fi
6781
6782case "$ADD_NODE" in
6783 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6784 create) add_on=DM_ADD_NODE_ON_CREATE;;
6785 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6786esac
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6788$as_echo "on $ADD_NODE" >&6; }
6789
6790cat >>confdefs.h <<_ACEOF
6791#define DEFAULT_DM_ADD_NODE $add_on
6792_ACEOF
6793
6794
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5
6796$as_echo_n "checking default name mangling... " >&6; }
6797
6798# Check whether --with-default-name-mangling was given.
6799if test "${with_default_name_mangling+set}" = set; then :
6800 withval=$with_default_name_mangling; MANGLING=$withval
6801else
6802 MANGLING=auto
6803fi
6804
6805case "$MANGLING" in
6806 auto) mangling=DM_STRING_MANGLING_AUTO;;
6807 disabled) mangling=DM_STRING_MANGLING_NONE;;
6808 hex) mangling=DM_STRING_MANGLING_HEX;;
6809 *) as_fn_error $? "--with-default-name-mangling parameter invalid" "$LINENO" 5;;
6810esac
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5
6812$as_echo "$MANGLING" >&6; }
6813
6814cat >>confdefs.h <<_ACEOF
6815#define DEFAULT_DM_NAME_MANGLING $mangling
6816_ACEOF
6817
6818
6819################################################################################
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6821$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6822# Check whether --enable-lvm1_fallback was given.
6823if test "${enable_lvm1_fallback+set}" = set; then :
6824 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6825else
6826 LVM1_FALLBACK=no
6827fi
6828
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6830$as_echo "$LVM1_FALLBACK" >&6; }
6831
6832if test x$LVM1_FALLBACK = xyes; then
6833
6834$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
6835
6836fi
6837
6838################################################################################
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6840$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6841
6842# Check whether --with-lvm1 was given.
6843if test "${with_lvm1+set}" = set; then :
6844 withval=$with_lvm1; LVM1=$withval
6845else
6846 LVM1=internal
6847fi
6848
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6850$as_echo "$LVM1" >&6; }
6851
6852if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6853 then as_fn_error $? "--with-lvm1 parameter invalid
6854" "$LINENO" 5
6855fi;
6856
6857if test x$LVM1 = xinternal; then
6858
6859$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6860
6861fi
6862
6863################################################################################
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6865$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6866
6867# Check whether --with-pool was given.
6868if test "${with_pool+set}" = set; then :
6869 withval=$with_pool; POOL=$withval
6870else
6871 POOL=internal
6872fi
6873
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6875$as_echo "$POOL" >&6; }
6876
6877if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6878 then as_fn_error $? "--with-pool parameter invalid
6879" "$LINENO" 5
6880fi;
6881
6882if test x$POOL = xinternal; then
6883
6884$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
6885
6886fi
6887
6888################################################################################
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6890$as_echo_n "checking whether to include support for cluster locking... " >&6; }
6891
6892# Check whether --with-cluster was given.
6893if test "${with_cluster+set}" = set; then :
6894 withval=$with_cluster; CLUSTER=$withval
6895fi
6896
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6898$as_echo "$CLUSTER" >&6; }
6899
6900if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6901 then as_fn_error $? "--with-cluster parameter invalid
6902" "$LINENO" 5
6903fi;
6904
6905if test x$CLUSTER = xinternal; then
6906
6907$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
6908
6909fi
6910
6911################################################################################
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6913$as_echo_n "checking whether to include snapshots... " >&6; }
6914
6915# Check whether --with-snapshots was given.
6916if test "${with_snapshots+set}" = set; then :
6917 withval=$with_snapshots; SNAPSHOTS=$withval
6918else
6919 SNAPSHOTS=internal
6920fi
6921
6922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6923$as_echo "$SNAPSHOTS" >&6; }
6924
6925if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6926 then as_fn_error $? "--with-snapshots parameter invalid
6927" "$LINENO" 5
6928fi;
6929
6930if test x$SNAPSHOTS = xinternal; then
6931
6932$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6933
6934fi
6935
6936################################################################################
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6938$as_echo_n "checking whether to include mirrors... " >&6; }
6939
6940# Check whether --with-mirrors was given.
6941if test "${with_mirrors+set}" = set; then :
6942 withval=$with_mirrors; MIRRORS=$withval
6943else
6944 MIRRORS=internal
6945fi
6946
6947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6948$as_echo "$MIRRORS" >&6; }
6949
6950if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6951 then as_fn_error $? "--with-mirrors parameter invalid
6952" "$LINENO" 5
6953fi;
6954
6955if test x$MIRRORS = xinternal; then
6956
6957$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6958
6959fi
6960
6961################################################################################
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6963$as_echo_n "checking whether to include raid... " >&6; }
6964
6965# Check whether --with-raid was given.
6966if test "${with_raid+set}" = set; then :
6967 withval=$with_raid; RAID=$withval
6968else
6969 RAID=internal
6970fi
6971
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6973$as_echo "$RAID" >&6; }
6974
6975if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6976 then as_fn_error $? "--with-raid parameter invalid
6977" "$LINENO" 5
6978fi;
6979
6980if test x$RAID = xinternal; then
6981
6982$as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6983
6984fi
6985
6986################################################################################
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6988$as_echo_n "checking whether to include replicators... " >&6; }
6989
6990# Check whether --with-replicators was given.
6991if test "${with_replicators+set}" = set; then :
6992 withval=$with_replicators; REPLICATORS=$withval
6993else
6994 REPLICATORS=none
6995fi
6996
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6998$as_echo "$REPLICATORS" >&6; }
6999
7000case "$REPLICATORS" in
7001 none|shared) ;;
7002 internal)
7003$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
7004 ;;
7005 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
7006esac
7007
7008################################################################################
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
7010$as_echo_n "checking whether to include thin provisioning... " >&6; }
7011
7012# Check whether --with-thin was given.
7013if test "${with_thin+set}" = set; then :
7014 withval=$with_thin; THIN=$withval
7015else
7016 THIN=none
7017fi
7018
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
7020$as_echo "$THIN" >&6; }
7021
7022case "$THIN" in
7023 none|shared) ;;
7024 internal)
7025$as_echo "#define THIN_INTERNAL 1" >>confdefs.h
7026 ;;
7027 *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
7028esac
7029
7030case "$THIN" in
7031 internal|shared)
7032
7033# Check whether --with-thin-check was given.
7034if test "${with_thin_check+set}" = set; then :
7035 withval=$with_thin_check; THIN_CHECK_CMD=$withval
7036else
7037 THIN_CHECK_CMD="autodetect"
7038fi
7039
7040 # Empty means a config way to ignore thin checking
7041 if test "$THIN_CHECK_CMD" = "autodetect"; then
7042 # Extract the first word of "thin_check", so it can be a program name with args.
7043set dummy thin_check; ac_word=$2
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045$as_echo_n "checking for $ac_word... " >&6; }
7046if test "${ac_cv_path_THIN_CHECK_CMD+set}" = set; then :
7047 $as_echo_n "(cached) " >&6
7048else
7049 case $THIN_CHECK_CMD in
7050 [\\/]* | ?:[\\/]*)
7051 ac_cv_path_THIN_CHECK_CMD="$THIN_CHECK_CMD" # Let the user override the test with a path.
7052 ;;
7053 *)
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_path_THIN_CHECK_CMD="$as_dir/$ac_word$ac_exec_ext"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7064 fi
7065done
7066 done
7067IFS=$as_save_IFS
7068
7069 ;;
7070esac
7071fi
7072THIN_CHECK_CMD=$ac_cv_path_THIN_CHECK_CMD
7073if test -n "$THIN_CHECK_CMD"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_CMD" >&5
7075$as_echo "$THIN_CHECK_CMD" >&6; }
7076else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078$as_echo "no" >&6; }
7079fi
7080
7081
7082 test -z "$THIN_CHECK_CMD" && as_fn_error $? "thin_check not found in path $PATH" "$LINENO" 5
7083 fi
7084 ;;
7085esac
7086
7087
7088cat >>confdefs.h <<_ACEOF
7089#define THIN_CHECK_CMD "$THIN_CHECK_CMD"
7090_ACEOF
7091
7092
7093
7094################################################################################
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
7096$as_echo_n "checking whether to enable readline... " >&6; }
7097# Check whether --enable-readline was given.
7098if test "${enable_readline+set}" = set; then :
7099 enableval=$enable_readline; READLINE=$enableval
7100else
7101 READLINE=maybe
7102fi
7103
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
7105$as_echo "$READLINE" >&6; }
7106
7107################################################################################
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
7109$as_echo_n "checking whether to enable realtime support... " >&6; }
7110# Check whether --enable-realtime was given.
7111if test "${enable_realtime+set}" = set; then :
7112 enableval=$enable_realtime; REALTIME=$enableval
7113fi
7114
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
7116$as_echo "$REALTIME" >&6; }
7117
7118################################################################################
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
7120$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
7121# Check whether --enable-ocf was given.
7122if test "${enable_ocf+set}" = set; then :
7123 enableval=$enable_ocf; OCF=$enableval
7124else
7125 OCF=no
7126fi
7127
7128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
7129$as_echo "$OCF" >&6; }
7130
7131# Check whether --with-ocfdir was given.
7132if test "${with_ocfdir+set}" = set; then :
7133 withval=$with_ocfdir; OCFDIR=$withval
7134else
7135 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
7136fi
7137
7138
7139################################################################################
7140pkg_config_init() {
7141
7142
7143
7144
7145
7146
7147if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7148 if test -n "$ac_tool_prefix"; then
7149 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7150set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152$as_echo_n "checking for $ac_word... " >&6; }
7153if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7154 $as_echo_n "(cached) " >&6
7155else
7156 case $PKG_CONFIG in
7157 [\\/]* | ?:[\\/]*)
7158 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7159 ;;
7160 *)
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162for as_dir in $PATH
7163do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7168 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 break 2
7171 fi
7172done
7173 done
7174IFS=$as_save_IFS
7175
7176 ;;
7177esac
7178fi
7179PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7180if test -n "$PKG_CONFIG"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7182$as_echo "$PKG_CONFIG" >&6; }
7183else
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185$as_echo "no" >&6; }
7186fi
7187
7188
7189fi
7190if test -z "$ac_cv_path_PKG_CONFIG"; then
7191 ac_pt_PKG_CONFIG=$PKG_CONFIG
7192 # Extract the first word of "pkg-config", so it can be a program name with args.
7193set dummy pkg-config; ac_word=$2
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195$as_echo_n "checking for $ac_word... " >&6; }
7196if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
7198else
7199 case $ac_pt_PKG_CONFIG in
7200 [\\/]* | ?:[\\/]*)
7201 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7202 ;;
7203 *)
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7214 fi
7215done
7216 done
7217IFS=$as_save_IFS
7218
7219 ;;
7220esac
7221fi
7222ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7223if test -n "$ac_pt_PKG_CONFIG"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7225$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7226else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228$as_echo "no" >&6; }
7229fi
7230
7231 if test "x$ac_pt_PKG_CONFIG" = x; then
7232 PKG_CONFIG=""
7233 else
7234 case $cross_compiling:$ac_tool_warned in
7235yes:)
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7238ac_tool_warned=yes ;;
7239esac
7240 PKG_CONFIG=$ac_pt_PKG_CONFIG
7241 fi
7242else
7243 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7244fi
7245
7246fi
7247if test -n "$PKG_CONFIG"; then
7248 _pkg_min_version=0.9.0
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7250$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7251 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7253$as_echo "yes" >&6; }
7254 else
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256$as_echo "no" >&6; }
7257 PKG_CONFIG=""
7258 fi
7259fi
7260
7261pkg_failed=no
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7263$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
7264
7265if test -n "$PKGCONFIGINIT_CFLAGS"; then
7266 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7267 elif test -n "$PKG_CONFIG"; then
7268 if test -n "$PKG_CONFIG" && \
7269 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7270 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7271 ac_status=$?
7272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7273 test $ac_status = 0; }; then
7274 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
7275else
7276 pkg_failed=yes
7277fi
7278 else
7279 pkg_failed=untried
7280fi
7281if test -n "$PKGCONFIGINIT_LIBS"; then
7282 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7283 elif test -n "$PKG_CONFIG"; then
7284 if test -n "$PKG_CONFIG" && \
7285 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7286 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7287 ac_status=$?
7288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7289 test $ac_status = 0; }; then
7290 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
7291else
7292 pkg_failed=yes
7293fi
7294 else
7295 pkg_failed=untried
7296fi
7297
7298
7299
7300if test $pkg_failed = yes; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302$as_echo "no" >&6; }
7303
7304if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7305 _pkg_short_errors_supported=yes
7306else
7307 _pkg_short_errors_supported=no
7308fi
7309 if test $_pkg_short_errors_supported = yes; then
7310 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7311 else
7312 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7313 fi
7314 # Put the nasty error message in config.log where it belongs
7315 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7316
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7318$as_echo "pkg-config initialized" >&6; }
7319elif test $pkg_failed = untried; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321$as_echo "no" >&6; }
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7323$as_echo "pkg-config initialized" >&6; }
7324else
7325 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7326 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7328$as_echo "yes" >&6; }
7329
7330fi
7331 PKGCONFIG_INIT=1
7332}
7333
7334################################################################################
7335
7336
7337# Check whether --with-default-pid-dir was given.
7338if test "${with_default_pid_dir+set}" = set; then :
7339 withval=$with_default_pid_dir; DEFAULT_PID_DIR="$withval"
7340else
7341 DEFAULT_PID_DIR="/var/run"
7342fi
7343
7344
7345cat >>confdefs.h <<_ACEOF
7346#define DEFAULT_PID_DIR "$DEFAULT_PID_DIR"
7347_ACEOF
7348
7349
7350
7351
7352# Check whether --with-default-dm-run-dir was given.
7353if test "${with_default_dm_run_dir+set}" = set; then :
7354 withval=$with_default_dm_run_dir; DEFAULT_DM_RUN_DIR="$withval"
7355else
7356 DEFAULT_DM_RUN_DIR="/var/run"
7357fi
7358
7359
7360cat >>confdefs.h <<_ACEOF
7361#define DEFAULT_DM_RUN_DIR "$DEFAULT_DM_RUN_DIR"
7362_ACEOF
7363
7364
7365
7366
7367# Check whether --with-default-run-dir was given.
7368if test "${with_default_run_dir+set}" = set; then :
7369 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
7370else
7371 DEFAULT_RUN_DIR="/var/run/lvm"
7372fi
7373
7374
7375cat >>confdefs.h <<_ACEOF
7376#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
7377_ACEOF
7378
7379
7380################################################################################
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7382$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
7383
7384# Check whether --with-clvmd was given.
7385if test "${with_clvmd+set}" = set; then :
7386 withval=$with_clvmd; CLVMD=$withval
7387else
7388 CLVMD=none
7389fi
7390
7391if test x$CLVMD = xyes; then
7392 CLVMD=all
7393fi
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7395$as_echo "$CLVMD" >&6; }
7396
7397if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7398 CLUSTER=internal
7399fi
7400
7401if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7402 pkg_config_init
7403fi
7404
7405CLVMD_CMANAGERS=""
7406CLVMD_NEEDS_QDISKD=no
7407
7408if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7409 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
7410fi
7411if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7412 BUILDCMAN=yes
7413 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7414 CLVMD_NEEDS_QDISKD=yes
7415fi
7416if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7417 BUILDCOROSYNC=yes
7418 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7419fi
7420if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7421 BUILDOPENAIS=yes
7422 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7423fi
7424if test x$CLVMD_NEEDS_QDISKD != xno; then
7425 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
7426fi
7427
7428soft_bailout() {
7429 NOTFOUND=1
7430}
7431
7432hard_bailout() {
7433 as_fn_error $? "bailing out" "$LINENO" 5
7434}
7435
7436if test x$CLVMD = xall; then
7437 bailout=soft_bailout
7438 BUILDCMAN=yes
7439 BUILDCOROSYNC=yes
7440 BUILDOPENAIS=yes
7441else
7442 bailout=hard_bailout
7443fi
7444
7445check_lib_no_libs() {
7446 lib_no_libs_arg1=$1
7447 shift
7448 lib_no_libs_arg2=$1
7449 shift
7450 lib_no_libs_args=$@
7451 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7453$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7454if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7455 $as_echo_n "(cached) " >&6
7456else
7457 ac_check_lib_save_LIBS=$LIBS
7458LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h. */
7461
7462/* Override any GCC internal prototype to avoid an error.
7463 Use char because int might match the return type of a GCC
7464 builtin and then its argument prototype would still apply. */
7465#ifdef __cplusplus
7466extern "C"
7467#endif
7468char $lib_no_libs_arg2 ();
7469int
7470main ()
7471{
7472return $lib_no_libs_arg2 ();
7473 ;
7474 return 0;
7475}
7476_ACEOF
7477if ac_fn_c_try_link "$LINENO"; then :
7478 eval "$as_ac_Lib=yes"
7479else
7480 eval "$as_ac_Lib=no"
7481fi
7482rm -f core conftest.err conftest.$ac_objext \
7483 conftest$ac_exeext conftest.$ac_ext
7484LIBS=$ac_check_lib_save_LIBS
7485fi
7486eval ac_res=\$$as_ac_Lib
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7488$as_echo "$ac_res" >&6; }
7489if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7490 cat >>confdefs.h <<_ACEOF
7491#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7492_ACEOF
7493
7494 LIBS="-l$lib_no_libs_arg1 $LIBS"
7495
7496else
7497 $bailout
7498fi
7499
7500 LIBS=$ac_check_lib_save_LIBS
7501}
7502
7503if test x$BUILDCMAN = xyes; then
7504
7505pkg_failed=no
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7507$as_echo_n "checking for CMAN... " >&6; }
7508
7509if test -n "$CMAN_CFLAGS"; then
7510 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7511 elif test -n "$PKG_CONFIG"; then
7512 if test -n "$PKG_CONFIG" && \
7513 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7514 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7515 ac_status=$?
7516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7517 test $ac_status = 0; }; then
7518 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7519else
7520 pkg_failed=yes
7521fi
7522 else
7523 pkg_failed=untried
7524fi
7525if test -n "$CMAN_LIBS"; then
7526 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7527 elif test -n "$PKG_CONFIG"; then
7528 if test -n "$PKG_CONFIG" && \
7529 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7530 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7531 ac_status=$?
7532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7533 test $ac_status = 0; }; then
7534 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
7535else
7536 pkg_failed=yes
7537fi
7538 else
7539 pkg_failed=untried
7540fi
7541
7542
7543
7544if test $pkg_failed = yes; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546$as_echo "no" >&6; }
7547
7548if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7549 _pkg_short_errors_supported=yes
7550else
7551 _pkg_short_errors_supported=no
7552fi
7553 if test $_pkg_short_errors_supported = yes; then
7554 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7555 else
7556 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7557 fi
7558 # Put the nasty error message in config.log where it belongs
7559 echo "$CMAN_PKG_ERRORS" >&5
7560
7561 NOTFOUND=0
7562 for ac_header in libcman.h
7563do :
7564 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7565if test "x$ac_cv_header_libcman_h" = x""yes; then :
7566 cat >>confdefs.h <<_ACEOF
7567#define HAVE_LIBCMAN_H 1
7568_ACEOF
7569
7570else
7571 $bailout
7572fi
7573
7574done
7575
7576 check_lib_no_libs cman cman_init
7577 if test $NOTFOUND = 0; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7579$as_echo "no pkg for libcman, using -lcman" >&6; }
7580 CMAN_LIBS="-lcman"
7581 HAVE_CMAN=yes
7582 fi
7583elif test $pkg_failed = untried; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585$as_echo "no" >&6; }
7586 NOTFOUND=0
7587 for ac_header in libcman.h
7588do :
7589 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7590if test "x$ac_cv_header_libcman_h" = x""yes; then :
7591 cat >>confdefs.h <<_ACEOF
7592#define HAVE_LIBCMAN_H 1
7593_ACEOF
7594
7595else
7596 $bailout
7597fi
7598
7599done
7600
7601 check_lib_no_libs cman cman_init
7602 if test $NOTFOUND = 0; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7604$as_echo "no pkg for libcman, using -lcman" >&6; }
7605 CMAN_LIBS="-lcman"
7606 HAVE_CMAN=yes
7607 fi
7608else
7609 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7610 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7612$as_echo "yes" >&6; }
7613 HAVE_CMAN=yes
7614fi
7615 CHECKCONFDB=yes
7616 CHECKDLM=yes
7617fi
7618
7619if test x$BUILDCOROSYNC = xyes || \
7620 test x$BUILDOPENAIS = xyes; then
7621
7622pkg_failed=no
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7624$as_echo_n "checking for COROSYNC... " >&6; }
7625
7626if test -n "$COROSYNC_CFLAGS"; then
7627 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7628 elif test -n "$PKG_CONFIG"; then
7629 if test -n "$PKG_CONFIG" && \
7630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7631 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7632 ac_status=$?
7633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7634 test $ac_status = 0; }; then
7635 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
7636else
7637 pkg_failed=yes
7638fi
7639 else
7640 pkg_failed=untried
7641fi
7642if test -n "$COROSYNC_LIBS"; then
7643 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7644 elif test -n "$PKG_CONFIG"; then
7645 if test -n "$PKG_CONFIG" && \
7646 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7647 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7648 ac_status=$?
7649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7650 test $ac_status = 0; }; then
7651 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
7652else
7653 pkg_failed=yes
7654fi
7655 else
7656 pkg_failed=untried
7657fi
7658
7659
7660
7661if test $pkg_failed = yes; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663$as_echo "no" >&6; }
7664
7665if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7666 _pkg_short_errors_supported=yes
7667else
7668 _pkg_short_errors_supported=no
7669fi
7670 if test $_pkg_short_errors_supported = yes; then
7671 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7672 else
7673 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7674 fi
7675 # Put the nasty error message in config.log where it belongs
7676 echo "$COROSYNC_PKG_ERRORS" >&5
7677
7678 $bailout
7679elif test $pkg_failed = untried; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681$as_echo "no" >&6; }
7682 $bailout
7683else
7684 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7685 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7687$as_echo "yes" >&6; }
7688 HAVE_COROSYNC=yes
7689fi
7690 CHECKCONFDB=yes
7691 CHECKCMAP=yes
7692fi
7693
7694if test x$BUILDCOROSYNC = xyes; then
7695
7696pkg_failed=no
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7698$as_echo_n "checking for QUORUM... " >&6; }
7699
7700if test -n "$QUORUM_CFLAGS"; then
7701 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7702 elif test -n "$PKG_CONFIG"; then
7703 if test -n "$PKG_CONFIG" && \
7704 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7705 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7706 ac_status=$?
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; }; then
7709 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
7710else
7711 pkg_failed=yes
7712fi
7713 else
7714 pkg_failed=untried
7715fi
7716if test -n "$QUORUM_LIBS"; then
7717 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7718 elif test -n "$PKG_CONFIG"; then
7719 if test -n "$PKG_CONFIG" && \
7720 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7721 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7722 ac_status=$?
7723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7724 test $ac_status = 0; }; then
7725 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
7726else
7727 pkg_failed=yes
7728fi
7729 else
7730 pkg_failed=untried
7731fi
7732
7733
7734
7735if test $pkg_failed = yes; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737$as_echo "no" >&6; }
7738
7739if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7740 _pkg_short_errors_supported=yes
7741else
7742 _pkg_short_errors_supported=no
7743fi
7744 if test $_pkg_short_errors_supported = yes; then
7745 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7746 else
7747 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7748 fi
7749 # Put the nasty error message in config.log where it belongs
7750 echo "$QUORUM_PKG_ERRORS" >&5
7751
7752 $bailout
7753elif test $pkg_failed = untried; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755$as_echo "no" >&6; }
7756 $bailout
7757else
7758 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7759 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7761$as_echo "yes" >&6; }
7762 HAVE_QUORUM=yes
7763fi
7764 CHECKCPG=yes
7765 CHECKDLM=yes
7766fi
7767
7768if test x$BUILDOPENAIS = xyes; then
7769
7770pkg_failed=no
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7772$as_echo_n "checking for SALCK... " >&6; }
7773
7774if test -n "$SALCK_CFLAGS"; then
7775 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7776 elif test -n "$PKG_CONFIG"; then
7777 if test -n "$PKG_CONFIG" && \
7778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7779 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7780 ac_status=$?
7781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7782 test $ac_status = 0; }; then
7783 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7784else
7785 pkg_failed=yes
7786fi
7787 else
7788 pkg_failed=untried
7789fi
7790if test -n "$SALCK_LIBS"; then
7791 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7792 elif test -n "$PKG_CONFIG"; then
7793 if test -n "$PKG_CONFIG" && \
7794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7795 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7796 ac_status=$?
7797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7798 test $ac_status = 0; }; then
7799 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
7800else
7801 pkg_failed=yes
7802fi
7803 else
7804 pkg_failed=untried
7805fi
7806
7807
7808
7809if test $pkg_failed = yes; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811$as_echo "no" >&6; }
7812
7813if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7814 _pkg_short_errors_supported=yes
7815else
7816 _pkg_short_errors_supported=no
7817fi
7818 if test $_pkg_short_errors_supported = yes; then
7819 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7820 else
7821 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7822 fi
7823 # Put the nasty error message in config.log where it belongs
7824 echo "$SALCK_PKG_ERRORS" >&5
7825
7826 $bailout
7827elif test $pkg_failed = untried; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829$as_echo "no" >&6; }
7830 $bailout
7831else
7832 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7833 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7835$as_echo "yes" >&6; }
7836 HAVE_SALCK=yes
7837fi
7838 CHECKCPG=yes
7839fi
7840
7841
7842
7843if test x$CHECKCONFDB = xyes; then
7844
7845pkg_failed=no
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7847$as_echo_n "checking for CONFDB... " >&6; }
7848
7849if test -n "$CONFDB_CFLAGS"; then
7850 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7851 elif test -n "$PKG_CONFIG"; then
7852 if test -n "$PKG_CONFIG" && \
7853 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7854 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7855 ac_status=$?
7856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7857 test $ac_status = 0; }; then
7858 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
7859else
7860 pkg_failed=yes
7861fi
7862 else
7863 pkg_failed=untried
7864fi
7865if test -n "$CONFDB_LIBS"; then
7866 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7867 elif test -n "$PKG_CONFIG"; then
7868 if test -n "$PKG_CONFIG" && \
7869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7870 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7871 ac_status=$?
7872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873 test $ac_status = 0; }; then
7874 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7875else
7876 pkg_failed=yes
7877fi
7878 else
7879 pkg_failed=untried
7880fi
7881
7882
7883
7884if test $pkg_failed = yes; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886$as_echo "no" >&6; }
7887
7888if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7889 _pkg_short_errors_supported=yes
7890else
7891 _pkg_short_errors_supported=no
7892fi
7893 if test $_pkg_short_errors_supported = yes; then
7894 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7895 else
7896 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7897 fi
7898 # Put the nasty error message in config.log where it belongs
7899 echo "$CONFDB_PKG_ERRORS" >&5
7900
7901 HAVE_CONFDB=no
7902elif test $pkg_failed = untried; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904$as_echo "no" >&6; }
7905 HAVE_CONFDB=no
7906else
7907 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7908 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7910$as_echo "yes" >&6; }
7911 HAVE_CONFDB=yes
7912fi
7913
7914 for ac_header in corosync/confdb.h
7915do :
7916 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7917if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
7918 cat >>confdefs.h <<_ACEOF
7919#define HAVE_COROSYNC_CONFDB_H 1
7920_ACEOF
7921 HAVE_CONFDB_H=yes
7922else
7923 HAVE_CONFDB_H=no
7924fi
7925
7926done
7927
7928
7929 if test x$HAVE_CONFDB != xyes && \
7930 test x$HAVE_CONFDB_H = xyes; then
7931 check_lib_no_libs confdb confdb_initialize
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7933$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7934 CONFDB_LIBS="-lconfdb"
7935 HAVE_CONFDB=yes
7936 fi
7937fi
7938
7939
7940if test x$CHECKCMAP = xyes; then
7941
7942pkg_failed=no
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAP" >&5
7944$as_echo_n "checking for CMAP... " >&6; }
7945
7946if test -n "$CMAP_CFLAGS"; then
7947 pkg_cv_CMAP_CFLAGS="$CMAP_CFLAGS"
7948 elif test -n "$PKG_CONFIG"; then
7949 if test -n "$PKG_CONFIG" && \
7950 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7951 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7952 ac_status=$?
7953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7954 test $ac_status = 0; }; then
7955 pkg_cv_CMAP_CFLAGS=`$PKG_CONFIG --cflags "libcmap" 2>/dev/null`
7956else
7957 pkg_failed=yes
7958fi
7959 else
7960 pkg_failed=untried
7961fi
7962if test -n "$CMAP_LIBS"; then
7963 pkg_cv_CMAP_LIBS="$CMAP_LIBS"
7964 elif test -n "$PKG_CONFIG"; then
7965 if test -n "$PKG_CONFIG" && \
7966 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7967 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7968 ac_status=$?
7969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7970 test $ac_status = 0; }; then
7971 pkg_cv_CMAP_LIBS=`$PKG_CONFIG --libs "libcmap" 2>/dev/null`
7972else
7973 pkg_failed=yes
7974fi
7975 else
7976 pkg_failed=untried
7977fi
7978
7979
7980
7981if test $pkg_failed = yes; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983$as_echo "no" >&6; }
7984
7985if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7986 _pkg_short_errors_supported=yes
7987else
7988 _pkg_short_errors_supported=no
7989fi
7990 if test $_pkg_short_errors_supported = yes; then
7991 CMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcmap" 2>&1`
7992 else
7993 CMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcmap" 2>&1`
7994 fi
7995 # Put the nasty error message in config.log where it belongs
7996 echo "$CMAP_PKG_ERRORS" >&5
7997
7998 HAVE_CMAP=no
7999elif test $pkg_failed = untried; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001$as_echo "no" >&6; }
8002 HAVE_CMAP=no
8003else
8004 CMAP_CFLAGS=$pkg_cv_CMAP_CFLAGS
8005 CMAP_LIBS=$pkg_cv_CMAP_LIBS
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8007$as_echo "yes" >&6; }
8008 HAVE_CMAP=yes
8009fi
8010
8011 for ac_header in corosync/cmap.h
8012do :
8013 ac_fn_c_check_header_mongrel "$LINENO" "corosync/cmap.h" "ac_cv_header_corosync_cmap_h" "$ac_includes_default"
8014if test "x$ac_cv_header_corosync_cmap_h" = x""yes; then :
8015 cat >>confdefs.h <<_ACEOF
8016#define HAVE_COROSYNC_CMAP_H 1
8017_ACEOF
8018 HAVE_CMAP_H=yes
8019else
8020 HAVE_CMAP_H=no
8021fi
8022
8023done
8024
8025
8026 if test x$HAVE_CMAP != xyes && \
8027 test x$HAVE_CMAP_H = xyes; then
8028 check_lib_no_libs cmap cmap_initialize
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for cmap, using -lcmap" >&5
8030$as_echo "no pkg for cmap, using -lcmap" >&6; }
8031 CMAP_LIBS="-lcmap"
8032 HAVE_CMAP=yes
8033 fi
8034fi
8035
8036if test x$BUILDCOROSYNC = xyes; then
8037 if test x$HAVE_CMAP != xyes && \
8038 test x$HAVE_CONFDB != xyes && \
8039 test x$CLVMD != xall; then
8040 as_fn_error $? "bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required" "$LINENO" 5
8041 fi
8042fi
8043
8044if test x$CHECKCPG = xyes; then
8045
8046pkg_failed=no
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8048$as_echo_n "checking for CPG... " >&6; }
8049
8050if test -n "$CPG_CFLAGS"; then
8051 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8052 elif test -n "$PKG_CONFIG"; then
8053 if test -n "$PKG_CONFIG" && \
8054 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8055 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8056 ac_status=$?
8057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8058 test $ac_status = 0; }; then
8059 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8060else
8061 pkg_failed=yes
8062fi
8063 else
8064 pkg_failed=untried
8065fi
8066if test -n "$CPG_LIBS"; then
8067 pkg_cv_CPG_LIBS="$CPG_LIBS"
8068 elif test -n "$PKG_CONFIG"; then
8069 if test -n "$PKG_CONFIG" && \
8070 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8071 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8072 ac_status=$?
8073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8074 test $ac_status = 0; }; then
8075 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8076else
8077 pkg_failed=yes
8078fi
8079 else
8080 pkg_failed=untried
8081fi
8082
8083
8084
8085if test $pkg_failed = yes; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087$as_echo "no" >&6; }
8088
8089if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8090 _pkg_short_errors_supported=yes
8091else
8092 _pkg_short_errors_supported=no
8093fi
8094 if test $_pkg_short_errors_supported = yes; then
8095 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8096 else
8097 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8098 fi
8099 # Put the nasty error message in config.log where it belongs
8100 echo "$CPG_PKG_ERRORS" >&5
8101
8102 $bailout
8103elif test $pkg_failed = untried; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105$as_echo "no" >&6; }
8106 $bailout
8107else
8108 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8109 CPG_LIBS=$pkg_cv_CPG_LIBS
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8111$as_echo "yes" >&6; }
8112 HAVE_CPG=yes
8113fi
8114fi
8115
8116if test x$CHECKDLM = xyes; then
8117
8118pkg_failed=no
8119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
8120$as_echo_n "checking for DLM... " >&6; }
8121
8122if test -n "$DLM_CFLAGS"; then
8123 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
8124 elif test -n "$PKG_CONFIG"; then
8125 if test -n "$PKG_CONFIG" && \
8126 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8127 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8128 ac_status=$?
8129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8130 test $ac_status = 0; }; then
8131 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
8132else
8133 pkg_failed=yes
8134fi
8135 else
8136 pkg_failed=untried
8137fi
8138if test -n "$DLM_LIBS"; then
8139 pkg_cv_DLM_LIBS="$DLM_LIBS"
8140 elif test -n "$PKG_CONFIG"; then
8141 if test -n "$PKG_CONFIG" && \
8142 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8143 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8144 ac_status=$?
8145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8146 test $ac_status = 0; }; then
8147 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8148else
8149 pkg_failed=yes
8150fi
8151 else
8152 pkg_failed=untried
8153fi
8154
8155
8156
8157if test $pkg_failed = yes; then
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159$as_echo "no" >&6; }
8160
8161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8162 _pkg_short_errors_supported=yes
8163else
8164 _pkg_short_errors_supported=no
8165fi
8166 if test $_pkg_short_errors_supported = yes; then
8167 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8168 else
8169 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8170 fi
8171 # Put the nasty error message in config.log where it belongs
8172 echo "$DLM_PKG_ERRORS" >&5
8173
8174 NOTFOUND=0
8175 for ac_header in libdlm.h
8176do :
8177 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8178if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8179 cat >>confdefs.h <<_ACEOF
8180#define HAVE_LIBDLM_H 1
8181_ACEOF
8182
8183else
8184 $bailout
8185fi
8186
8187done
8188
8189 check_lib_no_libs dlm dlm_lock -lpthread
8190 if test $NOTFOUND = 0; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8192$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8193 DLM_LIBS="-ldlm -lpthread"
8194 HAVE_DLM=yes
8195 fi
8196elif test $pkg_failed = untried; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198$as_echo "no" >&6; }
8199 NOTFOUND=0
8200 for ac_header in libdlm.h
8201do :
8202 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8203if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8204 cat >>confdefs.h <<_ACEOF
8205#define HAVE_LIBDLM_H 1
8206_ACEOF
8207
8208else
8209 $bailout
8210fi
8211
8212done
8213
8214 check_lib_no_libs dlm dlm_lock -lpthread
8215 if test $NOTFOUND = 0; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8217$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8218 DLM_LIBS="-ldlm -lpthread"
8219 HAVE_DLM=yes
8220 fi
8221else
8222 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8223 DLM_LIBS=$pkg_cv_DLM_LIBS
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8225$as_echo "yes" >&6; }
8226 HAVE_DLM=yes
8227fi
8228fi
8229
8230if test x$CLVMD = xall; then
8231 CLVMD=none
8232 CLVMD_CMANAGERS=""
8233 CLVMD_NEEDS_QDISKD=no
8234 if test x$HAVE_CMAN = xyes && \
8235 test x$HAVE_DLM = xyes; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8237$as_echo "Enabling clvmd cman cluster manager" >&6; }
8238 CLVMD="$CLVMD,cman"
8239 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8240 CLVMD_NEEDS_QDISKD=yes
8241 fi
8242 if test x$HAVE_COROSYNC = xyes && \
8243 test x$HAVE_QUORUM = xyes && \
8244 test x$HAVE_CPG = xyes && \
8245 test x$HAVE_DLM = xyes; then
8246 if test x$HAVE_CONFDB = xyes || test x$HAVE_CMAP = xyes; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8248$as_echo "Enabling clvmd corosync cluster manager" >&6; }
8249 CLVMD="$CLVMD,corosync"
8250 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
8251 fi
8252 fi
8253 if test x$HAVE_COROSYNC = xyes && \
8254 test x$HAVE_CPG = xyes && \
8255 test x$HAVE_SALCK = xyes; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8257$as_echo "Enabling clvmd openais cluster manager" >&6; }
8258 CLVMD="$CLVMD,openais"
8259 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8260 fi
8261 if test x$CLVMD_NEEDS_QDISKD != xno; then
8262 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8263 fi
8264 if test x$CLVMD = xnone; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8266$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8267 fi
8268fi
8269
8270if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
8271 if test x$HAVE_CMAP = xyes; then
8272 CLVMD_CMANAGERS="$CLVMD_CMANAGERS dlm"
8273 fi
8274fi
8275
8276################################################################################
8277if test "x$CLVMD" != xnone; then
8278
8279# Check whether --with-clvmd-pidfile was given.
8280if test "${with_clvmd_pidfile+set}" = set; then :
8281 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
8282else
8283 CLVMD_PIDFILE="$DEFAULT_PID_DIR/clvmd.pid"
8284fi
8285
8286
8287cat >>confdefs.h <<_ACEOF
8288#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
8289_ACEOF
8290
8291fi
8292
8293################################################################################
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8295$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8296# Check whether --enable-cmirrord was given.
8297if test "${enable_cmirrord+set}" = set; then :
8298 enableval=$enable_cmirrord; CMIRRORD=$enableval
8299else
8300 CMIRRORD=no
8301fi
8302
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8304$as_echo "$CMIRRORD" >&6; }
8305
8306BUILD_CMIRRORD=$CMIRRORD
8307
8308################################################################################
8309if test "x$BUILD_CMIRRORD" = xyes; then
8310
8311# Check whether --with-cmirrord-pidfile was given.
8312if test "${with_cmirrord_pidfile+set}" = set; then :
8313 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
8314else
8315 CMIRRORD_PIDFILE="$DEFAULT_PID_DIR/cmirrord.pid"
8316fi
8317
8318
8319cat >>confdefs.h <<_ACEOF
8320#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
8321_ACEOF
8322
8323fi
8324
8325################################################################################
8326if [ "x$BUILD_CMIRRORD" = xyes ]; then
8327 if test x$PKGCONFIG_INIT != x1; then
8328 pkg_config_init
8329 fi
8330
8331
8332$as_echo "#define CMIRROR_HAS_CHECKPOINT 1" >>confdefs.h
8333
8334
8335pkg_failed=no
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8337$as_echo_n "checking for SACKPT... " >&6; }
8338
8339if test -n "$SACKPT_CFLAGS"; then
8340 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8341 elif test -n "$PKG_CONFIG"; then
8342 if test -n "$PKG_CONFIG" && \
8343 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8344 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8345 ac_status=$?
8346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8347 test $ac_status = 0; }; then
8348 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
8349else
8350 pkg_failed=yes
8351fi
8352 else
8353 pkg_failed=untried
8354fi
8355if test -n "$SACKPT_LIBS"; then
8356 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8357 elif test -n "$PKG_CONFIG"; then
8358 if test -n "$PKG_CONFIG" && \
8359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8360 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8361 ac_status=$?
8362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8363 test $ac_status = 0; }; then
8364 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
8365else
8366 pkg_failed=yes
8367fi
8368 else
8369 pkg_failed=untried
8370fi
8371
8372
8373
8374if test $pkg_failed = yes; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376$as_echo "no" >&6; }
8377
8378if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8379 _pkg_short_errors_supported=yes
8380else
8381 _pkg_short_errors_supported=no
8382fi
8383 if test $_pkg_short_errors_supported = yes; then
8384 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8385 else
8386 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8387 fi
8388 # Put the nasty error message in config.log where it belongs
8389 echo "$SACKPT_PKG_ERRORS" >&5
8390
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5
8392$as_echo "no libSaCkpt, compiling without it" >&6; }
8393
8394$as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h
8395
8396elif test $pkg_failed = untried; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398$as_echo "no" >&6; }
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5
8400$as_echo "no libSaCkpt, compiling without it" >&6; }
8401
8402$as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h
8403
8404else
8405 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8406 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8408$as_echo "yes" >&6; }
8409 HAVE_SACKPT=yes
8410fi
8411
8412 if test x$HAVE_CPG != xyes; then
8413
8414pkg_failed=no
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8416$as_echo_n "checking for CPG... " >&6; }
8417
8418if test -n "$CPG_CFLAGS"; then
8419 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8420 elif test -n "$PKG_CONFIG"; then
8421 if test -n "$PKG_CONFIG" && \
8422 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8423 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8424 ac_status=$?
8425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8426 test $ac_status = 0; }; then
8427 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8428else
8429 pkg_failed=yes
8430fi
8431 else
8432 pkg_failed=untried
8433fi
8434if test -n "$CPG_LIBS"; then
8435 pkg_cv_CPG_LIBS="$CPG_LIBS"
8436 elif test -n "$PKG_CONFIG"; then
8437 if test -n "$PKG_CONFIG" && \
8438 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8439 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8440 ac_status=$?
8441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8442 test $ac_status = 0; }; then
8443 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8444else
8445 pkg_failed=yes
8446fi
8447 else
8448 pkg_failed=untried
8449fi
8450
8451
8452
8453if test $pkg_failed = yes; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455$as_echo "no" >&6; }
8456
8457if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8458 _pkg_short_errors_supported=yes
8459else
8460 _pkg_short_errors_supported=no
8461fi
8462 if test $_pkg_short_errors_supported = yes; then
8463 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8464 else
8465 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8466 fi
8467 # Put the nasty error message in config.log where it belongs
8468 echo "$CPG_PKG_ERRORS" >&5
8469
8470 as_fn_error $? "Package requirements (libcpg) were not met:
8471
8472$CPG_PKG_ERRORS
8473
8474Consider adjusting the PKG_CONFIG_PATH environment variable if you
8475installed software in a non-standard prefix.
8476
8477Alternatively, you may set the environment variables CPG_CFLAGS
8478and CPG_LIBS to avoid the need to call pkg-config.
8479See the pkg-config man page for more details." "$LINENO" 5
8480
8481elif test $pkg_failed = untried; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483$as_echo "no" >&6; }
8484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8486as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8487is in your PATH or set the PKG_CONFIG environment variable to the full
8488path to pkg-config.
8489
8490Alternatively, you may set the environment variables CPG_CFLAGS
8491and CPG_LIBS to avoid the need to call pkg-config.
8492See the pkg-config man page for more details.
8493
8494To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8495See \`config.log' for more details" "$LINENO" 5; }
8496
8497else
8498 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8499 CPG_LIBS=$pkg_cv_CPG_LIBS
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8501$as_echo "yes" >&6; }
8502
8503fi
8504 fi
8505fi
8506
8507################################################################################
8508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8509$as_echo_n "checking whether to enable debugging... " >&6; }
8510# Check whether --enable-debug was given.
8511if test "${enable_debug+set}" = set; then :
8512 enableval=$enable_debug; DEBUG=$enableval
8513else
8514 DEBUG=no
8515fi
8516
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8518$as_echo "$DEBUG" >&6; }
8519
8520if test x$DEBUG = xyes; then
8521 COPTIMISE_FLAG=
8522else
8523 CSCOPE_CMD=
8524fi
8525
8526################################################################################
8527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8528$as_echo_n "checking for C optimisation flag... " >&6; }
8529
8530# Check whether --with-optimisation was given.
8531if test "${with_optimisation+set}" = set; then :
8532 withval=$with_optimisation; COPTIMISE_FLAG=$withval
8533fi
8534
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8536$as_echo "$COPTIMISE_FLAG" >&6; }
8537
8538################################################################################
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8540$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8541# Check whether --enable-profiling was given.
8542if test "${enable_profiling+set}" = set; then :
8543 enableval=$enable_profiling; PROFILING=$enableval
8544else
8545 PROFILING=no
8546fi
8547
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8549$as_echo "$PROFILING" >&6; }
8550
8551if test "x$PROFILING" = xyes; then
8552 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8553 # Extract the first word of "lcov", so it can be a program name with args.
8554set dummy lcov; ac_word=$2
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556$as_echo_n "checking for $ac_word... " >&6; }
8557if test "${ac_cv_path_LCOV+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8559else
8560 case $LCOV in
8561 [\\/]* | ?:[\\/]*)
8562 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8563 ;;
8564 *)
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566for as_dir in $PATH
8567do
8568 IFS=$as_save_IFS
8569 test -z "$as_dir" && as_dir=.
8570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8572 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8574 break 2
8575 fi
8576done
8577 done
8578IFS=$as_save_IFS
8579
8580 ;;
8581esac
8582fi
8583LCOV=$ac_cv_path_LCOV
8584if test -n "$LCOV"; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8586$as_echo "$LCOV" >&6; }
8587else
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589$as_echo "no" >&6; }
8590fi
8591
8592
8593 # Extract the first word of "genhtml", so it can be a program name with args.
8594set dummy genhtml; ac_word=$2
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8596$as_echo_n "checking for $ac_word... " >&6; }
8597if test "${ac_cv_path_GENHTML+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
8599else
8600 case $GENHTML in
8601 [\\/]* | ?:[\\/]*)
8602 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8603 ;;
8604 *)
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606for as_dir in $PATH
8607do
8608 IFS=$as_save_IFS
8609 test -z "$as_dir" && as_dir=.
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8612 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8614 break 2
8615 fi
8616done
8617 done
8618IFS=$as_save_IFS
8619
8620 ;;
8621esac
8622fi
8623GENHTML=$ac_cv_path_GENHTML
8624if test -n "$GENHTML"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8626$as_echo "$GENHTML" >&6; }
8627else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629$as_echo "no" >&6; }
8630fi
8631
8632
8633 if test -z "$LCOV" -o -z "$GENHTML"; then
8634 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8635 fi
8636 # Extract the first word of "genpng", so it can be a program name with args.
8637set dummy genpng; ac_word=$2
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639$as_echo_n "checking for $ac_word... " >&6; }
8640if test "${ac_cv_path_GENPNG+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8642else
8643 case $GENPNG in
8644 [\\/]* | ?:[\\/]*)
8645 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8646 ;;
8647 *)
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649for as_dir in $PATH
8650do
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8655 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 break 2
8658 fi
8659done
8660 done
8661IFS=$as_save_IFS
8662
8663 ;;
8664esac
8665fi
8666GENPNG=$ac_cv_path_GENPNG
8667if test -n "$GENPNG"; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8669$as_echo "$GENPNG" >&6; }
8670else
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672$as_echo "no" >&6; }
8673fi
8674
8675
8676 if test -n "$GENPNG"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8678$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8679 if $GENPNG --help > /dev/null 2>&1 ; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8681$as_echo "ok" >&6; }
8682 GENHTML="$GENHTML --frames"
8683 else
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8685$as_echo "not supported" >&6; }
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8687$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8688 GENPNG=
8689 fi
8690 fi
8691fi
8692
8693################################################################################
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8695$as_echo_n "checking whether to enable unit testing... " >&6; }
8696# Check whether --enable-testing was given.
8697if test "${enable_testing+set}" = set; then :
8698 enableval=$enable_testing; TESTING=$enableval
8699else
8700 TESTING=no
8701fi
8702
8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8704$as_echo "$TESTING" >&6; }
8705
8706if test "$TESTING" = yes; then
8707
8708pkg_failed=no
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
8710$as_echo_n "checking for CUNIT... " >&6; }
8711
8712if test -n "$CUNIT_CFLAGS"; then
8713 pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
8714 elif test -n "$PKG_CONFIG"; then
8715 if test -n "$PKG_CONFIG" && \
8716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8717 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8718 ac_status=$?
8719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8720 test $ac_status = 0; }; then
8721 pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null`
8722else
8723 pkg_failed=yes
8724fi
8725 else
8726 pkg_failed=untried
8727fi
8728if test -n "$CUNIT_LIBS"; then
8729 pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
8730 elif test -n "$PKG_CONFIG"; then
8731 if test -n "$PKG_CONFIG" && \
8732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8733 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8734 ac_status=$?
8735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8736 test $ac_status = 0; }; then
8737 pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null`
8738else
8739 pkg_failed=yes
8740fi
8741 else
8742 pkg_failed=untried
8743fi
8744
8745
8746
8747if test $pkg_failed = yes; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749$as_echo "no" >&6; }
8750
8751if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8752 _pkg_short_errors_supported=yes
8753else
8754 _pkg_short_errors_supported=no
8755fi
8756 if test $_pkg_short_errors_supported = yes; then
8757 CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1`
8758 else
8759 CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1`
8760 fi
8761 # Put the nasty error message in config.log where it belongs
8762 echo "$CUNIT_PKG_ERRORS" >&5
8763
8764 as_fn_error $? "Package requirements (cunit >= 2.0) were not met:
8765
8766$CUNIT_PKG_ERRORS
8767
8768Consider adjusting the PKG_CONFIG_PATH environment variable if you
8769installed software in a non-standard prefix.
8770
8771Alternatively, you may set the environment variables CUNIT_CFLAGS
8772and CUNIT_LIBS to avoid the need to call pkg-config.
8773See the pkg-config man page for more details." "$LINENO" 5
8774
8775elif test $pkg_failed = untried; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777$as_echo "no" >&6; }
8778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8780as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8781is in your PATH or set the PKG_CONFIG environment variable to the full
8782path to pkg-config.
8783
8784Alternatively, you may set the environment variables CUNIT_CFLAGS
8785and CUNIT_LIBS to avoid the need to call pkg-config.
8786See the pkg-config man page for more details.
8787
8788To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8789See \`config.log' for more details" "$LINENO" 5; }
8790
8791else
8792 CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
8793 CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8795$as_echo "yes" >&6; }
8796
8797fi
8798fi
8799
8800################################################################################
8801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8802$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8803# Check whether --enable-valgrind_pool was given.
8804if test "${enable_valgrind_pool+set}" = set; then :
8805 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8806else
8807 VALGRIND_POOL=no
8808fi
8809
8810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8811$as_echo "$VALGRIND_POOL" >&6; }
8812
8813if test "$VALGRIND_POOL" = yes; then
8814 for ac_header in valgrind/memcheck.h
8815do :
8816 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8817if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8818 cat >>confdefs.h <<_ACEOF
8819#define HAVE_VALGRIND_MEMCHECK_H 1
8820_ACEOF
8821
8822else
8823 as_fn_error $? "bailing out" "$LINENO" 5
8824fi
8825
8826done
8827
8828
8829$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8830
8831fi
8832
8833################################################################################
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8835$as_echo_n "checking whether to use device-mapper... " >&6; }
8836# Check whether --enable-devmapper was given.
8837if test "${enable_devmapper+set}" = set; then :
8838 enableval=$enable_devmapper; DEVMAPPER=$enableval
8839fi
8840
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8842$as_echo "$DEVMAPPER" >&6; }
8843
8844if test x$DEVMAPPER = xyes; then
8845
8846$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8847
8848fi
8849
8850################################################################################
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5
8852$as_echo_n "checking whether to build LVMetaD... " >&6; }
8853# Check whether --enable-lvmetad was given.
8854if test "${enable_lvmetad+set}" = set; then :
8855 enableval=$enable_lvmetad; LVMETAD=$enableval
8856fi
8857
8858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5
8859$as_echo "$LVMETAD" >&6; }
8860
8861BUILD_LVMETAD=$LVMETAD
8862
8863if test x$BUILD_LVMETAD = xyes; then
8864
8865$as_echo "#define LVMETAD_SUPPORT 1" >>confdefs.h
8866
8867
8868
8869# Check whether --with-lvmetad-pidfile was given.
8870if test "${with_lvmetad_pidfile+set}" = set; then :
8871 withval=$with_lvmetad_pidfile; LVMETAD_PIDFILE=$withval
8872else
8873 LVMETAD_PIDFILE="$DEFAULT_PID_DIR/lvmetad.pid"
8874fi
8875
8876
8877cat >>confdefs.h <<_ACEOF
8878#define LVMETAD_PIDFILE "$LVMETAD_PIDFILE"
8879_ACEOF
8880
8881fi
8882
8883################################################################################
8884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8885$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8886# Check whether --enable-udev_sync was given.
8887if test "${enable_udev_sync+set}" = set; then :
8888 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
8889else
8890 UDEV_SYNC=no
8891fi
8892
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8894$as_echo "$UDEV_SYNC" >&6; }
8895
8896if test x$UDEV_SYNC = xyes; then
8897 if test x$PKGCONFIG_INIT != x1; then
8898 pkg_config_init
8899 fi
8900
8901pkg_failed=no
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8903$as_echo_n "checking for UDEV... " >&6; }
8904
8905if test -n "$UDEV_CFLAGS"; then
8906 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8907 elif test -n "$PKG_CONFIG"; then
8908 if test -n "$PKG_CONFIG" && \
8909 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8910 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8911 ac_status=$?
8912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8913 test $ac_status = 0; }; then
8914 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
8915else
8916 pkg_failed=yes
8917fi
8918 else
8919 pkg_failed=untried
8920fi
8921if test -n "$UDEV_LIBS"; then
8922 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8923 elif test -n "$PKG_CONFIG"; then
8924 if test -n "$PKG_CONFIG" && \
8925 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8926 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8927 ac_status=$?
8928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8929 test $ac_status = 0; }; then
8930 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
8931else
8932 pkg_failed=yes
8933fi
8934 else
8935 pkg_failed=untried
8936fi
8937
8938
8939
8940if test $pkg_failed = yes; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942$as_echo "no" >&6; }
8943
8944if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8945 _pkg_short_errors_supported=yes
8946else
8947 _pkg_short_errors_supported=no
8948fi
8949 if test $_pkg_short_errors_supported = yes; then
8950 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8951 else
8952 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8953 fi
8954 # Put the nasty error message in config.log where it belongs
8955 echo "$UDEV_PKG_ERRORS" >&5
8956
8957 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8958
8959$UDEV_PKG_ERRORS
8960
8961Consider adjusting the PKG_CONFIG_PATH environment variable if you
8962installed software in a non-standard prefix.
8963
8964Alternatively, you may set the environment variables UDEV_CFLAGS
8965and UDEV_LIBS to avoid the need to call pkg-config.
8966See the pkg-config man page for more details." "$LINENO" 5
8967
8968elif test $pkg_failed = untried; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970$as_echo "no" >&6; }
8971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8973as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8974is in your PATH or set the PKG_CONFIG environment variable to the full
8975path to pkg-config.
8976
8977Alternatively, you may set the environment variables UDEV_CFLAGS
8978and UDEV_LIBS to avoid the need to call pkg-config.
8979See the pkg-config man page for more details.
8980
8981To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8982See \`config.log' for more details" "$LINENO" 5; }
8983
8984else
8985 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8986 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8988$as_echo "yes" >&6; }
8989 UDEV_PC="libudev"
8990fi
8991
8992$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
8993
8994fi
8995
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8997$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8998# Check whether --enable-udev_rules was given.
8999if test "${enable_udev_rules+set}" = set; then :
9000 enableval=$enable_udev_rules; UDEV_RULES=$enableval
9001else
9002 UDEV_RULES=$UDEV_SYNC
9003fi
9004
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
9006$as_echo "$UDEV_RULES" >&6; }
9007
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable executable path detection in udev rules" >&5
9009$as_echo_n "checking whether to enable executable path detection in udev rules... " >&6; }
9010# Check whether --enable-udev_rule_exec_detection was given.
9011if test "${enable_udev_rule_exec_detection+set}" = set; then :
9012 enableval=$enable_udev_rule_exec_detection; UDEV_RULE_EXEC_DETECTION=$enableval
9013else
9014 UDEV_RULE_EXEC_DETECTION=no
9015fi
9016
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULE_EXEC_DETECTION" >&5
9018$as_echo "$UDEV_RULE_EXEC_DETECTION" >&6; }
9019
9020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether udev supports built-in blkid" >&5
9021$as_echo_n "checking whether udev supports built-in blkid... " >&6; }
9022test x$PKGCONFIG_INIT != x1 && pkg_config_init
9023if $($PKG_CONFIG --atleast-version=176 libudev); then
9024 UDEV_HAS_BUILTIN_BLKID=yes
9025else
9026 UDEV_HAS_BUILTIN_BLKID=no
9027fi
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5
9029$as_echo "$UDEV_HAS_BUILTIN_BLKID" >&6; }
9030
9031################################################################################
9032# Check whether --enable-compat was given.
9033if test "${enable_compat+set}" = set; then :
9034 enableval=$enable_compat; DM_COMPAT=$enableval
9035else
9036 DM_COMPAT=no
9037fi
9038
9039
9040if test x$DM_COMPAT = xyes; then
9041 as_fn_error $? "--enable-compat is not currently supported.
9042Since device-mapper version 1.02.66, only one version (4) of the device-mapper
9043ioctl protocol is supported.
9044 " "$LINENO" 5
9045fi
9046
9047################################################################################
9048# Check whether --enable-units-compat was given.
9049if test "${enable_units_compat+set}" = set; then :
9050 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
9051else
9052 UNITS_COMPAT=no
9053fi
9054
9055
9056if test x$UNITS_COMPAT = xyes; then
9057
9058$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
9059
9060fi
9061
9062################################################################################
9063# Check whether --enable-ioctl was given.
9064if test "${enable_ioctl+set}" = set; then :
9065 enableval=$enable_ioctl; DM_IOCTLS=$enableval
9066fi
9067
9068
9069################################################################################
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
9071$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
9072# Check whether --enable-o_direct was given.
9073if test "${enable_o_direct+set}" = set; then :
9074 enableval=$enable_o_direct; ODIRECT=$enableval
9075fi
9076
9077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
9078$as_echo "$ODIRECT" >&6; }
9079
9080if test x$ODIRECT = xyes; then
9081
9082$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
9083
9084fi
9085
9086################################################################################
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
9088$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
9089# Check whether --enable-applib was given.
9090if test "${enable_applib+set}" = set; then :
9091 enableval=$enable_applib; APPLIB=$enableval
9092else
9093 APPLIB=no
9094fi
9095
9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
9097$as_echo "$APPLIB" >&6; }
9098
9099test x$APPLIB = xyes \
9100 && LVM2APP_LIB=-llvm2app \
9101 || LVM2APP_LIB=
9102
9103################################################################################
9104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
9105$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
9106# Check whether --enable-cmdlib was given.
9107if test "${enable_cmdlib+set}" = set; then :
9108 enableval=$enable_cmdlib; CMDLIB=$enableval
9109else
9110 CMDLIB=no
9111fi
9112
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
9114$as_echo "$CMDLIB" >&6; }
9115
9116test x$CMDLIB = xyes \
9117 && LVM2CMD_LIB=-llvm2cmd \
9118 || LVM2CMD_LIB=
9119
9120################################################################################
9121# Check whether --enable-pkgconfig was given.
9122if test "${enable_pkgconfig+set}" = set; then :
9123 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
9124else
9125 PKGCONFIG=no
9126fi
9127
9128
9129################################################################################
9130# Check whether --enable-write_install was given.
9131if test "${enable_write_install+set}" = set; then :
9132 enableval=$enable_write_install; WRITE_INSTALL=$enableval
9133else
9134 WRITE_INSTALL=no
9135fi
9136
9137
9138################################################################################
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
9140$as_echo_n "checking whether to install fsadm... " >&6; }
9141# Check whether --enable-fsadm was given.
9142if test "${enable_fsadm+set}" = set; then :
9143 enableval=$enable_fsadm; FSADM=$enableval
9144fi
9145
9146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
9147$as_echo "$FSADM" >&6; }
9148
9149################################################################################
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
9151$as_echo_n "checking whether to use dmeventd... " >&6; }
9152# Check whether --enable-dmeventd was given.
9153if test "${enable_dmeventd+set}" = set; then :
9154 enableval=$enable_dmeventd; DMEVENTD=$enableval
9155fi
9156
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
9158$as_echo "$DMEVENTD" >&6; }
9159
9160BUILD_DMEVENTD=$DMEVENTD
9161
9162if test x$DMEVENTD = xyes; then
9163 if test x$MIRRORS != xinternal; then
9164 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
9165 " "$LINENO" 5
9166 fi
9167 if test x$CMDLIB = xno; then
9168 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
9169 " "$LINENO" 5
9170 fi
9171fi
9172
9173if test x$DMEVENTD = xyes; then
9174
9175$as_echo "#define DMEVENTD 1" >>confdefs.h
9176
9177fi
9178
9179################################################################################
9180
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
9182$as_echo_n "checking for getline in -lc... " >&6; }
9183if test "${ac_cv_lib_c_getline+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
9185else
9186 ac_check_lib_save_LIBS=$LIBS
9187LIBS="-lc $LIBS"
9188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189/* end confdefs.h. */
9190
9191/* Override any GCC internal prototype to avoid an error.
9192 Use char because int might match the return type of a GCC
9193 builtin and then its argument prototype would still apply. */
9194#ifdef __cplusplus
9195extern "C"
9196#endif
9197char getline ();
9198int
9199main ()
9200{
9201return getline ();
9202 ;
9203 return 0;
9204}
9205_ACEOF
9206if ac_fn_c_try_link "$LINENO"; then :
9207 ac_cv_lib_c_getline=yes
9208else
9209 ac_cv_lib_c_getline=no
9210fi
9211rm -f core conftest.err conftest.$ac_objext \
9212 conftest$ac_exeext conftest.$ac_ext
9213LIBS=$ac_check_lib_save_LIBS
9214fi
9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9216$as_echo "$ac_cv_lib_c_getline" >&6; }
9217if test "x$ac_cv_lib_c_getline" = x""yes; then :
9218
9219$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
9220
9221fi
9222
9223
9224################################################################################
9225
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9227$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9228if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9229 $as_echo_n "(cached) " >&6
9230else
9231 ac_check_lib_save_LIBS=$LIBS
9232LIBS="-lc $LIBS"
9233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234/* end confdefs.h. */
9235
9236/* Override any GCC internal prototype to avoid an error.
9237 Use char because int might match the return type of a GCC
9238 builtin and then its argument prototype would still apply. */
9239#ifdef __cplusplus
9240extern "C"
9241#endif
9242char canonicalize_file_name ();
9243int
9244main ()
9245{
9246return canonicalize_file_name ();
9247 ;
9248 return 0;
9249}
9250_ACEOF
9251if ac_fn_c_try_link "$LINENO"; then :
9252 ac_cv_lib_c_canonicalize_file_name=yes
9253else
9254 ac_cv_lib_c_canonicalize_file_name=no
9255fi
9256rm -f core conftest.err conftest.$ac_objext \
9257 conftest$ac_exeext conftest.$ac_ext
9258LIBS=$ac_check_lib_save_LIBS
9259fi
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9261$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9262if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9263
9264$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
9265
9266fi
9267
9268
9269################################################################################
9270if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9271 then exec_prefix="";
9272fi;
9273
9274################################################################################
9275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9276$as_echo_n "checking for dlopen in -ldl... " >&6; }
9277if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9278 $as_echo_n "(cached) " >&6
9279else
9280 ac_check_lib_save_LIBS=$LIBS
9281LIBS="-ldl $LIBS"
9282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283/* end confdefs.h. */
9284
9285/* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9288#ifdef __cplusplus
9289extern "C"
9290#endif
9291char dlopen ();
9292int
9293main ()
9294{
9295return dlopen ();
9296 ;
9297 return 0;
9298}
9299_ACEOF
9300if ac_fn_c_try_link "$LINENO"; then :
9301 ac_cv_lib_dl_dlopen=yes
9302else
9303 ac_cv_lib_dl_dlopen=no
9304fi
9305rm -f core conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
9307LIBS=$ac_check_lib_save_LIBS
9308fi
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9310$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9311if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9312
9313
9314$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9315
9316 DL_LIBS="-ldl"
9317 HAVE_LIBDL=yes
9318else
9319
9320 DL_LIBS=
9321 HAVE_LIBDL=no
9322fi
9323
9324
9325################################################################################
9326if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9327 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9328 -o "x$RAID" = xshared \
9329 \) -a "x$STATIC_LINK" = xyes ];
9330 then as_fn_error $? "Features cannot be 'shared' when building statically
9331" "$LINENO" 5
9332fi
9333
9334################################################################################
9335if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9337$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9338if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
9339 $as_echo_n "(cached) " >&6
9340else
9341 ac_check_lib_save_LIBS=$LIBS
9342LIBS="-lpthread $LIBS"
9343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344/* end confdefs.h. */
9345
9346/* Override any GCC internal prototype to avoid an error.
9347 Use char because int might match the return type of a GCC
9348 builtin and then its argument prototype would still apply. */
9349#ifdef __cplusplus
9350extern "C"
9351#endif
9352char pthread_mutex_lock ();
9353int
9354main ()
9355{
9356return pthread_mutex_lock ();
9357 ;
9358 return 0;
9359}
9360_ACEOF
9361if ac_fn_c_try_link "$LINENO"; then :
9362 ac_cv_lib_pthread_pthread_mutex_lock=yes
9363else
9364 ac_cv_lib_pthread_pthread_mutex_lock=no
9365fi
9366rm -f core conftest.err conftest.$ac_objext \
9367 conftest$ac_exeext conftest.$ac_ext
9368LIBS=$ac_check_lib_save_LIBS
9369fi
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9371$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9372if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9373 PTHREAD_LIBS="-lpthread"
9374else
9375 hard_bailout
9376fi
9377
9378fi
9379
9380################################################################################
9381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9382$as_echo_n "checking whether to enable selinux support... " >&6; }
9383# Check whether --enable-selinux was given.
9384if test "${enable_selinux+set}" = set; then :
9385 enableval=$enable_selinux; SELINUX=$enableval
9386fi
9387
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9389$as_echo "$SELINUX" >&6; }
9390
9391################################################################################
9392if test x$SELINUX = xyes; then
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9394$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9395if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9396 $as_echo_n "(cached) " >&6
9397else
9398 ac_check_lib_save_LIBS=$LIBS
9399LIBS="-lsepol $LIBS"
9400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401/* end confdefs.h. */
9402
9403/* Override any GCC internal prototype to avoid an error.
9404 Use char because int might match the return type of a GCC
9405 builtin and then its argument prototype would still apply. */
9406#ifdef __cplusplus
9407extern "C"
9408#endif
9409char sepol_check_context ();
9410int
9411main ()
9412{
9413return sepol_check_context ();
9414 ;
9415 return 0;
9416}
9417_ACEOF
9418if ac_fn_c_try_link "$LINENO"; then :
9419 ac_cv_lib_sepol_sepol_check_context=yes
9420else
9421 ac_cv_lib_sepol_sepol_check_context=no
9422fi
9423rm -f core conftest.err conftest.$ac_objext \
9424 conftest$ac_exeext conftest.$ac_ext
9425LIBS=$ac_check_lib_save_LIBS
9426fi
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9428$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9429if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
9430
9431
9432$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9433
9434 SELINUX_LIBS="-lsepol"
9435fi
9436
9437
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9439$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9440if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
9441 $as_echo_n "(cached) " >&6
9442else
9443 ac_check_lib_save_LIBS=$LIBS
9444LIBS="-lselinux $LIBS"
9445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446/* end confdefs.h. */
9447
9448/* Override any GCC internal prototype to avoid an error.
9449 Use char because int might match the return type of a GCC
9450 builtin and then its argument prototype would still apply. */
9451#ifdef __cplusplus
9452extern "C"
9453#endif
9454char is_selinux_enabled ();
9455int
9456main ()
9457{
9458return is_selinux_enabled ();
9459 ;
9460 return 0;
9461}
9462_ACEOF
9463if ac_fn_c_try_link "$LINENO"; then :
9464 ac_cv_lib_selinux_is_selinux_enabled=yes
9465else
9466 ac_cv_lib_selinux_is_selinux_enabled=no
9467fi
9468rm -f core conftest.err conftest.$ac_objext \
9469 conftest$ac_exeext conftest.$ac_ext
9470LIBS=$ac_check_lib_save_LIBS
9471fi
9472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9473$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9474if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
9475
9476 for ac_header in selinux/selinux.h
9477do :
9478 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9479if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9480 cat >>confdefs.h <<_ACEOF
9481#define HAVE_SELINUX_SELINUX_H 1
9482_ACEOF
9483
9484else
9485 hard_bailout
9486fi
9487
9488done
9489
9490 for ac_header in selinux/label.h
9491do :
9492 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9493if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9494 cat >>confdefs.h <<_ACEOF
9495#define HAVE_SELINUX_LABEL_H 1
9496_ACEOF
9497
9498fi
9499
9500done
9501
9502
9503$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
9504
9505 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9506 SELINUX_PC="libselinux"
9507 HAVE_SELINUX=yes
9508else
9509
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9511$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9512 SELINUX_LIBS=
9513 SELINUX_PC=
9514 HAVE_SELINUX=no
9515fi
9516
9517fi
9518
9519################################################################################
9520if test x$REALTIME = xyes; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9522$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9523if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
9525else
9526 ac_check_lib_save_LIBS=$LIBS
9527LIBS="-lrt $LIBS"
9528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529/* end confdefs.h. */
9530
9531/* Override any GCC internal prototype to avoid an error.
9532 Use char because int might match the return type of a GCC
9533 builtin and then its argument prototype would still apply. */
9534#ifdef __cplusplus
9535extern "C"
9536#endif
9537char clock_gettime ();
9538int
9539main ()
9540{
9541return clock_gettime ();
9542 ;
9543 return 0;
9544}
9545_ACEOF
9546if ac_fn_c_try_link "$LINENO"; then :
9547 ac_cv_lib_rt_clock_gettime=yes
9548else
9549 ac_cv_lib_rt_clock_gettime=no
9550fi
9551rm -f core conftest.err conftest.$ac_objext \
9552 conftest$ac_exeext conftest.$ac_ext
9553LIBS=$ac_check_lib_save_LIBS
9554fi
9555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9556$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9557if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9558 HAVE_REALTIME=yes
9559else
9560 HAVE_REALTIME=no
9561fi
9562
9563
9564 if test x$HAVE_REALTIME = xyes; then
9565
9566$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
9567
9568 LIBS="-lrt $LIBS"
9569 else
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9571$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9572 fi
9573fi
9574
9575################################################################################
9576for ac_header in getopt.h
9577do :
9578 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9579if test "x$ac_cv_header_getopt_h" = x""yes; then :
9580 cat >>confdefs.h <<_ACEOF
9581#define HAVE_GETOPT_H 1
9582_ACEOF
9583
9584$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
9585
9586fi
9587
9588done
9589
9590
9591################################################################################
9592if test x$READLINE != xno; then
9593 lvm_saved_libs=$LIBS
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9595$as_echo_n "checking for library containing tgetent... " >&6; }
9596if test "${ac_cv_search_tgetent+set}" = set; then :
9597 $as_echo_n "(cached) " >&6
9598else
9599 ac_func_search_save_LIBS=$LIBS
9600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601/* end confdefs.h. */
9602
9603/* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
9606#ifdef __cplusplus
9607extern "C"
9608#endif
9609char tgetent ();
9610int
9611main ()
9612{
9613return tgetent ();
9614 ;
9615 return 0;
9616}
9617_ACEOF
9618for ac_lib in '' tinfo ncurses curses termcap termlib; do
9619 if test -z "$ac_lib"; then
9620 ac_res="none required"
9621 else
9622 ac_res=-l$ac_lib
9623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9624 fi
9625 if ac_fn_c_try_link "$LINENO"; then :
9626 ac_cv_search_tgetent=$ac_res
9627fi
9628rm -f core conftest.err conftest.$ac_objext \
9629 conftest$ac_exeext
9630 if test "${ac_cv_search_tgetent+set}" = set; then :
9631 break
9632fi
9633done
9634if test "${ac_cv_search_tgetent+set}" = set; then :
9635
9636else
9637 ac_cv_search_tgetent=no
9638fi
9639rm conftest.$ac_ext
9640LIBS=$ac_func_search_save_LIBS
9641fi
9642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9643$as_echo "$ac_cv_search_tgetent" >&6; }
9644ac_res=$ac_cv_search_tgetent
9645if test "$ac_res" != no; then :
9646 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9647 READLINE_LIBS=$ac_cv_search_tgetent
9648else
9649
9650 if test "$READLINE" = yes; then
9651 as_fn_error $? "termcap could not be found which is required for the
9652--enable-readline option (which is enabled by default). Either disable readline
9653support with --disable-readline or download and install termcap from:
9654 ftp.gnu.org/gnu/termcap
9655Note: if you are using precompiled packages you will also need the development
9656 package as well (which may be called termcap-devel or something similar).
9657Note: (n)curses also seems to work as a substitute for termcap. This was
9658 not found either - but you could try installing that as well." "$LINENO" 5
9659 fi
9660fi
9661
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9663$as_echo_n "checking for readline in -lreadline... " >&6; }
9664if test "${ac_cv_lib_readline_readline+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9666else
9667 ac_check_lib_save_LIBS=$LIBS
9668LIBS="-lreadline $LIBS"
9669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670/* end confdefs.h. */
9671
9672/* Override any GCC internal prototype to avoid an error.
9673 Use char because int might match the return type of a GCC
9674 builtin and then its argument prototype would still apply. */
9675#ifdef __cplusplus
9676extern "C"
9677#endif
9678char readline ();
9679int
9680main ()
9681{
9682return readline ();
9683 ;
9684 return 0;
9685}
9686_ACEOF
9687if ac_fn_c_try_link "$LINENO"; then :
9688 ac_cv_lib_readline_readline=yes
9689else
9690 ac_cv_lib_readline_readline=no
9691fi
9692rm -f core conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
9694LIBS=$ac_check_lib_save_LIBS
9695fi
9696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9697$as_echo "$ac_cv_lib_readline_readline" >&6; }
9698if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9699
9700
9701$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9702
9703 LIBS=$lvm_saved_libs
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9705$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9706if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9707 $as_echo_n "(cached) " >&6
9708else
9709 ac_check_lib_save_LIBS=$LIBS
9710LIBS="-lreadline $LIBS"
9711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712/* end confdefs.h. */
9713
9714/* Override any GCC internal prototype to avoid an error.
9715 Use char because int might match the return type of a GCC
9716 builtin and then its argument prototype would still apply. */
9717#ifdef __cplusplus
9718extern "C"
9719#endif
9720char rl_line_buffer ();
9721int
9722main ()
9723{
9724return rl_line_buffer ();
9725 ;
9726 return 0;
9727}
9728_ACEOF
9729if ac_fn_c_try_link "$LINENO"; then :
9730 ac_cv_lib_readline_rl_line_buffer=yes
9731else
9732 ac_cv_lib_readline_rl_line_buffer=no
9733fi
9734rm -f core conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9736LIBS=$ac_check_lib_save_LIBS
9737fi
9738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9739$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9740if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9741 READLINE_LIBS="-lreadline"
9742else
9743
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9745$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9746 READLINE_LIBS="-lreadline $READLINE_LIBS"
9747
9748fi
9749
9750else
9751
9752 READLINE_LIBS=
9753 if test "$READLINE" = yes; then
9754 as_fn_error $? "GNU Readline could not be found which is required for the
9755--enable-readline option (which is enabled by default). Either disable readline
9756support with --disable-readline or download and install readline from:
9757 ftp.gnu.org/gnu/readline
9758Note: if you are using precompiled packages you will also need the development
9759package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9760 fi
9761fi
9762
9763 LIBS="$READLINE_LIBS $lvm_saved_libs"
9764 for ac_func in rl_completion_matches
9765do :
9766 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9767if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
9768 cat >>confdefs.h <<_ACEOF
9769#define HAVE_RL_COMPLETION_MATCHES 1
9770_ACEOF
9771
9772fi
9773done
9774
9775 LIBS=$lvm_saved_libs
9776fi
9777
9778################################################################################
9779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9780$as_echo_n "checking whether to enable internationalisation... " >&6; }
9781# Check whether --enable-nls was given.
9782if test "${enable_nls+set}" = set; then :
9783 enableval=$enable_nls; INTL=$enableval
9784else
9785 INTL=no
9786fi
9787
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9789$as_echo "$INTL" >&6; }
9790
9791if test x$INTL = xyes; then
9792# FIXME - Move this - can be device-mapper too
9793 INTL_PACKAGE="lvm2"
9794 # Extract the first word of "msgfmt", so it can be a program name with args.
9795set dummy msgfmt; ac_word=$2
9796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797$as_echo_n "checking for $ac_word... " >&6; }
9798if test "${ac_cv_path_MSGFMT+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9800else
9801 case $MSGFMT in
9802 [\\/]* | ?:[\\/]*)
9803 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9804 ;;
9805 *)
9806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807for as_dir in $PATH
9808do
9809 IFS=$as_save_IFS
9810 test -z "$as_dir" && as_dir=.
9811 for ac_exec_ext in '' $ac_executable_extensions; do
9812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9813 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9815 break 2
9816 fi
9817done
9818 done
9819IFS=$as_save_IFS
9820
9821 ;;
9822esac
9823fi
9824MSGFMT=$ac_cv_path_MSGFMT
9825if test -n "$MSGFMT"; then
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9827$as_echo "$MSGFMT" >&6; }
9828else
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9830$as_echo "no" >&6; }
9831fi
9832
9833
9834 if [ "x$MSGFMT" == x ];
9835 then as_fn_error $? "msgfmt not found in path $PATH
9836 " "$LINENO" 5
9837 fi;
9838
9839
9840# Check whether --with-localedir was given.
9841if test "${with_localedir+set}" = set; then :
9842 withval=$with_localedir; LOCALEDIR=$withval
9843else
9844 LOCALEDIR='${prefix}/share/locale'
9845fi
9846
9847fi
9848
9849################################################################################
9850
9851# Check whether --with-confdir was given.
9852if test "${with_confdir+set}" = set; then :
9853 withval=$with_confdir; CONFDIR=$withval
9854else
9855 CONFDIR="/etc"
9856fi
9857
9858
9859
9860# Check whether --with-staticdir was given.
9861if test "${with_staticdir+set}" = set; then :
9862 withval=$with_staticdir; STATICDIR=$withval
9863else
9864 STATICDIR='${exec_prefix}/sbin'
9865fi
9866
9867
9868
9869# Check whether --with-usrlibdir was given.
9870if test "${with_usrlibdir+set}" = set; then :
9871 withval=$with_usrlibdir; usrlibdir=$withval
9872else
9873 usrlibdir='${prefix}/lib'
9874fi
9875
9876
9877
9878# Check whether --with-usrsbindir was given.
9879if test "${with_usrsbindir+set}" = set; then :
9880 withval=$with_usrsbindir; usrsbindir=$withval
9881else
9882 usrsbindir='${prefix}/sbin'
9883fi
9884
9885
9886################################################################################
9887
9888# Check whether --with-udev_prefix was given.
9889if test "${with_udev_prefix+set}" = set; then :
9890 withval=$with_udev_prefix; udev_prefix=$withval
9891else
9892 udev_prefix='${exec_prefix}'
9893fi
9894
9895
9896
9897# Check whether --with-udevdir was given.
9898if test "${with_udevdir+set}" = set; then :
9899 withval=$with_udevdir; udevdir=$withval
9900else
9901 udevdir='${udev_prefix}/lib/udev/rules.d'
9902fi
9903
9904
9905################################################################################
9906
9907# Check whether --with-systemdsystemunitdir was given.
9908if test "${with_systemdsystemunitdir+set}" = set; then :
9909 withval=$with_systemdsystemunitdir; systemdsystemunitdir=$withval
9910else
9911 test x$PKGCONFIG_INIT != x1 && pkg_config_init
9912 pkg_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
9913fi
9914
9915
9916if test -n "$pkg_systemdsystemunitdir"; then
9917 systemdsystemunitdir=$pkg_systemdsystemunitdir;
9918fi
9919
9920if test -z "$systemdsystemunitdir"; then
9921 systemdsystemunitdir='${exec_prefix}/lib/systemd/system';
9922fi
9923
9924systemdutildir=$($PKG_CONFIG --variable=systemdutildir systemd)
9925if test -z "$systemdutildir"; then
9926 systemdutildir='${exec_prefix}/lib/systemd';
9927fi
9928################################################################################
9929
9930# Check whether --with-tmpfilesdir was given.
9931if test "${with_tmpfilesdir+set}" = set; then :
9932 withval=$with_tmpfilesdir; tmpfilesdir=$withval
9933else
9934 tmpfilesdir='${prefix}/lib/tmpfiles.d'
9935fi
9936
9937################################################################################
9938if test x$READLINE = xyes; then
9939 for ac_header in readline/readline.h readline/history.h
9940do :
9941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9942ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9943if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9944 cat >>confdefs.h <<_ACEOF
9945#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9946_ACEOF
9947
9948else
9949 as_fn_error $? "bailing out" "$LINENO" 5
9950fi
9951
9952done
9953
9954fi
9955
9956if test x$CLVMD != xnone; then
9957 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
9958do :
9959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9960ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9961if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9962 cat >>confdefs.h <<_ACEOF
9963#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9964_ACEOF
9965
9966else
9967 as_fn_error $? "bailing out" "$LINENO" 5
9968fi
9969
9970done
9971
9972 for ac_func in dup2 getmntent memmove select socket
9973do :
9974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9975ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9976if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9977 cat >>confdefs.h <<_ACEOF
9978#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9979_ACEOF
9980
9981else
9982 as_fn_error $? "bailing out" "$LINENO" 5
9983fi
9984done
9985
9986 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9987# -lseq on Dynix/PTX, -lgen on Unixware.
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9989$as_echo_n "checking for library containing getmntent... " >&6; }
9990if test "${ac_cv_search_getmntent+set}" = set; then :
9991 $as_echo_n "(cached) " >&6
9992else
9993 ac_func_search_save_LIBS=$LIBS
9994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995/* end confdefs.h. */
9996
9997/* Override any GCC internal prototype to avoid an error.
9998 Use char because int might match the return type of a GCC
9999 builtin and then its argument prototype would still apply. */
10000#ifdef __cplusplus
10001extern "C"
10002#endif
10003char getmntent ();
10004int
10005main ()
10006{
10007return getmntent ();
10008 ;
10009 return 0;
10010}
10011_ACEOF
10012for ac_lib in '' sun seq gen; do
10013 if test -z "$ac_lib"; then
10014 ac_res="none required"
10015 else
10016 ac_res=-l$ac_lib
10017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10018 fi
10019 if ac_fn_c_try_link "$LINENO"; then :
10020 ac_cv_search_getmntent=$ac_res
10021fi
10022rm -f core conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext
10024 if test "${ac_cv_search_getmntent+set}" = set; then :
10025 break
10026fi
10027done
10028if test "${ac_cv_search_getmntent+set}" = set; then :
10029
10030else
10031 ac_cv_search_getmntent=no
10032fi
10033rm conftest.$ac_ext
10034LIBS=$ac_func_search_save_LIBS
10035fi
10036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
10037$as_echo "$ac_cv_search_getmntent" >&6; }
10038ac_res=$ac_cv_search_getmntent
10039if test "$ac_res" != no; then :
10040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10041 ac_cv_func_getmntent=yes
10042
10043$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
10044
10045else
10046 ac_cv_func_getmntent=no
10047fi
10048
10049
10050 for ac_header in sys/select.h sys/socket.h
10051do :
10052 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10053ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10054if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10055 cat >>confdefs.h <<_ACEOF
10056#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10057_ACEOF
10058
10059fi
10060
10061done
10062
10063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
10064$as_echo_n "checking types of arguments for select... " >&6; }
10065if test "${ac_cv_func_select_args+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
10067else
10068 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10069 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10070 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072/* end confdefs.h. */
10073$ac_includes_default
10074#ifdef HAVE_SYS_SELECT_H
10075# include <sys/select.h>
10076#endif
10077#ifdef HAVE_SYS_SOCKET_H
10078# include <sys/socket.h>
10079#endif
10080
10081int
10082main ()
10083{
10084extern int select ($ac_arg1,
10085 $ac_arg234, $ac_arg234, $ac_arg234,
10086 $ac_arg5);
10087 ;
10088 return 0;
10089}
10090_ACEOF
10091if ac_fn_c_try_compile "$LINENO"; then :
10092 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10093fi
10094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10095 done
10096 done
10097done
10098# Provide a safe default value.
10099: ${ac_cv_func_select_args='int,int *,struct timeval *'}
10100
10101fi
10102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10103$as_echo "$ac_cv_func_select_args" >&6; }
10104ac_save_IFS=$IFS; IFS=','
10105set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10106IFS=$ac_save_IFS
10107shift
10108
10109cat >>confdefs.h <<_ACEOF
10110#define SELECT_TYPE_ARG1 $1
10111_ACEOF
10112
10113
10114cat >>confdefs.h <<_ACEOF
10115#define SELECT_TYPE_ARG234 ($2)
10116_ACEOF
10117
10118
10119cat >>confdefs.h <<_ACEOF
10120#define SELECT_TYPE_ARG5 ($3)
10121_ACEOF
10122
10123rm -f conftest*
10124
10125fi
10126
10127if test x$CLUSTER != xnone; then
10128 for ac_header in sys/socket.h sys/un.h
10129do :
10130 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10131ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10132if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10133 cat >>confdefs.h <<_ACEOF
10134#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10135_ACEOF
10136
10137else
10138 as_fn_error $? "bailing out" "$LINENO" 5
10139fi
10140
10141done
10142
10143 for ac_func in socket
10144do :
10145 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
10146if test "x$ac_cv_func_socket" = x""yes; then :
10147 cat >>confdefs.h <<_ACEOF
10148#define HAVE_SOCKET 1
10149_ACEOF
10150
10151else
10152 as_fn_error $? "bailing out" "$LINENO" 5
10153fi
10154done
10155
10156fi
10157
10158if test x$DMEVENTD = xyes; then
10159 for ac_header in arpa/inet.h
10160do :
10161 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
10162if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
10163 cat >>confdefs.h <<_ACEOF
10164#define HAVE_ARPA_INET_H 1
10165_ACEOF
10166
10167else
10168 as_fn_error $? "bailing out" "$LINENO" 5
10169fi
10170
10171done
10172
10173fi
10174
10175if test x$HAVE_LIBDL = xyes; then
10176 for ac_header in dlfcn.h
10177do :
10178 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10179if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10180 cat >>confdefs.h <<_ACEOF
10181#define HAVE_DLFCN_H 1
10182_ACEOF
10183
10184else
10185 as_fn_error $? "bailing out" "$LINENO" 5
10186fi
10187
10188done
10189
10190fi
10191
10192if test x$INTL = xyes; then
10193 for ac_header in libintl.h
10194do :
10195 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10196if test "x$ac_cv_header_libintl_h" = x""yes; then :
10197 cat >>confdefs.h <<_ACEOF
10198#define HAVE_LIBINTL_H 1
10199_ACEOF
10200
10201else
10202 as_fn_error $? "bailing out" "$LINENO" 5
10203fi
10204
10205done
10206
10207fi
10208
10209if test x$UDEV_SYNC = xyes; then
10210 for ac_header in sys/ipc.h sys/sem.h
10211do :
10212 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10213ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10214if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10215 cat >>confdefs.h <<_ACEOF
10216#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10217_ACEOF
10218
10219else
10220 as_fn_error $? "bailing out" "$LINENO" 5
10221fi
10222
10223done
10224
10225fi
10226
10227################################################################################
10228# Extract the first word of "modprobe", so it can be a program name with args.
10229set dummy modprobe; ac_word=$2
10230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10231$as_echo_n "checking for $ac_word... " >&6; }
10232if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
10233 $as_echo_n "(cached) " >&6
10234else
10235 case $MODPROBE_CMD in
10236 [\\/]* | ?:[\\/]*)
10237 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10238 ;;
10239 *)
10240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241for as_dir in $PATH
10242do
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10247 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10249 break 2
10250 fi
10251done
10252 done
10253IFS=$as_save_IFS
10254
10255 ;;
10256esac
10257fi
10258MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
10259if test -n "$MODPROBE_CMD"; then
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
10261$as_echo "$MODPROBE_CMD" >&6; }
10262else
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264$as_echo "no" >&6; }
10265fi
10266
10267
10268
10269if test x$MODPROBE_CMD != x; then
10270
10271cat >>confdefs.h <<_ACEOF
10272#define MODPROBE_CMD "$MODPROBE_CMD"
10273_ACEOF
10274
10275fi
10276
10277
10278lvm_exec_prefix=$exec_prefix
10279test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10280test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
10281LVM_PATH="$lvm_exec_prefix/sbin/lvm"
10282
10283cat >>confdefs.h <<_ACEOF
10284#define LVM_PATH "$LVM_PATH"
10285_ACEOF
10286
10287
10288if test "$CLVMD" != none; then
10289 clvmd_prefix=$ac_default_prefix
10290 CLVMD_PATH="$clvmd_prefix/sbin/clvmd"
10291 test "$prefix" != NONE && clvmd_prefix=$prefix
10292
10293cat >>confdefs.h <<_ACEOF
10294#define CLVMD_PATH "$CLVMD_PATH"
10295_ACEOF
10296
10297fi
10298
10299################################################################################
10300if test "$BUILD_DMEVENTD" = yes; then
10301
10302# Check whether --with-dmeventd-pidfile was given.
10303if test "${with_dmeventd_pidfile+set}" = set; then :
10304 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
10305else
10306 DMEVENTD_PIDFILE="$DEFAULT_PID_DIR/dmeventd.pid"
10307fi
10308
10309
10310cat >>confdefs.h <<_ACEOF
10311#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10312_ACEOF
10313
10314fi
10315
10316if test "$BUILD_DMEVENTD" = yes; then
10317
10318# Check whether --with-dmeventd-path was given.
10319if test "${with_dmeventd_path+set}" = set; then :
10320 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
10321else
10322 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
10323fi
10324
10325
10326cat >>confdefs.h <<_ACEOF
10327#define DMEVENTD_PATH "$DMEVENTD_PATH"
10328_ACEOF
10329
10330fi
10331
10332################################################################################
10333
10334# Check whether --with-default-system-dir was given.
10335if test "${with_default_system_dir+set}" = set; then :
10336 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
10337else
10338 DEFAULT_SYS_DIR="/etc/lvm"
10339fi
10340
10341
10342cat >>confdefs.h <<_ACEOF
10343#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10344_ACEOF
10345
10346
10347
10348# Check whether --with-default-archive-subdir was given.
10349if test "${with_default_archive_subdir+set}" = set; then :
10350 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
10351else
10352 DEFAULT_ARCHIVE_SUBDIR=archive
10353fi
10354
10355
10356cat >>confdefs.h <<_ACEOF
10357#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10358_ACEOF
10359
10360
10361
10362# Check whether --with-default-backup-subdir was given.
10363if test "${with_default_backup_subdir+set}" = set; then :
10364 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
10365else
10366 DEFAULT_BACKUP_SUBDIR=backup
10367fi
10368
10369
10370cat >>confdefs.h <<_ACEOF
10371#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10372_ACEOF
10373
10374
10375
10376# Check whether --with-default-cache-subdir was given.
10377if test "${with_default_cache_subdir+set}" = set; then :
10378 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
10379else
10380 DEFAULT_CACHE_SUBDIR=cache
10381fi
10382
10383
10384cat >>confdefs.h <<_ACEOF
10385#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10386_ACEOF
10387
10388
10389
10390# Check whether --with-default-locking-dir was given.
10391if test "${with_default_locking_dir+set}" = set; then :
10392 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
10393else
10394 DEFAULT_LOCK_DIR="/var/lock/lvm"
10395fi
10396
10397
10398cat >>confdefs.h <<_ACEOF
10399#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10400_ACEOF
10401
10402
10403################################################################################
10404
10405# Check whether --with-default-data-alignment was given.
10406if test "${with_default_data_alignment+set}" = set; then :
10407 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10408else
10409 DEFAULT_DATA_ALIGNMENT=1
10410fi
10411
10412
10413cat >>confdefs.h <<_ACEOF
10414#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10415_ACEOF
10416
10417
10418################################################################################
10419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
10420$as_echo_n "checking for kernel interface choice... " >&6; }
10421
10422# Check whether --with-interface was given.
10423if test "${with_interface+set}" = set; then :
10424 withval=$with_interface; interface=$withval
10425else
10426 interface=ioctl
10427fi
10428
10429if [ "x$interface" != xioctl ];
10430then
10431 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
10432fi
10433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
10434$as_echo "$interface" >&6; }
10435
10436################################################################################
10437DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
10438
10439cat >>confdefs.h <<_ACEOF
10440#define DM_LIB_VERSION $DM_LIB_VERSION
10441_ACEOF
10442
10443
10444DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
10445
10446LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
10447
10448VER=`cat "$srcdir"/VERSION`
10449LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
10450VER=`echo "$VER" | $AWK '{print $1}'`
10451LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10452VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10453LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10454LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
10455LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10456LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
10457
10458################################################################################
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576################################################################################
10577ac_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/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/lvmetad/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/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_lvmetad_init_red_hat scripts/lvm2_lvmetad_systemd_red_hat.socket scripts/lvm2_lvmetad_systemd_red_hat.service scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.socket scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_tmpfiles_red_hat.conf scripts/Makefile test/Makefile test/api/Makefile test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
10578
10579cat >confcache <<\_ACEOF
10580# This file is a shell script that caches the results of configure
10581# tests run on this system so they can be shared between configure
10582# scripts and configure runs, see configure's option --config-cache.
10583# It is not useful on other systems. If it contains results you don't
10584# want to keep, you may remove or edit it.
10585#
10586# config.status only pays attention to the cache file if you give it
10587# the --recheck option to rerun configure.
10588#
10589# `ac_cv_env_foo' variables (set or unset) will be overridden when
10590# loading this file, other *unset* `ac_cv_foo' will be assigned the
10591# following values.
10592
10593_ACEOF
10594
10595# The following way of writing the cache mishandles newlines in values,
10596# but we know of no workaround that is simple, portable, and efficient.
10597# So, we kill variables containing newlines.
10598# Ultrix sh set writes to stderr and can't be redirected directly,
10599# and sets the high bit in the cache file unless we assign to the vars.
10600(
10601 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10602 eval ac_val=\$$ac_var
10603 case $ac_val in #(
10604 *${as_nl}*)
10605 case $ac_var in #(
10606 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10607$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10608 esac
10609 case $ac_var in #(
10610 _ | IFS | as_nl) ;; #(
10611 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10612 *) { eval $ac_var=; unset $ac_var;} ;;
10613 esac ;;
10614 esac
10615 done
10616
10617 (set) 2>&1 |
10618 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10619 *${as_nl}ac_space=\ *)
10620 # `set' does not quote correctly, so add quotes: double-quote
10621 # substitution turns \\\\ into \\, and sed turns \\ into \.
10622 sed -n \
10623 "s/'/'\\\\''/g;
10624 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10625 ;; #(
10626 *)
10627 # `set' quotes correctly as required by POSIX, so do not add quotes.
10628 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10629 ;;
10630 esac |
10631 sort
10632) |
10633 sed '
10634 /^ac_cv_env_/b end
10635 t clear
10636 :clear
10637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10638 t end
10639 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10640 :end' >>confcache
10641if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10642 if test -w "$cache_file"; then
10643 test "x$cache_file" != "x/dev/null" &&
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10645$as_echo "$as_me: updating cache $cache_file" >&6;}
10646 cat confcache >$cache_file
10647 else
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10649$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10650 fi
10651fi
10652rm -f confcache
10653
10654test "x$prefix" = xNONE && prefix=$ac_default_prefix
10655# Let make expand exec_prefix.
10656test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10657
10658DEFS=-DHAVE_CONFIG_H
10659
10660ac_libobjs=
10661ac_ltlibobjs=
10662U=
10663for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10664 # 1. Remove the extension, and $U if already installed.
10665 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10666 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10667 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10668 # will be set to the directory where LIBOBJS objects are built.
10669 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10670 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10671done
10672LIBOBJS=$ac_libobjs
10673
10674LTLIBOBJS=$ac_ltlibobjs
10675
10676
10677
10678: ${CONFIG_STATUS=./config.status}
10679ac_write_fail=0
10680ac_clean_files_save=$ac_clean_files
10681ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10683$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10684as_write_fail=0
10685cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10686#! $SHELL
10687# Generated by $as_me.
10688# Run this file to recreate the current configuration.
10689# Compiler output produced by configure, useful for debugging
10690# configure, is in config.log if it exists.
10691
10692debug=false
10693ac_cs_recheck=false
10694ac_cs_silent=false
10695
10696SHELL=\${CONFIG_SHELL-$SHELL}
10697export SHELL
10698_ASEOF
10699cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10700## -------------------- ##
10701## M4sh Initialization. ##
10702## -------------------- ##
10703
10704# Be more Bourne compatible
10705DUALCASE=1; export DUALCASE # for MKS sh
10706if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10707 emulate sh
10708 NULLCMD=:
10709 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10710 # is contrary to our usage. Disable this feature.
10711 alias -g '${1+"$@"}'='"$@"'
10712 setopt NO_GLOB_SUBST
10713else
10714 case `(set -o) 2>/dev/null` in #(
10715 *posix*) :
10716 set -o posix ;; #(
10717 *) :
10718 ;;
10719esac
10720fi
10721
10722
10723as_nl='
10724'
10725export as_nl
10726# Printing a long string crashes Solaris 7 /usr/bin/printf.
10727as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10728as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10729as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10730# Prefer a ksh shell builtin over an external printf program on Solaris,
10731# but without wasting forks for bash or zsh.
10732if test -z "$BASH_VERSION$ZSH_VERSION" \
10733 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10734 as_echo='print -r --'
10735 as_echo_n='print -rn --'
10736elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10737 as_echo='printf %s\n'
10738 as_echo_n='printf %s'
10739else
10740 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10741 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10742 as_echo_n='/usr/ucb/echo -n'
10743 else
10744 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10745 as_echo_n_body='eval
10746 arg=$1;
10747 case $arg in #(
10748 *"$as_nl"*)
10749 expr "X$arg" : "X\\(.*\\)$as_nl";
10750 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10751 esac;
10752 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10753 '
10754 export as_echo_n_body
10755 as_echo_n='sh -c $as_echo_n_body as_echo'
10756 fi
10757 export as_echo_body
10758 as_echo='sh -c $as_echo_body as_echo'
10759fi
10760
10761# The user is always right.
10762if test "${PATH_SEPARATOR+set}" != set; then
10763 PATH_SEPARATOR=:
10764 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10765 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10766 PATH_SEPARATOR=';'
10767 }
10768fi
10769
10770
10771# IFS
10772# We need space, tab and new line, in precisely that order. Quoting is
10773# there to prevent editors from complaining about space-tab.
10774# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10775# splitting by setting IFS to empty value.)
10776IFS=" "" $as_nl"
10777
10778# Find who we are. Look in the path if we contain no directory separator.
10779case $0 in #((
10780 *[\\/]* ) as_myself=$0 ;;
10781 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782for as_dir in $PATH
10783do
10784 IFS=$as_save_IFS
10785 test -z "$as_dir" && as_dir=.
10786 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10787 done
10788IFS=$as_save_IFS
10789
10790 ;;
10791esac
10792# We did not find ourselves, most probably we were run as `sh COMMAND'
10793# in which case we are not to be found in the path.
10794if test "x$as_myself" = x; then
10795 as_myself=$0
10796fi
10797if test ! -f "$as_myself"; then
10798 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10799 exit 1
10800fi
10801
10802# Unset variables that we do not need and which cause bugs (e.g. in
10803# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10804# suppresses any "Segmentation fault" message there. '((' could
10805# trigger a bug in pdksh 5.2.14.
10806for as_var in BASH_ENV ENV MAIL MAILPATH
10807do eval test x\${$as_var+set} = xset \
10808 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10809done
10810PS1='$ '
10811PS2='> '
10812PS4='+ '
10813
10814# NLS nuisances.
10815LC_ALL=C
10816export LC_ALL
10817LANGUAGE=C
10818export LANGUAGE
10819
10820# CDPATH.
10821(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10822
10823
10824# as_fn_error STATUS ERROR [LINENO LOG_FD]
10825# ----------------------------------------
10826# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10827# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10828# script with STATUS, using 1 if that was 0.
10829as_fn_error ()
10830{
10831 as_status=$1; test $as_status -eq 0 && as_status=1
10832 if test "$4"; then
10833 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10834 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10835 fi
10836 $as_echo "$as_me: error: $2" >&2
10837 as_fn_exit $as_status
10838} # as_fn_error
10839
10840
10841# as_fn_set_status STATUS
10842# -----------------------
10843# Set $? to STATUS, without forking.
10844as_fn_set_status ()
10845{
10846 return $1
10847} # as_fn_set_status
10848
10849# as_fn_exit STATUS
10850# -----------------
10851# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10852as_fn_exit ()
10853{
10854 set +e
10855 as_fn_set_status $1
10856 exit $1
10857} # as_fn_exit
10858
10859# as_fn_unset VAR
10860# ---------------
10861# Portably unset VAR.
10862as_fn_unset ()
10863{
10864 { eval $1=; unset $1;}
10865}
10866as_unset=as_fn_unset
10867# as_fn_append VAR VALUE
10868# ----------------------
10869# Append the text in VALUE to the end of the definition contained in VAR. Take
10870# advantage of any shell optimizations that allow amortized linear growth over
10871# repeated appends, instead of the typical quadratic growth present in naive
10872# implementations.
10873if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10874 eval 'as_fn_append ()
10875 {
10876 eval $1+=\$2
10877 }'
10878else
10879 as_fn_append ()
10880 {
10881 eval $1=\$$1\$2
10882 }
10883fi # as_fn_append
10884
10885# as_fn_arith ARG...
10886# ------------------
10887# Perform arithmetic evaluation on the ARGs, and store the result in the
10888# global $as_val. Take advantage of shells that can avoid forks. The arguments
10889# must be portable across $(()) and expr.
10890if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10891 eval 'as_fn_arith ()
10892 {
10893 as_val=$(( $* ))
10894 }'
10895else
10896 as_fn_arith ()
10897 {
10898 as_val=`expr "$@" || test $? -eq 1`
10899 }
10900fi # as_fn_arith
10901
10902
10903if expr a : '\(a\)' >/dev/null 2>&1 &&
10904 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10905 as_expr=expr
10906else
10907 as_expr=false
10908fi
10909
10910if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10911 as_basename=basename
10912else
10913 as_basename=false
10914fi
10915
10916if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10917 as_dirname=dirname
10918else
10919 as_dirname=false
10920fi
10921
10922as_me=`$as_basename -- "$0" ||
10923$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10924 X"$0" : 'X\(//\)$' \| \
10925 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10926$as_echo X/"$0" |
10927 sed '/^.*\/\([^/][^/]*\)\/*$/{
10928 s//\1/
10929 q
10930 }
10931 /^X\/\(\/\/\)$/{
10932 s//\1/
10933 q
10934 }
10935 /^X\/\(\/\).*/{
10936 s//\1/
10937 q
10938 }
10939 s/.*/./; q'`
10940
10941# Avoid depending upon Character Ranges.
10942as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10943as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10944as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10945as_cr_digits='0123456789'
10946as_cr_alnum=$as_cr_Letters$as_cr_digits
10947
10948ECHO_C= ECHO_N= ECHO_T=
10949case `echo -n x` in #(((((
10950-n*)
10951 case `echo 'xy\c'` in
10952 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10953 xy) ECHO_C='\c';;
10954 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10955 ECHO_T=' ';;
10956 esac;;
10957*)
10958 ECHO_N='-n';;
10959esac
10960
10961rm -f conf$$ conf$$.exe conf$$.file
10962if test -d conf$$.dir; then
10963 rm -f conf$$.dir/conf$$.file
10964else
10965 rm -f conf$$.dir
10966 mkdir conf$$.dir 2>/dev/null
10967fi
10968if (echo >conf$$.file) 2>/dev/null; then
10969 if ln -s conf$$.file conf$$ 2>/dev/null; then
10970 as_ln_s='ln -s'
10971 # ... but there are two gotchas:
10972 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10973 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10974 # In both cases, we have to default to `cp -p'.
10975 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10976 as_ln_s='cp -p'
10977 elif ln conf$$.file conf$$ 2>/dev/null; then
10978 as_ln_s=ln
10979 else
10980 as_ln_s='cp -p'
10981 fi
10982else
10983 as_ln_s='cp -p'
10984fi
10985rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10986rmdir conf$$.dir 2>/dev/null
10987
10988
10989# as_fn_mkdir_p
10990# -------------
10991# Create "$as_dir" as a directory, including parents if necessary.
10992as_fn_mkdir_p ()
10993{
10994
10995 case $as_dir in #(
10996 -*) as_dir=./$as_dir;;
10997 esac
10998 test -d "$as_dir" || eval $as_mkdir_p || {
10999 as_dirs=
11000 while :; do
11001 case $as_dir in #(
11002 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11003 *) as_qdir=$as_dir;;
11004 esac
11005 as_dirs="'$as_qdir' $as_dirs"
11006 as_dir=`$as_dirname -- "$as_dir" ||
11007$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11008 X"$as_dir" : 'X\(//\)[^/]' \| \
11009 X"$as_dir" : 'X\(//\)$' \| \
11010 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11011$as_echo X"$as_dir" |
11012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11013 s//\1/
11014 q
11015 }
11016 /^X\(\/\/\)[^/].*/{
11017 s//\1/
11018 q
11019 }
11020 /^X\(\/\/\)$/{
11021 s//\1/
11022 q
11023 }
11024 /^X\(\/\).*/{
11025 s//\1/
11026 q
11027 }
11028 s/.*/./; q'`
11029 test -d "$as_dir" && break
11030 done
11031 test -z "$as_dirs" || eval "mkdir $as_dirs"
11032 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11033
11034
11035} # as_fn_mkdir_p
11036if mkdir -p . 2>/dev/null; then
11037 as_mkdir_p='mkdir -p "$as_dir"'
11038else
11039 test -d ./-p && rmdir ./-p
11040 as_mkdir_p=false
11041fi
11042
11043if test -x / >/dev/null 2>&1; then
11044 as_test_x='test -x'
11045else
11046 if ls -dL / >/dev/null 2>&1; then
11047 as_ls_L_option=L
11048 else
11049 as_ls_L_option=
11050 fi
11051 as_test_x='
11052 eval sh -c '\''
11053 if test -d "$1"; then
11054 test -d "$1/.";
11055 else
11056 case $1 in #(
11057 -*)set "./$1";;
11058 esac;
11059 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11060 ???[sx]*):;;*)false;;esac;fi
11061 '\'' sh
11062 '
11063fi
11064as_executable_p=$as_test_x
11065
11066# Sed expression to map a string onto a valid CPP name.
11067as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11068
11069# Sed expression to map a string onto a valid variable name.
11070as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11071
11072
11073exec 6>&1
11074## ----------------------------------- ##
11075## Main body of $CONFIG_STATUS script. ##
11076## ----------------------------------- ##
11077_ASEOF
11078test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11079
11080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11081# Save the log message, to keep $0 and so on meaningful, and to
11082# report actual input values of CONFIG_FILES etc. instead of their
11083# values after options handling.
11084ac_log="
11085This file was extended by $as_me, which was
11086generated by GNU Autoconf 2.66. Invocation command line was
11087
11088 CONFIG_FILES = $CONFIG_FILES
11089 CONFIG_HEADERS = $CONFIG_HEADERS
11090 CONFIG_LINKS = $CONFIG_LINKS
11091 CONFIG_COMMANDS = $CONFIG_COMMANDS
11092 $ $0 $@
11093
11094on `(hostname || uname -n) 2>/dev/null | sed 1q`
11095"
11096
11097_ACEOF
11098
11099case $ac_config_files in *"
11100"*) set x $ac_config_files; shift; ac_config_files=$*;;
11101esac
11102
11103case $ac_config_headers in *"
11104"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11105esac
11106
11107
11108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11109# Files that config.status was made for.
11110config_files="$ac_config_files"
11111config_headers="$ac_config_headers"
11112
11113_ACEOF
11114
11115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11116ac_cs_usage="\
11117\`$as_me' instantiates files and other configuration actions
11118from templates according to the current configuration. Unless the files
11119and actions are specified as TAGs, all are instantiated by default.
11120
11121Usage: $0 [OPTION]... [TAG]...
11122
11123 -h, --help print this help, then exit
11124 -V, --version print version number and configuration settings, then exit
11125 --config print configuration, then exit
11126 -q, --quiet, --silent
11127 do not print progress messages
11128 -d, --debug don't remove temporary files
11129 --recheck update $as_me by reconfiguring in the same conditions
11130 --file=FILE[:TEMPLATE]
11131 instantiate the configuration file FILE
11132 --header=FILE[:TEMPLATE]
11133 instantiate the configuration header FILE
11134
11135Configuration files:
11136$config_files
11137
11138Configuration headers:
11139$config_headers
11140
11141Report bugs to the package provider."
11142
11143_ACEOF
11144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11145ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11146ac_cs_version="\\
11147config.status
11148configured by $0, generated by GNU Autoconf 2.66,
11149 with options \\"\$ac_cs_config\\"
11150
11151Copyright (C) 2010 Free Software Foundation, Inc.
11152This config.status script is free software; the Free Software Foundation
11153gives unlimited permission to copy, distribute and modify it."
11154
11155ac_pwd='$ac_pwd'
11156srcdir='$srcdir'
11157INSTALL='$INSTALL'
11158MKDIR_P='$MKDIR_P'
11159AWK='$AWK'
11160test -n "\$AWK" || AWK=awk
11161_ACEOF
11162
11163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11164# The default lists apply if the user does not specify any file.
11165ac_need_defaults=:
11166while test $# != 0
11167do
11168 case $1 in
11169 --*=*)
11170 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11171 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11172 ac_shift=:
11173 ;;
11174 *)
11175 ac_option=$1
11176 ac_optarg=$2
11177 ac_shift=shift
11178 ;;
11179 esac
11180
11181 case $ac_option in
11182 # Handling of the options.
11183 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11184 ac_cs_recheck=: ;;
11185 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11186 $as_echo "$ac_cs_version"; exit ;;
11187 --config | --confi | --conf | --con | --co | --c )
11188 $as_echo "$ac_cs_config"; exit ;;
11189 --debug | --debu | --deb | --de | --d | -d )
11190 debug=: ;;
11191 --file | --fil | --fi | --f )
11192 $ac_shift
11193 case $ac_optarg in
11194 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11195 esac
11196 as_fn_append CONFIG_FILES " '$ac_optarg'"
11197 ac_need_defaults=false;;
11198 --header | --heade | --head | --hea )
11199 $ac_shift
11200 case $ac_optarg in
11201 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11202 esac
11203 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11204 ac_need_defaults=false;;
11205 --he | --h)
11206 # Conflict between --help and --header
11207 as_fn_error $? "ambiguous option: \`$1'
11208Try \`$0 --help' for more information.";;
11209 --help | --hel | -h )
11210 $as_echo "$ac_cs_usage"; exit ;;
11211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11212 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11213 ac_cs_silent=: ;;
11214
11215 # This is an error.
11216 -*) as_fn_error $? "unrecognized option: \`$1'
11217Try \`$0 --help' for more information." ;;
11218
11219 *) as_fn_append ac_config_targets " $1"
11220 ac_need_defaults=false ;;
11221
11222 esac
11223 shift
11224done
11225
11226ac_configure_extra_args=
11227
11228if $ac_cs_silent; then
11229 exec 6>/dev/null
11230 ac_configure_extra_args="$ac_configure_extra_args --silent"
11231fi
11232
11233_ACEOF
11234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11235if \$ac_cs_recheck; then
11236 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11237 shift
11238 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11239 CONFIG_SHELL='$SHELL'
11240 export CONFIG_SHELL
11241 exec "\$@"
11242fi
11243
11244_ACEOF
11245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11246exec 5>>config.log
11247{
11248 echo
11249 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11250## Running $as_me. ##
11251_ASBOX
11252 $as_echo "$ac_log"
11253} >&5
11254
11255_ACEOF
11256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11257_ACEOF
11258
11259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11260
11261# Handling of arguments.
11262for ac_config_target in $ac_config_targets
11263do
11264 case $ac_config_target in
11265 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11266 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11267 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11268 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11269 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
11270 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
11271 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11272 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
11273 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
11274 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
11275 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
11276 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11277 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
11278 "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
11279 "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
11280 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11281 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
11282 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
11283 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11284 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11285 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11286 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11287 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11288 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
11289 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
11290 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
11291 "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;;
11292 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
11293 "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;;
11294 "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;;
11295 "libdaemon/client/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/client/Makefile" ;;
11296 "libdaemon/server/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/server/Makefile" ;;
11297 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11298 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
11299 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
11300 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
11301 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11302 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
11303 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
11304 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
11305 "scripts/lvm2_lvmetad_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_init_red_hat" ;;
11306 "scripts/lvm2_lvmetad_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.socket" ;;
11307 "scripts/lvm2_lvmetad_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.service" ;;
11308 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
11309 "scripts/dm_event_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.socket" ;;
11310 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11311 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
11312 "scripts/lvm2_tmpfiles_red_hat.conf") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_tmpfiles_red_hat.conf" ;;
11313 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
11314 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11315 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
11316 "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;;
11317 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11318 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
11319 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11320 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
11321 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
11322
11323 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11324 esac
11325done
11326
11327
11328# If the user did not use the arguments to specify the items to instantiate,
11329# then the envvar interface is used. Set only those that are not.
11330# We use the long form for the default assignment because of an extremely
11331# bizarre bug on SunOS 4.1.3.
11332if $ac_need_defaults; then
11333 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11334 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11335fi
11336
11337# Have a temporary directory for convenience. Make it in the build tree
11338# simply because there is no reason against having it here, and in addition,
11339# creating and moving files from /tmp can sometimes cause problems.
11340# Hook for its removal unless debugging.
11341# Note that there is a small window in which the directory will not be cleaned:
11342# after its creation but before its name has been assigned to `$tmp'.
11343$debug ||
11344{
11345 tmp=
11346 trap 'exit_status=$?
11347 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11348' 0
11349 trap 'as_fn_exit 1' 1 2 13 15
11350}
11351# Create a (secure) tmp directory for tmp files.
11352
11353{
11354 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11355 test -n "$tmp" && test -d "$tmp"
11356} ||
11357{
11358 tmp=./conf$$-$RANDOM
11359 (umask 077 && mkdir "$tmp")
11360} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11361
11362# Set up the scripts for CONFIG_FILES section.
11363# No need to generate them if there are no CONFIG_FILES.
11364# This happens for instance with `./config.status config.h'.
11365if test -n "$CONFIG_FILES"; then
11366
11367
11368ac_cr=`echo X | tr X '\015'`
11369# On cygwin, bash can eat \r inside `` if the user requested igncr.
11370# But we know of no other shell where ac_cr would be empty at this
11371# point, so we can use a bashism as a fallback.
11372if test "x$ac_cr" = x; then
11373 eval ac_cr=\$\'\\r\'
11374fi
11375ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11376if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11377 ac_cs_awk_cr='\\r'
11378else
11379 ac_cs_awk_cr=$ac_cr
11380fi
11381
11382echo 'BEGIN {' >"$tmp/subs1.awk" &&
11383_ACEOF
11384
11385
11386{
11387 echo "cat >conf$$subs.awk <<_ACEOF" &&
11388 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11389 echo "_ACEOF"
11390} >conf$$subs.sh ||
11391 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11392ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11393ac_delim='%!_!# '
11394for ac_last_try in false false false false false :; do
11395 . ./conf$$subs.sh ||
11396 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11397
11398 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11399 if test $ac_delim_n = $ac_delim_num; then
11400 break
11401 elif $ac_last_try; then
11402 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11403 else
11404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11405 fi
11406done
11407rm -f conf$$subs.sh
11408
11409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11410cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11411_ACEOF
11412sed -n '
11413h
11414s/^/S["/; s/!.*/"]=/
11415p
11416g
11417s/^[^!]*!//
11418:repl
11419t repl
11420s/'"$ac_delim"'$//
11421t delim
11422:nl
11423h
11424s/\(.\{148\}\)..*/\1/
11425t more1
11426s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11427p
11428n
11429b repl
11430:more1
11431s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11432p
11433g
11434s/.\{148\}//
11435t nl
11436:delim
11437h
11438s/\(.\{148\}\)..*/\1/
11439t more2
11440s/["\\]/\\&/g; s/^/"/; s/$/"/
11441p
11442b
11443:more2
11444s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11445p
11446g
11447s/.\{148\}//
11448t delim
11449' <conf$$subs.awk | sed '
11450/^[^""]/{
11451 N
11452 s/\n//
11453}
11454' >>$CONFIG_STATUS || ac_write_fail=1
11455rm -f conf$$subs.awk
11456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11457_ACAWK
11458cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11459 for (key in S) S_is_set[key] = 1
11460 FS = "\a"
11461
11462}
11463{
11464 line = $ 0
11465 nfields = split(line, field, "@")
11466 substed = 0
11467 len = length(field[1])
11468 for (i = 2; i < nfields; i++) {
11469 key = field[i]
11470 keylen = length(key)
11471 if (S_is_set[key]) {
11472 value = S[key]
11473 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11474 len += length(value) + length(field[++i])
11475 substed = 1
11476 } else
11477 len += 1 + keylen
11478 }
11479
11480 print line
11481}
11482
11483_ACAWK
11484_ACEOF
11485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11486if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11487 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11488else
11489 cat
11490fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11491 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11492_ACEOF
11493
11494# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11495# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11496# trailing colons and then remove the whole line if VPATH becomes empty
11497# (actually we leave an empty line to preserve line numbers).
11498if test "x$srcdir" = x.; then
11499 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11500h
11501s///
11502s/^/:/
11503s/[ ]*$/:/
11504s/:\$(srcdir):/:/g
11505s/:\${srcdir}:/:/g
11506s/:@srcdir@:/:/g
11507s/^:*//
11508s/:*$//
11509x
11510s/\(=[ ]*\).*/\1/
11511G
11512s/\n//
11513s/^[^=]*=[ ]*$//
11514}'
11515fi
11516
11517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11518fi # test -n "$CONFIG_FILES"
11519
11520# Set up the scripts for CONFIG_HEADERS section.
11521# No need to generate them if there are no CONFIG_HEADERS.
11522# This happens for instance with `./config.status Makefile'.
11523if test -n "$CONFIG_HEADERS"; then
11524cat >"$tmp/defines.awk" <<\_ACAWK ||
11525BEGIN {
11526_ACEOF
11527
11528# Transform confdefs.h into an awk script `defines.awk', embedded as
11529# here-document in config.status, that substitutes the proper values into
11530# config.h.in to produce config.h.
11531
11532# Create a delimiter string that does not exist in confdefs.h, to ease
11533# handling of long lines.
11534ac_delim='%!_!# '
11535for ac_last_try in false false :; do
11536 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11537 if test -z "$ac_t"; then
11538 break
11539 elif $ac_last_try; then
11540 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11541 else
11542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11543 fi
11544done
11545
11546# For the awk script, D is an array of macro values keyed by name,
11547# likewise P contains macro parameters if any. Preserve backslash
11548# newline sequences.
11549
11550ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11551sed -n '
11552s/.\{148\}/&'"$ac_delim"'/g
11553t rset
11554:rset
11555s/^[ ]*#[ ]*define[ ][ ]*/ /
11556t def
11557d
11558:def
11559s/\\$//
11560t bsnl
11561s/["\\]/\\&/g
11562s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11563D["\1"]=" \3"/p
11564s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11565d
11566:bsnl
11567s/["\\]/\\&/g
11568s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11569D["\1"]=" \3\\\\\\n"\\/p
11570t cont
11571s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11572t cont
11573d
11574:cont
11575n
11576s/.\{148\}/&'"$ac_delim"'/g
11577t clear
11578:clear
11579s/\\$//
11580t bsnlc
11581s/["\\]/\\&/g; s/^/"/; s/$/"/p
11582d
11583:bsnlc
11584s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11585b cont
11586' <confdefs.h | sed '
11587s/'"$ac_delim"'/"\\\
11588"/g' >>$CONFIG_STATUS || ac_write_fail=1
11589
11590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11591 for (key in D) D_is_set[key] = 1
11592 FS = "\a"
11593}
11594/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11595 line = \$ 0
11596 split(line, arg, " ")
11597 if (arg[1] == "#") {
11598 defundef = arg[2]
11599 mac1 = arg[3]
11600 } else {
11601 defundef = substr(arg[1], 2)
11602 mac1 = arg[2]
11603 }
11604 split(mac1, mac2, "(") #)
11605 macro = mac2[1]
11606 prefix = substr(line, 1, index(line, defundef) - 1)
11607 if (D_is_set[macro]) {
11608 # Preserve the white space surrounding the "#".
11609 print prefix "define", macro P[macro] D[macro]
11610 next
11611 } else {
11612 # Replace #undef with comments. This is necessary, for example,
11613 # in the case of _POSIX_SOURCE, which is predefined and required
11614 # on some systems where configure will not decide to define it.
11615 if (defundef == "undef") {
11616 print "/*", prefix defundef, macro, "*/"
11617 next
11618 }
11619 }
11620}
11621{ print }
11622_ACAWK
11623_ACEOF
11624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11625 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11626fi # test -n "$CONFIG_HEADERS"
11627
11628
11629eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11630shift
11631for ac_tag
11632do
11633 case $ac_tag in
11634 :[FHLC]) ac_mode=$ac_tag; continue;;
11635 esac
11636 case $ac_mode$ac_tag in
11637 :[FHL]*:*);;
11638 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11639 :[FH]-) ac_tag=-:-;;
11640 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11641 esac
11642 ac_save_IFS=$IFS
11643 IFS=:
11644 set x $ac_tag
11645 IFS=$ac_save_IFS
11646 shift
11647 ac_file=$1
11648 shift
11649
11650 case $ac_mode in
11651 :L) ac_source=$1;;
11652 :[FH])
11653 ac_file_inputs=
11654 for ac_f
11655 do
11656 case $ac_f in
11657 -) ac_f="$tmp/stdin";;
11658 *) # Look for the file first in the build tree, then in the source tree
11659 # (if the path is not absolute). The absolute path cannot be DOS-style,
11660 # because $ac_f cannot contain `:'.
11661 test -f "$ac_f" ||
11662 case $ac_f in
11663 [\\/$]*) false;;
11664 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11665 esac ||
11666 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11667 esac
11668 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11669 as_fn_append ac_file_inputs " '$ac_f'"
11670 done
11671
11672 # Let's still pretend it is `configure' which instantiates (i.e., don't
11673 # use $as_me), people would be surprised to read:
11674 # /* config.h. Generated by config.status. */
11675 configure_input='Generated from '`
11676 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11677 `' by configure.'
11678 if test x"$ac_file" != x-; then
11679 configure_input="$ac_file. $configure_input"
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11681$as_echo "$as_me: creating $ac_file" >&6;}
11682 fi
11683 # Neutralize special characters interpreted by sed in replacement strings.
11684 case $configure_input in #(
11685 *\&* | *\|* | *\\* )
11686 ac_sed_conf_input=`$as_echo "$configure_input" |
11687 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11688 *) ac_sed_conf_input=$configure_input;;
11689 esac
11690
11691 case $ac_tag in
11692 *:-:* | *:-) cat >"$tmp/stdin" \
11693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11694 esac
11695 ;;
11696 esac
11697
11698 ac_dir=`$as_dirname -- "$ac_file" ||
11699$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11700 X"$ac_file" : 'X\(//\)[^/]' \| \
11701 X"$ac_file" : 'X\(//\)$' \| \
11702 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11703$as_echo X"$ac_file" |
11704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11705 s//\1/
11706 q
11707 }
11708 /^X\(\/\/\)[^/].*/{
11709 s//\1/
11710 q
11711 }
11712 /^X\(\/\/\)$/{
11713 s//\1/
11714 q
11715 }
11716 /^X\(\/\).*/{
11717 s//\1/
11718 q
11719 }
11720 s/.*/./; q'`
11721 as_dir="$ac_dir"; as_fn_mkdir_p
11722 ac_builddir=.
11723
11724case "$ac_dir" in
11725.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11726*)
11727 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11728 # A ".." for each directory in $ac_dir_suffix.
11729 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11730 case $ac_top_builddir_sub in
11731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11733 esac ;;
11734esac
11735ac_abs_top_builddir=$ac_pwd
11736ac_abs_builddir=$ac_pwd$ac_dir_suffix
11737# for backward compatibility:
11738ac_top_builddir=$ac_top_build_prefix
11739
11740case $srcdir in
11741 .) # We are building in place.
11742 ac_srcdir=.
11743 ac_top_srcdir=$ac_top_builddir_sub
11744 ac_abs_top_srcdir=$ac_pwd ;;
11745 [\\/]* | ?:[\\/]* ) # Absolute name.
11746 ac_srcdir=$srcdir$ac_dir_suffix;
11747 ac_top_srcdir=$srcdir
11748 ac_abs_top_srcdir=$srcdir ;;
11749 *) # Relative name.
11750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11751 ac_top_srcdir=$ac_top_build_prefix$srcdir
11752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11753esac
11754ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11755
11756
11757 case $ac_mode in
11758 :F)
11759 #
11760 # CONFIG_FILE
11761 #
11762
11763 case $INSTALL in
11764 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11765 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11766 esac
11767 ac_MKDIR_P=$MKDIR_P
11768 case $MKDIR_P in
11769 [\\/$]* | ?:[\\/]* ) ;;
11770 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11771 esac
11772_ACEOF
11773
11774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11775# If the template does not know about datarootdir, expand it.
11776# FIXME: This hack should be removed a few years after 2.60.
11777ac_datarootdir_hack=; ac_datarootdir_seen=
11778ac_sed_dataroot='
11779/datarootdir/ {
11780 p
11781 q
11782}
11783/@datadir@/p
11784/@docdir@/p
11785/@infodir@/p
11786/@localedir@/p
11787/@mandir@/p'
11788case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11789*datarootdir*) ac_datarootdir_seen=yes;;
11790*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11792$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11793_ACEOF
11794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11795 ac_datarootdir_hack='
11796 s&@datadir@&$datadir&g
11797 s&@docdir@&$docdir&g
11798 s&@infodir@&$infodir&g
11799 s&@localedir@&$localedir&g
11800 s&@mandir@&$mandir&g
11801 s&\\\${datarootdir}&$datarootdir&g' ;;
11802esac
11803_ACEOF
11804
11805# Neutralize VPATH when `$srcdir' = `.'.
11806# Shell code in configure.ac might set extrasub.
11807# FIXME: do we really want to maintain this feature?
11808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11809ac_sed_extra="$ac_vpsub
11810$extrasub
11811_ACEOF
11812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11813:t
11814/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11815s|@configure_input@|$ac_sed_conf_input|;t t
11816s&@top_builddir@&$ac_top_builddir_sub&;t t
11817s&@top_build_prefix@&$ac_top_build_prefix&;t t
11818s&@srcdir@&$ac_srcdir&;t t
11819s&@abs_srcdir@&$ac_abs_srcdir&;t t
11820s&@top_srcdir@&$ac_top_srcdir&;t t
11821s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11822s&@builddir@&$ac_builddir&;t t
11823s&@abs_builddir@&$ac_abs_builddir&;t t
11824s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11825s&@INSTALL@&$ac_INSTALL&;t t
11826s&@MKDIR_P@&$ac_MKDIR_P&;t t
11827$ac_datarootdir_hack
11828"
11829eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11831
11832test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11833 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11834 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11836which seems to be undefined. Please make sure it is defined" >&5
11837$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11838which seems to be undefined. Please make sure it is defined" >&2;}
11839
11840 rm -f "$tmp/stdin"
11841 case $ac_file in
11842 -) cat "$tmp/out" && rm -f "$tmp/out";;
11843 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11844 esac \
11845 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11846 ;;
11847 :H)
11848 #
11849 # CONFIG_HEADER
11850 #
11851 if test x"$ac_file" != x-; then
11852 {
11853 $as_echo "/* $configure_input */" \
11854 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11855 } >"$tmp/config.h" \
11856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11857 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11859$as_echo "$as_me: $ac_file is unchanged" >&6;}
11860 else
11861 rm -f "$ac_file"
11862 mv "$tmp/config.h" "$ac_file" \
11863 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11864 fi
11865 else
11866 $as_echo "/* $configure_input */" \
11867 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11868 || as_fn_error $? "could not create -" "$LINENO" 5
11869 fi
11870 ;;
11871
11872
11873 esac
11874
11875done # for ac_tag
11876
11877
11878as_fn_exit 0
11879_ACEOF
11880ac_clean_files=$ac_clean_files_save
11881
11882test $ac_write_fail = 0 ||
11883 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11884
11885
11886# configure is writing to config.log, and then calls config.status.
11887# config.status does its own redirection, appending to config.log.
11888# Unfortunately, on DOS this fails, as config.log is still kept open
11889# by configure, so config.status won't be able to write to it; its
11890# output is simply discarded. So we exec the FD to /dev/null,
11891# effectively closing config.log, so it can be properly (re)opened and
11892# appended to by config.status. When coming back to configure, we
11893# need to make the FD available again.
11894if test "$no_create" != yes; then
11895 ac_cs_success=:
11896 ac_config_status_args=
11897 test "$silent" = yes &&
11898 ac_config_status_args="$ac_config_status_args --quiet"
11899 exec 5>/dev/null
11900 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11901 exec 5>>config.log
11902 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11903 # would make configure fail if this is the last instruction.
11904 $ac_cs_success || as_fn_exit 1
11905fi
11906if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11908$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11909fi
11910
11911
11912if test x$ODIRECT != xyes; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11914$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
11915fi
This page took 0.10923 seconds and 5 git commands to generate.