]> sourceware.org Git - lvm2.git/blob - configure
Add missing pkg_config_init check with --enable-udev_sync.
[lvm2.git] / configure
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
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if 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
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if 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 --'
49 elif (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'
52 else
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'
72 fi
73
74 # The user is always right.
75 if 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 }
81 fi
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.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
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
101 IFS=$as_save_IFS
102
103 ;;
104 esac
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.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
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.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if 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
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test 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
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
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
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
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
209 fi; }
210 IFS=$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+"$@"}
222 fi
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
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_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.
269 as_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.
279 as_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.
329 if (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 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # 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.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # 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.
364 as_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
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_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.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_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
452 ECHO_C= ECHO_N= ECHO_T=
453 case `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';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (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
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
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 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_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.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 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.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
556
557 ac_unique_file="lib/device/dev-cache.h"
558 # Factoring default headers for most tests.
559 ac_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
594 ac_header_list=
595 ac_default_prefix=/usr
596 ac_subst_vars='LTLIBOBJS
597 usrsbindir
598 usrlibdir
599 udevdir
600 udev_prefix
601 tmpdir
602 kernelvsn
603 missingkernel
604 kerneldir
605 interface
606 WRITE_INSTALL
607 UDEV_SYNC
608 UDEV_RULES
609 UDEV_PC
610 TESTING
611 STATIC_LINK
612 STATICDIR
613 SNAPSHOTS
614 SELINUX_PC
615 SELINUX_LIBS
616 READLINE_LIBS
617 PTHREAD_LIBS
618 POOL
619 PKGCONFIG
620 REPLICATORS
621 OCFDIR
622 OCF
623 MIRRORS
624 LVM_RELEASE_DATE
625 LVM_RELEASE
626 LVM_PATCHLEVEL
627 LVM_MINOR
628 LVM_MAJOR
629 LVM_LIBAPI
630 LVM_VERSION
631 LVM1_FALLBACK
632 LVM1
633 LOCALEDIR
634 LIB_SUFFIX
635 LDDEPS
636 JOBS
637 INTL_PACKAGE
638 INTL
639 HAVE_REALTIME
640 HAVE_LIBDL
641 FSADM
642 DM_LIB_PATCHLEVEL
643 DM_LIB_VERSION
644 DM_IOCTLS
645 DM_DEVICE_UID
646 DM_DEVICE_MODE
647 DM_DEVICE_GID
648 DM_COMPAT
649 DMEVENTD_PATH
650 DMEVENTD
651 DL_LIBS
652 DEVMAPPER
653 DEFAULT_RUN_DIR
654 DEFAULT_LOCK_DIR
655 DEFAULT_DATA_ALIGNMENT
656 DEFAULT_CACHE_SUBDIR
657 DEFAULT_BACKUP_SUBDIR
658 DEFAULT_ARCHIVE_SUBDIR
659 DEFAULT_SYS_DIR
660 DEBUG
661 COPTIMISE_FLAG
662 CONFDIR
663 CMDLIB
664 CLVMD_CMANAGERS
665 CLVMD
666 CLUSTER
667 CLDWHOLEARCHIVE
668 CLDNOWHOLEARCHIVE
669 CLDFLAGS
670 BUILD_DMEVENTD
671 BUILD_CMIRRORD
672 APPLIB
673 MODPROBE_CMD
674 MSGFMT
675 LVM2CMD_LIB
676 LVM2APP_LIB
677 UDEV_LIBS
678 UDEV_CFLAGS
679 VALGRIND
680 RUBY19
681 GENPNG
682 GENHTML
683 LCOV
684 SACKPT_LIBS
685 SACKPT_CFLAGS
686 DLM_LIBS
687 DLM_CFLAGS
688 CPG_LIBS
689 CPG_CFLAGS
690 CONFDB_LIBS
691 CONFDB_CFLAGS
692 SALCK_LIBS
693 SALCK_CFLAGS
694 QUORUM_LIBS
695 QUORUM_CFLAGS
696 COROSYNC_LIBS
697 COROSYNC_CFLAGS
698 CMAN_LIBS
699 CMAN_CFLAGS
700 GULM_LIBS
701 GULM_CFLAGS
702 CCS_LIBS
703 CCS_CFLAGS
704 PKGCONFIGINIT_LIBS
705 PKGCONFIGINIT_CFLAGS
706 PKG_CONFIG_LIBDIR
707 PKG_CONFIG_PATH
708 PKG_CONFIG
709 POW_LIB
710 LIBOBJS
711 ALLOCA
712 CSCOPE_CMD
713 CFLOW_CMD
714 RANLIB
715 MKDIR_P
716 SET_MAKE
717 LN_S
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 EGREP
722 GREP
723 CPP
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
730 CC
731 AWK
732 SED
733 target_os
734 target_vendor
735 target_cpu
736 target
737 host_os
738 host_vendor
739 host_cpu
740 host
741 build_os
742 build_vendor
743 build_cpu
744 build
745 target_alias
746 host_alias
747 build_alias
748 LIBS
749 ECHO_T
750 ECHO_N
751 ECHO_C
752 DEFS
753 mandir
754 localedir
755 libdir
756 psdir
757 pdfdir
758 dvidir
759 htmldir
760 infodir
761 docdir
762 oldincludedir
763 includedir
764 localstatedir
765 sharedstatedir
766 sysconfdir
767 datadir
768 datarootdir
769 libexecdir
770 sbindir
771 bindir
772 program_transform_name
773 prefix
774 exec_prefix
775 PACKAGE_URL
776 PACKAGE_BUGREPORT
777 PACKAGE_STRING
778 PACKAGE_VERSION
779 PACKAGE_TARNAME
780 PACKAGE_NAME
781 PATH_SEPARATOR
782 SHELL'
783 ac_subst_files=''
784 ac_user_opts='
785 enable_option_checking
786 enable_static_link
787 with_user
788 with_group
789 with_device_uid
790 with_device_gid
791 with_device_mode
792 with_device_nodes_on
793 enable_lvm1_fallback
794 with_lvm1
795 with_pool
796 with_cluster
797 with_snapshots
798 with_mirrors
799 with_replicators
800 enable_readline
801 enable_realtime
802 enable_ocf
803 with_ocfdir
804 with_clvmd
805 with_clvmd_pidfile
806 enable_cmirrord
807 with_cmirrord_pidfile
808 enable_debug
809 with_optimisation
810 enable_profiling
811 enable_testing
812 enable_valgrind_pool
813 enable_devmapper
814 enable_udev_sync
815 enable_udev_rules
816 enable_compat
817 enable_units_compat
818 enable_ioctl
819 enable_o_direct
820 enable_applib
821 enable_cmdlib
822 enable_pkgconfig
823 enable_write_install
824 enable_fsadm
825 enable_dmeventd
826 enable_selinux
827 enable_nls
828 with_localedir
829 with_confdir
830 with_staticdir
831 with_usrlibdir
832 with_usrsbindir
833 with_udev_prefix
834 with_udevdir
835 with_dmeventd_pidfile
836 with_dmeventd_path
837 with_default_run_dir
838 with_default_system_dir
839 with_default_archive_subdir
840 with_default_backup_subdir
841 with_default_cache_subdir
842 with_default_locking_dir
843 with_default_data_alignment
844 with_interface
845 '
846 ac_precious_vars='build_alias
847 host_alias
848 target_alias
849 CC
850 CFLAGS
851 LDFLAGS
852 LIBS
853 CPPFLAGS
854 CPP
855 PKG_CONFIG
856 PKG_CONFIG_PATH
857 PKG_CONFIG_LIBDIR
858 PKGCONFIGINIT_CFLAGS
859 PKGCONFIGINIT_LIBS
860 CCS_CFLAGS
861 CCS_LIBS
862 GULM_CFLAGS
863 GULM_LIBS
864 CMAN_CFLAGS
865 CMAN_LIBS
866 COROSYNC_CFLAGS
867 COROSYNC_LIBS
868 QUORUM_CFLAGS
869 QUORUM_LIBS
870 SALCK_CFLAGS
871 SALCK_LIBS
872 CONFDB_CFLAGS
873 CONFDB_LIBS
874 CPG_CFLAGS
875 CPG_LIBS
876 DLM_CFLAGS
877 DLM_LIBS
878 SACKPT_CFLAGS
879 SACKPT_LIBS
880 UDEV_CFLAGS
881 UDEV_LIBS'
882
883
884 # Initialize some variables set by options.
885 ac_init_help=
886 ac_init_version=false
887 ac_unrecognized_opts=
888 ac_unrecognized_sep=
889 # The variables have the same names as the options, with
890 # dashes changed to underlines.
891 cache_file=/dev/null
892 exec_prefix=NONE
893 no_create=
894 no_recursion=
895 prefix=NONE
896 program_prefix=NONE
897 program_suffix=NONE
898 program_transform_name=s,x,x,
899 silent=
900 site=
901 srcdir=
902 verbose=
903 x_includes=NONE
904 x_libraries=NONE
905
906 # Installation directory options.
907 # These are left unexpanded so users can "make install exec_prefix=/foo"
908 # and all the variables that are supposed to be based on exec_prefix
909 # by default will actually change.
910 # Use braces instead of parens because sh, perl, etc. also accept them.
911 # (The list follows the same order as the GNU Coding Standards.)
912 bindir='${exec_prefix}/bin'
913 sbindir='${exec_prefix}/sbin'
914 libexecdir='${exec_prefix}/libexec'
915 datarootdir='${prefix}/share'
916 datadir='${datarootdir}'
917 sysconfdir='${prefix}/etc'
918 sharedstatedir='${prefix}/com'
919 localstatedir='${prefix}/var'
920 includedir='${prefix}/include'
921 oldincludedir='/usr/include'
922 docdir='${datarootdir}/doc/${PACKAGE}'
923 infodir='${datarootdir}/info'
924 htmldir='${docdir}'
925 dvidir='${docdir}'
926 pdfdir='${docdir}'
927 psdir='${docdir}'
928 libdir='${exec_prefix}/lib'
929 localedir='${datarootdir}/locale'
930 mandir='${datarootdir}/man'
931
932 ac_prev=
933 ac_dashdash=
934 for ac_option
935 do
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
938 eval $ac_prev=\$ac_option
939 ac_prev=
940 continue
941 fi
942
943 case $ac_option in
944 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 *) ac_optarg=yes ;;
946 esac
947
948 # Accept the important Cygnus configure options, so we can diagnose typos.
949
950 case $ac_dashdash$ac_option in
951 --)
952 ac_dashdash=yes ;;
953
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
955 ac_prev=bindir ;;
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957 bindir=$ac_optarg ;;
958
959 -build | --build | --buil | --bui | --bu)
960 ac_prev=build_alias ;;
961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962 build_alias=$ac_optarg ;;
963
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969 cache_file=$ac_optarg ;;
970
971 --config-cache | -C)
972 cache_file=config.cache ;;
973
974 -datadir | --datadir | --datadi | --datad)
975 ac_prev=datadir ;;
976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
977 datadir=$ac_optarg ;;
978
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
985
986 -disable-* | --disable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error $? "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
994 *"
995 "enable_$ac_useropt"
996 "*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=no ;;
1001
1002 -docdir | --docdir | --docdi | --doc | --do)
1003 ac_prev=docdir ;;
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1006
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008 ac_prev=dvidir ;;
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1011
1012 -enable-* | --enable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error $? "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1020 *"
1021 "enable_$ac_useropt"
1022 "*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=\$ac_optarg ;;
1027
1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030 | --exec | --exe | --ex)
1031 ac_prev=exec_prefix ;;
1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034 | --exec=* | --exe=* | --ex=*)
1035 exec_prefix=$ac_optarg ;;
1036
1037 -gas | --gas | --ga | --g)
1038 # Obsolete; use --with-gas.
1039 with_gas=yes ;;
1040
1041 -help | --help | --hel | --he | -h)
1042 ac_init_help=long ;;
1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044 ac_init_help=recursive ;;
1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046 ac_init_help=short ;;
1047
1048 -host | --host | --hos | --ho)
1049 ac_prev=host_alias ;;
1050 -host=* | --host=* | --hos=* | --ho=*)
1051 host_alias=$ac_optarg ;;
1052
1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 ac_prev=htmldir ;;
1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 | --ht=*)
1057 htmldir=$ac_optarg ;;
1058
1059 -includedir | --includedir | --includedi | --included | --include \
1060 | --includ | --inclu | --incl | --inc)
1061 ac_prev=includedir ;;
1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063 | --includ=* | --inclu=* | --incl=* | --inc=*)
1064 includedir=$ac_optarg ;;
1065
1066 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 ac_prev=infodir ;;
1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069 infodir=$ac_optarg ;;
1070
1071 -libdir | --libdir | --libdi | --libd)
1072 ac_prev=libdir ;;
1073 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074 libdir=$ac_optarg ;;
1075
1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077 | --libexe | --libex | --libe)
1078 ac_prev=libexecdir ;;
1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080 | --libexe=* | --libex=* | --libe=*)
1081 libexecdir=$ac_optarg ;;
1082
1083 -localedir | --localedir | --localedi | --localed | --locale)
1084 ac_prev=localedir ;;
1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086 localedir=$ac_optarg ;;
1087
1088 -localstatedir | --localstatedir | --localstatedi | --localstated \
1089 | --localstate | --localstat | --localsta | --localst | --locals)
1090 ac_prev=localstatedir ;;
1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093 localstatedir=$ac_optarg ;;
1094
1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 ac_prev=mandir ;;
1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098 mandir=$ac_optarg ;;
1099
1100 -nfp | --nfp | --nf)
1101 # Obsolete; use --without-fp.
1102 with_fp=no ;;
1103
1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105 | --no-cr | --no-c | -n)
1106 no_create=yes ;;
1107
1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 no_recursion=yes ;;
1111
1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114 | --oldin | --oldi | --old | --ol | --o)
1115 ac_prev=oldincludedir ;;
1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119 oldincludedir=$ac_optarg ;;
1120
1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 ac_prev=prefix ;;
1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124 prefix=$ac_optarg ;;
1125
1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127 | --program-pre | --program-pr | --program-p)
1128 ac_prev=program_prefix ;;
1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131 program_prefix=$ac_optarg ;;
1132
1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134 | --program-suf | --program-su | --program-s)
1135 ac_prev=program_suffix ;;
1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138 program_suffix=$ac_optarg ;;
1139
1140 -program-transform-name | --program-transform-name \
1141 | --program-transform-nam | --program-transform-na \
1142 | --program-transform-n | --program-transform- \
1143 | --program-transform | --program-transfor \
1144 | --program-transfo | --program-transf \
1145 | --program-trans | --program-tran \
1146 | --progr-tra | --program-tr | --program-t)
1147 ac_prev=program_transform_name ;;
1148 -program-transform-name=* | --program-transform-name=* \
1149 | --program-transform-nam=* | --program-transform-na=* \
1150 | --program-transform-n=* | --program-transform-=* \
1151 | --program-transform=* | --program-transfor=* \
1152 | --program-transfo=* | --program-transf=* \
1153 | --program-trans=* | --program-tran=* \
1154 | --progr-tra=* | --program-tr=* | --program-t=*)
1155 program_transform_name=$ac_optarg ;;
1156
1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 ac_prev=pdfdir ;;
1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160 pdfdir=$ac_optarg ;;
1161
1162 -psdir | --psdir | --psdi | --psd | --ps)
1163 ac_prev=psdir ;;
1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 psdir=$ac_optarg ;;
1166
1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168 | -silent | --silent | --silen | --sile | --sil)
1169 silent=yes ;;
1170
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 ac_prev=sbindir ;;
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 | --sbi=* | --sb=*)
1175 sbindir=$ac_optarg ;;
1176
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1180 | --sha | --sh)
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 | --sha=* | --sh=*)
1186 sharedstatedir=$ac_optarg ;;
1187
1188 -site | --site | --sit)
1189 ac_prev=site ;;
1190 -site=* | --site=* | --sit=*)
1191 site=$ac_optarg ;;
1192
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 ac_prev=srcdir ;;
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196 srcdir=$ac_optarg ;;
1197
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203 sysconfdir=$ac_optarg ;;
1204
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
1206 ac_prev=target_alias ;;
1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208 target_alias=$ac_optarg ;;
1209
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211 verbose=yes ;;
1212
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
1215
1216 -with-* | --with-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=\$ac_optarg ;;
1231
1232 -without-* | --without-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1240 *"
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=no ;;
1247
1248 --x)
1249 # Obsolete; use --with-x.
1250 with_x=yes ;;
1251
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1258
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1265
1266 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1267 Try \`$0 --help' for more information"
1268 ;;
1269
1270 *=*)
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 case $ac_envvar in #(
1274 '' | [0-9]* | *[!_$as_cr_alnum]* )
1275 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1276 esac
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1279
1280 *)
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1286 ;;
1287
1288 esac
1289 done
1290
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 as_fn_error $? "missing argument to $ac_option"
1294 fi
1295
1296 if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1298 no) ;;
1299 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 esac
1302 fi
1303
1304 # Check all directory arguments for consistency.
1305 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1309 do
1310 eval ac_val=\$$ac_var
1311 # Remove trailing slashes.
1312 case $ac_val in
1313 */ )
1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\$ac_val;;
1316 esac
1317 # Be sure to have absolute directory names.
1318 case $ac_val in
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321 esac
1322 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1323 done
1324
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1328 build=$build_alias
1329 host=$host_alias
1330 target=$target_alias
1331
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x; then
1334 if test "x$build_alias" = x; then
1335 cross_compiling=maybe
1336 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1337 If a cross compiler is detected then cross compile mode will be used" >&2
1338 elif test "x$build_alias" != "x$host_alias"; then
1339 cross_compiling=yes
1340 fi
1341 fi
1342
1343 ac_tool_prefix=
1344 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345
1346 test "$silent" = yes && exec 6>/dev/null
1347
1348
1349 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350 ac_ls_di=`ls -di .` &&
1351 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1352 as_fn_error $? "working directory cannot be determined"
1353 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354 as_fn_error $? "pwd does not report name of working directory"
1355
1356
1357 # Find the source files, if location was not specified.
1358 if test -z "$srcdir"; then
1359 ac_srcdir_defaulted=yes
1360 # Try the directory containing this script, then the parent directory.
1361 ac_confdir=`$as_dirname -- "$as_myself" ||
1362 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363 X"$as_myself" : 'X\(//\)[^/]' \| \
1364 X"$as_myself" : 'X\(//\)$' \| \
1365 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1366 $as_echo X"$as_myself" |
1367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)[^/].*/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)$/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\).*/{
1380 s//\1/
1381 q
1382 }
1383 s/.*/./; q'`
1384 srcdir=$ac_confdir
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 srcdir=..
1387 fi
1388 else
1389 ac_srcdir_defaulted=no
1390 fi
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1393 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1394 fi
1395 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396 ac_abs_confdir=`(
1397 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1398 pwd)`
1399 # When building in place, set srcdir=.
1400 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 srcdir=.
1402 fi
1403 # Remove unnecessary trailing slashes from srcdir.
1404 # Double slashes in file names in object file debugging info
1405 # mess up M-x gdb in Emacs.
1406 case $srcdir in
1407 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 esac
1409 for ac_var in $ac_precious_vars; do
1410 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_env_${ac_var}_value=\$${ac_var}
1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414 done
1415
1416 #
1417 # Report the --help message.
1418 #
1419 if test "$ac_init_help" = "long"; then
1420 # Omit some internal or obsolete options to make the list less imposing.
1421 # This message is too long to be a string in the A/UX 3.1 sh.
1422 cat <<_ACEOF
1423 \`configure' configures this package to adapt to many kinds of systems.
1424
1425 Usage: $0 [OPTION]... [VAR=VALUE]...
1426
1427 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428 VAR=VALUE. See below for descriptions of some of the useful variables.
1429
1430 Defaults for the options are specified in brackets.
1431
1432 Configuration:
1433 -h, --help display this help and exit
1434 --help=short display options specific to this package
1435 --help=recursive display the short help of all the included packages
1436 -V, --version display version information and exit
1437 -q, --quiet, --silent do not print \`checking ...' messages
1438 --cache-file=FILE cache test results in FILE [disabled]
1439 -C, --config-cache alias for \`--cache-file=config.cache'
1440 -n, --no-create do not create output files
1441 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1442
1443 Installation directories:
1444 --prefix=PREFIX install architecture-independent files in PREFIX
1445 [$ac_default_prefix]
1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447 [PREFIX]
1448
1449 By default, \`make install' will install all the files in
1450 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1451 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452 for instance \`--prefix=\$HOME'.
1453
1454 For better control, use the options below.
1455
1456 Fine tuning of the installation directories:
1457 --bindir=DIR user executables [EPREFIX/bin]
1458 --sbindir=DIR system admin executables [EPREFIX/sbin]
1459 --libexecdir=DIR program executables [EPREFIX/libexec]
1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1463 --libdir=DIR object code libraries [EPREFIX/lib]
1464 --includedir=DIR C header files [PREFIX/include]
1465 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1468 --infodir=DIR info documentation [DATAROOTDIR/info]
1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1470 --mandir=DIR man documentation [DATAROOTDIR/man]
1471 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1472 --htmldir=DIR html documentation [DOCDIR]
1473 --dvidir=DIR dvi documentation [DOCDIR]
1474 --pdfdir=DIR pdf documentation [DOCDIR]
1475 --psdir=DIR ps documentation [DOCDIR]
1476 _ACEOF
1477
1478 cat <<\_ACEOF
1479
1480 System types:
1481 --build=BUILD configure for building on BUILD [guessed]
1482 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 --target=TARGET configure for building compilers for TARGET [HOST]
1484 _ACEOF
1485 fi
1486
1487 if test -n "$ac_init_help"; then
1488
1489 cat <<\_ACEOF
1490
1491 Optional Features:
1492 --disable-option-checking ignore unrecognized --enable/--with options
1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1495 --enable-static_link use this to link the tools to their libraries
1496 statically (default is dynamic linking
1497 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
1498 device-mapper is missing from the kernel
1499 --disable-readline disable readline support
1500 --enable-realtime enable realtime clock support
1501 --enable-ocf enable Open Cluster Framework (OCF) compliant
1502 resource agents
1503 --enable-cmirrord enable the cluster mirror log daemon
1504 --enable-debug enable debugging
1505 --enable-profiling gather gcov profiling data
1506 --enable-testing enable testing targets in the makefile
1507 --enable-valgrind-pool enable valgrind awareness of pools
1508 --disable-devmapper disable LVM2 device-mapper interaction
1509 --enable-udev_sync enable synchronisation with udev processing
1510 --enable-udev_rules install rule files needed for udev synchronisation
1511 --enable-compat enable support for old device-mapper versions
1512 --enable-units-compat enable output compatibility with old versions that
1513 that do not use KiB-style unit suffixes
1514 --disable-driver disable calls to device-mapper in the kernel
1515 --disable-o_direct disable O_DIRECT
1516 --enable-applib build application library
1517 --enable-cmdlib build shared command library
1518 --enable-pkgconfig install pkgconfig support
1519 --enable-write_install install user writable files
1520 --disable-fsadm disable fsadm
1521 --enable-dmeventd enable the device-mapper event daemon
1522 --disable-selinux disable selinux support
1523 --enable-nls enable Native Language Support
1524
1525 Optional Packages:
1526 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1527 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1528 --with-user=USER set the owner of installed files [[USER=]]
1529 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1530 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1531 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1532 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
1533 --with-device-nodes-on=ON
1534 create nodes on resume or create [[ON=resume]]
1535 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1536 [[TYPE=internal]]
1537 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1538 [[TYPE=internal]]
1539 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1540 [[TYPE=internal]]
1541 --with-snapshots=TYPE snapshot support: internal/shared/none
1542 [[TYPE=internal]]
1543 --with-mirrors=TYPE mirror support: internal/shared/none
1544 [[TYPE=internal]]
1545 --with-replicators=TYPE replicator support: internal/shared/none
1546 [[TYPE=none]]
1547 --with-ocfdir=DIR install OCF files in DIR
1548 [[PREFIX/lib/ocf/resource.d/lvm2]]
1549 --with-clvmd=TYPE build cluster LVM Daemon
1550 The following cluster manager combinations are valid:
1551 * cman,gulm (RHEL4 or equivalent)
1552 * cman (RHEL5 or equivalent)
1553 * cman,corosync,openais (or selection of them)
1554 * singlenode (localhost only)
1555 * all (autodetect)
1556 * none (disable build)
1557 [TYPE=none]
1558 --with-clvmd-pidfile=PATH
1559 clvmd pidfile [[/var/run/clvmd.pid]]
1560 --with-cmirrord-pidfile=PATH
1561 cmirrord pidfile [[/var/run/cmirrord.pid]]
1562 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1563 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1564 --with-confdir=DIR configuration files in DIR [[/etc]]
1565 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1566 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1567 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
1568 --with-udev-prefix=UPREFIX
1569 install udev rule files in UPREFIX [[EPREFIX]]
1570 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
1571 --with-dmeventd-pidfile=PATH
1572 dmeventd pidfile [[/var/run/dmeventd.pid]]
1573 --with-dmeventd-path=PATH
1574 dmeventd path [[EPREFIX/sbin/dmeventd]]
1575 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
1576 --with-default-system-dir=DIR
1577 default LVM system directory [[/etc/lvm]]
1578 --with-default-archive-subdir=SUBDIR
1579 default metadata archive subdir [[archive]]
1580 --with-default-backup-subdir=SUBDIR
1581 default metadata backup subdir [[backup]]
1582 --with-default-cache-subdir=SUBDIR
1583 default metadata cache subdir [[cache]]
1584 --with-default-locking-dir=DIR
1585 default locking directory [[/var/lock/lvm]]
1586 --with-default-data-alignment=NUM
1587 set the default data alignment in MiB [[1]]
1588 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
1589
1590 Some influential environment variables:
1591 CC C compiler command
1592 CFLAGS C compiler flags
1593 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1594 nonstandard directory <lib dir>
1595 LIBS libraries to pass to the linker, e.g. -l<library>
1596 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1597 you have headers in a nonstandard directory <include dir>
1598 CPP C preprocessor
1599 PKG_CONFIG path to pkg-config utility
1600 PKG_CONFIG_PATH
1601 directories to add to pkg-config's search path
1602 PKG_CONFIG_LIBDIR
1603 path overriding pkg-config's built-in search path
1604 PKGCONFIGINIT_CFLAGS
1605 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1606 PKGCONFIGINIT_LIBS
1607 linker flags for PKGCONFIGINIT, overriding pkg-config
1608 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1609 CCS_LIBS linker flags for CCS, overriding pkg-config
1610 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1611 GULM_LIBS linker flags for GULM, overriding pkg-config
1612 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1613 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1614 COROSYNC_CFLAGS
1615 C compiler flags for COROSYNC, overriding pkg-config
1616 COROSYNC_LIBS
1617 linker flags for COROSYNC, overriding pkg-config
1618 QUORUM_CFLAGS
1619 C compiler flags for QUORUM, overriding pkg-config
1620 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1621 SALCK_CFLAGS
1622 C compiler flags for SALCK, overriding pkg-config
1623 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1624 CONFDB_CFLAGS
1625 C compiler flags for CONFDB, overriding pkg-config
1626 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1627 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1628 CPG_LIBS linker flags for CPG, overriding pkg-config
1629 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1630 DLM_LIBS linker flags for DLM, overriding pkg-config
1631 SACKPT_CFLAGS
1632 C compiler flags for SACKPT, overriding pkg-config
1633 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1634 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1635 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1636
1637 Use these variables to override the choices made by `configure' or to help
1638 it to find libraries and programs with nonstandard names/locations.
1639
1640 Report bugs to the package provider.
1641 _ACEOF
1642 ac_status=$?
1643 fi
1644
1645 if test "$ac_init_help" = "recursive"; then
1646 # If there are subdirs, report their specific --help.
1647 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1648 test -d "$ac_dir" ||
1649 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1650 continue
1651 ac_builddir=.
1652
1653 case "$ac_dir" in
1654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *)
1656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1657 # A ".." for each directory in $ac_dir_suffix.
1658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1659 case $ac_top_builddir_sub in
1660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1662 esac ;;
1663 esac
1664 ac_abs_top_builddir=$ac_pwd
1665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666 # for backward compatibility:
1667 ac_top_builddir=$ac_top_build_prefix
1668
1669 case $srcdir in
1670 .) # We are building in place.
1671 ac_srcdir=.
1672 ac_top_srcdir=$ac_top_builddir_sub
1673 ac_abs_top_srcdir=$ac_pwd ;;
1674 [\\/]* | ?:[\\/]* ) # Absolute name.
1675 ac_srcdir=$srcdir$ac_dir_suffix;
1676 ac_top_srcdir=$srcdir
1677 ac_abs_top_srcdir=$srcdir ;;
1678 *) # Relative name.
1679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680 ac_top_srcdir=$ac_top_build_prefix$srcdir
1681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682 esac
1683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684
1685 cd "$ac_dir" || { ac_status=$?; continue; }
1686 # Check for guested configure.
1687 if test -f "$ac_srcdir/configure.gnu"; then
1688 echo &&
1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690 elif test -f "$ac_srcdir/configure"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure" --help=recursive
1693 else
1694 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695 fi || ac_status=$?
1696 cd "$ac_pwd" || { ac_status=$?; break; }
1697 done
1698 fi
1699
1700 test -n "$ac_init_help" && exit $ac_status
1701 if $ac_init_version; then
1702 cat <<\_ACEOF
1703 configure
1704 generated by GNU Autoconf 2.66
1705
1706 Copyright (C) 2010 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1709 _ACEOF
1710 exit
1711 fi
1712
1713 ## ------------------------ ##
1714 ## Autoconf initialization. ##
1715 ## ------------------------ ##
1716
1717 # ac_fn_c_try_compile LINENO
1718 # --------------------------
1719 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_c_try_compile ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext
1724 if { { ac_try="$ac_compile"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_compile") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest.$ac_objext; then :
1743 ac_retval=0
1744 else
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=1
1749 fi
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751 as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_compile
1754
1755 # ac_fn_c_try_cpp LINENO
1756 # ----------------------
1757 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758 ac_fn_c_try_cpp ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_cpp conftest.$ac_ext"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1774 fi
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } >/dev/null && {
1777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786 fi
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_cpp
1791
1792 # ac_fn_c_try_link LINENO
1793 # -----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_link ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 $as_test_x conftest$ac_exeext
1820 }; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827 fi
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 as_fn_set_status $ac_retval
1835
1836 } # ac_fn_c_try_link
1837
1838 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1839 # -------------------------------------------------------
1840 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1841 # the include files in INCLUDES and setting the cache variable VAR
1842 # accordingly.
1843 ac_fn_c_check_header_mongrel ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if eval "test \"\${$3+set}\"" = set; then :
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval "test \"\${$3+set}\"" = set; then :
1850 $as_echo_n "(cached) " >&6
1851 fi
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 else
1856 # Is the header compilable?
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1858 $as_echo_n "checking $2 usability... " >&6; }
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 $4
1862 #include <$2>
1863 _ACEOF
1864 if ac_fn_c_try_compile "$LINENO"; then :
1865 ac_header_compiler=yes
1866 else
1867 ac_header_compiler=no
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1871 $as_echo "$ac_header_compiler" >&6; }
1872
1873 # Is the header present?
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1875 $as_echo_n "checking $2 presence... " >&6; }
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1878 #include <$2>
1879 _ACEOF
1880 if ac_fn_c_try_cpp "$LINENO"; then :
1881 ac_header_preproc=yes
1882 else
1883 ac_header_preproc=no
1884 fi
1885 rm -f conftest.err conftest.$ac_ext
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1887 $as_echo "$ac_header_preproc" >&6; }
1888
1889 # So? What about this header?
1890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1891 yes:no: )
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1893 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1895 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1896 ;;
1897 no:yes:* )
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1899 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1901 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1903 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1905 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1908 ;;
1909 esac
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval "test \"\${$3+set}\"" = set; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 eval "$3=\$ac_header_compiler"
1916 fi
1917 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 fi
1921 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922
1923 } # ac_fn_c_check_header_mongrel
1924
1925 # ac_fn_c_try_run LINENO
1926 # ----------------------
1927 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1928 # that executables *can* be run.
1929 ac_fn_c_try_run ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { { ac_try="$ac_link"
1933 case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_link") 2>&5
1940 ac_status=$?
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1943 { { case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946 esac
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_try") 2>&5
1950 ac_status=$?
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; }; }; then :
1953 ac_retval=0
1954 else
1955 $as_echo "$as_me: program exited with status $ac_status" >&5
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1958
1959 ac_retval=$ac_status
1960 fi
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963 as_fn_set_status $ac_retval
1964
1965 } # ac_fn_c_try_run
1966
1967 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1968 # -------------------------------------------------------
1969 # Tests whether HEADER exists and can be compiled using the include files in
1970 # INCLUDES, setting the cache variable VAR accordingly.
1971 ac_fn_c_check_header_compile ()
1972 {
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval "test \"\${$3+set}\"" = set; then :
1977 $as_echo_n "(cached) " >&6
1978 else
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981 $4
1982 #include <$2>
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985 eval "$3=yes"
1986 else
1987 eval "$3=no"
1988 fi
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 fi
1991 eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1995
1996 } # ac_fn_c_check_header_compile
1997
1998 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1999 # ----------------------------------------------------
2000 # Tries to find if the field MEMBER exists in type AGGR, after including
2001 # INCLUDES, setting cache variable VAR accordingly.
2002 ac_fn_c_check_member ()
2003 {
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2006 $as_echo_n "checking for $2.$3... " >&6; }
2007 if eval "test \"\${$4+set}\"" = set; then :
2008 $as_echo_n "(cached) " >&6
2009 else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $5
2013 int
2014 main ()
2015 {
2016 static $2 ac_aggr;
2017 if (ac_aggr.$3)
2018 return 0;
2019 ;
2020 return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 eval "$4=yes"
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 $5
2029 int
2030 main ()
2031 {
2032 static $2 ac_aggr;
2033 if (sizeof ac_aggr.$3)
2034 return 0;
2035 ;
2036 return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 eval "$4=yes"
2041 else
2042 eval "$4=no"
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 fi
2048 eval ac_res=\$$4
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052
2053 } # ac_fn_c_check_member
2054
2055 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2056 # -------------------------------------------
2057 # Tests whether TYPE exists after having included INCLUDES, setting cache
2058 # variable VAR accordingly.
2059 ac_fn_c_check_type ()
2060 {
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if eval "test \"\${$3+set}\"" = set; then :
2065 $as_echo_n "(cached) " >&6
2066 else
2067 eval "$3=no"
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2070 $4
2071 int
2072 main ()
2073 {
2074 if (sizeof ($2))
2075 return 0;
2076 ;
2077 return 0;
2078 }
2079 _ACEOF
2080 if ac_fn_c_try_compile "$LINENO"; then :
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2083 $4
2084 int
2085 main ()
2086 {
2087 if (sizeof (($2)))
2088 return 0;
2089 ;
2090 return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094
2095 else
2096 eval "$3=yes"
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2106
2107 } # ac_fn_c_check_type
2108
2109 # ac_fn_c_find_intX_t LINENO BITS VAR
2110 # -----------------------------------
2111 # Finds a signed integer type with width BITS, setting cache variable VAR
2112 # accordingly.
2113 ac_fn_c_find_intX_t ()
2114 {
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2117 $as_echo_n "checking for int$2_t... " >&6; }
2118 if eval "test \"\${$3+set}\"" = set; then :
2119 $as_echo_n "(cached) " >&6
2120 else
2121 eval "$3=no"
2122 # Order is important - never check a type that is potentially smaller
2123 # than half of the expected target width.
2124 for ac_type in int$2_t 'int' 'long int' \
2125 'long long int' 'short int' 'signed char'; do
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2128 $ac_includes_default
2129 enum { N = $2 / 2 - 1 };
2130 int
2131 main ()
2132 {
2133 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2134 test_array [0] = 0
2135
2136 ;
2137 return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2143 $ac_includes_default
2144 enum { N = $2 / 2 - 1 };
2145 int
2146 main ()
2147 {
2148 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2149 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2150 test_array [0] = 0
2151
2152 ;
2153 return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157
2158 else
2159 case $ac_type in #(
2160 int$2_t) :
2161 eval "$3=yes" ;; #(
2162 *) :
2163 eval "$3=\$ac_type" ;;
2164 esac
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 fi
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 if eval test \"x\$"$3"\" = x"no"; then :
2170
2171 else
2172 break
2173 fi
2174 done
2175 fi
2176 eval ac_res=\$$3
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180
2181 } # ac_fn_c_find_intX_t
2182
2183 # ac_fn_c_find_uintX_t LINENO BITS VAR
2184 # ------------------------------------
2185 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2186 # accordingly.
2187 ac_fn_c_find_uintX_t ()
2188 {
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2191 $as_echo_n "checking for uint$2_t... " >&6; }
2192 if eval "test \"\${$3+set}\"" = set; then :
2193 $as_echo_n "(cached) " >&6
2194 else
2195 eval "$3=no"
2196 # Order is important - never check a type that is potentially smaller
2197 # than half of the expected target width.
2198 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2199 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2202 $ac_includes_default
2203 int
2204 main ()
2205 {
2206 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2207 test_array [0] = 0
2208
2209 ;
2210 return 0;
2211 }
2212 _ACEOF
2213 if ac_fn_c_try_compile "$LINENO"; then :
2214 case $ac_type in #(
2215 uint$2_t) :
2216 eval "$3=yes" ;; #(
2217 *) :
2218 eval "$3=\$ac_type" ;;
2219 esac
2220 fi
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 if eval test \"x\$"$3"\" = x"no"; then :
2223
2224 else
2225 break
2226 fi
2227 done
2228 fi
2229 eval ac_res=\$$3
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2233
2234 } # ac_fn_c_find_uintX_t
2235
2236 # ac_fn_c_check_func LINENO FUNC VAR
2237 # ----------------------------------
2238 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2239 ac_fn_c_check_func ()
2240 {
2241 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2243 $as_echo_n "checking for $2... " >&6; }
2244 if eval "test \"\${$3+set}\"" = set; then :
2245 $as_echo_n "(cached) " >&6
2246 else
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2249 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2251 #define $2 innocuous_$2
2252
2253 /* System header to define __stub macros and hopefully few prototypes,
2254 which can conflict with char $2 (); below.
2255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2256 <limits.h> exists even on freestanding compilers. */
2257
2258 #ifdef __STDC__
2259 # include <limits.h>
2260 #else
2261 # include <assert.h>
2262 #endif
2263
2264 #undef $2
2265
2266 /* Override any GCC internal prototype to avoid an error.
2267 Use char because int might match the return type of a GCC
2268 builtin and then its argument prototype would still apply. */
2269 #ifdef __cplusplus
2270 extern "C"
2271 #endif
2272 char $2 ();
2273 /* The GNU C library defines this for functions which it implements
2274 to always fail with ENOSYS. Some functions are actually named
2275 something starting with __ and the normal name is an alias. */
2276 #if defined __stub_$2 || defined __stub___$2
2277 choke me
2278 #endif
2279
2280 int
2281 main ()
2282 {
2283 return $2 ();
2284 ;
2285 return 0;
2286 }
2287 _ACEOF
2288 if ac_fn_c_try_link "$LINENO"; then :
2289 eval "$3=yes"
2290 else
2291 eval "$3=no"
2292 fi
2293 rm -f core conftest.err conftest.$ac_objext \
2294 conftest$ac_exeext conftest.$ac_ext
2295 fi
2296 eval ac_res=\$$3
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298 $as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2300
2301 } # ac_fn_c_check_func
2302 cat >config.log <<_ACEOF
2303 This file contains any messages produced by compilers while
2304 running configure, to aid debugging if configure makes a mistake.
2305
2306 It was created by $as_me, which was
2307 generated by GNU Autoconf 2.66. Invocation command line was
2308
2309 $ $0 $@
2310
2311 _ACEOF
2312 exec 5>>config.log
2313 {
2314 cat <<_ASUNAME
2315 ## --------- ##
2316 ## Platform. ##
2317 ## --------- ##
2318
2319 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2320 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2321 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2322 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2323 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2324
2325 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2326 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2327
2328 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2329 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2330 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2331 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2332 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2333 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2334 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2335
2336 _ASUNAME
2337
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 for as_dir in $PATH
2340 do
2341 IFS=$as_save_IFS
2342 test -z "$as_dir" && as_dir=.
2343 $as_echo "PATH: $as_dir"
2344 done
2345 IFS=$as_save_IFS
2346
2347 } >&5
2348
2349 cat >&5 <<_ACEOF
2350
2351
2352 ## ----------- ##
2353 ## Core tests. ##
2354 ## ----------- ##
2355
2356 _ACEOF
2357
2358
2359 # Keep a trace of the command line.
2360 # Strip out --no-create and --no-recursion so they do not pile up.
2361 # Strip out --silent because we don't want to record it for future runs.
2362 # Also quote any args containing shell meta-characters.
2363 # Make two passes to allow for proper duplicate-argument suppression.
2364 ac_configure_args=
2365 ac_configure_args0=
2366 ac_configure_args1=
2367 ac_must_keep_next=false
2368 for ac_pass in 1 2
2369 do
2370 for ac_arg
2371 do
2372 case $ac_arg in
2373 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2375 | -silent | --silent | --silen | --sile | --sil)
2376 continue ;;
2377 *\'*)
2378 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2379 esac
2380 case $ac_pass in
2381 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2382 2)
2383 as_fn_append ac_configure_args1 " '$ac_arg'"
2384 if test $ac_must_keep_next = true; then
2385 ac_must_keep_next=false # Got value, back to normal.
2386 else
2387 case $ac_arg in
2388 *=* | --config-cache | -C | -disable-* | --disable-* \
2389 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2390 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2391 | -with-* | --with-* | -without-* | --without-* | --x)
2392 case "$ac_configure_args0 " in
2393 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2394 esac
2395 ;;
2396 -* ) ac_must_keep_next=true ;;
2397 esac
2398 fi
2399 as_fn_append ac_configure_args " '$ac_arg'"
2400 ;;
2401 esac
2402 done
2403 done
2404 { ac_configure_args0=; unset ac_configure_args0;}
2405 { ac_configure_args1=; unset ac_configure_args1;}
2406
2407 # When interrupted or exit'd, cleanup temporary files, and complete
2408 # config.log. We remove comments because anyway the quotes in there
2409 # would cause problems or look ugly.
2410 # WARNING: Use '\'' to represent an apostrophe within the trap.
2411 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2412 trap 'exit_status=$?
2413 # Save into config.log some information that might help in debugging.
2414 {
2415 echo
2416
2417 $as_echo "## ---------------- ##
2418 ## Cache variables. ##
2419 ## ---------------- ##"
2420 echo
2421 # The following way of writing the cache mishandles newlines in values,
2422 (
2423 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2424 eval ac_val=\$$ac_var
2425 case $ac_val in #(
2426 *${as_nl}*)
2427 case $ac_var in #(
2428 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2429 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2430 esac
2431 case $ac_var in #(
2432 _ | IFS | as_nl) ;; #(
2433 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2434 *) { eval $ac_var=; unset $ac_var;} ;;
2435 esac ;;
2436 esac
2437 done
2438 (set) 2>&1 |
2439 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2440 *${as_nl}ac_space=\ *)
2441 sed -n \
2442 "s/'\''/'\''\\\\'\'''\''/g;
2443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2444 ;; #(
2445 *)
2446 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2447 ;;
2448 esac |
2449 sort
2450 )
2451 echo
2452
2453 $as_echo "## ----------------- ##
2454 ## Output variables. ##
2455 ## ----------------- ##"
2456 echo
2457 for ac_var in $ac_subst_vars
2458 do
2459 eval ac_val=\$$ac_var
2460 case $ac_val in
2461 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2462 esac
2463 $as_echo "$ac_var='\''$ac_val'\''"
2464 done | sort
2465 echo
2466
2467 if test -n "$ac_subst_files"; then
2468 $as_echo "## ------------------- ##
2469 ## File substitutions. ##
2470 ## ------------------- ##"
2471 echo
2472 for ac_var in $ac_subst_files
2473 do
2474 eval ac_val=\$$ac_var
2475 case $ac_val in
2476 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2477 esac
2478 $as_echo "$ac_var='\''$ac_val'\''"
2479 done | sort
2480 echo
2481 fi
2482
2483 if test -s confdefs.h; then
2484 $as_echo "## ----------- ##
2485 ## confdefs.h. ##
2486 ## ----------- ##"
2487 echo
2488 cat confdefs.h
2489 echo
2490 fi
2491 test "$ac_signal" != 0 &&
2492 $as_echo "$as_me: caught signal $ac_signal"
2493 $as_echo "$as_me: exit $exit_status"
2494 } >&5
2495 rm -f core *.core core.conftest.* &&
2496 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2497 exit $exit_status
2498 ' 0
2499 for ac_signal in 1 2 13 15; do
2500 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2501 done
2502 ac_signal=0
2503
2504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2505 rm -f -r conftest* confdefs.h
2506
2507 $as_echo "/* confdefs.h */" > confdefs.h
2508
2509 # Predefined preprocessor variables.
2510
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_NAME "$PACKAGE_NAME"
2513 _ACEOF
2514
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2517 _ACEOF
2518
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2521 _ACEOF
2522
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_STRING "$PACKAGE_STRING"
2525 _ACEOF
2526
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2529 _ACEOF
2530
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_URL "$PACKAGE_URL"
2533 _ACEOF
2534
2535
2536 # Let the site file select an alternate cache file if it wants to.
2537 # Prefer an explicitly selected file to automatically selected ones.
2538 ac_site_file1=NONE
2539 ac_site_file2=NONE
2540 if test -n "$CONFIG_SITE"; then
2541 # We do not want a PATH search for config.site.
2542 case $CONFIG_SITE in #((
2543 -*) ac_site_file1=./$CONFIG_SITE;;
2544 */*) ac_site_file1=$CONFIG_SITE;;
2545 *) ac_site_file1=./$CONFIG_SITE;;
2546 esac
2547 elif test "x$prefix" != xNONE; then
2548 ac_site_file1=$prefix/share/config.site
2549 ac_site_file2=$prefix/etc/config.site
2550 else
2551 ac_site_file1=$ac_default_prefix/share/config.site
2552 ac_site_file2=$ac_default_prefix/etc/config.site
2553 fi
2554 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2555 do
2556 test "x$ac_site_file" = xNONE && continue
2557 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2559 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2560 sed 's/^/| /' "$ac_site_file" >&5
2561 . "$ac_site_file" \
2562 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564 as_fn_error $? "failed to load site script $ac_site_file
2565 See \`config.log' for more details" "$LINENO" 5; }
2566 fi
2567 done
2568
2569 if test -r "$cache_file"; then
2570 # Some versions of bash will fail to source /dev/null (special files
2571 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2572 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2574 $as_echo "$as_me: loading cache $cache_file" >&6;}
2575 case $cache_file in
2576 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2577 *) . "./$cache_file";;
2578 esac
2579 fi
2580 else
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2582 $as_echo "$as_me: creating cache $cache_file" >&6;}
2583 >$cache_file
2584 fi
2585
2586 as_fn_append ac_header_list " stdlib.h"
2587 as_fn_append ac_header_list " unistd.h"
2588 as_fn_append ac_header_list " sys/param.h"
2589 # Check that the precious variables saved in the cache have kept the same
2590 # value.
2591 ac_cache_corrupted=false
2592 for ac_var in $ac_precious_vars; do
2593 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2594 eval ac_new_set=\$ac_env_${ac_var}_set
2595 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2596 eval ac_new_val=\$ac_env_${ac_var}_value
2597 case $ac_old_set,$ac_new_set in
2598 set,)
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2600 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2601 ac_cache_corrupted=: ;;
2602 ,set)
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2604 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2605 ac_cache_corrupted=: ;;
2606 ,);;
2607 *)
2608 if test "x$ac_old_val" != "x$ac_new_val"; then
2609 # differences in whitespace do not lead to failure.
2610 ac_old_val_w=`echo x $ac_old_val`
2611 ac_new_val_w=`echo x $ac_new_val`
2612 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2614 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2615 ac_cache_corrupted=:
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2618 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2619 eval $ac_var=\$ac_old_val
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2622 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2624 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2625 fi;;
2626 esac
2627 # Pass precious variables to config.status.
2628 if test "$ac_new_set" = set; then
2629 case $ac_new_val in
2630 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2631 *) ac_arg=$ac_var=$ac_new_val ;;
2632 esac
2633 case " $ac_configure_args " in
2634 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2635 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2636 esac
2637 fi
2638 done
2639 if $ac_cache_corrupted; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2643 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2644 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2645 fi
2646 ## -------------------- ##
2647 ## Main body of script. ##
2648 ## -------------------- ##
2649
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
2656
2657
2658 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2659
2660
2661 ################################################################################
2662 ac_aux_dir=
2663 for ac_dir in autoconf "$srcdir"/autoconf; do
2664 if test -f "$ac_dir/install-sh"; then
2665 ac_aux_dir=$ac_dir
2666 ac_install_sh="$ac_aux_dir/install-sh -c"
2667 break
2668 elif test -f "$ac_dir/install.sh"; then
2669 ac_aux_dir=$ac_dir
2670 ac_install_sh="$ac_aux_dir/install.sh -c"
2671 break
2672 elif test -f "$ac_dir/shtool"; then
2673 ac_aux_dir=$ac_dir
2674 ac_install_sh="$ac_aux_dir/shtool install -c"
2675 break
2676 fi
2677 done
2678 if test -z "$ac_aux_dir"; then
2679 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2680 fi
2681
2682 # These three variables are undocumented and unsupported,
2683 # and are intended to be withdrawn in a future Autoconf release.
2684 # They can cause serious problems if a builder's source tree is in a directory
2685 # whose full name contains unusual characters.
2686 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2687 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2688 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2689
2690
2691
2692 ################################################################################
2693 # Make sure we can run config.sub.
2694 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2695 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2696
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2698 $as_echo_n "checking build system type... " >&6; }
2699 if test "${ac_cv_build+set}" = set; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 ac_build_alias=$build_alias
2703 test "x$ac_build_alias" = x &&
2704 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2705 test "x$ac_build_alias" = x &&
2706 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2707 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2708 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2709
2710 fi
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2712 $as_echo "$ac_cv_build" >&6; }
2713 case $ac_cv_build in
2714 *-*-*) ;;
2715 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2716 esac
2717 build=$ac_cv_build
2718 ac_save_IFS=$IFS; IFS='-'
2719 set x $ac_cv_build
2720 shift
2721 build_cpu=$1
2722 build_vendor=$2
2723 shift; shift
2724 # Remember, the first character of IFS is used to create $*,
2725 # except with old shells:
2726 build_os=$*
2727 IFS=$ac_save_IFS
2728 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2729
2730
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2732 $as_echo_n "checking host system type... " >&6; }
2733 if test "${ac_cv_host+set}" = set; then :
2734 $as_echo_n "(cached) " >&6
2735 else
2736 if test "x$host_alias" = x; then
2737 ac_cv_host=$ac_cv_build
2738 else
2739 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2740 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2741 fi
2742
2743 fi
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2745 $as_echo "$ac_cv_host" >&6; }
2746 case $ac_cv_host in
2747 *-*-*) ;;
2748 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2749 esac
2750 host=$ac_cv_host
2751 ac_save_IFS=$IFS; IFS='-'
2752 set x $ac_cv_host
2753 shift
2754 host_cpu=$1
2755 host_vendor=$2
2756 shift; shift
2757 # Remember, the first character of IFS is used to create $*,
2758 # except with old shells:
2759 host_os=$*
2760 IFS=$ac_save_IFS
2761 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2762
2763
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2765 $as_echo_n "checking target system type... " >&6; }
2766 if test "${ac_cv_target+set}" = set; then :
2767 $as_echo_n "(cached) " >&6
2768 else
2769 if test "x$target_alias" = x; then
2770 ac_cv_target=$ac_cv_host
2771 else
2772 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2773 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2774 fi
2775
2776 fi
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2778 $as_echo "$ac_cv_target" >&6; }
2779 case $ac_cv_target in
2780 *-*-*) ;;
2781 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2782 esac
2783 target=$ac_cv_target
2784 ac_save_IFS=$IFS; IFS='-'
2785 set x $ac_cv_target
2786 shift
2787 target_cpu=$1
2788 target_vendor=$2
2789 shift; shift
2790 # Remember, the first character of IFS is used to create $*,
2791 # except with old shells:
2792 target_os=$*
2793 IFS=$ac_save_IFS
2794 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2795
2796
2797 # The aliases save the names the user supplied, while $host etc.
2798 # will get canonicalized.
2799 test -n "$target_alias" &&
2800 test "$program_prefix$program_suffix$program_transform_name" = \
2801 NONENONEs,x,x, &&
2802 program_prefix=${target_alias}-
2803
2804 case "$host_os" in
2805 linux*)
2806 CFLAGS="$CFLAGS"
2807 COPTIMISE_FLAG="-O2"
2808 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2809 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2810 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2811 LDDEPS="$LDDEPS .export.sym"
2812 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2813 LIB_SUFFIX=so
2814 DEVMAPPER=yes
2815 ODIRECT=yes
2816 DM_IOCTLS=yes
2817 SELINUX=yes
2818 CLUSTER=internal
2819 FSADM=yes
2820 ;;
2821 darwin*)
2822 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2823 COPTIMISE_FLAG="-O2"
2824 CLDFLAGS="$CLDFLAGS"
2825 CLDWHOLEARCHIVE="-all_load"
2826 CLDNOWHOLEARCHIVE=
2827 LIB_SUFFIX=dylib
2828 DEVMAPPER=yes
2829 ODIRECT=no
2830 DM_IOCTLS=no
2831 SELINUX=no
2832 CLUSTER=none
2833 FSADM=no
2834 ;;
2835 esac
2836
2837 ################################################################################
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2839 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2840 if test "${ac_cv_path_SED+set}" = set; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2844 for ac_i in 1 2 3 4 5 6 7; do
2845 ac_script="$ac_script$as_nl$ac_script"
2846 done
2847 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2848 { ac_script=; unset ac_script;}
2849 if test -z "$SED"; then
2850 ac_path_SED_found=false
2851 # Loop through the user's path and test for each of PROGNAME-LIST
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_prog in sed gsed; do
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2860 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2861 # Check for GNU ac_path_SED and select it if it is found.
2862 # Check for GNU $ac_path_SED
2863 case `"$ac_path_SED" --version 2>&1` in
2864 *GNU*)
2865 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2866 *)
2867 ac_count=0
2868 $as_echo_n 0123456789 >"conftest.in"
2869 while :
2870 do
2871 cat "conftest.in" "conftest.in" >"conftest.tmp"
2872 mv "conftest.tmp" "conftest.in"
2873 cp "conftest.in" "conftest.nl"
2874 $as_echo '' >> "conftest.nl"
2875 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2876 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2877 as_fn_arith $ac_count + 1 && ac_count=$as_val
2878 if test $ac_count -gt ${ac_path_SED_max-0}; then
2879 # Best one so far, save it but keep looking for a better one
2880 ac_cv_path_SED="$ac_path_SED"
2881 ac_path_SED_max=$ac_count
2882 fi
2883 # 10*(2^10) chars as input seems more than enough
2884 test $ac_count -gt 10 && break
2885 done
2886 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2887 esac
2888
2889 $ac_path_SED_found && break 3
2890 done
2891 done
2892 done
2893 IFS=$as_save_IFS
2894 if test -z "$ac_cv_path_SED"; then
2895 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2896 fi
2897 else
2898 ac_cv_path_SED=$SED
2899 fi
2900
2901 fi
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2903 $as_echo "$ac_cv_path_SED" >&6; }
2904 SED="$ac_cv_path_SED"
2905 rm -f conftest.sed
2906
2907 for ac_prog in gawk mawk nawk awk
2908 do
2909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2910 set dummy $ac_prog; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if test "${ac_cv_prog_AWK+set}" = set; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$AWK"; then
2917 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_AWK="$ac_prog"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 AWK=$ac_cv_prog_AWK
2937 if test -n "$AWK"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2939 $as_echo "$AWK" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945
2946 test -n "$AWK" && break
2947 done
2948
2949 ac_ext=c
2950 ac_cpp='$CPP $CPPFLAGS'
2951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954 if test -n "$ac_tool_prefix"; then
2955 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2956 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if test "${ac_cv_prog_CC+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC="$CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976 done
2977 done
2978 IFS=$as_save_IFS
2979
2980 fi
2981 fi
2982 CC=$ac_cv_prog_CC
2983 if test -n "$CC"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2985 $as_echo "$CC" >&6; }
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 fi
2990
2991
2992 fi
2993 if test -z "$ac_cv_prog_CC"; then
2994 ac_ct_CC=$CC
2995 # Extract the first word of "gcc", so it can be a program name with args.
2996 set dummy gcc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$ac_ct_CC"; then
3003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_ac_ct_CC="gcc"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016 done
3017 done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3023 if test -n "$ac_ct_CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3025 $as_echo "$ac_ct_CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031 if test "x$ac_ct_CC" = x; then
3032 CC=""
3033 else
3034 case $cross_compiling:$ac_tool_warned in
3035 yes:)
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038 ac_tool_warned=yes ;;
3039 esac
3040 CC=$ac_ct_CC
3041 fi
3042 else
3043 CC="$ac_cv_prog_CC"
3044 fi
3045
3046 if test -z "$CC"; then
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3049 set dummy ${ac_tool_prefix}cc; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if test "${ac_cv_prog_CC+set}" = set; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065 ac_cv_prog_CC="${ac_tool_prefix}cc"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069 done
3070 done
3071 IFS=$as_save_IFS
3072
3073 fi
3074 fi
3075 CC=$ac_cv_prog_CC
3076 if test -n "$CC"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078 $as_echo "$CC" >&6; }
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084
3085 fi
3086 fi
3087 if test -z "$CC"; then
3088 # Extract the first word of "cc", so it can be a program name with args.
3089 set dummy cc; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_CC+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3097 else
3098 ac_prog_rejected=no
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3107 ac_prog_rejected=yes
3108 continue
3109 fi
3110 ac_cv_prog_CC="cc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114 done
3115 done
3116 IFS=$as_save_IFS
3117
3118 if test $ac_prog_rejected = yes; then
3119 # We found a bogon in the path, so make sure we never use it.
3120 set dummy $ac_cv_prog_CC
3121 shift
3122 if test $# != 0; then
3123 # We chose a different compiler from the bogus one.
3124 # However, it has the same basename, so the bogon will be chosen
3125 # first if we set CC to just the basename; use the full file name.
3126 shift
3127 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3128 fi
3129 fi
3130 fi
3131 fi
3132 CC=$ac_cv_prog_CC
3133 if test -n "$CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3135 $as_echo "$CC" >&6; }
3136 else
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139 fi
3140
3141
3142 fi
3143 if test -z "$CC"; then
3144 if test -n "$ac_tool_prefix"; then
3145 for ac_prog in cl.exe
3146 do
3147 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if test "${ac_cv_prog_CC+set}" = set; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 if test -n "$CC"; then
3155 ac_cv_prog_CC="$CC" # Let the user override the test.
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3159 do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3167 fi
3168 done
3169 done
3170 IFS=$as_save_IFS
3171
3172 fi
3173 fi
3174 CC=$ac_cv_prog_CC
3175 if test -n "$CC"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177 $as_echo "$CC" >&6; }
3178 else
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183
3184 test -n "$CC" && break
3185 done
3186 fi
3187 if test -z "$CC"; then
3188 ac_ct_CC=$CC
3189 for ac_prog in cl.exe
3190 do
3191 # Extract the first word of "$ac_prog", so it can be a program name with args.
3192 set dummy $ac_prog; ac_word=$2
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 $as_echo_n "checking for $ac_word... " >&6; }
3195 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3196 $as_echo_n "(cached) " >&6
3197 else
3198 if test -n "$ac_ct_CC"; then
3199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3200 else
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3203 do
3204 IFS=$as_save_IFS
3205 test -z "$as_dir" && as_dir=.
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208 ac_cv_prog_ac_ct_CC="$ac_prog"
3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 break 2
3211 fi
3212 done
3213 done
3214 IFS=$as_save_IFS
3215
3216 fi
3217 fi
3218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3219 if test -n "$ac_ct_CC"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3221 $as_echo "$ac_ct_CC" >&6; }
3222 else
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 fi
3226
3227
3228 test -n "$ac_ct_CC" && break
3229 done
3230
3231 if test "x$ac_ct_CC" = x; then
3232 CC=""
3233 else
3234 case $cross_compiling:$ac_tool_warned in
3235 yes:)
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3238 ac_tool_warned=yes ;;
3239 esac
3240 CC=$ac_ct_CC
3241 fi
3242 fi
3243
3244 fi
3245
3246
3247 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249 as_fn_error $? "no acceptable C compiler found in \$PATH
3250 See \`config.log' for more details" "$LINENO" 5; }
3251
3252 # Provide some information about the compiler.
3253 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3254 set X $ac_compile
3255 ac_compiler=$2
3256 for ac_option in --version -v -V -qversion; do
3257 { { ac_try="$ac_compiler $ac_option >&5"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3265 ac_status=$?
3266 if test -s conftest.err; then
3267 sed '10a\
3268 ... rest of stderr output deleted ...
3269 10q' conftest.err >conftest.er1
3270 cat conftest.er1 >&5
3271 fi
3272 rm -f conftest.er1 conftest.err
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }
3275 done
3276
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3279
3280 int
3281 main ()
3282 {
3283
3284 ;
3285 return 0;
3286 }
3287 _ACEOF
3288 ac_clean_files_save=$ac_clean_files
3289 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3290 # Try to create an executable without -o first, disregard a.out.
3291 # It will help us diagnose broken compilers, and finding out an intuition
3292 # of exeext.
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3294 $as_echo_n "checking whether the C compiler works... " >&6; }
3295 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3296
3297 # The possible output files:
3298 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3299
3300 ac_rmfiles=
3301 for ac_file in $ac_files
3302 do
3303 case $ac_file in
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3305 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3306 esac
3307 done
3308 rm -f $ac_rmfiles
3309
3310 if { { ac_try="$ac_link_default"
3311 case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
3315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316 $as_echo "$ac_try_echo"; } >&5
3317 (eval "$ac_link_default") 2>&5
3318 ac_status=$?
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }; then :
3321 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3322 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3323 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3324 # so that the user can short-circuit this test for compilers unknown to
3325 # Autoconf.
3326 for ac_file in $ac_files ''
3327 do
3328 test -f "$ac_file" || continue
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3331 ;;
3332 [ab].out )
3333 # We found the default executable, but exeext='' is most
3334 # certainly right.
3335 break;;
3336 *.* )
3337 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3338 then :; else
3339 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340 fi
3341 # We set ac_cv_exeext here because the later test for it is not
3342 # safe: cross compilers may not add the suffix if given an `-o'
3343 # argument, so we may need to know it at that point already.
3344 # Even if this section looks crufty: it has the advantage of
3345 # actually working.
3346 break;;
3347 * )
3348 break;;
3349 esac
3350 done
3351 test "$ac_cv_exeext" = no && ac_cv_exeext=
3352
3353 else
3354 ac_file=''
3355 fi
3356 if test -z "$ac_file"; then :
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3359 $as_echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 as_fn_error 77 "C compiler cannot create executables
3365 See \`config.log' for more details" "$LINENO" 5; }
3366 else
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3368 $as_echo "yes" >&6; }
3369 fi
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3371 $as_echo_n "checking for C compiler default output file name... " >&6; }
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3373 $as_echo "$ac_file" >&6; }
3374 ac_exeext=$ac_cv_exeext
3375
3376 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3377 ac_clean_files=$ac_clean_files_save
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3379 $as_echo_n "checking for suffix of executables... " >&6; }
3380 if { { ac_try="$ac_link"
3381 case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_link") 2>&5
3388 ac_status=$?
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }; then :
3391 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3392 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3393 # work properly (i.e., refer to `conftest.exe'), while it won't with
3394 # `rm'.
3395 for ac_file in conftest.exe conftest conftest.*; do
3396 test -f "$ac_file" || continue
3397 case $ac_file in
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3400 break;;
3401 * ) break;;
3402 esac
3403 done
3404 else
3405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3408 See \`config.log' for more details" "$LINENO" 5; }
3409 fi
3410 rm -f conftest conftest$ac_cv_exeext
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3412 $as_echo "$ac_cv_exeext" >&6; }
3413
3414 rm -f conftest.$ac_ext
3415 EXEEXT=$ac_cv_exeext
3416 ac_exeext=$EXEEXT
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3419 #include <stdio.h>
3420 int
3421 main ()
3422 {
3423 FILE *f = fopen ("conftest.out", "w");
3424 return ferror (f) || fclose (f) != 0;
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 ac_clean_files="$ac_clean_files conftest.out"
3431 # Check that the compiler produces executables we can run. If not, either
3432 # the compiler is broken, or we cross compile.
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3434 $as_echo_n "checking whether we are cross compiling... " >&6; }
3435 if test "$cross_compiling" != yes; then
3436 { { ac_try="$ac_link"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442 $as_echo "$ac_try_echo"; } >&5
3443 (eval "$ac_link") 2>&5
3444 ac_status=$?
3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }
3447 if { ac_try='./conftest$ac_cv_exeext'
3448 { { case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451 esac
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 $as_echo "$ac_try_echo"; } >&5
3454 (eval "$ac_try") 2>&5
3455 ac_status=$?
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }; }; then
3458 cross_compiling=no
3459 else
3460 if test "$cross_compiling" = maybe; then
3461 cross_compiling=yes
3462 else
3463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 as_fn_error $? "cannot run C compiled programs.
3466 If you meant to cross compile, use \`--host'.
3467 See \`config.log' for more details" "$LINENO" 5; }
3468 fi
3469 fi
3470 fi
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3472 $as_echo "$cross_compiling" >&6; }
3473
3474 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3475 ac_clean_files=$ac_clean_files_save
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3477 $as_echo_n "checking for suffix of object files... " >&6; }
3478 if test "${ac_cv_objext+set}" = set; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483
3484 int
3485 main ()
3486 {
3487
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 rm -f conftest.o conftest.obj
3493 if { { ac_try="$ac_compile"
3494 case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497 esac
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500 (eval "$ac_compile") 2>&5
3501 ac_status=$?
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }; then :
3504 for ac_file in conftest.o conftest.obj conftest.*; do
3505 test -f "$ac_file" || continue;
3506 case $ac_file in
3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3508 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3509 break;;
3510 esac
3511 done
3512 else
3513 $as_echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 as_fn_error $? "cannot compute suffix of object files: cannot compile
3519 See \`config.log' for more details" "$LINENO" 5; }
3520 fi
3521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3522 fi
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3524 $as_echo "$ac_cv_objext" >&6; }
3525 OBJEXT=$ac_cv_objext
3526 ac_objext=$OBJEXT
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3529 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3534
3535 int
3536 main ()
3537 {
3538 #ifndef __GNUC__
3539 choke me
3540 #endif
3541
3542 ;
3543 return 0;
3544 }
3545 _ACEOF
3546 if ac_fn_c_try_compile "$LINENO"; then :
3547 ac_compiler_gnu=yes
3548 else
3549 ac_compiler_gnu=no
3550 fi
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3553
3554 fi
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3556 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3557 if test $ac_compiler_gnu = yes; then
3558 GCC=yes
3559 else
3560 GCC=
3561 fi
3562 ac_test_CFLAGS=${CFLAGS+set}
3563 ac_save_CFLAGS=$CFLAGS
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3565 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3566 if test "${ac_cv_prog_cc_g+set}" = set; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 ac_save_c_werror_flag=$ac_c_werror_flag
3570 ac_c_werror_flag=yes
3571 ac_cv_prog_cc_g=no
3572 CFLAGS="-g"
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3575
3576 int
3577 main ()
3578 {
3579
3580 ;
3581 return 0;
3582 }
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585 ac_cv_prog_cc_g=yes
3586 else
3587 CFLAGS=""
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3590
3591 int
3592 main ()
3593 {
3594
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 if ac_fn_c_try_compile "$LINENO"; then :
3600
3601 else
3602 ac_c_werror_flag=$ac_save_c_werror_flag
3603 CFLAGS="-g"
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606
3607 int
3608 main ()
3609 {
3610
3611 ;
3612 return 0;
3613 }
3614 _ACEOF
3615 if ac_fn_c_try_compile "$LINENO"; then :
3616 ac_cv_prog_cc_g=yes
3617 fi
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 fi
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 ac_c_werror_flag=$ac_save_c_werror_flag
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3626 $as_echo "$ac_cv_prog_cc_g" >&6; }
3627 if test "$ac_test_CFLAGS" = set; then
3628 CFLAGS=$ac_save_CFLAGS
3629 elif test $ac_cv_prog_cc_g = yes; then
3630 if test "$GCC" = yes; then
3631 CFLAGS="-g -O2"
3632 else
3633 CFLAGS="-g"
3634 fi
3635 else
3636 if test "$GCC" = yes; then
3637 CFLAGS="-O2"
3638 else
3639 CFLAGS=
3640 fi
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3643 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3644 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 ac_cv_prog_cc_c89=no
3648 ac_save_CC=$CC
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3651 #include <stdarg.h>
3652 #include <stdio.h>
3653 #include <sys/types.h>
3654 #include <sys/stat.h>
3655 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3656 struct buf { int x; };
3657 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3658 static char *e (p, i)
3659 char **p;
3660 int i;
3661 {
3662 return p[i];
3663 }
3664 static char *f (char * (*g) (char **, int), char **p, ...)
3665 {
3666 char *s;
3667 va_list v;
3668 va_start (v,p);
3669 s = g (p, va_arg (v,int));
3670 va_end (v);
3671 return s;
3672 }
3673
3674 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3675 function prototypes and stuff, but not '\xHH' hex character constants.
3676 These don't provoke an error unfortunately, instead are silently treated
3677 as 'x'. The following induces an error, until -std is added to get
3678 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3679 array size at least. It's necessary to write '\x00'==0 to get something
3680 that's true only with -std. */
3681 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3682
3683 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3684 inside strings and character constants. */
3685 #define FOO(x) 'x'
3686 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3687
3688 int test (int i, double x);
3689 struct s1 {int (*f) (int a);};
3690 struct s2 {int (*f) (double a);};
3691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692 int argc;
3693 char **argv;
3694 int
3695 main ()
3696 {
3697 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3703 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3704 do
3705 CC="$ac_save_CC $ac_arg"
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_cv_prog_cc_c89=$ac_arg
3708 fi
3709 rm -f core conftest.err conftest.$ac_objext
3710 test "x$ac_cv_prog_cc_c89" != "xno" && break
3711 done
3712 rm -f conftest.$ac_ext
3713 CC=$ac_save_CC
3714
3715 fi
3716 # AC_CACHE_VAL
3717 case "x$ac_cv_prog_cc_c89" in
3718 x)
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3720 $as_echo "none needed" >&6; } ;;
3721 xno)
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3723 $as_echo "unsupported" >&6; } ;;
3724 *)
3725 CC="$CC $ac_cv_prog_cc_c89"
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3727 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3728 esac
3729 if test "x$ac_cv_prog_cc_c89" != xno; then :
3730
3731 fi
3732
3733 ac_ext=c
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738
3739
3740
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3747 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3748 # On Suns, sometimes $CPP names a directory.
3749 if test -n "$CPP" && test -d "$CPP"; then
3750 CPP=
3751 fi
3752 if test -z "$CPP"; then
3753 if test "${ac_cv_prog_CPP+set}" = set; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 # Double quotes because CPP needs to be expanded
3757 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3758 do
3759 ac_preproc_ok=false
3760 for ac_c_preproc_warn_flag in '' yes
3761 do
3762 # Use a header file that comes with gcc, so configuring glibc
3763 # with a fresh cross-compiler works.
3764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3765 # <limits.h> exists even on freestanding compilers.
3766 # On the NeXT, cc -E runs the code through the compiler's parser,
3767 # not just through cpp. "Syntax error" is here to catch this case.
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3770 #ifdef __STDC__
3771 # include <limits.h>
3772 #else
3773 # include <assert.h>
3774 #endif
3775 Syntax error
3776 _ACEOF
3777 if ac_fn_c_try_cpp "$LINENO"; then :
3778
3779 else
3780 # Broken: fails on valid input.
3781 continue
3782 fi
3783 rm -f conftest.err conftest.$ac_ext
3784
3785 # OK, works on sane cases. Now check whether nonexistent headers
3786 # can be detected and how.
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789 #include <ac_nonexistent.h>
3790 _ACEOF
3791 if ac_fn_c_try_cpp "$LINENO"; then :
3792 # Broken: success on invalid input.
3793 continue
3794 else
3795 # Passes both tests.
3796 ac_preproc_ok=:
3797 break
3798 fi
3799 rm -f conftest.err conftest.$ac_ext
3800
3801 done
3802 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3803 rm -f conftest.err conftest.$ac_ext
3804 if $ac_preproc_ok; then :
3805 break
3806 fi
3807
3808 done
3809 ac_cv_prog_CPP=$CPP
3810
3811 fi
3812 CPP=$ac_cv_prog_CPP
3813 else
3814 ac_cv_prog_CPP=$CPP
3815 fi
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3817 $as_echo "$CPP" >&6; }
3818 ac_preproc_ok=false
3819 for ac_c_preproc_warn_flag in '' yes
3820 do
3821 # Use a header file that comes with gcc, so configuring glibc
3822 # with a fresh cross-compiler works.
3823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3824 # <limits.h> exists even on freestanding compilers.
3825 # On the NeXT, cc -E runs the code through the compiler's parser,
3826 # not just through cpp. "Syntax error" is here to catch this case.
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3829 #ifdef __STDC__
3830 # include <limits.h>
3831 #else
3832 # include <assert.h>
3833 #endif
3834 Syntax error
3835 _ACEOF
3836 if ac_fn_c_try_cpp "$LINENO"; then :
3837
3838 else
3839 # Broken: fails on valid input.
3840 continue
3841 fi
3842 rm -f conftest.err conftest.$ac_ext
3843
3844 # OK, works on sane cases. Now check whether nonexistent headers
3845 # can be detected and how.
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848 #include <ac_nonexistent.h>
3849 _ACEOF
3850 if ac_fn_c_try_cpp "$LINENO"; then :
3851 # Broken: success on invalid input.
3852 continue
3853 else
3854 # Passes both tests.
3855 ac_preproc_ok=:
3856 break
3857 fi
3858 rm -f conftest.err conftest.$ac_ext
3859
3860 done
3861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3862 rm -f conftest.err conftest.$ac_ext
3863 if $ac_preproc_ok; then :
3864
3865 else
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3869 See \`config.log' for more details" "$LINENO" 5; }
3870 fi
3871
3872 ac_ext=c
3873 ac_cpp='$CPP $CPPFLAGS'
3874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877
3878
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3880 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3881 if test "${ac_cv_path_GREP+set}" = set; then :
3882 $as_echo_n "(cached) " >&6
3883 else
3884 if test -z "$GREP"; then
3885 ac_path_GREP_found=false
3886 # Loop through the user's path and test for each of PROGNAME-LIST
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3889 do
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_prog in grep ggrep; do
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3895 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3896 # Check for GNU ac_path_GREP and select it if it is found.
3897 # Check for GNU $ac_path_GREP
3898 case `"$ac_path_GREP" --version 2>&1` in
3899 *GNU*)
3900 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3901 *)
3902 ac_count=0
3903 $as_echo_n 0123456789 >"conftest.in"
3904 while :
3905 do
3906 cat "conftest.in" "conftest.in" >"conftest.tmp"
3907 mv "conftest.tmp" "conftest.in"
3908 cp "conftest.in" "conftest.nl"
3909 $as_echo 'GREP' >> "conftest.nl"
3910 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3912 as_fn_arith $ac_count + 1 && ac_count=$as_val
3913 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3914 # Best one so far, save it but keep looking for a better one
3915 ac_cv_path_GREP="$ac_path_GREP"
3916 ac_path_GREP_max=$ac_count
3917 fi
3918 # 10*(2^10) chars as input seems more than enough
3919 test $ac_count -gt 10 && break
3920 done
3921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3922 esac
3923
3924 $ac_path_GREP_found && break 3
3925 done
3926 done
3927 done
3928 IFS=$as_save_IFS
3929 if test -z "$ac_cv_path_GREP"; then
3930 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3931 fi
3932 else
3933 ac_cv_path_GREP=$GREP
3934 fi
3935
3936 fi
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3938 $as_echo "$ac_cv_path_GREP" >&6; }
3939 GREP="$ac_cv_path_GREP"
3940
3941
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3943 $as_echo_n "checking for egrep... " >&6; }
3944 if test "${ac_cv_path_EGREP+set}" = set; then :
3945 $as_echo_n "(cached) " >&6
3946 else
3947 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3948 then ac_cv_path_EGREP="$GREP -E"
3949 else
3950 if test -z "$EGREP"; then
3951 ac_path_EGREP_found=false
3952 # Loop through the user's path and test for each of PROGNAME-LIST
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3955 do
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_prog in egrep; do
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3961 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3962 # Check for GNU ac_path_EGREP and select it if it is found.
3963 # Check for GNU $ac_path_EGREP
3964 case `"$ac_path_EGREP" --version 2>&1` in
3965 *GNU*)
3966 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3967 *)
3968 ac_count=0
3969 $as_echo_n 0123456789 >"conftest.in"
3970 while :
3971 do
3972 cat "conftest.in" "conftest.in" >"conftest.tmp"
3973 mv "conftest.tmp" "conftest.in"
3974 cp "conftest.in" "conftest.nl"
3975 $as_echo 'EGREP' >> "conftest.nl"
3976 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3977 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3978 as_fn_arith $ac_count + 1 && ac_count=$as_val
3979 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3980 # Best one so far, save it but keep looking for a better one
3981 ac_cv_path_EGREP="$ac_path_EGREP"
3982 ac_path_EGREP_max=$ac_count
3983 fi
3984 # 10*(2^10) chars as input seems more than enough
3985 test $ac_count -gt 10 && break
3986 done
3987 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3988 esac
3989
3990 $ac_path_EGREP_found && break 3
3991 done
3992 done
3993 done
3994 IFS=$as_save_IFS
3995 if test -z "$ac_cv_path_EGREP"; then
3996 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3997 fi
3998 else
3999 ac_cv_path_EGREP=$EGREP
4000 fi
4001
4002 fi
4003 fi
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4005 $as_echo "$ac_cv_path_EGREP" >&6; }
4006 EGREP="$ac_cv_path_EGREP"
4007
4008
4009 if test $ac_cv_c_compiler_gnu = yes; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4011 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4012 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 ac_pattern="Autoconf.*'x'"
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018 #include <sgtty.h>
4019 Autoconf TIOCGETP
4020 _ACEOF
4021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4022 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4023 ac_cv_prog_gcc_traditional=yes
4024 else
4025 ac_cv_prog_gcc_traditional=no
4026 fi
4027 rm -f conftest*
4028
4029
4030 if test $ac_cv_prog_gcc_traditional = no; then
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4033 #include <termio.h>
4034 Autoconf TCGETA
4035 _ACEOF
4036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4037 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4038 ac_cv_prog_gcc_traditional=yes
4039 fi
4040 rm -f conftest*
4041
4042 fi
4043 fi
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4045 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4046 if test $ac_cv_prog_gcc_traditional = yes; then
4047 CC="$CC -traditional"
4048 fi
4049 fi
4050
4051 # Find a good install program. We prefer a C program (faster),
4052 # so one script is as good as another. But avoid the broken or
4053 # incompatible versions:
4054 # SysV /etc/install, /usr/sbin/install
4055 # SunOS /usr/etc/install
4056 # IRIX /sbin/install
4057 # AIX /bin/install
4058 # AmigaOS /C/install, which installs bootblocks on floppy discs
4059 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4060 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4061 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4062 # OS/2's system install, which has a completely different semantic
4063 # ./install, which can be erroneously created by make from ./install.sh.
4064 # Reject install programs that cannot install multiple files.
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4066 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4067 if test -z "$INSTALL"; then
4068 if test "${ac_cv_path_install+set}" = set; then :
4069 $as_echo_n "(cached) " >&6
4070 else
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 # Account for people who put trailing slashes in PATH elements.
4077 case $as_dir/ in #((
4078 ./ | .// | /[cC]/* | \
4079 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4080 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4081 /usr/ucb/* ) ;;
4082 *)
4083 # OSF1 and SCO ODT 3.0 have their own names for install.
4084 # Don't use installbsd from OSF since it installs stuff as root
4085 # by default.
4086 for ac_prog in ginstall scoinst install; do
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4089 if test $ac_prog = install &&
4090 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4091 # AIX install. It has an incompatible calling convention.
4092 :
4093 elif test $ac_prog = install &&
4094 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4095 # program-specific install script used by HP pwplus--don't use.
4096 :
4097 else
4098 rm -rf conftest.one conftest.two conftest.dir
4099 echo one > conftest.one
4100 echo two > conftest.two
4101 mkdir conftest.dir
4102 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4103 test -s conftest.one && test -s conftest.two &&
4104 test -s conftest.dir/conftest.one &&
4105 test -s conftest.dir/conftest.two
4106 then
4107 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4108 break 3
4109 fi
4110 fi
4111 fi
4112 done
4113 done
4114 ;;
4115 esac
4116
4117 done
4118 IFS=$as_save_IFS
4119
4120 rm -rf conftest.one conftest.two conftest.dir
4121
4122 fi
4123 if test "${ac_cv_path_install+set}" = set; then
4124 INSTALL=$ac_cv_path_install
4125 else
4126 # As a last resort, use the slow shell script. Don't cache a
4127 # value for INSTALL within a source directory, because that will
4128 # break other packages using the cache if that directory is
4129 # removed, or if the value is a relative name.
4130 INSTALL=$ac_install_sh
4131 fi
4132 fi
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4134 $as_echo "$INSTALL" >&6; }
4135
4136 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4137 # It thinks the first close brace ends the variable substitution.
4138 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4139
4140 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4141
4142 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4143
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4145 $as_echo_n "checking whether ln -s works... " >&6; }
4146 LN_S=$as_ln_s
4147 if test "$LN_S" = "ln -s"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4149 $as_echo "yes" >&6; }
4150 else
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4152 $as_echo "no, using $LN_S" >&6; }
4153 fi
4154
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4156 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4157 set x ${MAKE-make}
4158 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4159 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 cat >conftest.make <<\_ACEOF
4163 SHELL = /bin/sh
4164 all:
4165 @echo '@@@%%%=$(MAKE)=@@@%%%'
4166 _ACEOF
4167 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4168 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4169 *@@@%%%=?*=@@@%%%*)
4170 eval ac_cv_prog_make_${ac_make}_set=yes;;
4171 *)
4172 eval ac_cv_prog_make_${ac_make}_set=no;;
4173 esac
4174 rm -f conftest.make
4175 fi
4176 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4178 $as_echo "yes" >&6; }
4179 SET_MAKE=
4180 else
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4183 SET_MAKE="MAKE=${MAKE-make}"
4184 fi
4185
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4187 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4188 if test -z "$MKDIR_P"; then
4189 if test "${ac_cv_path_mkdir+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4194 do
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
4197 for ac_prog in mkdir gmkdir; do
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4200 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4201 'mkdir (GNU coreutils) '* | \
4202 'mkdir (coreutils) '* | \
4203 'mkdir (fileutils) '4.1*)
4204 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4205 break 3;;
4206 esac
4207 done
4208 done
4209 done
4210 IFS=$as_save_IFS
4211
4212 fi
4213
4214 test -d ./--version && rmdir ./--version
4215 if test "${ac_cv_path_mkdir+set}" = set; then
4216 MKDIR_P="$ac_cv_path_mkdir -p"
4217 else
4218 # As a last resort, use the slow shell script. Don't cache a
4219 # value for MKDIR_P within a source directory, because that will
4220 # break other packages using the cache if that directory is
4221 # removed, or if the value is a relative name.
4222 MKDIR_P="$ac_install_sh -d"
4223 fi
4224 fi
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4226 $as_echo "$MKDIR_P" >&6; }
4227
4228 if test -n "$ac_tool_prefix"; then
4229 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4230 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 if test -n "$RANLIB"; then
4237 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4241 do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 break 2
4249 fi
4250 done
4251 done
4252 IFS=$as_save_IFS
4253
4254 fi
4255 fi
4256 RANLIB=$ac_cv_prog_RANLIB
4257 if test -n "$RANLIB"; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4259 $as_echo "$RANLIB" >&6; }
4260 else
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4263 fi
4264
4265
4266 fi
4267 if test -z "$ac_cv_prog_RANLIB"; then
4268 ac_ct_RANLIB=$RANLIB
4269 # Extract the first word of "ranlib", so it can be a program name with args.
4270 set dummy ranlib; ac_word=$2
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 $as_echo_n "checking for $ac_word... " >&6; }
4273 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 if test -n "$ac_ct_RANLIB"; then
4277 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286 ac_cv_prog_ac_ct_RANLIB="ranlib"
4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 break 2
4289 fi
4290 done
4291 done
4292 IFS=$as_save_IFS
4293
4294 fi
4295 fi
4296 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4297 if test -n "$ac_ct_RANLIB"; then
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4299 $as_echo "$ac_ct_RANLIB" >&6; }
4300 else
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 $as_echo "no" >&6; }
4303 fi
4304
4305 if test "x$ac_ct_RANLIB" = x; then
4306 RANLIB=":"
4307 else
4308 case $cross_compiling:$ac_tool_warned in
4309 yes:)
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4312 ac_tool_warned=yes ;;
4313 esac
4314 RANLIB=$ac_ct_RANLIB
4315 fi
4316 else
4317 RANLIB="$ac_cv_prog_RANLIB"
4318 fi
4319
4320 # Extract the first word of "cflow", so it can be a program name with args.
4321 set dummy cflow; ac_word=$2
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323 $as_echo_n "checking for $ac_word... " >&6; }
4324 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 case $CFLOW_CMD in
4328 [\\/]* | ?:[\\/]*)
4329 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4330 ;;
4331 *)
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4334 do
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 break 2
4342 fi
4343 done
4344 done
4345 IFS=$as_save_IFS
4346
4347 ;;
4348 esac
4349 fi
4350 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4351 if test -n "$CFLOW_CMD"; then
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4353 $as_echo "$CFLOW_CMD" >&6; }
4354 else
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4356 $as_echo "no" >&6; }
4357 fi
4358
4359
4360 # Extract the first word of "cscope", so it can be a program name with args.
4361 set dummy cscope; ac_word=$2
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4363 $as_echo_n "checking for $ac_word... " >&6; }
4364 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 case $CSCOPE_CMD in
4368 [\\/]* | ?:[\\/]*)
4369 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4370 ;;
4371 *)
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4382 fi
4383 done
4384 done
4385 IFS=$as_save_IFS
4386
4387 ;;
4388 esac
4389 fi
4390 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4391 if test -n "$CSCOPE_CMD"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4393 $as_echo "$CSCOPE_CMD" >&6; }
4394 else
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4397 fi
4398
4399
4400
4401 ################################################################################
4402 ac_header_dirent=no
4403 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4404 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4406 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4407 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4412 #include <sys/types.h>
4413 #include <$ac_hdr>
4414
4415 int
4416 main ()
4417 {
4418 if ((DIR *) 0)
4419 return 0;
4420 ;
4421 return 0;
4422 }
4423 _ACEOF
4424 if ac_fn_c_try_compile "$LINENO"; then :
4425 eval "$as_ac_Header=yes"
4426 else
4427 eval "$as_ac_Header=no"
4428 fi
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 fi
4431 eval ac_res=\$$as_ac_Header
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4433 $as_echo "$ac_res" >&6; }
4434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4435 cat >>confdefs.h <<_ACEOF
4436 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4437 _ACEOF
4438
4439 ac_header_dirent=$ac_hdr; break
4440 fi
4441
4442 done
4443 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4444 if test $ac_header_dirent = dirent.h; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4446 $as_echo_n "checking for library containing opendir... " >&6; }
4447 if test "${ac_cv_search_opendir+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 ac_func_search_save_LIBS=$LIBS
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4453
4454 /* Override any GCC internal prototype to avoid an error.
4455 Use char because int might match the return type of a GCC
4456 builtin and then its argument prototype would still apply. */
4457 #ifdef __cplusplus
4458 extern "C"
4459 #endif
4460 char opendir ();
4461 int
4462 main ()
4463 {
4464 return opendir ();
4465 ;
4466 return 0;
4467 }
4468 _ACEOF
4469 for ac_lib in '' dir; do
4470 if test -z "$ac_lib"; then
4471 ac_res="none required"
4472 else
4473 ac_res=-l$ac_lib
4474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4475 fi
4476 if ac_fn_c_try_link "$LINENO"; then :
4477 ac_cv_search_opendir=$ac_res
4478 fi
4479 rm -f core conftest.err conftest.$ac_objext \
4480 conftest$ac_exeext
4481 if test "${ac_cv_search_opendir+set}" = set; then :
4482 break
4483 fi
4484 done
4485 if test "${ac_cv_search_opendir+set}" = set; then :
4486
4487 else
4488 ac_cv_search_opendir=no
4489 fi
4490 rm conftest.$ac_ext
4491 LIBS=$ac_func_search_save_LIBS
4492 fi
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4494 $as_echo "$ac_cv_search_opendir" >&6; }
4495 ac_res=$ac_cv_search_opendir
4496 if test "$ac_res" != no; then :
4497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4498
4499 fi
4500
4501 else
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4503 $as_echo_n "checking for library containing opendir... " >&6; }
4504 if test "${ac_cv_search_opendir+set}" = set; then :
4505 $as_echo_n "(cached) " >&6
4506 else
4507 ac_func_search_save_LIBS=$LIBS
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4510
4511 /* Override any GCC internal prototype to avoid an error.
4512 Use char because int might match the return type of a GCC
4513 builtin and then its argument prototype would still apply. */
4514 #ifdef __cplusplus
4515 extern "C"
4516 #endif
4517 char opendir ();
4518 int
4519 main ()
4520 {
4521 return opendir ();
4522 ;
4523 return 0;
4524 }
4525 _ACEOF
4526 for ac_lib in '' x; do
4527 if test -z "$ac_lib"; then
4528 ac_res="none required"
4529 else
4530 ac_res=-l$ac_lib
4531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4532 fi
4533 if ac_fn_c_try_link "$LINENO"; then :
4534 ac_cv_search_opendir=$ac_res
4535 fi
4536 rm -f core conftest.err conftest.$ac_objext \
4537 conftest$ac_exeext
4538 if test "${ac_cv_search_opendir+set}" = set; then :
4539 break
4540 fi
4541 done
4542 if test "${ac_cv_search_opendir+set}" = set; then :
4543
4544 else
4545 ac_cv_search_opendir=no
4546 fi
4547 rm conftest.$ac_ext
4548 LIBS=$ac_func_search_save_LIBS
4549 fi
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4551 $as_echo "$ac_cv_search_opendir" >&6; }
4552 ac_res=$ac_cv_search_opendir
4553 if test "$ac_res" != no; then :
4554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4555
4556 fi
4557
4558 fi
4559
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4561 $as_echo_n "checking for ANSI C header files... " >&6; }
4562 if test "${ac_cv_header_stdc+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567 #include <stdlib.h>
4568 #include <stdarg.h>
4569 #include <string.h>
4570 #include <float.h>
4571
4572 int
4573 main ()
4574 {
4575
4576 ;
4577 return 0;
4578 }
4579 _ACEOF
4580 if ac_fn_c_try_compile "$LINENO"; then :
4581 ac_cv_header_stdc=yes
4582 else
4583 ac_cv_header_stdc=no
4584 fi
4585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586
4587 if test $ac_cv_header_stdc = yes; then
4588 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591 #include <string.h>
4592
4593 _ACEOF
4594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4595 $EGREP "memchr" >/dev/null 2>&1; then :
4596
4597 else
4598 ac_cv_header_stdc=no
4599 fi
4600 rm -f conftest*
4601
4602 fi
4603
4604 if test $ac_cv_header_stdc = yes; then
4605 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608 #include <stdlib.h>
4609
4610 _ACEOF
4611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4612 $EGREP "free" >/dev/null 2>&1; then :
4613
4614 else
4615 ac_cv_header_stdc=no
4616 fi
4617 rm -f conftest*
4618
4619 fi
4620
4621 if test $ac_cv_header_stdc = yes; then
4622 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4623 if test "$cross_compiling" = yes; then :
4624 :
4625 else
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4628 #include <ctype.h>
4629 #include <stdlib.h>
4630 #if ((' ' & 0x0FF) == 0x020)
4631 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4632 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4633 #else
4634 # define ISLOWER(c) \
4635 (('a' <= (c) && (c) <= 'i') \
4636 || ('j' <= (c) && (c) <= 'r') \
4637 || ('s' <= (c) && (c) <= 'z'))
4638 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4639 #endif
4640
4641 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4642 int
4643 main ()
4644 {
4645 int i;
4646 for (i = 0; i < 256; i++)
4647 if (XOR (islower (i), ISLOWER (i))
4648 || toupper (i) != TOUPPER (i))
4649 return 2;
4650 return 0;
4651 }
4652 _ACEOF
4653 if ac_fn_c_try_run "$LINENO"; then :
4654
4655 else
4656 ac_cv_header_stdc=no
4657 fi
4658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4659 conftest.$ac_objext conftest.beam conftest.$ac_ext
4660 fi
4661
4662 fi
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4665 $as_echo "$ac_cv_header_stdc" >&6; }
4666 if test $ac_cv_header_stdc = yes; then
4667
4668 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4669
4670 fi
4671
4672 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4673 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4674 inttypes.h stdint.h unistd.h
4675 do :
4676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4677 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4678 "
4679 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4680 cat >>confdefs.h <<_ACEOF
4681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4682 _ACEOF
4683
4684 fi
4685
4686 done
4687
4688
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4690 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4691 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696 #include <sys/types.h>
4697 int
4698 main ()
4699 {
4700 return makedev(0, 0);
4701 ;
4702 return 0;
4703 }
4704 _ACEOF
4705 if ac_fn_c_try_link "$LINENO"; then :
4706 ac_cv_header_sys_types_h_makedev=yes
4707 else
4708 ac_cv_header_sys_types_h_makedev=no
4709 fi
4710 rm -f core conftest.err conftest.$ac_objext \
4711 conftest$ac_exeext conftest.$ac_ext
4712
4713 fi
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4715 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4716
4717 if test $ac_cv_header_sys_types_h_makedev = no; then
4718 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4719 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4720
4721 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
4722
4723 fi
4724
4725
4726
4727 if test $ac_cv_header_sys_mkdev_h = no; then
4728 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4729 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4730
4731 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4732
4733 fi
4734
4735
4736 fi
4737 fi
4738
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4740 $as_echo_n "checking for ANSI C header files... " >&6; }
4741 if test "${ac_cv_header_stdc+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746 #include <stdlib.h>
4747 #include <stdarg.h>
4748 #include <string.h>
4749 #include <float.h>
4750
4751 int
4752 main ()
4753 {
4754
4755 ;
4756 return 0;
4757 }
4758 _ACEOF
4759 if ac_fn_c_try_compile "$LINENO"; then :
4760 ac_cv_header_stdc=yes
4761 else
4762 ac_cv_header_stdc=no
4763 fi
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765
4766 if test $ac_cv_header_stdc = yes; then
4767 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770 #include <string.h>
4771
4772 _ACEOF
4773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4774 $EGREP "memchr" >/dev/null 2>&1; then :
4775
4776 else
4777 ac_cv_header_stdc=no
4778 fi
4779 rm -f conftest*
4780
4781 fi
4782
4783 if test $ac_cv_header_stdc = yes; then
4784 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4787 #include <stdlib.h>
4788
4789 _ACEOF
4790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4791 $EGREP "free" >/dev/null 2>&1; then :
4792
4793 else
4794 ac_cv_header_stdc=no
4795 fi
4796 rm -f conftest*
4797
4798 fi
4799
4800 if test $ac_cv_header_stdc = yes; then
4801 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4802 if test "$cross_compiling" = yes; then :
4803 :
4804 else
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4807 #include <ctype.h>
4808 #include <stdlib.h>
4809 #if ((' ' & 0x0FF) == 0x020)
4810 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4811 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4812 #else
4813 # define ISLOWER(c) \
4814 (('a' <= (c) && (c) <= 'i') \
4815 || ('j' <= (c) && (c) <= 'r') \
4816 || ('s' <= (c) && (c) <= 'z'))
4817 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4818 #endif
4819
4820 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4821 int
4822 main ()
4823 {
4824 int i;
4825 for (i = 0; i < 256; i++)
4826 if (XOR (islower (i), ISLOWER (i))
4827 || toupper (i) != TOUPPER (i))
4828 return 2;
4829 return 0;
4830 }
4831 _ACEOF
4832 if ac_fn_c_try_run "$LINENO"; then :
4833
4834 else
4835 ac_cv_header_stdc=no
4836 fi
4837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4838 conftest.$ac_objext conftest.beam conftest.$ac_ext
4839 fi
4840
4841 fi
4842 fi
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4844 $as_echo "$ac_cv_header_stdc" >&6; }
4845 if test $ac_cv_header_stdc = yes; then
4846
4847 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4848
4849 fi
4850
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4852 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4853 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4858 #include <sys/types.h>
4859 #include <sys/wait.h>
4860 #ifndef WEXITSTATUS
4861 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4862 #endif
4863 #ifndef WIFEXITED
4864 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4865 #endif
4866
4867 int
4868 main ()
4869 {
4870 int s;
4871 wait (&s);
4872 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4873 ;
4874 return 0;
4875 }
4876 _ACEOF
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 ac_cv_header_sys_wait_h=yes
4879 else
4880 ac_cv_header_sys_wait_h=no
4881 fi
4882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4885 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4886 if test $ac_cv_header_sys_wait_h = yes; then
4887
4888 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4889
4890 fi
4891
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4893 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4894 if test "${ac_cv_header_time+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
4896 else
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899 #include <sys/types.h>
4900 #include <sys/time.h>
4901 #include <time.h>
4902
4903 int
4904 main ()
4905 {
4906 if ((struct tm *) 0)
4907 return 0;
4908 ;
4909 return 0;
4910 }
4911 _ACEOF
4912 if ac_fn_c_try_compile "$LINENO"; then :
4913 ac_cv_header_time=yes
4914 else
4915 ac_cv_header_time=no
4916 fi
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918 fi
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4920 $as_echo "$ac_cv_header_time" >&6; }
4921 if test $ac_cv_header_time = yes; then
4922
4923 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4924
4925 fi
4926
4927
4928 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4929 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4930 sys/wait.h time.h
4931 do :
4932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4933 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4934 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4935 cat >>confdefs.h <<_ACEOF
4936 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4937 _ACEOF
4938
4939 else
4940 as_fn_error $? "bailing out" "$LINENO" 5
4941 fi
4942
4943 done
4944
4945
4946 case "$host_os" in
4947 linux*)
4948 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4949 do :
4950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4951 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4952 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4953 cat >>confdefs.h <<_ACEOF
4954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4955 _ACEOF
4956
4957 else
4958 as_fn_error $? "bailing out" "$LINENO" 5
4959 fi
4960
4961 done
4962 ;;
4963 darwin*)
4964 for ac_header in machine/endian.h sys/disk.h
4965 do :
4966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4967 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4968 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4969 cat >>confdefs.h <<_ACEOF
4970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4971 _ACEOF
4972
4973 else
4974 as_fn_error $? "bailing out" "$LINENO" 5
4975 fi
4976
4977 done
4978 ;;
4979 esac
4980
4981 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4982 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4983 sys/types.h unistd.h
4984 do :
4985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4986 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4987 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4988 cat >>confdefs.h <<_ACEOF
4989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4990 _ACEOF
4991
4992 else
4993 as_fn_error $? "bailing out" "$LINENO" 5
4994 fi
4995
4996 done
4997
4998 for ac_header in termios.h sys/statvfs.h
4999 do :
5000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5001 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5002 if 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
5007 fi
5008
5009 done
5010
5011
5012 ################################################################################
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5014 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5015 if test "${ac_cv_c_const+set}" = set; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020
5021 int
5022 main ()
5023 {
5024 /* FIXME: Include the comments suggested by Paul. */
5025 #ifndef __cplusplus
5026 /* Ultrix mips cc rejects this. */
5027 typedef int charset[2];
5028 const charset cs;
5029 /* SunOS 4.1.1 cc rejects this. */
5030 char const *const *pcpcc;
5031 char **ppc;
5032 /* NEC SVR4.0.2 mips cc rejects this. */
5033 struct point {int x, y;};
5034 static struct point const zero = {0,0};
5035 /* AIX XL C 1.02.0.0 rejects this.
5036 It does not let you subtract one const X* pointer from another in
5037 an arm of an if-expression whose if-part is not a constant
5038 expression */
5039 const char *g = "string";
5040 pcpcc = &g + (g ? g-g : 0);
5041 /* HPUX 7.0 cc rejects these. */
5042 ++pcpcc;
5043 ppc = (char**) pcpcc;
5044 pcpcc = (char const *const *) ppc;
5045 { /* SCO 3.2v4 cc rejects this. */
5046 char *t;
5047 char const *s = 0 ? (char *) 0 : (char const *) 0;
5048
5049 *t++ = 0;
5050 if (s) return 0;
5051 }
5052 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5053 int x[] = {25, 17};
5054 const int *foo = &x[0];
5055 ++foo;
5056 }
5057 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5058 typedef const int *iptr;
5059 iptr p = 0;
5060 ++p;
5061 }
5062 { /* AIX XL C 1.02.0.0 rejects this saying
5063 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5064 struct s { int j; const int *ap[3]; };
5065 struct s *b; b->j = 5;
5066 }
5067 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5068 const int foo = 10;
5069 if (!foo) return 0;
5070 }
5071 return !cs[0] && !zero.x;
5072 #endif
5073
5074 ;
5075 return 0;
5076 }
5077 _ACEOF
5078 if ac_fn_c_try_compile "$LINENO"; then :
5079 ac_cv_c_const=yes
5080 else
5081 ac_cv_c_const=no
5082 fi
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084 fi
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5086 $as_echo "$ac_cv_c_const" >&6; }
5087 if test $ac_cv_c_const = no; then
5088
5089 $as_echo "#define const /**/" >>confdefs.h
5090
5091 fi
5092
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5094 $as_echo_n "checking for inline... " >&6; }
5095 if test "${ac_cv_c_inline+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 ac_cv_c_inline=no
5099 for ac_kw in inline __inline__ __inline; do
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 #ifndef __cplusplus
5103 typedef int foo_t;
5104 static $ac_kw foo_t static_foo () {return 0; }
5105 $ac_kw foo_t foo () {return 0; }
5106 #endif
5107
5108 _ACEOF
5109 if ac_fn_c_try_compile "$LINENO"; then :
5110 ac_cv_c_inline=$ac_kw
5111 fi
5112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5113 test "$ac_cv_c_inline" != no && break
5114 done
5115
5116 fi
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5118 $as_echo "$ac_cv_c_inline" >&6; }
5119
5120 case $ac_cv_c_inline in
5121 inline | yes) ;;
5122 *)
5123 case $ac_cv_c_inline in
5124 no) ac_val=;;
5125 *) ac_val=$ac_cv_c_inline;;
5126 esac
5127 cat >>confdefs.h <<_ACEOF
5128 #ifndef __cplusplus
5129 #define inline $ac_val
5130 #endif
5131 _ACEOF
5132 ;;
5133 esac
5134
5135 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5136 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5137
5138 cat >>confdefs.h <<_ACEOF
5139 #define HAVE_STRUCT_STAT_ST_RDEV 1
5140 _ACEOF
5141
5142
5143 fi
5144
5145 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5146 if test "x$ac_cv_type_off_t" = x""yes; then :
5147
5148 else
5149
5150 cat >>confdefs.h <<_ACEOF
5151 #define off_t long int
5152 _ACEOF
5153
5154 fi
5155
5156 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5157 if test "x$ac_cv_type_pid_t" = x""yes; then :
5158
5159 else
5160
5161 cat >>confdefs.h <<_ACEOF
5162 #define pid_t int
5163 _ACEOF
5164
5165 fi
5166
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5168 $as_echo_n "checking return type of signal handlers... " >&6; }
5169 if test "${ac_cv_type_signal+set}" = set; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 #include <sys/types.h>
5175 #include <signal.h>
5176
5177 int
5178 main ()
5179 {
5180 return *(signal (0, 0)) (0) == 1;
5181 ;
5182 return 0;
5183 }
5184 _ACEOF
5185 if ac_fn_c_try_compile "$LINENO"; then :
5186 ac_cv_type_signal=int
5187 else
5188 ac_cv_type_signal=void
5189 fi
5190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5191 fi
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5193 $as_echo "$ac_cv_type_signal" >&6; }
5194
5195 cat >>confdefs.h <<_ACEOF
5196 #define RETSIGTYPE $ac_cv_type_signal
5197 _ACEOF
5198
5199
5200 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5201 if test "x$ac_cv_type_size_t" = x""yes; then :
5202
5203 else
5204
5205 cat >>confdefs.h <<_ACEOF
5206 #define size_t unsigned int
5207 _ACEOF
5208
5209 fi
5210
5211 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5212 if test "x$ac_cv_type_mode_t" = x""yes; then :
5213
5214 else
5215
5216 cat >>confdefs.h <<_ACEOF
5217 #define mode_t int
5218 _ACEOF
5219
5220 fi
5221
5222 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5223 case $ac_cv_c_int8_t in #(
5224 no|yes) ;; #(
5225 *)
5226
5227 cat >>confdefs.h <<_ACEOF
5228 #define int8_t $ac_cv_c_int8_t
5229 _ACEOF
5230 ;;
5231 esac
5232
5233 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5234 case $ac_cv_c_int16_t in #(
5235 no|yes) ;; #(
5236 *)
5237
5238 cat >>confdefs.h <<_ACEOF
5239 #define int16_t $ac_cv_c_int16_t
5240 _ACEOF
5241 ;;
5242 esac
5243
5244 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5245 case $ac_cv_c_int32_t in #(
5246 no|yes) ;; #(
5247 *)
5248
5249 cat >>confdefs.h <<_ACEOF
5250 #define int32_t $ac_cv_c_int32_t
5251 _ACEOF
5252 ;;
5253 esac
5254
5255 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5256 case $ac_cv_c_int64_t in #(
5257 no|yes) ;; #(
5258 *)
5259
5260 cat >>confdefs.h <<_ACEOF
5261 #define int64_t $ac_cv_c_int64_t
5262 _ACEOF
5263 ;;
5264 esac
5265
5266 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5267 if test "x$ac_cv_type_ssize_t" = x""yes; then :
5268
5269 else
5270
5271 cat >>confdefs.h <<_ACEOF
5272 #define ssize_t int
5273 _ACEOF
5274
5275 fi
5276
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5278 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5279 if test "${ac_cv_type_uid_t+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 #include <sys/types.h>
5285
5286 _ACEOF
5287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5288 $EGREP "uid_t" >/dev/null 2>&1; then :
5289 ac_cv_type_uid_t=yes
5290 else
5291 ac_cv_type_uid_t=no
5292 fi
5293 rm -f conftest*
5294
5295 fi
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5297 $as_echo "$ac_cv_type_uid_t" >&6; }
5298 if test $ac_cv_type_uid_t = no; then
5299
5300 $as_echo "#define uid_t int" >>confdefs.h
5301
5302
5303 $as_echo "#define gid_t int" >>confdefs.h
5304
5305 fi
5306
5307 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5308 case $ac_cv_c_uint8_t in #(
5309 no|yes) ;; #(
5310 *)
5311
5312 $as_echo "#define _UINT8_T 1" >>confdefs.h
5313
5314
5315 cat >>confdefs.h <<_ACEOF
5316 #define uint8_t $ac_cv_c_uint8_t
5317 _ACEOF
5318 ;;
5319 esac
5320
5321 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5322 case $ac_cv_c_uint16_t in #(
5323 no|yes) ;; #(
5324 *)
5325
5326
5327 cat >>confdefs.h <<_ACEOF
5328 #define uint16_t $ac_cv_c_uint16_t
5329 _ACEOF
5330 ;;
5331 esac
5332
5333 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5334 case $ac_cv_c_uint32_t in #(
5335 no|yes) ;; #(
5336 *)
5337
5338 $as_echo "#define _UINT32_T 1" >>confdefs.h
5339
5340
5341 cat >>confdefs.h <<_ACEOF
5342 #define uint32_t $ac_cv_c_uint32_t
5343 _ACEOF
5344 ;;
5345 esac
5346
5347 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5348 case $ac_cv_c_uint64_t in #(
5349 no|yes) ;; #(
5350 *)
5351
5352 $as_echo "#define _UINT64_T 1" >>confdefs.h
5353
5354
5355 cat >>confdefs.h <<_ACEOF
5356 #define uint64_t $ac_cv_c_uint64_t
5357 _ACEOF
5358 ;;
5359 esac
5360
5361 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5362 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5363
5364 cat >>confdefs.h <<_ACEOF
5365 #define HAVE_STRUCT_STAT_ST_RDEV 1
5366 _ACEOF
5367
5368
5369 fi
5370
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5372 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5373 if test "${ac_cv_struct_tm+set}" = set; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378 #include <sys/types.h>
5379 #include <time.h>
5380
5381 int
5382 main ()
5383 {
5384 struct tm tm;
5385 int *p = &tm.tm_sec;
5386 return !p;
5387 ;
5388 return 0;
5389 }
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392 ac_cv_struct_tm=time.h
5393 else
5394 ac_cv_struct_tm=sys/time.h
5395 fi
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 fi
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5399 $as_echo "$ac_cv_struct_tm" >&6; }
5400 if test $ac_cv_struct_tm = sys/time.h; then
5401
5402 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5403
5404 fi
5405
5406
5407 ################################################################################
5408 for ac_func in ftruncate gethostname getpagesize \
5409 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5410 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5411 strstr strtol strtoul uname
5412 do :
5413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5414 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5415 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5416 cat >>confdefs.h <<_ACEOF
5417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5418 _ACEOF
5419
5420 else
5421 as_fn_error $? "bailing out" "$LINENO" 5
5422 fi
5423 done
5424
5425 for ac_func in siginterrupt
5426 do :
5427 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5428 if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5429 cat >>confdefs.h <<_ACEOF
5430 #define HAVE_SIGINTERRUPT 1
5431 _ACEOF
5432
5433 fi
5434 done
5435
5436 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5437 # for constant arguments. Useless!
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5439 $as_echo_n "checking for working alloca.h... " >&6; }
5440 if test "${ac_cv_working_alloca_h+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 #include <alloca.h>
5446 int
5447 main ()
5448 {
5449 char *p = (char *) alloca (2 * sizeof (int));
5450 if (p) return 0;
5451 ;
5452 return 0;
5453 }
5454 _ACEOF
5455 if ac_fn_c_try_link "$LINENO"; then :
5456 ac_cv_working_alloca_h=yes
5457 else
5458 ac_cv_working_alloca_h=no
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext \
5461 conftest$ac_exeext conftest.$ac_ext
5462 fi
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5464 $as_echo "$ac_cv_working_alloca_h" >&6; }
5465 if test $ac_cv_working_alloca_h = yes; then
5466
5467 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5468
5469 fi
5470
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5472 $as_echo_n "checking for alloca... " >&6; }
5473 if test "${ac_cv_func_alloca_works+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5478 #ifdef __GNUC__
5479 # define alloca __builtin_alloca
5480 #else
5481 # ifdef _MSC_VER
5482 # include <malloc.h>
5483 # define alloca _alloca
5484 # else
5485 # ifdef HAVE_ALLOCA_H
5486 # include <alloca.h>
5487 # else
5488 # ifdef _AIX
5489 #pragma alloca
5490 # else
5491 # ifndef alloca /* predefined by HP cc +Olibcalls */
5492 char *alloca ();
5493 # endif
5494 # endif
5495 # endif
5496 # endif
5497 #endif
5498
5499 int
5500 main ()
5501 {
5502 char *p = (char *) alloca (1);
5503 if (p) return 0;
5504 ;
5505 return 0;
5506 }
5507 _ACEOF
5508 if ac_fn_c_try_link "$LINENO"; then :
5509 ac_cv_func_alloca_works=yes
5510 else
5511 ac_cv_func_alloca_works=no
5512 fi
5513 rm -f core conftest.err conftest.$ac_objext \
5514 conftest$ac_exeext conftest.$ac_ext
5515 fi
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5517 $as_echo "$ac_cv_func_alloca_works" >&6; }
5518
5519 if test $ac_cv_func_alloca_works = yes; then
5520
5521 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5522
5523 else
5524 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5525 # that cause trouble. Some versions do not even contain alloca or
5526 # contain a buggy version. If you still want to use their alloca,
5527 # use ar to extract alloca.o from them instead of compiling alloca.c.
5528
5529 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5530
5531 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5532
5533
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5535 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5536 if test "${ac_cv_os_cray+set}" = set; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 #if defined CRAY && ! defined CRAY2
5542 webecray
5543 #else
5544 wenotbecray
5545 #endif
5546
5547 _ACEOF
5548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5549 $EGREP "webecray" >/dev/null 2>&1; then :
5550 ac_cv_os_cray=yes
5551 else
5552 ac_cv_os_cray=no
5553 fi
5554 rm -f conftest*
5555
5556 fi
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5558 $as_echo "$ac_cv_os_cray" >&6; }
5559 if test $ac_cv_os_cray = yes; then
5560 for ac_func in _getb67 GETB67 getb67; do
5561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5562 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5563 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5564
5565 cat >>confdefs.h <<_ACEOF
5566 #define CRAY_STACKSEG_END $ac_func
5567 _ACEOF
5568
5569 break
5570 fi
5571
5572 done
5573 fi
5574
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5576 $as_echo_n "checking stack direction for C alloca... " >&6; }
5577 if test "${ac_cv_c_stack_direction+set}" = set; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 if test "$cross_compiling" = yes; then :
5581 ac_cv_c_stack_direction=0
5582 else
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 $ac_includes_default
5586 int
5587 find_stack_direction ()
5588 {
5589 static char *addr = 0;
5590 auto char dummy;
5591 if (addr == 0)
5592 {
5593 addr = &dummy;
5594 return find_stack_direction ();
5595 }
5596 else
5597 return (&dummy > addr) ? 1 : -1;
5598 }
5599
5600 int
5601 main ()
5602 {
5603 return find_stack_direction () < 0;
5604 }
5605 _ACEOF
5606 if ac_fn_c_try_run "$LINENO"; then :
5607 ac_cv_c_stack_direction=1
5608 else
5609 ac_cv_c_stack_direction=-1
5610 fi
5611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5612 conftest.$ac_objext conftest.beam conftest.$ac_ext
5613 fi
5614
5615 fi
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5617 $as_echo "$ac_cv_c_stack_direction" >&6; }
5618 cat >>confdefs.h <<_ACEOF
5619 #define STACK_DIRECTION $ac_cv_c_stack_direction
5620 _ACEOF
5621
5622
5623 fi
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5626 $as_echo_n "checking whether closedir returns void... " >&6; }
5627 if test "${ac_cv_func_closedir_void+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if test "$cross_compiling" = yes; then :
5631 ac_cv_func_closedir_void=yes
5632 else
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 $ac_includes_default
5636 #include <$ac_header_dirent>
5637 #ifndef __cplusplus
5638 int closedir ();
5639 #endif
5640
5641 int
5642 main ()
5643 {
5644 return closedir (opendir (".")) != 0;
5645 ;
5646 return 0;
5647 }
5648 _ACEOF
5649 if ac_fn_c_try_run "$LINENO"; then :
5650 ac_cv_func_closedir_void=no
5651 else
5652 ac_cv_func_closedir_void=yes
5653 fi
5654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5655 conftest.$ac_objext conftest.beam conftest.$ac_ext
5656 fi
5657
5658 fi
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5660 $as_echo "$ac_cv_func_closedir_void" >&6; }
5661 if test $ac_cv_func_closedir_void = yes; then
5662
5663 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5664
5665 fi
5666
5667 for ac_header in unistd.h
5668 do :
5669 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5670 if test "x$ac_cv_header_unistd_h" = x""yes; then :
5671 cat >>confdefs.h <<_ACEOF
5672 #define HAVE_UNISTD_H 1
5673 _ACEOF
5674
5675 fi
5676
5677 done
5678
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5680 $as_echo_n "checking for working chown... " >&6; }
5681 if test "${ac_cv_func_chown_works+set}" = set; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 if test "$cross_compiling" = yes; then :
5685 ac_cv_func_chown_works=no
5686 else
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 $ac_includes_default
5690 #include <fcntl.h>
5691
5692 int
5693 main ()
5694 {
5695 char *f = "conftest.chown";
5696 struct stat before, after;
5697
5698 if (creat (f, 0600) < 0)
5699 return 1;
5700 if (stat (f, &before) < 0)
5701 return 1;
5702 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5703 return 1;
5704 if (stat (f, &after) < 0)
5705 return 1;
5706 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
5707
5708 ;
5709 return 0;
5710 }
5711 _ACEOF
5712 if ac_fn_c_try_run "$LINENO"; then :
5713 ac_cv_func_chown_works=yes
5714 else
5715 ac_cv_func_chown_works=no
5716 fi
5717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5718 conftest.$ac_objext conftest.beam conftest.$ac_ext
5719 fi
5720
5721 rm -f conftest.chown
5722
5723 fi
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5725 $as_echo "$ac_cv_func_chown_works" >&6; }
5726 if test $ac_cv_func_chown_works = yes; then
5727
5728 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
5729
5730 fi
5731
5732 for ac_header in vfork.h
5733 do :
5734 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5735 if test "x$ac_cv_header_vfork_h" = x""yes; then :
5736 cat >>confdefs.h <<_ACEOF
5737 #define HAVE_VFORK_H 1
5738 _ACEOF
5739
5740 fi
5741
5742 done
5743
5744 for ac_func in fork vfork
5745 do :
5746 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5747 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5748 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5749 cat >>confdefs.h <<_ACEOF
5750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5751 _ACEOF
5752
5753 fi
5754 done
5755
5756 if test "x$ac_cv_func_fork" = xyes; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5758 $as_echo_n "checking for working fork... " >&6; }
5759 if test "${ac_cv_func_fork_works+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 if test "$cross_compiling" = yes; then :
5763 ac_cv_func_fork_works=cross
5764 else
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5767 $ac_includes_default
5768 int
5769 main ()
5770 {
5771
5772 /* By Ruediger Kuhlmann. */
5773 return fork () < 0;
5774
5775 ;
5776 return 0;
5777 }
5778 _ACEOF
5779 if ac_fn_c_try_run "$LINENO"; then :
5780 ac_cv_func_fork_works=yes
5781 else
5782 ac_cv_func_fork_works=no
5783 fi
5784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5785 conftest.$ac_objext conftest.beam conftest.$ac_ext
5786 fi
5787
5788 fi
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5790 $as_echo "$ac_cv_func_fork_works" >&6; }
5791
5792 else
5793 ac_cv_func_fork_works=$ac_cv_func_fork
5794 fi
5795 if test "x$ac_cv_func_fork_works" = xcross; then
5796 case $host in
5797 *-*-amigaos* | *-*-msdosdjgpp*)
5798 # Override, as these systems have only a dummy fork() stub
5799 ac_cv_func_fork_works=no
5800 ;;
5801 *)
5802 ac_cv_func_fork_works=yes
5803 ;;
5804 esac
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5806 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5807 fi
5808 ac_cv_func_vfork_works=$ac_cv_func_vfork
5809 if test "x$ac_cv_func_vfork" = xyes; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5811 $as_echo_n "checking for working vfork... " >&6; }
5812 if test "${ac_cv_func_vfork_works+set}" = set; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 if test "$cross_compiling" = yes; then :
5816 ac_cv_func_vfork_works=cross
5817 else
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820 /* Thanks to Paul Eggert for this test. */
5821 $ac_includes_default
5822 #include <sys/wait.h>
5823 #ifdef HAVE_VFORK_H
5824 # include <vfork.h>
5825 #endif
5826 /* On some sparc systems, changes by the child to local and incoming
5827 argument registers are propagated back to the parent. The compiler
5828 is told about this with #include <vfork.h>, but some compilers
5829 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5830 static variable whose address is put into a register that is
5831 clobbered by the vfork. */
5832 static void
5833 #ifdef __cplusplus
5834 sparc_address_test (int arg)
5835 # else
5836 sparc_address_test (arg) int arg;
5837 #endif
5838 {
5839 static pid_t child;
5840 if (!child) {
5841 child = vfork ();
5842 if (child < 0) {
5843 perror ("vfork");
5844 _exit(2);
5845 }
5846 if (!child) {
5847 arg = getpid();
5848 write(-1, "", 0);
5849 _exit (arg);
5850 }
5851 }
5852 }
5853
5854 int
5855 main ()
5856 {
5857 pid_t parent = getpid ();
5858 pid_t child;
5859
5860 sparc_address_test (0);
5861
5862 child = vfork ();
5863
5864 if (child == 0) {
5865 /* Here is another test for sparc vfork register problems. This
5866 test uses lots of local variables, at least as many local
5867 variables as main has allocated so far including compiler
5868 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5869 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5870 reuse the register of parent for one of the local variables,
5871 since it will think that parent can't possibly be used any more
5872 in this routine. Assigning to the local variable will thus
5873 munge parent in the parent process. */
5874 pid_t
5875 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5876 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5877 /* Convince the compiler that p..p7 are live; otherwise, it might
5878 use the same hardware register for all 8 local variables. */
5879 if (p != p1 || p != p2 || p != p3 || p != p4
5880 || p != p5 || p != p6 || p != p7)
5881 _exit(1);
5882
5883 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5884 from child file descriptors. If the child closes a descriptor
5885 before it execs or exits, this munges the parent's descriptor
5886 as well. Test for this by closing stdout in the child. */
5887 _exit(close(fileno(stdout)) != 0);
5888 } else {
5889 int status;
5890 struct stat st;
5891
5892 while (wait(&status) != child)
5893 ;
5894 return (
5895 /* Was there some problem with vforking? */
5896 child < 0
5897
5898 /* Did the child fail? (This shouldn't happen.) */
5899 || status
5900
5901 /* Did the vfork/compiler bug occur? */
5902 || parent != getpid()
5903
5904 /* Did the file descriptor bug occur? */
5905 || fstat(fileno(stdout), &st) != 0
5906 );
5907 }
5908 }
5909 _ACEOF
5910 if ac_fn_c_try_run "$LINENO"; then :
5911 ac_cv_func_vfork_works=yes
5912 else
5913 ac_cv_func_vfork_works=no
5914 fi
5915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5916 conftest.$ac_objext conftest.beam conftest.$ac_ext
5917 fi
5918
5919 fi
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5921 $as_echo "$ac_cv_func_vfork_works" >&6; }
5922
5923 fi;
5924 if test "x$ac_cv_func_fork_works" = xcross; then
5925 ac_cv_func_vfork_works=$ac_cv_func_vfork
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5927 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5928 fi
5929
5930 if test "x$ac_cv_func_vfork_works" = xyes; then
5931
5932 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5933
5934 else
5935
5936 $as_echo "#define vfork fork" >>confdefs.h
5937
5938 fi
5939 if test "x$ac_cv_func_fork_works" = xyes; then
5940
5941 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5942
5943 fi
5944
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5946 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5947 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 rm -f conftest.sym conftest.file
5951 echo >conftest.file
5952 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5953 if test "$cross_compiling" = yes; then :
5954 ac_cv_func_lstat_dereferences_slashed_symlink=no
5955 else
5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5958 $ac_includes_default
5959 int
5960 main ()
5961 {
5962 struct stat sbuf;
5963 /* Linux will dereference the symlink and fail, as required by POSIX.
5964 That is better in the sense that it means we will not
5965 have to compile and use the lstat wrapper. */
5966 return lstat ("conftest.sym/", &sbuf) == 0;
5967 ;
5968 return 0;
5969 }
5970 _ACEOF
5971 if ac_fn_c_try_run "$LINENO"; then :
5972 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5973 else
5974 ac_cv_func_lstat_dereferences_slashed_symlink=no
5975 fi
5976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5977 conftest.$ac_objext conftest.beam conftest.$ac_ext
5978 fi
5979
5980 else
5981 # If the `ln -s' command failed, then we probably don't even
5982 # have an lstat function.
5983 ac_cv_func_lstat_dereferences_slashed_symlink=no
5984 fi
5985 rm -f conftest.sym conftest.file
5986
5987 fi
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5989 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5990
5991 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5992
5993 cat >>confdefs.h <<_ACEOF
5994 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5995 _ACEOF
5996
5997
5998 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5999 case " $LIBOBJS " in
6000 *" lstat.$ac_objext "* ) ;;
6001 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6002 ;;
6003 esac
6004
6005 fi
6006
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6008 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6009 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 if test "$cross_compiling" = yes; then :
6013 ac_cv_func_lstat_empty_string_bug=yes
6014 else
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6017 $ac_includes_default
6018 int
6019 main ()
6020 {
6021 struct stat sbuf;
6022 return lstat ("", &sbuf) == 0;
6023 ;
6024 return 0;
6025 }
6026 _ACEOF
6027 if ac_fn_c_try_run "$LINENO"; then :
6028 ac_cv_func_lstat_empty_string_bug=no
6029 else
6030 ac_cv_func_lstat_empty_string_bug=yes
6031 fi
6032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6033 conftest.$ac_objext conftest.beam conftest.$ac_ext
6034 fi
6035
6036 fi
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6038 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6039 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6040 case " $LIBOBJS " in
6041 *" lstat.$ac_objext "* ) ;;
6042 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6043 ;;
6044 esac
6045
6046
6047 cat >>confdefs.h <<_ACEOF
6048 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6049 _ACEOF
6050
6051 fi
6052
6053 for ac_header in stdlib.h
6054 do :
6055 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6056 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6057 cat >>confdefs.h <<_ACEOF
6058 #define HAVE_STDLIB_H 1
6059 _ACEOF
6060
6061 fi
6062
6063 done
6064
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6066 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6067 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if test "$cross_compiling" = yes; then :
6071 ac_cv_func_malloc_0_nonnull=no
6072 else
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6076 # include <stdlib.h>
6077 #else
6078 char *malloc ();
6079 #endif
6080
6081 int
6082 main ()
6083 {
6084 return ! malloc (0);
6085 ;
6086 return 0;
6087 }
6088 _ACEOF
6089 if ac_fn_c_try_run "$LINENO"; then :
6090 ac_cv_func_malloc_0_nonnull=yes
6091 else
6092 ac_cv_func_malloc_0_nonnull=no
6093 fi
6094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6095 conftest.$ac_objext conftest.beam conftest.$ac_ext
6096 fi
6097
6098 fi
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6100 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6101 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6102
6103 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6104
6105 else
6106 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6107
6108 case " $LIBOBJS " in
6109 *" malloc.$ac_objext "* ) ;;
6110 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6111 ;;
6112 esac
6113
6114
6115 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6116
6117 fi
6118
6119
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6121 $as_echo_n "checking for working memcmp... " >&6; }
6122 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 if test "$cross_compiling" = yes; then :
6126 ac_cv_func_memcmp_working=no
6127 else
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h. */
6130 $ac_includes_default
6131 int
6132 main ()
6133 {
6134
6135 /* Some versions of memcmp are not 8-bit clean. */
6136 char c0 = '\100', c1 = '\200', c2 = '\201';
6137 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6138 return 1;
6139
6140 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6141 or more and with at least one buffer not starting on a 4-byte boundary.
6142 William Lewis provided this test program. */
6143 {
6144 char foo[21];
6145 char bar[21];
6146 int i;
6147 for (i = 0; i < 4; i++)
6148 {
6149 char *a = foo + i;
6150 char *b = bar + i;
6151 strcpy (a, "--------01111111");
6152 strcpy (b, "--------10000000");
6153 if (memcmp (a, b, 16) >= 0)
6154 return 1;
6155 }
6156 return 0;
6157 }
6158
6159 ;
6160 return 0;
6161 }
6162 _ACEOF
6163 if ac_fn_c_try_run "$LINENO"; then :
6164 ac_cv_func_memcmp_working=yes
6165 else
6166 ac_cv_func_memcmp_working=no
6167 fi
6168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6169 conftest.$ac_objext conftest.beam conftest.$ac_ext
6170 fi
6171
6172 fi
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6174 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6175 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6176 *" memcmp.$ac_objext "* ) ;;
6177 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6178 ;;
6179 esac
6180
6181
6182
6183
6184
6185 for ac_header in $ac_header_list
6186 do :
6187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6188 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6189 "
6190 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6191 cat >>confdefs.h <<_ACEOF
6192 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6193 _ACEOF
6194
6195 fi
6196
6197 done
6198
6199
6200
6201
6202
6203
6204
6205
6206 for ac_func in getpagesize
6207 do :
6208 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6209 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6210 cat >>confdefs.h <<_ACEOF
6211 #define HAVE_GETPAGESIZE 1
6212 _ACEOF
6213
6214 fi
6215 done
6216
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6218 $as_echo_n "checking for working mmap... " >&6; }
6219 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6220 $as_echo_n "(cached) " >&6
6221 else
6222 if test "$cross_compiling" = yes; then :
6223 ac_cv_func_mmap_fixed_mapped=no
6224 else
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6227 $ac_includes_default
6228 /* malloc might have been renamed as rpl_malloc. */
6229 #undef malloc
6230
6231 /* Thanks to Mike Haertel and Jim Avera for this test.
6232 Here is a matrix of mmap possibilities:
6233 mmap private not fixed
6234 mmap private fixed at somewhere currently unmapped
6235 mmap private fixed at somewhere already mapped
6236 mmap shared not fixed
6237 mmap shared fixed at somewhere currently unmapped
6238 mmap shared fixed at somewhere already mapped
6239 For private mappings, we should verify that changes cannot be read()
6240 back from the file, nor mmap's back from the file at a different
6241 address. (There have been systems where private was not correctly
6242 implemented like the infamous i386 svr4.0, and systems where the
6243 VM page cache was not coherent with the file system buffer cache
6244 like early versions of FreeBSD and possibly contemporary NetBSD.)
6245 For shared mappings, we should conversely verify that changes get
6246 propagated back to all the places they're supposed to be.
6247
6248 Grep wants private fixed already mapped.
6249 The main things grep needs to know about mmap are:
6250 * does it exist and is it safe to write into the mmap'd area
6251 * how to use it (BSD variants) */
6252
6253 #include <fcntl.h>
6254 #include <sys/mman.h>
6255
6256 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6257 char *malloc ();
6258 #endif
6259
6260 /* This mess was copied from the GNU getpagesize.h. */
6261 #ifndef HAVE_GETPAGESIZE
6262 # ifdef _SC_PAGESIZE
6263 # define getpagesize() sysconf(_SC_PAGESIZE)
6264 # else /* no _SC_PAGESIZE */
6265 # ifdef HAVE_SYS_PARAM_H
6266 # include <sys/param.h>
6267 # ifdef EXEC_PAGESIZE
6268 # define getpagesize() EXEC_PAGESIZE
6269 # else /* no EXEC_PAGESIZE */
6270 # ifdef NBPG
6271 # define getpagesize() NBPG * CLSIZE
6272 # ifndef CLSIZE
6273 # define CLSIZE 1
6274 # endif /* no CLSIZE */
6275 # else /* no NBPG */
6276 # ifdef NBPC
6277 # define getpagesize() NBPC
6278 # else /* no NBPC */
6279 # ifdef PAGESIZE
6280 # define getpagesize() PAGESIZE
6281 # endif /* PAGESIZE */
6282 # endif /* no NBPC */
6283 # endif /* no NBPG */
6284 # endif /* no EXEC_PAGESIZE */
6285 # else /* no HAVE_SYS_PARAM_H */
6286 # define getpagesize() 8192 /* punt totally */
6287 # endif /* no HAVE_SYS_PARAM_H */
6288 # endif /* no _SC_PAGESIZE */
6289
6290 #endif /* no HAVE_GETPAGESIZE */
6291
6292 int
6293 main ()
6294 {
6295 char *data, *data2, *data3;
6296 const char *cdata2;
6297 int i, pagesize;
6298 int fd, fd2;
6299
6300 pagesize = getpagesize ();
6301
6302 /* First, make a file with some known garbage in it. */
6303 data = (char *) malloc (pagesize);
6304 if (!data)
6305 return 1;
6306 for (i = 0; i < pagesize; ++i)
6307 *(data + i) = rand ();
6308 umask (0);
6309 fd = creat ("conftest.mmap", 0600);
6310 if (fd < 0)
6311 return 2;
6312 if (write (fd, data, pagesize) != pagesize)
6313 return 3;
6314 close (fd);
6315
6316 /* Next, check that the tail of a page is zero-filled. File must have
6317 non-zero length, otherwise we risk SIGBUS for entire page. */
6318 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6319 if (fd2 < 0)
6320 return 4;
6321 cdata2 = "";
6322 if (write (fd2, cdata2, 1) != 1)
6323 return 5;
6324 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6325 if (data2 == MAP_FAILED)
6326 return 6;
6327 for (i = 0; i < pagesize; ++i)
6328 if (*(data2 + i))
6329 return 7;
6330 close (fd2);
6331 if (munmap (data2, pagesize))
6332 return 8;
6333
6334 /* Next, try to mmap the file at a fixed address which already has
6335 something else allocated at it. If we can, also make sure that
6336 we see the same garbage. */
6337 fd = open ("conftest.mmap", O_RDWR);
6338 if (fd < 0)
6339 return 9;
6340 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6341 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6342 return 10;
6343 for (i = 0; i < pagesize; ++i)
6344 if (*(data + i) != *(data2 + i))
6345 return 11;
6346
6347 /* Finally, make sure that changes to the mapped area do not
6348 percolate back to the file as seen by read(). (This is a bug on
6349 some variants of i386 svr4.0.) */
6350 for (i = 0; i < pagesize; ++i)
6351 *(data2 + i) = *(data2 + i) + 1;
6352 data3 = (char *) malloc (pagesize);
6353 if (!data3)
6354 return 12;
6355 if (read (fd, data3, pagesize) != pagesize)
6356 return 13;
6357 for (i = 0; i < pagesize; ++i)
6358 if (*(data + i) != *(data3 + i))
6359 return 14;
6360 close (fd);
6361 return 0;
6362 }
6363 _ACEOF
6364 if ac_fn_c_try_run "$LINENO"; then :
6365 ac_cv_func_mmap_fixed_mapped=yes
6366 else
6367 ac_cv_func_mmap_fixed_mapped=no
6368 fi
6369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6370 conftest.$ac_objext conftest.beam conftest.$ac_ext
6371 fi
6372
6373 fi
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6375 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6376 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6377
6378 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6379
6380 fi
6381 rm -f conftest.mmap conftest.txt
6382
6383 for ac_header in stdlib.h
6384 do :
6385 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6386 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6387 cat >>confdefs.h <<_ACEOF
6388 #define HAVE_STDLIB_H 1
6389 _ACEOF
6390
6391 fi
6392
6393 done
6394
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6396 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6397 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 if test "$cross_compiling" = yes; then :
6401 ac_cv_func_realloc_0_nonnull=no
6402 else
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6405 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6406 # include <stdlib.h>
6407 #else
6408 char *realloc ();
6409 #endif
6410
6411 int
6412 main ()
6413 {
6414 return ! realloc (0, 0);
6415 ;
6416 return 0;
6417 }
6418 _ACEOF
6419 if ac_fn_c_try_run "$LINENO"; then :
6420 ac_cv_func_realloc_0_nonnull=yes
6421 else
6422 ac_cv_func_realloc_0_nonnull=no
6423 fi
6424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6425 conftest.$ac_objext conftest.beam conftest.$ac_ext
6426 fi
6427
6428 fi
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6430 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6431 if test $ac_cv_func_realloc_0_nonnull = yes; then :
6432
6433 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6434
6435 else
6436 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6437
6438 case " $LIBOBJS " in
6439 *" realloc.$ac_objext "* ) ;;
6440 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6441 ;;
6442 esac
6443
6444
6445 $as_echo "#define realloc rpl_realloc" >>confdefs.h
6446
6447 fi
6448
6449
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6451 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
6452 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 if test "$cross_compiling" = yes; then :
6456 ac_cv_func_stat_empty_string_bug=yes
6457 else
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 $ac_includes_default
6461 int
6462 main ()
6463 {
6464 struct stat sbuf;
6465 return stat ("", &sbuf) == 0;
6466 ;
6467 return 0;
6468 }
6469 _ACEOF
6470 if ac_fn_c_try_run "$LINENO"; then :
6471 ac_cv_func_stat_empty_string_bug=no
6472 else
6473 ac_cv_func_stat_empty_string_bug=yes
6474 fi
6475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6476 conftest.$ac_objext conftest.beam conftest.$ac_ext
6477 fi
6478
6479 fi
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6481 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6482 if test $ac_cv_func_stat_empty_string_bug = yes; then
6483 case " $LIBOBJS " in
6484 *" stat.$ac_objext "* ) ;;
6485 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6486 ;;
6487 esac
6488
6489
6490 cat >>confdefs.h <<_ACEOF
6491 #define HAVE_STAT_EMPTY_STRING_BUG 1
6492 _ACEOF
6493
6494 fi
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6497 $as_echo_n "checking for working strtod... " >&6; }
6498 if test "${ac_cv_func_strtod+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 if test "$cross_compiling" = yes; then :
6502 ac_cv_func_strtod=no
6503 else
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6506
6507 $ac_includes_default
6508 #ifndef strtod
6509 double strtod ();
6510 #endif
6511 int
6512 main()
6513 {
6514 {
6515 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6516 char *string = " +69";
6517 char *term;
6518 double value;
6519 value = strtod (string, &term);
6520 if (value != 69 || term != (string + 4))
6521 return 1;
6522 }
6523
6524 {
6525 /* Under Solaris 2.4, strtod returns the wrong value for the
6526 terminating character under some conditions. */
6527 char *string = "NaN";
6528 char *term;
6529 strtod (string, &term);
6530 if (term != string && *(term - 1) == 0)
6531 return 1;
6532 }
6533 return 0;
6534 }
6535
6536 _ACEOF
6537 if ac_fn_c_try_run "$LINENO"; then :
6538 ac_cv_func_strtod=yes
6539 else
6540 ac_cv_func_strtod=no
6541 fi
6542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6543 conftest.$ac_objext conftest.beam conftest.$ac_ext
6544 fi
6545
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6548 $as_echo "$ac_cv_func_strtod" >&6; }
6549 if test $ac_cv_func_strtod = no; then
6550 case " $LIBOBJS " in
6551 *" strtod.$ac_objext "* ) ;;
6552 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6553 ;;
6554 esac
6555
6556 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6557 if test "x$ac_cv_func_pow" = x""yes; then :
6558
6559 fi
6560
6561 if test $ac_cv_func_pow = no; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6563 $as_echo_n "checking for pow in -lm... " >&6; }
6564 if test "${ac_cv_lib_m_pow+set}" = set; then :
6565 $as_echo_n "(cached) " >&6
6566 else
6567 ac_check_lib_save_LIBS=$LIBS
6568 LIBS="-lm $LIBS"
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6571
6572 /* Override any GCC internal prototype to avoid an error.
6573 Use char because int might match the return type of a GCC
6574 builtin and then its argument prototype would still apply. */
6575 #ifdef __cplusplus
6576 extern "C"
6577 #endif
6578 char pow ();
6579 int
6580 main ()
6581 {
6582 return pow ();
6583 ;
6584 return 0;
6585 }
6586 _ACEOF
6587 if ac_fn_c_try_link "$LINENO"; then :
6588 ac_cv_lib_m_pow=yes
6589 else
6590 ac_cv_lib_m_pow=no
6591 fi
6592 rm -f core conftest.err conftest.$ac_objext \
6593 conftest$ac_exeext conftest.$ac_ext
6594 LIBS=$ac_check_lib_save_LIBS
6595 fi
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6597 $as_echo "$ac_cv_lib_m_pow" >&6; }
6598 if test "x$ac_cv_lib_m_pow" = x""yes; then :
6599 POW_LIB=-lm
6600 else
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6602 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6603 fi
6604
6605 fi
6606
6607 fi
6608
6609 for ac_func in vprintf
6610 do :
6611 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6612 if test "x$ac_cv_func_vprintf" = x""yes; then :
6613 cat >>confdefs.h <<_ACEOF
6614 #define HAVE_VPRINTF 1
6615 _ACEOF
6616
6617 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6618 if test "x$ac_cv_func__doprnt" = x""yes; then :
6619
6620 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6621
6622 fi
6623
6624 fi
6625 done
6626
6627
6628
6629 ################################################################################
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6631 $as_echo_n "checking whether to use static linking... " >&6; }
6632 # Check whether --enable-static_link was given.
6633 if test "${enable_static_link+set}" = set; then :
6634 enableval=$enable_static_link; STATIC_LINK=$enableval
6635 else
6636 STATIC_LINK=no
6637 fi
6638
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6640 $as_echo "$STATIC_LINK" >&6; }
6641
6642 ################################################################################
6643
6644
6645 ################################################################################
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6647 $as_echo_n "checking file owner... " >&6; }
6648
6649 # Check whether --with-user was given.
6650 if test "${with_user+set}" = set; then :
6651 withval=$with_user; OWNER=$withval
6652 fi
6653
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6655 $as_echo "$OWNER" >&6; }
6656
6657 if test x$OWNER != x; then
6658 INSTALL="$INSTALL -o $OWNER"
6659 fi
6660
6661 ################################################################################
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6663 $as_echo_n "checking group owner... " >&6; }
6664
6665 # Check whether --with-group was given.
6666 if test "${with_group+set}" = set; then :
6667 withval=$with_group; GROUP=$withval
6668 fi
6669
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6671 $as_echo "$GROUP" >&6; }
6672
6673 if test x$GROUP != x; then
6674 INSTALL="$INSTALL -g $GROUP"
6675 fi
6676
6677 ################################################################################
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6679 $as_echo_n "checking device node uid... " >&6; }
6680
6681
6682 # Check whether --with-device-uid was given.
6683 if test "${with_device_uid+set}" = set; then :
6684 withval=$with_device_uid; DM_DEVICE_UID=$withval
6685 else
6686 DM_DEVICE_UID=0
6687 fi
6688
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6690 $as_echo "$DM_DEVICE_UID" >&6; }
6691
6692 ################################################################################
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6694 $as_echo_n "checking device node gid... " >&6; }
6695
6696
6697 # Check whether --with-device-gid was given.
6698 if test "${with_device_gid+set}" = set; then :
6699 withval=$with_device_gid; DM_DEVICE_GID=$withval
6700 else
6701 DM_DEVICE_GID=0
6702 fi
6703
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6705 $as_echo "$DM_DEVICE_GID" >&6; }
6706
6707 ################################################################################
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6709 $as_echo_n "checking device node mode... " >&6; }
6710
6711
6712 # Check whether --with-device-mode was given.
6713 if test "${with_device_mode+set}" = set; then :
6714 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6715 else
6716 DM_DEVICE_MODE=0600
6717 fi
6718
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6720 $as_echo "$DM_DEVICE_MODE" >&6; }
6721
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6723 $as_echo_n "checking when to create device nodes... " >&6; }
6724
6725 # Check whether --with-device-nodes-on was given.
6726 if test "${with_device_nodes_on+set}" = set; then :
6727 withval=$with_device_nodes_on; ADD_NODE=$withval
6728 else
6729 ADD_NODE=resume
6730 fi
6731
6732 case "$ADD_NODE" in
6733 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6734 create) add_on=DM_ADD_NODE_ON_CREATE;;
6735 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6736 esac
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6738 $as_echo "on $ADD_NODE" >&6; }
6739
6740 cat >>confdefs.h <<_ACEOF
6741 #define DEFAULT_DM_ADD_NODE $add_on
6742 _ACEOF
6743
6744
6745 ################################################################################
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6747 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6748 # Check whether --enable-lvm1_fallback was given.
6749 if test "${enable_lvm1_fallback+set}" = set; then :
6750 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6751 else
6752 LVM1_FALLBACK=no
6753 fi
6754
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6756 $as_echo "$LVM1_FALLBACK" >&6; }
6757
6758 if test x$LVM1_FALLBACK = xyes; then
6759
6760 $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
6761
6762 fi
6763
6764 ################################################################################
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6766 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6767
6768 # Check whether --with-lvm1 was given.
6769 if test "${with_lvm1+set}" = set; then :
6770 withval=$with_lvm1; LVM1=$withval
6771 else
6772 LVM1=internal
6773 fi
6774
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6776 $as_echo "$LVM1" >&6; }
6777
6778 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6779 then as_fn_error $? "--with-lvm1 parameter invalid
6780 " "$LINENO" 5
6781 fi;
6782
6783 if test x$LVM1 = xinternal; then
6784
6785 $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6786
6787 fi
6788
6789 ################################################################################
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6791 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6792
6793 # Check whether --with-pool was given.
6794 if test "${with_pool+set}" = set; then :
6795 withval=$with_pool; POOL=$withval
6796 else
6797 POOL=internal
6798 fi
6799
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6801 $as_echo "$POOL" >&6; }
6802
6803 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6804 then as_fn_error $? "--with-pool parameter invalid
6805 " "$LINENO" 5
6806 fi;
6807
6808 if test x$POOL = xinternal; then
6809
6810 $as_echo "#define POOL_INTERNAL 1" >>confdefs.h
6811
6812 fi
6813
6814 ################################################################################
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6816 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
6817
6818 # Check whether --with-cluster was given.
6819 if test "${with_cluster+set}" = set; then :
6820 withval=$with_cluster; CLUSTER=$withval
6821 fi
6822
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6824 $as_echo "$CLUSTER" >&6; }
6825
6826 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6827 then as_fn_error $? "--with-cluster parameter invalid
6828 " "$LINENO" 5
6829 fi;
6830
6831 if test x$CLUSTER = xinternal; then
6832
6833 $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
6834
6835 fi
6836
6837 ################################################################################
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6839 $as_echo_n "checking whether to include snapshots... " >&6; }
6840
6841 # Check whether --with-snapshots was given.
6842 if test "${with_snapshots+set}" = set; then :
6843 withval=$with_snapshots; SNAPSHOTS=$withval
6844 else
6845 SNAPSHOTS=internal
6846 fi
6847
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6849 $as_echo "$SNAPSHOTS" >&6; }
6850
6851 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6852 then as_fn_error $? "--with-snapshots parameter invalid
6853 " "$LINENO" 5
6854 fi;
6855
6856 if test x$SNAPSHOTS = xinternal; then
6857
6858 $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6859
6860 fi
6861
6862 ################################################################################
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6864 $as_echo_n "checking whether to include mirrors... " >&6; }
6865
6866 # Check whether --with-mirrors was given.
6867 if test "${with_mirrors+set}" = set; then :
6868 withval=$with_mirrors; MIRRORS=$withval
6869 else
6870 MIRRORS=internal
6871 fi
6872
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6874 $as_echo "$MIRRORS" >&6; }
6875
6876 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6877 then as_fn_error $? "--with-mirrors parameter invalid
6878 " "$LINENO" 5
6879 fi;
6880
6881 if test x$MIRRORS = xinternal; then
6882
6883 $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6884
6885 fi
6886
6887 ################################################################################
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6889 $as_echo_n "checking whether to include replicators... " >&6; }
6890
6891 # Check whether --with-replicators was given.
6892 if test "${with_replicators+set}" = set; then :
6893 withval=$with_replicators; REPLICATORS=$withval
6894 else
6895 REPLICATORS=none
6896 fi
6897
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6899 $as_echo "$REPLICATORS" >&6; }
6900
6901 case "$REPLICATORS" in
6902 none|shared) ;;
6903 internal)
6904 $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6905 ;;
6906 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
6907 esac
6908
6909 ################################################################################
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6911 $as_echo_n "checking whether to enable readline... " >&6; }
6912 # Check whether --enable-readline was given.
6913 if test "${enable_readline+set}" = set; then :
6914 enableval=$enable_readline; READLINE=$enableval
6915 else
6916 READLINE=maybe
6917 fi
6918
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6920 $as_echo "$READLINE" >&6; }
6921
6922 ################################################################################
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6924 $as_echo_n "checking whether to enable realtime support... " >&6; }
6925 # Check whether --enable-realtime was given.
6926 if test "${enable_realtime+set}" = set; then :
6927 enableval=$enable_realtime; REALTIME=$enableval
6928 fi
6929
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6931 $as_echo "$REALTIME" >&6; }
6932
6933 ################################################################################
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6935 $as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6936 # Check whether --enable-ocf was given.
6937 if test "${enable_ocf+set}" = set; then :
6938 enableval=$enable_ocf; OCF=$enableval
6939 else
6940 OCF=no
6941 fi
6942
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6944 $as_echo "$OCF" >&6; }
6945
6946 # Check whether --with-ocfdir was given.
6947 if test "${with_ocfdir+set}" = set; then :
6948 withval=$with_ocfdir; OCFDIR=$withval
6949 else
6950 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
6951 fi
6952
6953
6954 ################################################################################
6955 pkg_config_init() {
6956
6957
6958
6959
6960
6961
6962 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6963 if test -n "$ac_tool_prefix"; then
6964 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6965 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 case $PKG_CONFIG in
6972 [\\/]* | ?:[\\/]*)
6973 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6974 ;;
6975 *)
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6983 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6986 fi
6987 done
6988 done
6989 IFS=$as_save_IFS
6990
6991 ;;
6992 esac
6993 fi
6994 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6995 if test -n "$PKG_CONFIG"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6997 $as_echo "$PKG_CONFIG" >&6; }
6998 else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002
7003
7004 fi
7005 if test -z "$ac_cv_path_PKG_CONFIG"; then
7006 ac_pt_PKG_CONFIG=$PKG_CONFIG
7007 # Extract the first word of "pkg-config", so it can be a program name with args.
7008 set dummy pkg-config; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 case $ac_pt_PKG_CONFIG in
7015 [\\/]* | ?:[\\/]*)
7016 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7017 ;;
7018 *)
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7021 do
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7026 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 break 2
7029 fi
7030 done
7031 done
7032 IFS=$as_save_IFS
7033
7034 ;;
7035 esac
7036 fi
7037 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7038 if test -n "$ac_pt_PKG_CONFIG"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7040 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7041 else
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7044 fi
7045
7046 if test "x$ac_pt_PKG_CONFIG" = x; then
7047 PKG_CONFIG=""
7048 else
7049 case $cross_compiling:$ac_tool_warned in
7050 yes:)
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7053 ac_tool_warned=yes ;;
7054 esac
7055 PKG_CONFIG=$ac_pt_PKG_CONFIG
7056 fi
7057 else
7058 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7059 fi
7060
7061 fi
7062 if test -n "$PKG_CONFIG"; then
7063 _pkg_min_version=0.9.0
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7065 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7066 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7068 $as_echo "yes" >&6; }
7069 else
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 $as_echo "no" >&6; }
7072 PKG_CONFIG=""
7073 fi
7074 fi
7075
7076 pkg_failed=no
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7078 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
7079
7080 if test -n "$PKGCONFIGINIT_CFLAGS"; then
7081 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7082 elif test -n "$PKG_CONFIG"; then
7083 if test -n "$PKG_CONFIG" && \
7084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7085 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7086 ac_status=$?
7087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7088 test $ac_status = 0; }; then
7089 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
7090 else
7091 pkg_failed=yes
7092 fi
7093 else
7094 pkg_failed=untried
7095 fi
7096 if test -n "$PKGCONFIGINIT_LIBS"; then
7097 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7098 elif test -n "$PKG_CONFIG"; then
7099 if test -n "$PKG_CONFIG" && \
7100 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7101 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7102 ac_status=$?
7103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7104 test $ac_status = 0; }; then
7105 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
7106 else
7107 pkg_failed=yes
7108 fi
7109 else
7110 pkg_failed=untried
7111 fi
7112
7113
7114
7115 if test $pkg_failed = yes; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7118
7119 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7120 _pkg_short_errors_supported=yes
7121 else
7122 _pkg_short_errors_supported=no
7123 fi
7124 if test $_pkg_short_errors_supported = yes; then
7125 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7126 else
7127 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7128 fi
7129 # Put the nasty error message in config.log where it belongs
7130 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7131
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7133 $as_echo "pkg-config initialized" >&6; }
7134 elif test $pkg_failed = untried; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7138 $as_echo "pkg-config initialized" >&6; }
7139 else
7140 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7141 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7143 $as_echo "yes" >&6; }
7144
7145 fi
7146 PKGCONFIG_INIT=1
7147 }
7148
7149 ################################################################################
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7151 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
7152
7153 # Check whether --with-clvmd was given.
7154 if test "${with_clvmd+set}" = set; then :
7155 withval=$with_clvmd; CLVMD=$withval
7156 else
7157 CLVMD=none
7158 fi
7159
7160 if test x$CLVMD = xyes; then
7161 CLVMD=all
7162 fi
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7164 $as_echo "$CLVMD" >&6; }
7165
7166 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7167 CLUSTER=internal
7168 fi
7169
7170 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7171 pkg_config_init
7172 fi
7173
7174 CLVMD_CMANAGERS=""
7175 CLVMD_NEEDS_QDISKD=no
7176
7177 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7178 BUILDGULM=yes
7179 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
7180 CLVMD_NEEDS_QDISKD=yes
7181 fi
7182 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7183 BUILDCMAN=yes
7184 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7185 CLVMD_NEEDS_QDISKD=yes
7186 fi
7187 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7188 BUILDCOROSYNC=yes
7189 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7190 fi
7191 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7192 BUILDOPENAIS=yes
7193 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7194 fi
7195 if test x$CLVMD_NEEDS_QDISKD != xno; then
7196 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
7197 fi
7198
7199 if test x$BUILDGULM = xyes; then
7200 if test x$BUILDCOROSYNC = xyes || \
7201 test x$BUILDOPENAIS = xyes; then
7202 as_fn_error $? "requested clvmd configuration is not valid" "$LINENO" 5
7203 fi
7204 fi
7205
7206 soft_bailout() {
7207 NOTFOUND=1
7208 }
7209
7210 hard_bailout() {
7211 as_fn_error $? "bailing out" "$LINENO" 5
7212 }
7213
7214 if test x$CLVMD = xall; then
7215 bailout=soft_bailout
7216 BUILDGULM=yes
7217 BUILDCMAN=yes
7218 BUILDCOROSYNC=yes
7219 BUILDOPENAIS=yes
7220 else
7221 bailout=hard_bailout
7222 fi
7223
7224 check_lib_no_libs() {
7225 lib_no_libs_arg1=$1
7226 shift
7227 lib_no_libs_arg2=$1
7228 shift
7229 lib_no_libs_args=$@
7230 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7232 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7233 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 ac_check_lib_save_LIBS=$LIBS
7237 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240
7241 /* Override any GCC internal prototype to avoid an error.
7242 Use char because int might match the return type of a GCC
7243 builtin and then its argument prototype would still apply. */
7244 #ifdef __cplusplus
7245 extern "C"
7246 #endif
7247 char $lib_no_libs_arg2 ();
7248 int
7249 main ()
7250 {
7251 return $lib_no_libs_arg2 ();
7252 ;
7253 return 0;
7254 }
7255 _ACEOF
7256 if ac_fn_c_try_link "$LINENO"; then :
7257 eval "$as_ac_Lib=yes"
7258 else
7259 eval "$as_ac_Lib=no"
7260 fi
7261 rm -f core conftest.err conftest.$ac_objext \
7262 conftest$ac_exeext conftest.$ac_ext
7263 LIBS=$ac_check_lib_save_LIBS
7264 fi
7265 eval ac_res=\$$as_ac_Lib
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7267 $as_echo "$ac_res" >&6; }
7268 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7269 cat >>confdefs.h <<_ACEOF
7270 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7271 _ACEOF
7272
7273 LIBS="-l$lib_no_libs_arg1 $LIBS"
7274
7275 else
7276 $bailout
7277 fi
7278
7279 LIBS=$ac_check_lib_save_LIBS
7280 }
7281
7282 if test x$BUILDGULM = xyes; then
7283
7284 pkg_failed=no
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCS" >&5
7286 $as_echo_n "checking for CCS... " >&6; }
7287
7288 if test -n "$CCS_CFLAGS"; then
7289 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
7290 elif test -n "$PKG_CONFIG"; then
7291 if test -n "$PKG_CONFIG" && \
7292 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7293 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7294 ac_status=$?
7295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7296 test $ac_status = 0; }; then
7297 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
7298 else
7299 pkg_failed=yes
7300 fi
7301 else
7302 pkg_failed=untried
7303 fi
7304 if test -n "$CCS_LIBS"; then
7305 pkg_cv_CCS_LIBS="$CCS_LIBS"
7306 elif test -n "$PKG_CONFIG"; then
7307 if test -n "$PKG_CONFIG" && \
7308 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7309 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7310 ac_status=$?
7311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312 test $ac_status = 0; }; then
7313 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
7314 else
7315 pkg_failed=yes
7316 fi
7317 else
7318 pkg_failed=untried
7319 fi
7320
7321
7322
7323 if test $pkg_failed = yes; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }
7326
7327 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7328 _pkg_short_errors_supported=yes
7329 else
7330 _pkg_short_errors_supported=no
7331 fi
7332 if test $_pkg_short_errors_supported = yes; then
7333 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
7334 else
7335 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
7336 fi
7337 # Put the nasty error message in config.log where it belongs
7338 echo "$CCS_PKG_ERRORS" >&5
7339
7340 NOTFOUND=0
7341 for ac_header in ccs.h
7342 do :
7343 ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7344 if test "x$ac_cv_header_ccs_h" = x""yes; then :
7345 cat >>confdefs.h <<_ACEOF
7346 #define HAVE_CCS_H 1
7347 _ACEOF
7348
7349 else
7350 $bailout
7351 fi
7352
7353 done
7354
7355 check_lib_no_libs ccs ccs_connect
7356 if test $NOTFOUND = 0; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7358 $as_echo "no pkg for libccs, using -lccs" >&6; }
7359 CCS_LIBS="-lccs"
7360 HAVE_CCS=yes
7361 fi
7362 elif test $pkg_failed = untried; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7365 NOTFOUND=0
7366 for ac_header in ccs.h
7367 do :
7368 ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7369 if test "x$ac_cv_header_ccs_h" = x""yes; then :
7370 cat >>confdefs.h <<_ACEOF
7371 #define HAVE_CCS_H 1
7372 _ACEOF
7373
7374 else
7375 $bailout
7376 fi
7377
7378 done
7379
7380 check_lib_no_libs ccs ccs_connect
7381 if test $NOTFOUND = 0; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7383 $as_echo "no pkg for libccs, using -lccs" >&6; }
7384 CCS_LIBS="-lccs"
7385 HAVE_CCS=yes
7386 fi
7387 else
7388 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
7389 CCS_LIBS=$pkg_cv_CCS_LIBS
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7391 $as_echo "yes" >&6; }
7392 HAVE_CCS=yes
7393 fi
7394
7395 pkg_failed=no
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GULM" >&5
7397 $as_echo_n "checking for GULM... " >&6; }
7398
7399 if test -n "$GULM_CFLAGS"; then
7400 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
7401 elif test -n "$PKG_CONFIG"; then
7402 if test -n "$PKG_CONFIG" && \
7403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7404 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7405 ac_status=$?
7406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7407 test $ac_status = 0; }; then
7408 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
7409 else
7410 pkg_failed=yes
7411 fi
7412 else
7413 pkg_failed=untried
7414 fi
7415 if test -n "$GULM_LIBS"; then
7416 pkg_cv_GULM_LIBS="$GULM_LIBS"
7417 elif test -n "$PKG_CONFIG"; then
7418 if test -n "$PKG_CONFIG" && \
7419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7420 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7421 ac_status=$?
7422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7423 test $ac_status = 0; }; then
7424 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
7425 else
7426 pkg_failed=yes
7427 fi
7428 else
7429 pkg_failed=untried
7430 fi
7431
7432
7433
7434 if test $pkg_failed = yes; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7437
7438 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7439 _pkg_short_errors_supported=yes
7440 else
7441 _pkg_short_errors_supported=no
7442 fi
7443 if test $_pkg_short_errors_supported = yes; then
7444 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
7445 else
7446 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
7447 fi
7448 # Put the nasty error message in config.log where it belongs
7449 echo "$GULM_PKG_ERRORS" >&5
7450
7451 NOTFOUND=0
7452 for ac_header in libgulm.h
7453 do :
7454 ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7455 if test "x$ac_cv_header_libgulm_h" = x""yes; then :
7456 cat >>confdefs.h <<_ACEOF
7457 #define HAVE_LIBGULM_H 1
7458 _ACEOF
7459
7460 else
7461 $bailout
7462 fi
7463
7464 done
7465
7466 check_lib_no_libs gulm lg_core_login
7467 if test $NOTFOUND = 0; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7469 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
7470 GULM_LIBS="-lgulm"
7471 HAVE_GULM=yes
7472 fi
7473 elif test $pkg_failed = untried; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 NOTFOUND=0
7477 for ac_header in libgulm.h
7478 do :
7479 ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7480 if test "x$ac_cv_header_libgulm_h" = x""yes; then :
7481 cat >>confdefs.h <<_ACEOF
7482 #define HAVE_LIBGULM_H 1
7483 _ACEOF
7484
7485 else
7486 $bailout
7487 fi
7488
7489 done
7490
7491 check_lib_no_libs gulm lg_core_login
7492 if test $NOTFOUND = 0; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7494 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
7495 GULM_LIBS="-lgulm"
7496 HAVE_GULM=yes
7497 fi
7498 else
7499 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
7500 GULM_LIBS=$pkg_cv_GULM_LIBS
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7502 $as_echo "yes" >&6; }
7503 HAVE_GULM=yes
7504 fi
7505 fi
7506
7507 if test x$BUILDCMAN = xyes; then
7508
7509 pkg_failed=no
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7511 $as_echo_n "checking for CMAN... " >&6; }
7512
7513 if test -n "$CMAN_CFLAGS"; then
7514 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7515 elif test -n "$PKG_CONFIG"; then
7516 if test -n "$PKG_CONFIG" && \
7517 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7518 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7519 ac_status=$?
7520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7521 test $ac_status = 0; }; then
7522 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7523 else
7524 pkg_failed=yes
7525 fi
7526 else
7527 pkg_failed=untried
7528 fi
7529 if test -n "$CMAN_LIBS"; then
7530 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7531 elif test -n "$PKG_CONFIG"; then
7532 if test -n "$PKG_CONFIG" && \
7533 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7534 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7535 ac_status=$?
7536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7537 test $ac_status = 0; }; then
7538 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
7539 else
7540 pkg_failed=yes
7541 fi
7542 else
7543 pkg_failed=untried
7544 fi
7545
7546
7547
7548 if test $pkg_failed = yes; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7551
7552 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7553 _pkg_short_errors_supported=yes
7554 else
7555 _pkg_short_errors_supported=no
7556 fi
7557 if test $_pkg_short_errors_supported = yes; then
7558 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7559 else
7560 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7561 fi
7562 # Put the nasty error message in config.log where it belongs
7563 echo "$CMAN_PKG_ERRORS" >&5
7564
7565 NOTFOUND=0
7566 for ac_header in libcman.h
7567 do :
7568 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7569 if test "x$ac_cv_header_libcman_h" = x""yes; then :
7570 cat >>confdefs.h <<_ACEOF
7571 #define HAVE_LIBCMAN_H 1
7572 _ACEOF
7573
7574 else
7575 $bailout
7576 fi
7577
7578 done
7579
7580 check_lib_no_libs cman cman_init
7581 if test $NOTFOUND = 0; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7583 $as_echo "no pkg for libcman, using -lcman" >&6; }
7584 CMAN_LIBS="-lcman"
7585 HAVE_CMAN=yes
7586 fi
7587 elif test $pkg_failed = untried; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590 NOTFOUND=0
7591 for ac_header in libcman.h
7592 do :
7593 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7594 if test "x$ac_cv_header_libcman_h" = x""yes; then :
7595 cat >>confdefs.h <<_ACEOF
7596 #define HAVE_LIBCMAN_H 1
7597 _ACEOF
7598
7599 else
7600 $bailout
7601 fi
7602
7603 done
7604
7605 check_lib_no_libs cman cman_init
7606 if test $NOTFOUND = 0; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7608 $as_echo "no pkg for libcman, using -lcman" >&6; }
7609 CMAN_LIBS="-lcman"
7610 HAVE_CMAN=yes
7611 fi
7612 else
7613 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7614 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7616 $as_echo "yes" >&6; }
7617 HAVE_CMAN=yes
7618 fi
7619 CHECKCONFDB=yes
7620 CHECKDLM=yes
7621 fi
7622
7623 if test x$BUILDCOROSYNC = xyes || \
7624 test x$BUILDOPENAIS = xyes; then
7625
7626 pkg_failed=no
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7628 $as_echo_n "checking for COROSYNC... " >&6; }
7629
7630 if test -n "$COROSYNC_CFLAGS"; then
7631 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7632 elif test -n "$PKG_CONFIG"; then
7633 if test -n "$PKG_CONFIG" && \
7634 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7635 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7636 ac_status=$?
7637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7638 test $ac_status = 0; }; then
7639 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
7640 else
7641 pkg_failed=yes
7642 fi
7643 else
7644 pkg_failed=untried
7645 fi
7646 if test -n "$COROSYNC_LIBS"; then
7647 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7648 elif test -n "$PKG_CONFIG"; then
7649 if test -n "$PKG_CONFIG" && \
7650 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7651 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7652 ac_status=$?
7653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7654 test $ac_status = 0; }; then
7655 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
7656 else
7657 pkg_failed=yes
7658 fi
7659 else
7660 pkg_failed=untried
7661 fi
7662
7663
7664
7665 if test $pkg_failed = yes; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 $as_echo "no" >&6; }
7668
7669 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7670 _pkg_short_errors_supported=yes
7671 else
7672 _pkg_short_errors_supported=no
7673 fi
7674 if test $_pkg_short_errors_supported = yes; then
7675 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7676 else
7677 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7678 fi
7679 # Put the nasty error message in config.log where it belongs
7680 echo "$COROSYNC_PKG_ERRORS" >&5
7681
7682 $bailout
7683 elif test $pkg_failed = untried; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7686 $bailout
7687 else
7688 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7689 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7691 $as_echo "yes" >&6; }
7692 HAVE_COROSYNC=yes
7693 fi
7694 CHECKCONFDB=yes
7695 fi
7696
7697 if test x$BUILDCOROSYNC = xyes; then
7698
7699 pkg_failed=no
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7701 $as_echo_n "checking for QUORUM... " >&6; }
7702
7703 if test -n "$QUORUM_CFLAGS"; then
7704 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7705 elif test -n "$PKG_CONFIG"; then
7706 if test -n "$PKG_CONFIG" && \
7707 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7708 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7709 ac_status=$?
7710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7711 test $ac_status = 0; }; then
7712 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
7713 else
7714 pkg_failed=yes
7715 fi
7716 else
7717 pkg_failed=untried
7718 fi
7719 if test -n "$QUORUM_LIBS"; then
7720 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7721 elif test -n "$PKG_CONFIG"; then
7722 if test -n "$PKG_CONFIG" && \
7723 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7724 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7725 ac_status=$?
7726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7727 test $ac_status = 0; }; then
7728 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
7729 else
7730 pkg_failed=yes
7731 fi
7732 else
7733 pkg_failed=untried
7734 fi
7735
7736
7737
7738 if test $pkg_failed = yes; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7741
7742 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7743 _pkg_short_errors_supported=yes
7744 else
7745 _pkg_short_errors_supported=no
7746 fi
7747 if test $_pkg_short_errors_supported = yes; then
7748 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7749 else
7750 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7751 fi
7752 # Put the nasty error message in config.log where it belongs
7753 echo "$QUORUM_PKG_ERRORS" >&5
7754
7755 $bailout
7756 elif test $pkg_failed = untried; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7759 $bailout
7760 else
7761 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7762 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7764 $as_echo "yes" >&6; }
7765 HAVE_QUORUM=yes
7766 fi
7767 CHECKCPG=yes
7768 CHECKDLM=yes
7769 fi
7770
7771 if test x$BUILDOPENAIS = xyes; then
7772
7773 pkg_failed=no
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7775 $as_echo_n "checking for SALCK... " >&6; }
7776
7777 if test -n "$SALCK_CFLAGS"; then
7778 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7779 elif test -n "$PKG_CONFIG"; then
7780 if test -n "$PKG_CONFIG" && \
7781 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7782 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7783 ac_status=$?
7784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7785 test $ac_status = 0; }; then
7786 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7787 else
7788 pkg_failed=yes
7789 fi
7790 else
7791 pkg_failed=untried
7792 fi
7793 if test -n "$SALCK_LIBS"; then
7794 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7795 elif test -n "$PKG_CONFIG"; then
7796 if test -n "$PKG_CONFIG" && \
7797 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7798 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7799 ac_status=$?
7800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7801 test $ac_status = 0; }; then
7802 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
7803 else
7804 pkg_failed=yes
7805 fi
7806 else
7807 pkg_failed=untried
7808 fi
7809
7810
7811
7812 if test $pkg_failed = yes; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814 $as_echo "no" >&6; }
7815
7816 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7817 _pkg_short_errors_supported=yes
7818 else
7819 _pkg_short_errors_supported=no
7820 fi
7821 if test $_pkg_short_errors_supported = yes; then
7822 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7823 else
7824 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7825 fi
7826 # Put the nasty error message in config.log where it belongs
7827 echo "$SALCK_PKG_ERRORS" >&5
7828
7829 $bailout
7830 elif test $pkg_failed = untried; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7833 $bailout
7834 else
7835 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7836 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838 $as_echo "yes" >&6; }
7839 HAVE_SALCK=yes
7840 fi
7841 CHECKCPG=yes
7842 fi
7843
7844
7845
7846 if test x$CHECKCONFDB = xyes; then
7847
7848 pkg_failed=no
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7850 $as_echo_n "checking for CONFDB... " >&6; }
7851
7852 if test -n "$CONFDB_CFLAGS"; then
7853 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7854 elif test -n "$PKG_CONFIG"; then
7855 if test -n "$PKG_CONFIG" && \
7856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7857 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7858 ac_status=$?
7859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7860 test $ac_status = 0; }; then
7861 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
7862 else
7863 pkg_failed=yes
7864 fi
7865 else
7866 pkg_failed=untried
7867 fi
7868 if test -n "$CONFDB_LIBS"; then
7869 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7870 elif test -n "$PKG_CONFIG"; then
7871 if test -n "$PKG_CONFIG" && \
7872 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7873 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7874 ac_status=$?
7875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7876 test $ac_status = 0; }; then
7877 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7878 else
7879 pkg_failed=yes
7880 fi
7881 else
7882 pkg_failed=untried
7883 fi
7884
7885
7886
7887 if test $pkg_failed = yes; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7890
7891 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7892 _pkg_short_errors_supported=yes
7893 else
7894 _pkg_short_errors_supported=no
7895 fi
7896 if test $_pkg_short_errors_supported = yes; then
7897 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7898 else
7899 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7900 fi
7901 # Put the nasty error message in config.log where it belongs
7902 echo "$CONFDB_PKG_ERRORS" >&5
7903
7904 HAVE_CONFDB=no
7905 elif test $pkg_failed = untried; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7908 HAVE_CONFDB=no
7909 else
7910 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7911 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7913 $as_echo "yes" >&6; }
7914 HAVE_CONFDB=yes
7915 fi
7916
7917 for ac_header in corosync/confdb.h
7918 do :
7919 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7920 if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
7921 cat >>confdefs.h <<_ACEOF
7922 #define HAVE_COROSYNC_CONFDB_H 1
7923 _ACEOF
7924 HAVE_CONFDB_H=yes
7925 else
7926 HAVE_CONFDB_H=no
7927 fi
7928
7929 done
7930
7931
7932 if test x$HAVE_CONFDB != xyes && \
7933 test x$HAVE_CONFDB_H = xyes; then
7934 check_lib_no_libs confdb confdb_initialize
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7936 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
7937 CONFDB_LIBS="-lconfdb"
7938 HAVE_CONFDB=yes
7939 fi
7940
7941 if test x$BUILDCOROSYNC = xyes && \
7942 test x$HAVE_CONFDB != xyes &&
7943 test x$CLVMD != xall; then
7944 as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5
7945 fi
7946 fi
7947
7948 if test x$CHECKCPG = xyes; then
7949
7950 pkg_failed=no
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7952 $as_echo_n "checking for CPG... " >&6; }
7953
7954 if test -n "$CPG_CFLAGS"; then
7955 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7956 elif test -n "$PKG_CONFIG"; then
7957 if test -n "$PKG_CONFIG" && \
7958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7959 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7960 ac_status=$?
7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; }; then
7963 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
7964 else
7965 pkg_failed=yes
7966 fi
7967 else
7968 pkg_failed=untried
7969 fi
7970 if test -n "$CPG_LIBS"; then
7971 pkg_cv_CPG_LIBS="$CPG_LIBS"
7972 elif test -n "$PKG_CONFIG"; then
7973 if test -n "$PKG_CONFIG" && \
7974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7975 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7976 ac_status=$?
7977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7978 test $ac_status = 0; }; then
7979 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
7980 else
7981 pkg_failed=yes
7982 fi
7983 else
7984 pkg_failed=untried
7985 fi
7986
7987
7988
7989 if test $pkg_failed = yes; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7992
7993 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7994 _pkg_short_errors_supported=yes
7995 else
7996 _pkg_short_errors_supported=no
7997 fi
7998 if test $_pkg_short_errors_supported = yes; then
7999 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8000 else
8001 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8002 fi
8003 # Put the nasty error message in config.log where it belongs
8004 echo "$CPG_PKG_ERRORS" >&5
8005
8006 $bailout
8007 elif test $pkg_failed = untried; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }
8010 $bailout
8011 else
8012 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8013 CPG_LIBS=$pkg_cv_CPG_LIBS
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8015 $as_echo "yes" >&6; }
8016 HAVE_CPG=yes
8017 fi
8018 fi
8019
8020 if test x$CHECKDLM = xyes; then
8021
8022 pkg_failed=no
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
8024 $as_echo_n "checking for DLM... " >&6; }
8025
8026 if test -n "$DLM_CFLAGS"; then
8027 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
8028 elif test -n "$PKG_CONFIG"; then
8029 if test -n "$PKG_CONFIG" && \
8030 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8031 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8032 ac_status=$?
8033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8034 test $ac_status = 0; }; then
8035 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
8036 else
8037 pkg_failed=yes
8038 fi
8039 else
8040 pkg_failed=untried
8041 fi
8042 if test -n "$DLM_LIBS"; then
8043 pkg_cv_DLM_LIBS="$DLM_LIBS"
8044 elif test -n "$PKG_CONFIG"; then
8045 if test -n "$PKG_CONFIG" && \
8046 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8047 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8048 ac_status=$?
8049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8050 test $ac_status = 0; }; then
8051 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8052 else
8053 pkg_failed=yes
8054 fi
8055 else
8056 pkg_failed=untried
8057 fi
8058
8059
8060
8061 if test $pkg_failed = yes; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 $as_echo "no" >&6; }
8064
8065 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8066 _pkg_short_errors_supported=yes
8067 else
8068 _pkg_short_errors_supported=no
8069 fi
8070 if test $_pkg_short_errors_supported = yes; then
8071 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8072 else
8073 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8074 fi
8075 # Put the nasty error message in config.log where it belongs
8076 echo "$DLM_PKG_ERRORS" >&5
8077
8078 NOTFOUND=0
8079 for ac_header in libdlm.h
8080 do :
8081 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8082 if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8083 cat >>confdefs.h <<_ACEOF
8084 #define HAVE_LIBDLM_H 1
8085 _ACEOF
8086
8087 else
8088 $bailout
8089 fi
8090
8091 done
8092
8093 check_lib_no_libs dlm dlm_lock -lpthread
8094 if test $NOTFOUND = 0; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8096 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8097 DLM_LIBS="-ldlm -lpthread"
8098 HAVE_DLM=yes
8099 fi
8100 elif test $pkg_failed = untried; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 $as_echo "no" >&6; }
8103 NOTFOUND=0
8104 for ac_header in libdlm.h
8105 do :
8106 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8107 if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8108 cat >>confdefs.h <<_ACEOF
8109 #define HAVE_LIBDLM_H 1
8110 _ACEOF
8111
8112 else
8113 $bailout
8114 fi
8115
8116 done
8117
8118 check_lib_no_libs dlm dlm_lock -lpthread
8119 if test $NOTFOUND = 0; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8121 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8122 DLM_LIBS="-ldlm -lpthread"
8123 HAVE_DLM=yes
8124 fi
8125 else
8126 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8127 DLM_LIBS=$pkg_cv_DLM_LIBS
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8129 $as_echo "yes" >&6; }
8130 HAVE_DLM=yes
8131 fi
8132 fi
8133
8134 if test x$CLVMD = xall; then
8135 CLVMD=none
8136 CLVMD_CMANAGERS=""
8137 CLVMD_NEEDS_QDISKD=no
8138 if test x$HAVE_CCS = xyes && \
8139 test x$HAVE_GULM = xyes; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd gulm cluster manager" >&5
8141 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
8142 CLVMD="$CLVMD,gulm"
8143 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
8144 CLVMD_NEEDS_QDISKD=yes
8145 fi
8146 if test x$HAVE_CMAN = xyes && \
8147 test x$HAVE_DLM = xyes; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8149 $as_echo "Enabling clvmd cman cluster manager" >&6; }
8150 CLVMD="$CLVMD,cman"
8151 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8152 CLVMD_NEEDS_QDISKD=yes
8153 fi
8154 if test x$HAVE_COROSYNC = xyes && \
8155 test x$HAVE_QUORUM = xyes && \
8156 test x$HAVE_CPG = xyes && \
8157 test x$HAVE_DLM = xyes && \
8158 test x$HAVE_CONFDB = xyes; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8160 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
8161 CLVMD="$CLVMD,corosync"
8162 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
8163 fi
8164 if test x$HAVE_COROSYNC = xyes && \
8165 test x$HAVE_CPG = xyes && \
8166 test x$HAVE_SALCK = xyes; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8168 $as_echo "Enabling clvmd openais cluster manager" >&6; }
8169 CLVMD="$CLVMD,openais"
8170 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8171 fi
8172 if test x$CLVMD_NEEDS_QDISKD != xno; then
8173 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8174 fi
8175 if test x$CLVMD = xnone; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8177 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8178 fi
8179 fi
8180
8181 ################################################################################
8182 if test "x$CLVMD" != xnone; then
8183
8184 # Check whether --with-clvmd-pidfile was given.
8185 if test "${with_clvmd_pidfile+set}" = set; then :
8186 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
8187 else
8188 CLVMD_PIDFILE="/var/run/clvmd.pid"
8189 fi
8190
8191
8192 cat >>confdefs.h <<_ACEOF
8193 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
8194 _ACEOF
8195
8196 fi
8197
8198 ################################################################################
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8200 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8201 # Check whether --enable-cmirrord was given.
8202 if test "${enable_cmirrord+set}" = set; then :
8203 enableval=$enable_cmirrord; CMIRRORD=$enableval
8204 else
8205 CMIRRORD=no
8206 fi
8207
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8209 $as_echo "$CMIRRORD" >&6; }
8210
8211 BUILD_CMIRRORD=$CMIRRORD
8212
8213 ################################################################################
8214 if test "x$BUILD_CMIRRORD" = xyes; then
8215
8216 # Check whether --with-cmirrord-pidfile was given.
8217 if test "${with_cmirrord_pidfile+set}" = set; then :
8218 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
8219 else
8220 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
8221 fi
8222
8223
8224 cat >>confdefs.h <<_ACEOF
8225 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
8226 _ACEOF
8227
8228 fi
8229
8230 ################################################################################
8231 if [ "x$BUILD_CMIRRORD" = xyes ]; then
8232 if test x$PKGCONFIG_INIT != x1; then
8233 pkg_config_init
8234 fi
8235
8236 pkg_failed=no
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8238 $as_echo_n "checking for SACKPT... " >&6; }
8239
8240 if test -n "$SACKPT_CFLAGS"; then
8241 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8242 elif test -n "$PKG_CONFIG"; then
8243 if test -n "$PKG_CONFIG" && \
8244 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8245 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8246 ac_status=$?
8247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8248 test $ac_status = 0; }; then
8249 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
8250 else
8251 pkg_failed=yes
8252 fi
8253 else
8254 pkg_failed=untried
8255 fi
8256 if test -n "$SACKPT_LIBS"; then
8257 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8258 elif test -n "$PKG_CONFIG"; then
8259 if test -n "$PKG_CONFIG" && \
8260 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8261 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8262 ac_status=$?
8263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8264 test $ac_status = 0; }; then
8265 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
8266 else
8267 pkg_failed=yes
8268 fi
8269 else
8270 pkg_failed=untried
8271 fi
8272
8273
8274
8275 if test $pkg_failed = yes; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8278
8279 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8280 _pkg_short_errors_supported=yes
8281 else
8282 _pkg_short_errors_supported=no
8283 fi
8284 if test $_pkg_short_errors_supported = yes; then
8285 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8286 else
8287 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8288 fi
8289 # Put the nasty error message in config.log where it belongs
8290 echo "$SACKPT_PKG_ERRORS" >&5
8291
8292 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8293
8294 $SACKPT_PKG_ERRORS
8295
8296 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8297 installed software in a non-standard prefix.
8298
8299 Alternatively, you may set the environment variables SACKPT_CFLAGS
8300 and SACKPT_LIBS to avoid the need to call pkg-config.
8301 See the pkg-config man page for more details." "$LINENO" 5
8302
8303 elif test $pkg_failed = untried; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8308 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8309 is in your PATH or set the PKG_CONFIG environment variable to the full
8310 path to pkg-config.
8311
8312 Alternatively, you may set the environment variables SACKPT_CFLAGS
8313 and SACKPT_LIBS to avoid the need to call pkg-config.
8314 See the pkg-config man page for more details.
8315
8316 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8317 See \`config.log' for more details" "$LINENO" 5; }
8318
8319 else
8320 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8321 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8323 $as_echo "yes" >&6; }
8324
8325 fi
8326 if test x$HAVE_CPG != xyes; then
8327
8328 pkg_failed=no
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8330 $as_echo_n "checking for CPG... " >&6; }
8331
8332 if test -n "$CPG_CFLAGS"; then
8333 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8334 elif test -n "$PKG_CONFIG"; then
8335 if test -n "$PKG_CONFIG" && \
8336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8337 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8338 ac_status=$?
8339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8340 test $ac_status = 0; }; then
8341 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8342 else
8343 pkg_failed=yes
8344 fi
8345 else
8346 pkg_failed=untried
8347 fi
8348 if test -n "$CPG_LIBS"; then
8349 pkg_cv_CPG_LIBS="$CPG_LIBS"
8350 elif test -n "$PKG_CONFIG"; then
8351 if test -n "$PKG_CONFIG" && \
8352 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8353 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8354 ac_status=$?
8355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8356 test $ac_status = 0; }; then
8357 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8358 else
8359 pkg_failed=yes
8360 fi
8361 else
8362 pkg_failed=untried
8363 fi
8364
8365
8366
8367 if test $pkg_failed = yes; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8370
8371 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8372 _pkg_short_errors_supported=yes
8373 else
8374 _pkg_short_errors_supported=no
8375 fi
8376 if test $_pkg_short_errors_supported = yes; then
8377 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8378 else
8379 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8380 fi
8381 # Put the nasty error message in config.log where it belongs
8382 echo "$CPG_PKG_ERRORS" >&5
8383
8384 as_fn_error $? "Package requirements (libcpg) were not met:
8385
8386 $CPG_PKG_ERRORS
8387
8388 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8389 installed software in a non-standard prefix.
8390
8391 Alternatively, you may set the environment variables CPG_CFLAGS
8392 and CPG_LIBS to avoid the need to call pkg-config.
8393 See the pkg-config man page for more details." "$LINENO" 5
8394
8395 elif test $pkg_failed = untried; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8400 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8401 is in your PATH or set the PKG_CONFIG environment variable to the full
8402 path to pkg-config.
8403
8404 Alternatively, you may set the environment variables CPG_CFLAGS
8405 and CPG_LIBS to avoid the need to call pkg-config.
8406 See the pkg-config man page for more details.
8407
8408 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8409 See \`config.log' for more details" "$LINENO" 5; }
8410
8411 else
8412 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8413 CPG_LIBS=$pkg_cv_CPG_LIBS
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8415 $as_echo "yes" >&6; }
8416
8417 fi
8418 fi
8419 fi
8420
8421 ################################################################################
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8423 $as_echo_n "checking whether to enable debugging... " >&6; }
8424 # Check whether --enable-debug was given.
8425 if test "${enable_debug+set}" = set; then :
8426 enableval=$enable_debug; DEBUG=$enableval
8427 else
8428 DEBUG=no
8429 fi
8430
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8432 $as_echo "$DEBUG" >&6; }
8433
8434 if test x$DEBUG = xyes; then
8435 COPTIMISE_FLAG=
8436 else
8437 CSCOPE_CMD=
8438 fi
8439
8440 ################################################################################
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8442 $as_echo_n "checking for C optimisation flag... " >&6; }
8443
8444 # Check whether --with-optimisation was given.
8445 if test "${with_optimisation+set}" = set; then :
8446 withval=$with_optimisation; COPTIMISE_FLAG=$withval
8447 fi
8448
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8450 $as_echo "$COPTIMISE_FLAG" >&6; }
8451
8452 ################################################################################
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8454 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8455 # Check whether --enable-profiling was given.
8456 if test "${enable_profiling+set}" = set; then :
8457 enableval=$enable_profiling; PROFILING=$enableval
8458 else
8459 PROFILING=no
8460 fi
8461
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8463 $as_echo "$PROFILING" >&6; }
8464
8465 if test "x$PROFILING" = xyes; then
8466 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8467 # Extract the first word of "lcov", so it can be a program name with args.
8468 set dummy lcov; ac_word=$2
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8470 $as_echo_n "checking for $ac_word... " >&6; }
8471 if test "${ac_cv_path_LCOV+set}" = set; then :
8472 $as_echo_n "(cached) " >&6
8473 else
8474 case $LCOV in
8475 [\\/]* | ?:[\\/]*)
8476 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8477 ;;
8478 *)
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8481 do
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 break 2
8489 fi
8490 done
8491 done
8492 IFS=$as_save_IFS
8493
8494 ;;
8495 esac
8496 fi
8497 LCOV=$ac_cv_path_LCOV
8498 if test -n "$LCOV"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8500 $as_echo "$LCOV" >&6; }
8501 else
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8504 fi
8505
8506
8507 # Extract the first word of "genhtml", so it can be a program name with args.
8508 set dummy genhtml; ac_word=$2
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if test "${ac_cv_path_GENHTML+set}" = set; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 case $GENHTML in
8515 [\\/]* | ?:[\\/]*)
8516 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8517 ;;
8518 *)
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 for as_dir in $PATH
8521 do
8522 IFS=$as_save_IFS
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8526 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528 break 2
8529 fi
8530 done
8531 done
8532 IFS=$as_save_IFS
8533
8534 ;;
8535 esac
8536 fi
8537 GENHTML=$ac_cv_path_GENHTML
8538 if test -n "$GENHTML"; then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8540 $as_echo "$GENHTML" >&6; }
8541 else
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543 $as_echo "no" >&6; }
8544 fi
8545
8546
8547 if test -z "$LCOV" -o -z "$GENHTML"; then
8548 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8549 fi
8550 # Extract the first word of "genpng", so it can be a program name with args.
8551 set dummy genpng; ac_word=$2
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553 $as_echo_n "checking for $ac_word... " >&6; }
8554 if test "${ac_cv_path_GENPNG+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 case $GENPNG in
8558 [\\/]* | ?:[\\/]*)
8559 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8560 ;;
8561 *)
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 for as_dir in $PATH
8564 do
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8569 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 break 2
8572 fi
8573 done
8574 done
8575 IFS=$as_save_IFS
8576
8577 ;;
8578 esac
8579 fi
8580 GENPNG=$ac_cv_path_GENPNG
8581 if test -n "$GENPNG"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8583 $as_echo "$GENPNG" >&6; }
8584 else
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8587 fi
8588
8589
8590 if test -n "$GENPNG"; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8592 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8593 if $GENPNG --help > /dev/null 2>&1 ; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8595 $as_echo "ok" >&6; }
8596 GENHTML="$GENHTML --frames"
8597 else
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8599 $as_echo "not supported" >&6; }
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8601 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8602 GENPNG=
8603 fi
8604 fi
8605 fi
8606
8607 ################################################################################
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8609 $as_echo_n "checking whether to enable unit testing... " >&6; }
8610 # Check whether --enable-testing was given.
8611 if test "${enable_testing+set}" = set; then :
8612 enableval=$enable_testing; TESTING=$enableval
8613 else
8614 TESTING=no
8615 fi
8616
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8618 $as_echo "$TESTING" >&6; }
8619
8620 if test "$TESTING" = yes; then
8621 # Extract the first word of "ruby1.9", so it can be a program name with args.
8622 set dummy ruby1.9; ac_word=$2
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624 $as_echo_n "checking for $ac_word... " >&6; }
8625 if test "${ac_cv_path_RUBY19+set}" = set; then :
8626 $as_echo_n "(cached) " >&6
8627 else
8628 case $RUBY19 in
8629 [\\/]* | ?:[\\/]*)
8630 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
8631 ;;
8632 *)
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8635 do
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8640 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8643 fi
8644 done
8645 done
8646 IFS=$as_save_IFS
8647
8648 ;;
8649 esac
8650 fi
8651 RUBY19=$ac_cv_path_RUBY19
8652 if test -n "$RUBY19"; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8654 $as_echo "$RUBY19" >&6; }
8655 else
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 $as_echo "no" >&6; }
8658 fi
8659
8660
8661 # Extract the first word of "valgrind", so it can be a program name with args.
8662 set dummy valgrind; ac_word=$2
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664 $as_echo_n "checking for $ac_word... " >&6; }
8665 if test "${ac_cv_path_VALGRIND+set}" = set; then :
8666 $as_echo_n "(cached) " >&6
8667 else
8668 case $VALGRIND in
8669 [\\/]* | ?:[\\/]*)
8670 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
8671 ;;
8672 *)
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674 for as_dir in $PATH
8675 do
8676 IFS=$as_save_IFS
8677 test -z "$as_dir" && as_dir=.
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8680 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682 break 2
8683 fi
8684 done
8685 done
8686 IFS=$as_save_IFS
8687
8688 ;;
8689 esac
8690 fi
8691 VALGRIND=$ac_cv_path_VALGRIND
8692 if test -n "$VALGRIND"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8694 $as_echo "$VALGRIND" >&6; }
8695 else
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 $as_echo "no" >&6; }
8698 fi
8699
8700
8701 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8702 as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5
8703 fi
8704 fi
8705
8706 ################################################################################
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8708 $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8709 # Check whether --enable-valgrind_pool was given.
8710 if test "${enable_valgrind_pool+set}" = set; then :
8711 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8712 else
8713 VALGRIND_POOL=no
8714 fi
8715
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8717 $as_echo "$VALGRIND_POOL" >&6; }
8718
8719 if test "$VALGRIND_POOL" = yes; then
8720 for ac_header in valgrind/memcheck.h
8721 do :
8722 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8723 if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8724 cat >>confdefs.h <<_ACEOF
8725 #define HAVE_VALGRIND_MEMCHECK_H 1
8726 _ACEOF
8727
8728 else
8729 as_fn_error $? "bailing out" "$LINENO" 5
8730 fi
8731
8732 done
8733
8734
8735 $as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8736
8737 fi
8738
8739 ################################################################################
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8741 $as_echo_n "checking whether to use device-mapper... " >&6; }
8742 # Check whether --enable-devmapper was given.
8743 if test "${enable_devmapper+set}" = set; then :
8744 enableval=$enable_devmapper; DEVMAPPER=$enableval
8745 fi
8746
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8748 $as_echo "$DEVMAPPER" >&6; }
8749
8750 if test x$DEVMAPPER = xyes; then
8751
8752 $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8753
8754 fi
8755
8756 ################################################################################
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8758 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8759 # Check whether --enable-udev_sync was given.
8760 if test "${enable_udev_sync+set}" = set; then :
8761 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
8762 else
8763 UDEV_SYNC=no
8764 fi
8765
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8767 $as_echo "$UDEV_SYNC" >&6; }
8768
8769 if test x$UDEV_SYNC = xyes; then
8770 if test x$PKGCONFIG_INIT != x1; then
8771 pkg_config_init
8772 fi
8773
8774 pkg_failed=no
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8776 $as_echo_n "checking for UDEV... " >&6; }
8777
8778 if test -n "$UDEV_CFLAGS"; then
8779 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8780 elif test -n "$PKG_CONFIG"; then
8781 if test -n "$PKG_CONFIG" && \
8782 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8783 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8784 ac_status=$?
8785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8786 test $ac_status = 0; }; then
8787 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
8788 else
8789 pkg_failed=yes
8790 fi
8791 else
8792 pkg_failed=untried
8793 fi
8794 if test -n "$UDEV_LIBS"; then
8795 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8796 elif test -n "$PKG_CONFIG"; then
8797 if test -n "$PKG_CONFIG" && \
8798 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8799 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8800 ac_status=$?
8801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8802 test $ac_status = 0; }; then
8803 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
8804 else
8805 pkg_failed=yes
8806 fi
8807 else
8808 pkg_failed=untried
8809 fi
8810
8811
8812
8813 if test $pkg_failed = yes; then
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8816
8817 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8818 _pkg_short_errors_supported=yes
8819 else
8820 _pkg_short_errors_supported=no
8821 fi
8822 if test $_pkg_short_errors_supported = yes; then
8823 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8824 else
8825 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8826 fi
8827 # Put the nasty error message in config.log where it belongs
8828 echo "$UDEV_PKG_ERRORS" >&5
8829
8830 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8831
8832 $UDEV_PKG_ERRORS
8833
8834 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8835 installed software in a non-standard prefix.
8836
8837 Alternatively, you may set the environment variables UDEV_CFLAGS
8838 and UDEV_LIBS to avoid the need to call pkg-config.
8839 See the pkg-config man page for more details." "$LINENO" 5
8840
8841 elif test $pkg_failed = untried; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8843 $as_echo "no" >&6; }
8844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8846 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8847 is in your PATH or set the PKG_CONFIG environment variable to the full
8848 path to pkg-config.
8849
8850 Alternatively, you may set the environment variables UDEV_CFLAGS
8851 and UDEV_LIBS to avoid the need to call pkg-config.
8852 See the pkg-config man page for more details.
8853
8854 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8855 See \`config.log' for more details" "$LINENO" 5; }
8856
8857 else
8858 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8859 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8861 $as_echo "yes" >&6; }
8862 UDEV_PC="libudev"
8863 fi
8864
8865 $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
8866
8867 fi
8868
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8870 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8871 # Check whether --enable-udev_rules was given.
8872 if test "${enable_udev_rules+set}" = set; then :
8873 enableval=$enable_udev_rules; UDEV_RULES=$enableval
8874 else
8875 UDEV_RULES=$UDEV_SYNC
8876 fi
8877
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8879 $as_echo "$UDEV_RULES" >&6; }
8880
8881 ################################################################################
8882 # Check whether --enable-compat was given.
8883 if test "${enable_compat+set}" = set; then :
8884 enableval=$enable_compat; DM_COMPAT=$enableval
8885 else
8886 DM_COMPAT=no
8887 fi
8888
8889
8890 ################################################################################
8891 # Check whether --enable-units-compat was given.
8892 if test "${enable_units_compat+set}" = set; then :
8893 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
8894 else
8895 UNITS_COMPAT=no
8896 fi
8897
8898
8899 if test x$UNITS_COMPAT = xyes; then
8900
8901 $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8902
8903 fi
8904
8905 ################################################################################
8906 # Check whether --enable-ioctl was given.
8907 if test "${enable_ioctl+set}" = set; then :
8908 enableval=$enable_ioctl; DM_IOCTLS=$enableval
8909 fi
8910
8911
8912 ################################################################################
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8914 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8915 # Check whether --enable-o_direct was given.
8916 if test "${enable_o_direct+set}" = set; then :
8917 enableval=$enable_o_direct; ODIRECT=$enableval
8918 fi
8919
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8921 $as_echo "$ODIRECT" >&6; }
8922
8923 if test x$ODIRECT = xyes; then
8924
8925 $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
8926
8927 fi
8928
8929 ################################################################################
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8931 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8932 # Check whether --enable-applib was given.
8933 if test "${enable_applib+set}" = set; then :
8934 enableval=$enable_applib; APPLIB=$enableval
8935 else
8936 APPLIB=no
8937 fi
8938
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8940 $as_echo "$APPLIB" >&6; }
8941
8942 test x$APPLIB = xyes \
8943 && LVM2APP_LIB=-llvm2app \
8944 || LVM2APP_LIB=
8945
8946 ################################################################################
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8948 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8949 # Check whether --enable-cmdlib was given.
8950 if test "${enable_cmdlib+set}" = set; then :
8951 enableval=$enable_cmdlib; CMDLIB=$enableval
8952 else
8953 CMDLIB=no
8954 fi
8955
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8957 $as_echo "$CMDLIB" >&6; }
8958
8959 test x$CMDLIB = xyes \
8960 && LVM2CMD_LIB=-llvm2cmd \
8961 || LVM2CMD_LIB=
8962
8963 ################################################################################
8964 # Check whether --enable-pkgconfig was given.
8965 if test "${enable_pkgconfig+set}" = set; then :
8966 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
8967 else
8968 PKGCONFIG=no
8969 fi
8970
8971
8972 ################################################################################
8973 # Check whether --enable-write_install was given.
8974 if test "${enable_write_install+set}" = set; then :
8975 enableval=$enable_write_install; WRITE_INSTALL=$enableval
8976 else
8977 WRITE_INSTALL=no
8978 fi
8979
8980
8981 ################################################################################
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8983 $as_echo_n "checking whether to install fsadm... " >&6; }
8984 # Check whether --enable-fsadm was given.
8985 if test "${enable_fsadm+set}" = set; then :
8986 enableval=$enable_fsadm; FSADM=$enableval
8987 fi
8988
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8990 $as_echo "$FSADM" >&6; }
8991
8992 ################################################################################
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8994 $as_echo_n "checking whether to use dmeventd... " >&6; }
8995 # Check whether --enable-dmeventd was given.
8996 if test "${enable_dmeventd+set}" = set; then :
8997 enableval=$enable_dmeventd; DMEVENTD=$enableval
8998 fi
8999
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
9001 $as_echo "$DMEVENTD" >&6; }
9002
9003 BUILD_DMEVENTD=$DMEVENTD
9004
9005 if test x$DMEVENTD = xyes; then
9006 if test x$MIRRORS != xinternal; then
9007 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
9008 " "$LINENO" 5
9009 fi
9010 if test x$CMDLIB = xno; then
9011 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
9012 " "$LINENO" 5
9013 fi
9014 fi
9015
9016 if test x$DMEVENTD = xyes; then
9017
9018 $as_echo "#define DMEVENTD 1" >>confdefs.h
9019
9020 fi
9021
9022 ################################################################################
9023
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
9025 $as_echo_n "checking for getline in -lc... " >&6; }
9026 if test "${ac_cv_lib_c_getline+set}" = set; then :
9027 $as_echo_n "(cached) " >&6
9028 else
9029 ac_check_lib_save_LIBS=$LIBS
9030 LIBS="-lc $LIBS"
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9033
9034 /* Override any GCC internal prototype to avoid an error.
9035 Use char because int might match the return type of a GCC
9036 builtin and then its argument prototype would still apply. */
9037 #ifdef __cplusplus
9038 extern "C"
9039 #endif
9040 char getline ();
9041 int
9042 main ()
9043 {
9044 return getline ();
9045 ;
9046 return 0;
9047 }
9048 _ACEOF
9049 if ac_fn_c_try_link "$LINENO"; then :
9050 ac_cv_lib_c_getline=yes
9051 else
9052 ac_cv_lib_c_getline=no
9053 fi
9054 rm -f core conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9056 LIBS=$ac_check_lib_save_LIBS
9057 fi
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9059 $as_echo "$ac_cv_lib_c_getline" >&6; }
9060 if test "x$ac_cv_lib_c_getline" = x""yes; then :
9061
9062 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
9063
9064 fi
9065
9066
9067 ################################################################################
9068
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9070 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9071 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 ac_check_lib_save_LIBS=$LIBS
9075 LIBS="-lc $LIBS"
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078
9079 /* Override any GCC internal prototype to avoid an error.
9080 Use char because int might match the return type of a GCC
9081 builtin and then its argument prototype would still apply. */
9082 #ifdef __cplusplus
9083 extern "C"
9084 #endif
9085 char canonicalize_file_name ();
9086 int
9087 main ()
9088 {
9089 return canonicalize_file_name ();
9090 ;
9091 return 0;
9092 }
9093 _ACEOF
9094 if ac_fn_c_try_link "$LINENO"; then :
9095 ac_cv_lib_c_canonicalize_file_name=yes
9096 else
9097 ac_cv_lib_c_canonicalize_file_name=no
9098 fi
9099 rm -f core conftest.err conftest.$ac_objext \
9100 conftest$ac_exeext conftest.$ac_ext
9101 LIBS=$ac_check_lib_save_LIBS
9102 fi
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9104 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9105 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9106
9107 $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
9108
9109 fi
9110
9111
9112 ################################################################################
9113 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9114 then exec_prefix="";
9115 fi;
9116
9117 ################################################################################
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9119 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9120 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 ac_check_lib_save_LIBS=$LIBS
9124 LIBS="-ldl $LIBS"
9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9127
9128 /* Override any GCC internal prototype to avoid an error.
9129 Use char because int might match the return type of a GCC
9130 builtin and then its argument prototype would still apply. */
9131 #ifdef __cplusplus
9132 extern "C"
9133 #endif
9134 char dlopen ();
9135 int
9136 main ()
9137 {
9138 return dlopen ();
9139 ;
9140 return 0;
9141 }
9142 _ACEOF
9143 if ac_fn_c_try_link "$LINENO"; then :
9144 ac_cv_lib_dl_dlopen=yes
9145 else
9146 ac_cv_lib_dl_dlopen=no
9147 fi
9148 rm -f core conftest.err conftest.$ac_objext \
9149 conftest$ac_exeext conftest.$ac_ext
9150 LIBS=$ac_check_lib_save_LIBS
9151 fi
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9153 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9154 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9155
9156
9157 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9158
9159 DL_LIBS="-ldl"
9160 HAVE_LIBDL=yes
9161 else
9162
9163 DL_LIBS=
9164 HAVE_LIBDL=no
9165 fi
9166
9167
9168 ################################################################################
9169 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9170 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9171 \) -a "x$STATIC_LINK" = xyes ];
9172 then as_fn_error $? "Features cannot be 'shared' when building statically
9173 " "$LINENO" 5
9174 fi
9175
9176 ################################################################################
9177 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9179 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9180 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 ac_check_lib_save_LIBS=$LIBS
9184 LIBS="-lpthread $LIBS"
9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9187
9188 /* Override any GCC internal prototype to avoid an error.
9189 Use char because int might match the return type of a GCC
9190 builtin and then its argument prototype would still apply. */
9191 #ifdef __cplusplus
9192 extern "C"
9193 #endif
9194 char pthread_mutex_lock ();
9195 int
9196 main ()
9197 {
9198 return pthread_mutex_lock ();
9199 ;
9200 return 0;
9201 }
9202 _ACEOF
9203 if ac_fn_c_try_link "$LINENO"; then :
9204 ac_cv_lib_pthread_pthread_mutex_lock=yes
9205 else
9206 ac_cv_lib_pthread_pthread_mutex_lock=no
9207 fi
9208 rm -f core conftest.err conftest.$ac_objext \
9209 conftest$ac_exeext conftest.$ac_ext
9210 LIBS=$ac_check_lib_save_LIBS
9211 fi
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9213 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9214 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9215 PTHREAD_LIBS="-lpthread"
9216 else
9217 hard_bailout
9218 fi
9219
9220 fi
9221
9222 ################################################################################
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9224 $as_echo_n "checking whether to enable selinux support... " >&6; }
9225 # Check whether --enable-selinux was given.
9226 if test "${enable_selinux+set}" = set; then :
9227 enableval=$enable_selinux; SELINUX=$enableval
9228 fi
9229
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9231 $as_echo "$SELINUX" >&6; }
9232
9233 ################################################################################
9234 if test x$SELINUX = xyes; then
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9236 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9237 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9238 $as_echo_n "(cached) " >&6
9239 else
9240 ac_check_lib_save_LIBS=$LIBS
9241 LIBS="-lsepol $LIBS"
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9244
9245 /* Override any GCC internal prototype to avoid an error.
9246 Use char because int might match the return type of a GCC
9247 builtin and then its argument prototype would still apply. */
9248 #ifdef __cplusplus
9249 extern "C"
9250 #endif
9251 char sepol_check_context ();
9252 int
9253 main ()
9254 {
9255 return sepol_check_context ();
9256 ;
9257 return 0;
9258 }
9259 _ACEOF
9260 if ac_fn_c_try_link "$LINENO"; then :
9261 ac_cv_lib_sepol_sepol_check_context=yes
9262 else
9263 ac_cv_lib_sepol_sepol_check_context=no
9264 fi
9265 rm -f core conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
9267 LIBS=$ac_check_lib_save_LIBS
9268 fi
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9270 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9271 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
9272
9273
9274 $as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9275
9276 SELINUX_LIBS="-lsepol"
9277 fi
9278
9279
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9281 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9282 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
9283 $as_echo_n "(cached) " >&6
9284 else
9285 ac_check_lib_save_LIBS=$LIBS
9286 LIBS="-lselinux $LIBS"
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9289
9290 /* Override any GCC internal prototype to avoid an error.
9291 Use char because int might match the return type of a GCC
9292 builtin and then its argument prototype would still apply. */
9293 #ifdef __cplusplus
9294 extern "C"
9295 #endif
9296 char is_selinux_enabled ();
9297 int
9298 main ()
9299 {
9300 return is_selinux_enabled ();
9301 ;
9302 return 0;
9303 }
9304 _ACEOF
9305 if ac_fn_c_try_link "$LINENO"; then :
9306 ac_cv_lib_selinux_is_selinux_enabled=yes
9307 else
9308 ac_cv_lib_selinux_is_selinux_enabled=no
9309 fi
9310 rm -f core conftest.err conftest.$ac_objext \
9311 conftest$ac_exeext conftest.$ac_ext
9312 LIBS=$ac_check_lib_save_LIBS
9313 fi
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9315 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9316 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
9317
9318 for ac_header in selinux/selinux.h
9319 do :
9320 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9321 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9322 cat >>confdefs.h <<_ACEOF
9323 #define HAVE_SELINUX_SELINUX_H 1
9324 _ACEOF
9325
9326 else
9327 hard_bailout
9328 fi
9329
9330 done
9331
9332 for ac_header in selinux/label.h
9333 do :
9334 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9335 if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9336 cat >>confdefs.h <<_ACEOF
9337 #define HAVE_SELINUX_LABEL_H 1
9338 _ACEOF
9339
9340 fi
9341
9342 done
9343
9344
9345 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
9346
9347 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9348 SELINUX_PC="libselinux"
9349 HAVE_SELINUX=yes
9350 else
9351
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9353 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9354 SELINUX_LIBS=
9355 SELINUX_PC=
9356 HAVE_SELINUX=no
9357 fi
9358
9359 fi
9360
9361 ################################################################################
9362 if test x$REALTIME = xyes; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9364 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9365 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
9366 $as_echo_n "(cached) " >&6
9367 else
9368 ac_check_lib_save_LIBS=$LIBS
9369 LIBS="-lrt $LIBS"
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9372
9373 /* Override any GCC internal prototype to avoid an error.
9374 Use char because int might match the return type of a GCC
9375 builtin and then its argument prototype would still apply. */
9376 #ifdef __cplusplus
9377 extern "C"
9378 #endif
9379 char clock_gettime ();
9380 int
9381 main ()
9382 {
9383 return clock_gettime ();
9384 ;
9385 return 0;
9386 }
9387 _ACEOF
9388 if ac_fn_c_try_link "$LINENO"; then :
9389 ac_cv_lib_rt_clock_gettime=yes
9390 else
9391 ac_cv_lib_rt_clock_gettime=no
9392 fi
9393 rm -f core conftest.err conftest.$ac_objext \
9394 conftest$ac_exeext conftest.$ac_ext
9395 LIBS=$ac_check_lib_save_LIBS
9396 fi
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9398 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9399 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9400 HAVE_REALTIME=yes
9401 else
9402 HAVE_REALTIME=no
9403 fi
9404
9405
9406 if test x$HAVE_REALTIME = xyes; then
9407
9408 $as_echo "#define HAVE_REALTIME 1" >>confdefs.h
9409
9410 LIBS="-lrt $LIBS"
9411 else
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9413 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9414 fi
9415 fi
9416
9417 ################################################################################
9418 for ac_header in getopt.h
9419 do :
9420 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9421 if test "x$ac_cv_header_getopt_h" = x""yes; then :
9422 cat >>confdefs.h <<_ACEOF
9423 #define HAVE_GETOPT_H 1
9424 _ACEOF
9425
9426 $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
9427
9428 fi
9429
9430 done
9431
9432
9433 ################################################################################
9434 if test x$READLINE != xno; then
9435 lvm_saved_libs=$LIBS
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9437 $as_echo_n "checking for library containing tgetent... " >&6; }
9438 if test "${ac_cv_search_tgetent+set}" = set; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 ac_func_search_save_LIBS=$LIBS
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444
9445 /* Override any GCC internal prototype to avoid an error.
9446 Use char because int might match the return type of a GCC
9447 builtin and then its argument prototype would still apply. */
9448 #ifdef __cplusplus
9449 extern "C"
9450 #endif
9451 char tgetent ();
9452 int
9453 main ()
9454 {
9455 return tgetent ();
9456 ;
9457 return 0;
9458 }
9459 _ACEOF
9460 for ac_lib in '' tinfo ncurses curses termcap termlib; do
9461 if test -z "$ac_lib"; then
9462 ac_res="none required"
9463 else
9464 ac_res=-l$ac_lib
9465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9466 fi
9467 if ac_fn_c_try_link "$LINENO"; then :
9468 ac_cv_search_tgetent=$ac_res
9469 fi
9470 rm -f core conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext
9472 if test "${ac_cv_search_tgetent+set}" = set; then :
9473 break
9474 fi
9475 done
9476 if test "${ac_cv_search_tgetent+set}" = set; then :
9477
9478 else
9479 ac_cv_search_tgetent=no
9480 fi
9481 rm conftest.$ac_ext
9482 LIBS=$ac_func_search_save_LIBS
9483 fi
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9485 $as_echo "$ac_cv_search_tgetent" >&6; }
9486 ac_res=$ac_cv_search_tgetent
9487 if test "$ac_res" != no; then :
9488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9489 READLINE_LIBS=$ac_cv_search_tgetent
9490 else
9491
9492 if test "$READLINE" = yes; then
9493 as_fn_error $? "termcap could not be found which is required for the
9494 --enable-readline option (which is enabled by default). Either disable readline
9495 support with --disable-readline or download and install termcap from:
9496 ftp.gnu.org/gnu/termcap
9497 Note: if you are using precompiled packages you will also need the development
9498 package as well (which may be called termcap-devel or something similar).
9499 Note: (n)curses also seems to work as a substitute for termcap. This was
9500 not found either - but you could try installing that as well." "$LINENO" 5
9501 fi
9502 fi
9503
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9505 $as_echo_n "checking for readline in -lreadline... " >&6; }
9506 if test "${ac_cv_lib_readline_readline+set}" = set; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 ac_check_lib_save_LIBS=$LIBS
9510 LIBS="-lreadline $LIBS"
9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512 /* end confdefs.h. */
9513
9514 /* Override any GCC internal prototype to avoid an error.
9515 Use char because int might match the return type of a GCC
9516 builtin and then its argument prototype would still apply. */
9517 #ifdef __cplusplus
9518 extern "C"
9519 #endif
9520 char readline ();
9521 int
9522 main ()
9523 {
9524 return readline ();
9525 ;
9526 return 0;
9527 }
9528 _ACEOF
9529 if ac_fn_c_try_link "$LINENO"; then :
9530 ac_cv_lib_readline_readline=yes
9531 else
9532 ac_cv_lib_readline_readline=no
9533 fi
9534 rm -f core conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_lib_save_LIBS
9537 fi
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9539 $as_echo "$ac_cv_lib_readline_readline" >&6; }
9540 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9541
9542
9543 $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9544
9545 LIBS=$lvm_saved_libs
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9547 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9548 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9549 $as_echo_n "(cached) " >&6
9550 else
9551 ac_check_lib_save_LIBS=$LIBS
9552 LIBS="-lreadline $LIBS"
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9555
9556 /* Override any GCC internal prototype to avoid an error.
9557 Use char because int might match the return type of a GCC
9558 builtin and then its argument prototype would still apply. */
9559 #ifdef __cplusplus
9560 extern "C"
9561 #endif
9562 char rl_line_buffer ();
9563 int
9564 main ()
9565 {
9566 return rl_line_buffer ();
9567 ;
9568 return 0;
9569 }
9570 _ACEOF
9571 if ac_fn_c_try_link "$LINENO"; then :
9572 ac_cv_lib_readline_rl_line_buffer=yes
9573 else
9574 ac_cv_lib_readline_rl_line_buffer=no
9575 fi
9576 rm -f core conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext conftest.$ac_ext
9578 LIBS=$ac_check_lib_save_LIBS
9579 fi
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9581 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9582 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9583 READLINE_LIBS="-lreadline"
9584 else
9585
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9587 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9588 READLINE_LIBS="-lreadline $READLINE_LIBS"
9589
9590 fi
9591
9592 else
9593
9594 READLINE_LIBS=
9595 if test "$READLINE" = yes; then
9596 as_fn_error $? "GNU Readline could not be found which is required for the
9597 --enable-readline option (which is enabled by default). Either disable readline
9598 support with --disable-readline or download and install readline from:
9599 ftp.gnu.org/gnu/readline
9600 Note: if you are using precompiled packages you will also need the development
9601 package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9602 fi
9603 fi
9604
9605 LIBS="$READLINE_LIBS $lvm_saved_libs"
9606 for ac_func in rl_completion_matches
9607 do :
9608 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9609 if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
9610 cat >>confdefs.h <<_ACEOF
9611 #define HAVE_RL_COMPLETION_MATCHES 1
9612 _ACEOF
9613
9614 fi
9615 done
9616
9617 LIBS=$lvm_saved_libs
9618 fi
9619
9620 ################################################################################
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9622 $as_echo_n "checking whether to enable internationalisation... " >&6; }
9623 # Check whether --enable-nls was given.
9624 if test "${enable_nls+set}" = set; then :
9625 enableval=$enable_nls; INTL=$enableval
9626 else
9627 INTL=no
9628 fi
9629
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9631 $as_echo "$INTL" >&6; }
9632
9633 if test x$INTL = xyes; then
9634 # FIXME - Move this - can be device-mapper too
9635 INTL_PACKAGE="lvm2"
9636 # Extract the first word of "msgfmt", so it can be a program name with args.
9637 set dummy msgfmt; ac_word=$2
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9639 $as_echo_n "checking for $ac_word... " >&6; }
9640 if test "${ac_cv_path_MSGFMT+set}" = set; then :
9641 $as_echo_n "(cached) " >&6
9642 else
9643 case $MSGFMT in
9644 [\\/]* | ?:[\\/]*)
9645 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9646 ;;
9647 *)
9648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649 for as_dir in $PATH
9650 do
9651 IFS=$as_save_IFS
9652 test -z "$as_dir" && as_dir=.
9653 for ac_exec_ext in '' $ac_executable_extensions; do
9654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9655 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9657 break 2
9658 fi
9659 done
9660 done
9661 IFS=$as_save_IFS
9662
9663 ;;
9664 esac
9665 fi
9666 MSGFMT=$ac_cv_path_MSGFMT
9667 if test -n "$MSGFMT"; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9669 $as_echo "$MSGFMT" >&6; }
9670 else
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672 $as_echo "no" >&6; }
9673 fi
9674
9675
9676 if [ "x$MSGFMT" == x ];
9677 then as_fn_error $? "msgfmt not found in path $PATH
9678 " "$LINENO" 5
9679 fi;
9680
9681
9682 # Check whether --with-localedir was given.
9683 if test "${with_localedir+set}" = set; then :
9684 withval=$with_localedir; LOCALEDIR=$withval
9685 else
9686 LOCALEDIR='${prefix}/share/locale'
9687 fi
9688
9689 fi
9690
9691 ################################################################################
9692
9693 # Check whether --with-confdir was given.
9694 if test "${with_confdir+set}" = set; then :
9695 withval=$with_confdir; CONFDIR=$withval
9696 else
9697 CONFDIR="/etc"
9698 fi
9699
9700
9701
9702 # Check whether --with-staticdir was given.
9703 if test "${with_staticdir+set}" = set; then :
9704 withval=$with_staticdir; STATICDIR=$withval
9705 else
9706 STATICDIR='${exec_prefix}/sbin'
9707 fi
9708
9709
9710
9711 # Check whether --with-usrlibdir was given.
9712 if test "${with_usrlibdir+set}" = set; then :
9713 withval=$with_usrlibdir; usrlibdir=$withval
9714 else
9715 usrlibdir='${prefix}/lib'
9716 fi
9717
9718
9719
9720 # Check whether --with-usrsbindir was given.
9721 if test "${with_usrsbindir+set}" = set; then :
9722 withval=$with_usrsbindir; usrsbindir=$withval
9723 else
9724 usrsbindir='${prefix}/sbin'
9725 fi
9726
9727
9728 ################################################################################
9729
9730 # Check whether --with-udev_prefix was given.
9731 if test "${with_udev_prefix+set}" = set; then :
9732 withval=$with_udev_prefix; udev_prefix=$withval
9733 else
9734 udev_prefix='${exec_prefix}'
9735 fi
9736
9737
9738
9739 # Check whether --with-udevdir was given.
9740 if test "${with_udevdir+set}" = set; then :
9741 withval=$with_udevdir; udevdir=$withval
9742 else
9743 udevdir='${udev_prefix}/lib/udev/rules.d'
9744 fi
9745
9746
9747 ################################################################################
9748 if test x$READLINE = xyes; then
9749 for ac_header in readline/readline.h readline/history.h
9750 do :
9751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9752 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9753 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9754 cat >>confdefs.h <<_ACEOF
9755 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9756 _ACEOF
9757
9758 else
9759 as_fn_error $? "bailing out" "$LINENO" 5
9760 fi
9761
9762 done
9763
9764 fi
9765
9766 if test x$CLVMD != xnone; then
9767 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
9768 do :
9769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9770 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9771 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9772 cat >>confdefs.h <<_ACEOF
9773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9774 _ACEOF
9775
9776 else
9777 as_fn_error $? "bailing out" "$LINENO" 5
9778 fi
9779
9780 done
9781
9782 for ac_func in dup2 getmntent memmove select socket
9783 do :
9784 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9785 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9786 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9787 cat >>confdefs.h <<_ACEOF
9788 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9789 _ACEOF
9790
9791 else
9792 as_fn_error $? "bailing out" "$LINENO" 5
9793 fi
9794 done
9795
9796 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9797 # -lseq on Dynix/PTX, -lgen on Unixware.
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9799 $as_echo_n "checking for library containing getmntent... " >&6; }
9800 if test "${ac_cv_search_getmntent+set}" = set; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 ac_func_search_save_LIBS=$LIBS
9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9806
9807 /* Override any GCC internal prototype to avoid an error.
9808 Use char because int might match the return type of a GCC
9809 builtin and then its argument prototype would still apply. */
9810 #ifdef __cplusplus
9811 extern "C"
9812 #endif
9813 char getmntent ();
9814 int
9815 main ()
9816 {
9817 return getmntent ();
9818 ;
9819 return 0;
9820 }
9821 _ACEOF
9822 for ac_lib in '' sun seq gen; do
9823 if test -z "$ac_lib"; then
9824 ac_res="none required"
9825 else
9826 ac_res=-l$ac_lib
9827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9828 fi
9829 if ac_fn_c_try_link "$LINENO"; then :
9830 ac_cv_search_getmntent=$ac_res
9831 fi
9832 rm -f core conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext
9834 if test "${ac_cv_search_getmntent+set}" = set; then :
9835 break
9836 fi
9837 done
9838 if test "${ac_cv_search_getmntent+set}" = set; then :
9839
9840 else
9841 ac_cv_search_getmntent=no
9842 fi
9843 rm conftest.$ac_ext
9844 LIBS=$ac_func_search_save_LIBS
9845 fi
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9847 $as_echo "$ac_cv_search_getmntent" >&6; }
9848 ac_res=$ac_cv_search_getmntent
9849 if test "$ac_res" != no; then :
9850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9851 ac_cv_func_getmntent=yes
9852
9853 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
9854
9855 else
9856 ac_cv_func_getmntent=no
9857 fi
9858
9859
9860 for ac_header in sys/select.h sys/socket.h
9861 do :
9862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9863 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9864 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9865 cat >>confdefs.h <<_ACEOF
9866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9867 _ACEOF
9868
9869 fi
9870
9871 done
9872
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9874 $as_echo_n "checking types of arguments for select... " >&6; }
9875 if test "${ac_cv_func_select_args+set}" = set; then :
9876 $as_echo_n "(cached) " >&6
9877 else
9878 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9879 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9880 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9883 $ac_includes_default
9884 #ifdef HAVE_SYS_SELECT_H
9885 # include <sys/select.h>
9886 #endif
9887 #ifdef HAVE_SYS_SOCKET_H
9888 # include <sys/socket.h>
9889 #endif
9890
9891 int
9892 main ()
9893 {
9894 extern int select ($ac_arg1,
9895 $ac_arg234, $ac_arg234, $ac_arg234,
9896 $ac_arg5);
9897 ;
9898 return 0;
9899 }
9900 _ACEOF
9901 if ac_fn_c_try_compile "$LINENO"; then :
9902 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9903 fi
9904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9905 done
9906 done
9907 done
9908 # Provide a safe default value.
9909 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
9910
9911 fi
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9913 $as_echo "$ac_cv_func_select_args" >&6; }
9914 ac_save_IFS=$IFS; IFS=','
9915 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9916 IFS=$ac_save_IFS
9917 shift
9918
9919 cat >>confdefs.h <<_ACEOF
9920 #define SELECT_TYPE_ARG1 $1
9921 _ACEOF
9922
9923
9924 cat >>confdefs.h <<_ACEOF
9925 #define SELECT_TYPE_ARG234 ($2)
9926 _ACEOF
9927
9928
9929 cat >>confdefs.h <<_ACEOF
9930 #define SELECT_TYPE_ARG5 ($3)
9931 _ACEOF
9932
9933 rm -f conftest*
9934
9935 fi
9936
9937 if test x$CLUSTER != xnone; then
9938 for ac_header in sys/socket.h sys/un.h
9939 do :
9940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9941 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9942 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9943 cat >>confdefs.h <<_ACEOF
9944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9945 _ACEOF
9946
9947 else
9948 as_fn_error $? "bailing out" "$LINENO" 5
9949 fi
9950
9951 done
9952
9953 for ac_func in socket
9954 do :
9955 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9956 if test "x$ac_cv_func_socket" = x""yes; then :
9957 cat >>confdefs.h <<_ACEOF
9958 #define HAVE_SOCKET 1
9959 _ACEOF
9960
9961 else
9962 as_fn_error $? "bailing out" "$LINENO" 5
9963 fi
9964 done
9965
9966 fi
9967
9968 if test x$DMEVENTD = xyes; then
9969 for ac_header in arpa/inet.h
9970 do :
9971 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9972 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
9973 cat >>confdefs.h <<_ACEOF
9974 #define HAVE_ARPA_INET_H 1
9975 _ACEOF
9976
9977 else
9978 as_fn_error $? "bailing out" "$LINENO" 5
9979 fi
9980
9981 done
9982
9983 fi
9984
9985 if test x$HAVE_LIBDL = xyes; then
9986 for ac_header in dlfcn.h
9987 do :
9988 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9989 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9990 cat >>confdefs.h <<_ACEOF
9991 #define HAVE_DLFCN_H 1
9992 _ACEOF
9993
9994 else
9995 as_fn_error $? "bailing out" "$LINENO" 5
9996 fi
9997
9998 done
9999
10000 fi
10001
10002 if test x$INTL = xyes; then
10003 for ac_header in libintl.h
10004 do :
10005 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10006 if test "x$ac_cv_header_libintl_h" = x""yes; then :
10007 cat >>confdefs.h <<_ACEOF
10008 #define HAVE_LIBINTL_H 1
10009 _ACEOF
10010
10011 else
10012 as_fn_error $? "bailing out" "$LINENO" 5
10013 fi
10014
10015 done
10016
10017 fi
10018
10019 if test x$UDEV_SYNC = xyes; then
10020 for ac_header in sys/ipc.h sys/sem.h
10021 do :
10022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10023 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10024 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10025 cat >>confdefs.h <<_ACEOF
10026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10027 _ACEOF
10028
10029 else
10030 as_fn_error $? "bailing out" "$LINENO" 5
10031 fi
10032
10033 done
10034
10035 fi
10036
10037 ################################################################################
10038 # Extract the first word of "modprobe", so it can be a program name with args.
10039 set dummy modprobe; ac_word=$2
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041 $as_echo_n "checking for $ac_word... " >&6; }
10042 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
10043 $as_echo_n "(cached) " >&6
10044 else
10045 case $MODPROBE_CMD in
10046 [\\/]* | ?:[\\/]*)
10047 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10048 ;;
10049 *)
10050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051 for as_dir in $PATH
10052 do
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
10056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10057 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
10058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10060 fi
10061 done
10062 done
10063 IFS=$as_save_IFS
10064
10065 ;;
10066 esac
10067 fi
10068 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
10069 if test -n "$MODPROBE_CMD"; then
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
10071 $as_echo "$MODPROBE_CMD" >&6; }
10072 else
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074 $as_echo "no" >&6; }
10075 fi
10076
10077
10078
10079 if test x$MODPROBE_CMD != x; then
10080
10081 cat >>confdefs.h <<_ACEOF
10082 #define MODPROBE_CMD "$MODPROBE_CMD"
10083 _ACEOF
10084
10085 fi
10086
10087
10088 lvm_exec_prefix=$exec_prefix
10089 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10090 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
10091
10092 cat >>confdefs.h <<_ACEOF
10093 #define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
10094 _ACEOF
10095
10096
10097 if test "$CLVMD" != none; then
10098 clvmd_prefix=$ac_default_prefix
10099 test "$prefix" != NONE && clvmd_prefix=$prefix
10100
10101 cat >>confdefs.h <<_ACEOF
10102 #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
10103 _ACEOF
10104
10105 fi
10106
10107 ################################################################################
10108 if test "$BUILD_DMEVENTD" = yes; then
10109
10110 # Check whether --with-dmeventd-pidfile was given.
10111 if test "${with_dmeventd_pidfile+set}" = set; then :
10112 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
10113 else
10114 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
10115 fi
10116
10117
10118 cat >>confdefs.h <<_ACEOF
10119 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10120 _ACEOF
10121
10122 fi
10123
10124 if test "$BUILD_DMEVENTD" = yes; then
10125
10126 # Check whether --with-dmeventd-path was given.
10127 if test "${with_dmeventd_path+set}" = set; then :
10128 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
10129 else
10130 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
10131 fi
10132
10133
10134 cat >>confdefs.h <<_ACEOF
10135 #define DMEVENTD_PATH "$DMEVENTD_PATH"
10136 _ACEOF
10137
10138 fi
10139
10140
10141
10142 # Check whether --with-default-run-dir was given.
10143 if test "${with_default_run_dir+set}" = set; then :
10144 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
10145 else
10146 DEFAULT_RUN_DIR="/var/run/lvm"
10147 fi
10148
10149 cat >>confdefs.h <<_ACEOF
10150 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10151 _ACEOF
10152
10153
10154 ################################################################################
10155
10156 # Check whether --with-default-system-dir was given.
10157 if test "${with_default_system_dir+set}" = set; then :
10158 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
10159 else
10160 DEFAULT_SYS_DIR="/etc/lvm"
10161 fi
10162
10163
10164 cat >>confdefs.h <<_ACEOF
10165 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10166 _ACEOF
10167
10168
10169
10170 # Check whether --with-default-archive-subdir was given.
10171 if test "${with_default_archive_subdir+set}" = set; then :
10172 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
10173 else
10174 DEFAULT_ARCHIVE_SUBDIR=archive
10175 fi
10176
10177
10178 cat >>confdefs.h <<_ACEOF
10179 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10180 _ACEOF
10181
10182
10183
10184 # Check whether --with-default-backup-subdir was given.
10185 if test "${with_default_backup_subdir+set}" = set; then :
10186 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
10187 else
10188 DEFAULT_BACKUP_SUBDIR=backup
10189 fi
10190
10191
10192 cat >>confdefs.h <<_ACEOF
10193 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10194 _ACEOF
10195
10196
10197
10198 # Check whether --with-default-cache-subdir was given.
10199 if test "${with_default_cache_subdir+set}" = set; then :
10200 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
10201 else
10202 DEFAULT_CACHE_SUBDIR=cache
10203 fi
10204
10205
10206 cat >>confdefs.h <<_ACEOF
10207 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10208 _ACEOF
10209
10210
10211
10212 # Check whether --with-default-locking-dir was given.
10213 if test "${with_default_locking_dir+set}" = set; then :
10214 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
10215 else
10216 DEFAULT_LOCK_DIR="/var/lock/lvm"
10217 fi
10218
10219
10220 cat >>confdefs.h <<_ACEOF
10221 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10222 _ACEOF
10223
10224
10225 ################################################################################
10226
10227 # Check whether --with-default-data-alignment was given.
10228 if test "${with_default_data_alignment+set}" = set; then :
10229 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10230 else
10231 DEFAULT_DATA_ALIGNMENT=1
10232 fi
10233
10234
10235 cat >>confdefs.h <<_ACEOF
10236 #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10237 _ACEOF
10238
10239
10240 ################################################################################
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
10242 $as_echo_n "checking for kernel interface choice... " >&6; }
10243
10244 # Check whether --with-interface was given.
10245 if test "${with_interface+set}" = set; then :
10246 withval=$with_interface; interface=$withval
10247 else
10248 interface=ioctl
10249 fi
10250
10251 if [ "x$interface" != xioctl ];
10252 then
10253 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
10254 fi
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
10256 $as_echo "$interface" >&6; }
10257
10258 ################################################################################
10259 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
10260
10261 cat >>confdefs.h <<_ACEOF
10262 #define DM_LIB_VERSION $DM_LIB_VERSION
10263 _ACEOF
10264
10265
10266 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
10267
10268 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
10269
10270 VER=`cat "$srcdir"/VERSION`
10271 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
10272 VER=`echo "$VER" | $AWK '{print $1}'`
10273 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10274 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10275 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10276 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
10277 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10278 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
10279
10280 ################################################################################
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383 ################################################################################
10384 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
10385
10386 cat >confcache <<\_ACEOF
10387 # This file is a shell script that caches the results of configure
10388 # tests run on this system so they can be shared between configure
10389 # scripts and configure runs, see configure's option --config-cache.
10390 # It is not useful on other systems. If it contains results you don't
10391 # want to keep, you may remove or edit it.
10392 #
10393 # config.status only pays attention to the cache file if you give it
10394 # the --recheck option to rerun configure.
10395 #
10396 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10397 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10398 # following values.
10399
10400 _ACEOF
10401
10402 # The following way of writing the cache mishandles newlines in values,
10403 # but we know of no workaround that is simple, portable, and efficient.
10404 # So, we kill variables containing newlines.
10405 # Ultrix sh set writes to stderr and can't be redirected directly,
10406 # and sets the high bit in the cache file unless we assign to the vars.
10407 (
10408 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10409 eval ac_val=\$$ac_var
10410 case $ac_val in #(
10411 *${as_nl}*)
10412 case $ac_var in #(
10413 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10414 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10415 esac
10416 case $ac_var in #(
10417 _ | IFS | as_nl) ;; #(
10418 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10419 *) { eval $ac_var=; unset $ac_var;} ;;
10420 esac ;;
10421 esac
10422 done
10423
10424 (set) 2>&1 |
10425 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10426 *${as_nl}ac_space=\ *)
10427 # `set' does not quote correctly, so add quotes: double-quote
10428 # substitution turns \\\\ into \\, and sed turns \\ into \.
10429 sed -n \
10430 "s/'/'\\\\''/g;
10431 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10432 ;; #(
10433 *)
10434 # `set' quotes correctly as required by POSIX, so do not add quotes.
10435 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10436 ;;
10437 esac |
10438 sort
10439 ) |
10440 sed '
10441 /^ac_cv_env_/b end
10442 t clear
10443 :clear
10444 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10445 t end
10446 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10447 :end' >>confcache
10448 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10449 if test -w "$cache_file"; then
10450 test "x$cache_file" != "x/dev/null" &&
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10452 $as_echo "$as_me: updating cache $cache_file" >&6;}
10453 cat confcache >$cache_file
10454 else
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10456 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10457 fi
10458 fi
10459 rm -f confcache
10460
10461 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10462 # Let make expand exec_prefix.
10463 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10464
10465 DEFS=-DHAVE_CONFIG_H
10466
10467 ac_libobjs=
10468 ac_ltlibobjs=
10469 U=
10470 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10471 # 1. Remove the extension, and $U if already installed.
10472 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10473 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10474 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10475 # will be set to the directory where LIBOBJS objects are built.
10476 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10477 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10478 done
10479 LIBOBJS=$ac_libobjs
10480
10481 LTLIBOBJS=$ac_ltlibobjs
10482
10483
10484
10485 : ${CONFIG_STATUS=./config.status}
10486 ac_write_fail=0
10487 ac_clean_files_save=$ac_clean_files
10488 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10490 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10491 as_write_fail=0
10492 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10493 #! $SHELL
10494 # Generated by $as_me.
10495 # Run this file to recreate the current configuration.
10496 # Compiler output produced by configure, useful for debugging
10497 # configure, is in config.log if it exists.
10498
10499 debug=false
10500 ac_cs_recheck=false
10501 ac_cs_silent=false
10502
10503 SHELL=\${CONFIG_SHELL-$SHELL}
10504 export SHELL
10505 _ASEOF
10506 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10507 ## -------------------- ##
10508 ## M4sh Initialization. ##
10509 ## -------------------- ##
10510
10511 # Be more Bourne compatible
10512 DUALCASE=1; export DUALCASE # for MKS sh
10513 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10514 emulate sh
10515 NULLCMD=:
10516 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10517 # is contrary to our usage. Disable this feature.
10518 alias -g '${1+"$@"}'='"$@"'
10519 setopt NO_GLOB_SUBST
10520 else
10521 case `(set -o) 2>/dev/null` in #(
10522 *posix*) :
10523 set -o posix ;; #(
10524 *) :
10525 ;;
10526 esac
10527 fi
10528
10529
10530 as_nl='
10531 '
10532 export as_nl
10533 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10534 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10535 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10536 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10537 # Prefer a ksh shell builtin over an external printf program on Solaris,
10538 # but without wasting forks for bash or zsh.
10539 if test -z "$BASH_VERSION$ZSH_VERSION" \
10540 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10541 as_echo='print -r --'
10542 as_echo_n='print -rn --'
10543 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10544 as_echo='printf %s\n'
10545 as_echo_n='printf %s'
10546 else
10547 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10548 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10549 as_echo_n='/usr/ucb/echo -n'
10550 else
10551 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10552 as_echo_n_body='eval
10553 arg=$1;
10554 case $arg in #(
10555 *"$as_nl"*)
10556 expr "X$arg" : "X\\(.*\\)$as_nl";
10557 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10558 esac;
10559 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10560 '
10561 export as_echo_n_body
10562 as_echo_n='sh -c $as_echo_n_body as_echo'
10563 fi
10564 export as_echo_body
10565 as_echo='sh -c $as_echo_body as_echo'
10566 fi
10567
10568 # The user is always right.
10569 if test "${PATH_SEPARATOR+set}" != set; then
10570 PATH_SEPARATOR=:
10571 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10572 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10573 PATH_SEPARATOR=';'
10574 }
10575 fi
10576
10577
10578 # IFS
10579 # We need space, tab and new line, in precisely that order. Quoting is
10580 # there to prevent editors from complaining about space-tab.
10581 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10582 # splitting by setting IFS to empty value.)
10583 IFS=" "" $as_nl"
10584
10585 # Find who we are. Look in the path if we contain no directory separator.
10586 case $0 in #((
10587 *[\\/]* ) as_myself=$0 ;;
10588 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589 for as_dir in $PATH
10590 do
10591 IFS=$as_save_IFS
10592 test -z "$as_dir" && as_dir=.
10593 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10594 done
10595 IFS=$as_save_IFS
10596
10597 ;;
10598 esac
10599 # We did not find ourselves, most probably we were run as `sh COMMAND'
10600 # in which case we are not to be found in the path.
10601 if test "x$as_myself" = x; then
10602 as_myself=$0
10603 fi
10604 if test ! -f "$as_myself"; then
10605 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10606 exit 1
10607 fi
10608
10609 # Unset variables that we do not need and which cause bugs (e.g. in
10610 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10611 # suppresses any "Segmentation fault" message there. '((' could
10612 # trigger a bug in pdksh 5.2.14.
10613 for as_var in BASH_ENV ENV MAIL MAILPATH
10614 do eval test x\${$as_var+set} = xset \
10615 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10616 done
10617 PS1='$ '
10618 PS2='> '
10619 PS4='+ '
10620
10621 # NLS nuisances.
10622 LC_ALL=C
10623 export LC_ALL
10624 LANGUAGE=C
10625 export LANGUAGE
10626
10627 # CDPATH.
10628 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10629
10630
10631 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10632 # ----------------------------------------
10633 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10634 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10635 # script with STATUS, using 1 if that was 0.
10636 as_fn_error ()
10637 {
10638 as_status=$1; test $as_status -eq 0 && as_status=1
10639 if test "$4"; then
10640 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10641 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10642 fi
10643 $as_echo "$as_me: error: $2" >&2
10644 as_fn_exit $as_status
10645 } # as_fn_error
10646
10647
10648 # as_fn_set_status STATUS
10649 # -----------------------
10650 # Set $? to STATUS, without forking.
10651 as_fn_set_status ()
10652 {
10653 return $1
10654 } # as_fn_set_status
10655
10656 # as_fn_exit STATUS
10657 # -----------------
10658 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10659 as_fn_exit ()
10660 {
10661 set +e
10662 as_fn_set_status $1
10663 exit $1
10664 } # as_fn_exit
10665
10666 # as_fn_unset VAR
10667 # ---------------
10668 # Portably unset VAR.
10669 as_fn_unset ()
10670 {
10671 { eval $1=; unset $1;}
10672 }
10673 as_unset=as_fn_unset
10674 # as_fn_append VAR VALUE
10675 # ----------------------
10676 # Append the text in VALUE to the end of the definition contained in VAR. Take
10677 # advantage of any shell optimizations that allow amortized linear growth over
10678 # repeated appends, instead of the typical quadratic growth present in naive
10679 # implementations.
10680 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10681 eval 'as_fn_append ()
10682 {
10683 eval $1+=\$2
10684 }'
10685 else
10686 as_fn_append ()
10687 {
10688 eval $1=\$$1\$2
10689 }
10690 fi # as_fn_append
10691
10692 # as_fn_arith ARG...
10693 # ------------------
10694 # Perform arithmetic evaluation on the ARGs, and store the result in the
10695 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10696 # must be portable across $(()) and expr.
10697 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10698 eval 'as_fn_arith ()
10699 {
10700 as_val=$(( $* ))
10701 }'
10702 else
10703 as_fn_arith ()
10704 {
10705 as_val=`expr "$@" || test $? -eq 1`
10706 }
10707 fi # as_fn_arith
10708
10709
10710 if expr a : '\(a\)' >/dev/null 2>&1 &&
10711 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10712 as_expr=expr
10713 else
10714 as_expr=false
10715 fi
10716
10717 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10718 as_basename=basename
10719 else
10720 as_basename=false
10721 fi
10722
10723 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10724 as_dirname=dirname
10725 else
10726 as_dirname=false
10727 fi
10728
10729 as_me=`$as_basename -- "$0" ||
10730 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10731 X"$0" : 'X\(//\)$' \| \
10732 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10733 $as_echo X/"$0" |
10734 sed '/^.*\/\([^/][^/]*\)\/*$/{
10735 s//\1/
10736 q
10737 }
10738 /^X\/\(\/\/\)$/{
10739 s//\1/
10740 q
10741 }
10742 /^X\/\(\/\).*/{
10743 s//\1/
10744 q
10745 }
10746 s/.*/./; q'`
10747
10748 # Avoid depending upon Character Ranges.
10749 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10750 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10751 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10752 as_cr_digits='0123456789'
10753 as_cr_alnum=$as_cr_Letters$as_cr_digits
10754
10755 ECHO_C= ECHO_N= ECHO_T=
10756 case `echo -n x` in #(((((
10757 -n*)
10758 case `echo 'xy\c'` in
10759 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10760 xy) ECHO_C='\c';;
10761 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10762 ECHO_T=' ';;
10763 esac;;
10764 *)
10765 ECHO_N='-n';;
10766 esac
10767
10768 rm -f conf$$ conf$$.exe conf$$.file
10769 if test -d conf$$.dir; then
10770 rm -f conf$$.dir/conf$$.file
10771 else
10772 rm -f conf$$.dir
10773 mkdir conf$$.dir 2>/dev/null
10774 fi
10775 if (echo >conf$$.file) 2>/dev/null; then
10776 if ln -s conf$$.file conf$$ 2>/dev/null; then
10777 as_ln_s='ln -s'
10778 # ... but there are two gotchas:
10779 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10780 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10781 # In both cases, we have to default to `cp -p'.
10782 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10783 as_ln_s='cp -p'
10784 elif ln conf$$.file conf$$ 2>/dev/null; then
10785 as_ln_s=ln
10786 else
10787 as_ln_s='cp -p'
10788 fi
10789 else
10790 as_ln_s='cp -p'
10791 fi
10792 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10793 rmdir conf$$.dir 2>/dev/null
10794
10795
10796 # as_fn_mkdir_p
10797 # -------------
10798 # Create "$as_dir" as a directory, including parents if necessary.
10799 as_fn_mkdir_p ()
10800 {
10801
10802 case $as_dir in #(
10803 -*) as_dir=./$as_dir;;
10804 esac
10805 test -d "$as_dir" || eval $as_mkdir_p || {
10806 as_dirs=
10807 while :; do
10808 case $as_dir in #(
10809 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10810 *) as_qdir=$as_dir;;
10811 esac
10812 as_dirs="'$as_qdir' $as_dirs"
10813 as_dir=`$as_dirname -- "$as_dir" ||
10814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10815 X"$as_dir" : 'X\(//\)[^/]' \| \
10816 X"$as_dir" : 'X\(//\)$' \| \
10817 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10818 $as_echo X"$as_dir" |
10819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10820 s//\1/
10821 q
10822 }
10823 /^X\(\/\/\)[^/].*/{
10824 s//\1/
10825 q
10826 }
10827 /^X\(\/\/\)$/{
10828 s//\1/
10829 q
10830 }
10831 /^X\(\/\).*/{
10832 s//\1/
10833 q
10834 }
10835 s/.*/./; q'`
10836 test -d "$as_dir" && break
10837 done
10838 test -z "$as_dirs" || eval "mkdir $as_dirs"
10839 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10840
10841
10842 } # as_fn_mkdir_p
10843 if mkdir -p . 2>/dev/null; then
10844 as_mkdir_p='mkdir -p "$as_dir"'
10845 else
10846 test -d ./-p && rmdir ./-p
10847 as_mkdir_p=false
10848 fi
10849
10850 if test -x / >/dev/null 2>&1; then
10851 as_test_x='test -x'
10852 else
10853 if ls -dL / >/dev/null 2>&1; then
10854 as_ls_L_option=L
10855 else
10856 as_ls_L_option=
10857 fi
10858 as_test_x='
10859 eval sh -c '\''
10860 if test -d "$1"; then
10861 test -d "$1/.";
10862 else
10863 case $1 in #(
10864 -*)set "./$1";;
10865 esac;
10866 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10867 ???[sx]*):;;*)false;;esac;fi
10868 '\'' sh
10869 '
10870 fi
10871 as_executable_p=$as_test_x
10872
10873 # Sed expression to map a string onto a valid CPP name.
10874 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10875
10876 # Sed expression to map a string onto a valid variable name.
10877 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10878
10879
10880 exec 6>&1
10881 ## ----------------------------------- ##
10882 ## Main body of $CONFIG_STATUS script. ##
10883 ## ----------------------------------- ##
10884 _ASEOF
10885 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10886
10887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10888 # Save the log message, to keep $0 and so on meaningful, and to
10889 # report actual input values of CONFIG_FILES etc. instead of their
10890 # values after options handling.
10891 ac_log="
10892 This file was extended by $as_me, which was
10893 generated by GNU Autoconf 2.66. Invocation command line was
10894
10895 CONFIG_FILES = $CONFIG_FILES
10896 CONFIG_HEADERS = $CONFIG_HEADERS
10897 CONFIG_LINKS = $CONFIG_LINKS
10898 CONFIG_COMMANDS = $CONFIG_COMMANDS
10899 $ $0 $@
10900
10901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10902 "
10903
10904 _ACEOF
10905
10906 case $ac_config_files in *"
10907 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10908 esac
10909
10910 case $ac_config_headers in *"
10911 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10912 esac
10913
10914
10915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10916 # Files that config.status was made for.
10917 config_files="$ac_config_files"
10918 config_headers="$ac_config_headers"
10919
10920 _ACEOF
10921
10922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10923 ac_cs_usage="\
10924 \`$as_me' instantiates files and other configuration actions
10925 from templates according to the current configuration. Unless the files
10926 and actions are specified as TAGs, all are instantiated by default.
10927
10928 Usage: $0 [OPTION]... [TAG]...
10929
10930 -h, --help print this help, then exit
10931 -V, --version print version number and configuration settings, then exit
10932 --config print configuration, then exit
10933 -q, --quiet, --silent
10934 do not print progress messages
10935 -d, --debug don't remove temporary files
10936 --recheck update $as_me by reconfiguring in the same conditions
10937 --file=FILE[:TEMPLATE]
10938 instantiate the configuration file FILE
10939 --header=FILE[:TEMPLATE]
10940 instantiate the configuration header FILE
10941
10942 Configuration files:
10943 $config_files
10944
10945 Configuration headers:
10946 $config_headers
10947
10948 Report bugs to the package provider."
10949
10950 _ACEOF
10951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10952 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10953 ac_cs_version="\\
10954 config.status
10955 configured by $0, generated by GNU Autoconf 2.66,
10956 with options \\"\$ac_cs_config\\"
10957
10958 Copyright (C) 2010 Free Software Foundation, Inc.
10959 This config.status script is free software; the Free Software Foundation
10960 gives unlimited permission to copy, distribute and modify it."
10961
10962 ac_pwd='$ac_pwd'
10963 srcdir='$srcdir'
10964 INSTALL='$INSTALL'
10965 MKDIR_P='$MKDIR_P'
10966 AWK='$AWK'
10967 test -n "\$AWK" || AWK=awk
10968 _ACEOF
10969
10970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10971 # The default lists apply if the user does not specify any file.
10972 ac_need_defaults=:
10973 while test $# != 0
10974 do
10975 case $1 in
10976 --*=*)
10977 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10978 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10979 ac_shift=:
10980 ;;
10981 *)
10982 ac_option=$1
10983 ac_optarg=$2
10984 ac_shift=shift
10985 ;;
10986 esac
10987
10988 case $ac_option in
10989 # Handling of the options.
10990 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10991 ac_cs_recheck=: ;;
10992 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10993 $as_echo "$ac_cs_version"; exit ;;
10994 --config | --confi | --conf | --con | --co | --c )
10995 $as_echo "$ac_cs_config"; exit ;;
10996 --debug | --debu | --deb | --de | --d | -d )
10997 debug=: ;;
10998 --file | --fil | --fi | --f )
10999 $ac_shift
11000 case $ac_optarg in
11001 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11002 esac
11003 as_fn_append CONFIG_FILES " '$ac_optarg'"
11004 ac_need_defaults=false;;
11005 --header | --heade | --head | --hea )
11006 $ac_shift
11007 case $ac_optarg in
11008 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11009 esac
11010 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11011 ac_need_defaults=false;;
11012 --he | --h)
11013 # Conflict between --help and --header
11014 as_fn_error $? "ambiguous option: \`$1'
11015 Try \`$0 --help' for more information.";;
11016 --help | --hel | -h )
11017 $as_echo "$ac_cs_usage"; exit ;;
11018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11019 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11020 ac_cs_silent=: ;;
11021
11022 # This is an error.
11023 -*) as_fn_error $? "unrecognized option: \`$1'
11024 Try \`$0 --help' for more information." ;;
11025
11026 *) as_fn_append ac_config_targets " $1"
11027 ac_need_defaults=false ;;
11028
11029 esac
11030 shift
11031 done
11032
11033 ac_configure_extra_args=
11034
11035 if $ac_cs_silent; then
11036 exec 6>/dev/null
11037 ac_configure_extra_args="$ac_configure_extra_args --silent"
11038 fi
11039
11040 _ACEOF
11041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11042 if \$ac_cs_recheck; then
11043 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11044 shift
11045 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11046 CONFIG_SHELL='$SHELL'
11047 export CONFIG_SHELL
11048 exec "\$@"
11049 fi
11050
11051 _ACEOF
11052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11053 exec 5>>config.log
11054 {
11055 echo
11056 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11057 ## Running $as_me. ##
11058 _ASBOX
11059 $as_echo "$ac_log"
11060 } >&5
11061
11062 _ACEOF
11063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11064 _ACEOF
11065
11066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11067
11068 # Handling of arguments.
11069 for ac_config_target in $ac_config_targets
11070 do
11071 case $ac_config_target in
11072 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11073 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11074 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11075 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11076 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
11077 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
11078 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11079 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
11080 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
11081 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
11082 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11083 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
11084 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11085 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
11086 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
11087 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11088 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11089 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11090 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11091 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11092 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
11093 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
11094 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
11095 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
11096 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11097 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
11098 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
11099 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
11100 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11101 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
11102 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
11103 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
11104 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
11105 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
11106 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11107 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
11108 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11109 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
11110 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11111 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
11112 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
11113
11114 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11115 esac
11116 done
11117
11118
11119 # If the user did not use the arguments to specify the items to instantiate,
11120 # then the envvar interface is used. Set only those that are not.
11121 # We use the long form for the default assignment because of an extremely
11122 # bizarre bug on SunOS 4.1.3.
11123 if $ac_need_defaults; then
11124 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11125 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11126 fi
11127
11128 # Have a temporary directory for convenience. Make it in the build tree
11129 # simply because there is no reason against having it here, and in addition,
11130 # creating and moving files from /tmp can sometimes cause problems.
11131 # Hook for its removal unless debugging.
11132 # Note that there is a small window in which the directory will not be cleaned:
11133 # after its creation but before its name has been assigned to `$tmp'.
11134 $debug ||
11135 {
11136 tmp=
11137 trap 'exit_status=$?
11138 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11139 ' 0
11140 trap 'as_fn_exit 1' 1 2 13 15
11141 }
11142 # Create a (secure) tmp directory for tmp files.
11143
11144 {
11145 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11146 test -n "$tmp" && test -d "$tmp"
11147 } ||
11148 {
11149 tmp=./conf$$-$RANDOM
11150 (umask 077 && mkdir "$tmp")
11151 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11152
11153 # Set up the scripts for CONFIG_FILES section.
11154 # No need to generate them if there are no CONFIG_FILES.
11155 # This happens for instance with `./config.status config.h'.
11156 if test -n "$CONFIG_FILES"; then
11157
11158
11159 ac_cr=`echo X | tr X '\015'`
11160 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11161 # But we know of no other shell where ac_cr would be empty at this
11162 # point, so we can use a bashism as a fallback.
11163 if test "x$ac_cr" = x; then
11164 eval ac_cr=\$\'\\r\'
11165 fi
11166 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11167 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11168 ac_cs_awk_cr='\\r'
11169 else
11170 ac_cs_awk_cr=$ac_cr
11171 fi
11172
11173 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11174 _ACEOF
11175
11176
11177 {
11178 echo "cat >conf$$subs.awk <<_ACEOF" &&
11179 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11180 echo "_ACEOF"
11181 } >conf$$subs.sh ||
11182 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11183 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11184 ac_delim='%!_!# '
11185 for ac_last_try in false false false false false :; do
11186 . ./conf$$subs.sh ||
11187 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11188
11189 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11190 if test $ac_delim_n = $ac_delim_num; then
11191 break
11192 elif $ac_last_try; then
11193 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11194 else
11195 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11196 fi
11197 done
11198 rm -f conf$$subs.sh
11199
11200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11201 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11202 _ACEOF
11203 sed -n '
11204 h
11205 s/^/S["/; s/!.*/"]=/
11206 p
11207 g
11208 s/^[^!]*!//
11209 :repl
11210 t repl
11211 s/'"$ac_delim"'$//
11212 t delim
11213 :nl
11214 h
11215 s/\(.\{148\}\)..*/\1/
11216 t more1
11217 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11218 p
11219 n
11220 b repl
11221 :more1
11222 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11223 p
11224 g
11225 s/.\{148\}//
11226 t nl
11227 :delim
11228 h
11229 s/\(.\{148\}\)..*/\1/
11230 t more2
11231 s/["\\]/\\&/g; s/^/"/; s/$/"/
11232 p
11233 b
11234 :more2
11235 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11236 p
11237 g
11238 s/.\{148\}//
11239 t delim
11240 ' <conf$$subs.awk | sed '
11241 /^[^""]/{
11242 N
11243 s/\n//
11244 }
11245 ' >>$CONFIG_STATUS || ac_write_fail=1
11246 rm -f conf$$subs.awk
11247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11248 _ACAWK
11249 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11250 for (key in S) S_is_set[key] = 1
11251 FS = "\a"
11252
11253 }
11254 {
11255 line = $ 0
11256 nfields = split(line, field, "@")
11257 substed = 0
11258 len = length(field[1])
11259 for (i = 2; i < nfields; i++) {
11260 key = field[i]
11261 keylen = length(key)
11262 if (S_is_set[key]) {
11263 value = S[key]
11264 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11265 len += length(value) + length(field[++i])
11266 substed = 1
11267 } else
11268 len += 1 + keylen
11269 }
11270
11271 print line
11272 }
11273
11274 _ACAWK
11275 _ACEOF
11276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11277 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11278 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11279 else
11280 cat
11281 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11282 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11283 _ACEOF
11284
11285 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11286 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11287 # trailing colons and then remove the whole line if VPATH becomes empty
11288 # (actually we leave an empty line to preserve line numbers).
11289 if test "x$srcdir" = x.; then
11290 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11291 h
11292 s///
11293 s/^/:/
11294 s/[ ]*$/:/
11295 s/:\$(srcdir):/:/g
11296 s/:\${srcdir}:/:/g
11297 s/:@srcdir@:/:/g
11298 s/^:*//
11299 s/:*$//
11300 x
11301 s/\(=[ ]*\).*/\1/
11302 G
11303 s/\n//
11304 s/^[^=]*=[ ]*$//
11305 }'
11306 fi
11307
11308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11309 fi # test -n "$CONFIG_FILES"
11310
11311 # Set up the scripts for CONFIG_HEADERS section.
11312 # No need to generate them if there are no CONFIG_HEADERS.
11313 # This happens for instance with `./config.status Makefile'.
11314 if test -n "$CONFIG_HEADERS"; then
11315 cat >"$tmp/defines.awk" <<\_ACAWK ||
11316 BEGIN {
11317 _ACEOF
11318
11319 # Transform confdefs.h into an awk script `defines.awk', embedded as
11320 # here-document in config.status, that substitutes the proper values into
11321 # config.h.in to produce config.h.
11322
11323 # Create a delimiter string that does not exist in confdefs.h, to ease
11324 # handling of long lines.
11325 ac_delim='%!_!# '
11326 for ac_last_try in false false :; do
11327 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11328 if test -z "$ac_t"; then
11329 break
11330 elif $ac_last_try; then
11331 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11332 else
11333 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11334 fi
11335 done
11336
11337 # For the awk script, D is an array of macro values keyed by name,
11338 # likewise P contains macro parameters if any. Preserve backslash
11339 # newline sequences.
11340
11341 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11342 sed -n '
11343 s/.\{148\}/&'"$ac_delim"'/g
11344 t rset
11345 :rset
11346 s/^[ ]*#[ ]*define[ ][ ]*/ /
11347 t def
11348 d
11349 :def
11350 s/\\$//
11351 t bsnl
11352 s/["\\]/\\&/g
11353 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11354 D["\1"]=" \3"/p
11355 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11356 d
11357 :bsnl
11358 s/["\\]/\\&/g
11359 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11360 D["\1"]=" \3\\\\\\n"\\/p
11361 t cont
11362 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11363 t cont
11364 d
11365 :cont
11366 n
11367 s/.\{148\}/&'"$ac_delim"'/g
11368 t clear
11369 :clear
11370 s/\\$//
11371 t bsnlc
11372 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11373 d
11374 :bsnlc
11375 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11376 b cont
11377 ' <confdefs.h | sed '
11378 s/'"$ac_delim"'/"\\\
11379 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11380
11381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11382 for (key in D) D_is_set[key] = 1
11383 FS = "\a"
11384 }
11385 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11386 line = \$ 0
11387 split(line, arg, " ")
11388 if (arg[1] == "#") {
11389 defundef = arg[2]
11390 mac1 = arg[3]
11391 } else {
11392 defundef = substr(arg[1], 2)
11393 mac1 = arg[2]
11394 }
11395 split(mac1, mac2, "(") #)
11396 macro = mac2[1]
11397 prefix = substr(line, 1, index(line, defundef) - 1)
11398 if (D_is_set[macro]) {
11399 # Preserve the white space surrounding the "#".
11400 print prefix "define", macro P[macro] D[macro]
11401 next
11402 } else {
11403 # Replace #undef with comments. This is necessary, for example,
11404 # in the case of _POSIX_SOURCE, which is predefined and required
11405 # on some systems where configure will not decide to define it.
11406 if (defundef == "undef") {
11407 print "/*", prefix defundef, macro, "*/"
11408 next
11409 }
11410 }
11411 }
11412 { print }
11413 _ACAWK
11414 _ACEOF
11415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11416 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11417 fi # test -n "$CONFIG_HEADERS"
11418
11419
11420 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11421 shift
11422 for ac_tag
11423 do
11424 case $ac_tag in
11425 :[FHLC]) ac_mode=$ac_tag; continue;;
11426 esac
11427 case $ac_mode$ac_tag in
11428 :[FHL]*:*);;
11429 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11430 :[FH]-) ac_tag=-:-;;
11431 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11432 esac
11433 ac_save_IFS=$IFS
11434 IFS=:
11435 set x $ac_tag
11436 IFS=$ac_save_IFS
11437 shift
11438 ac_file=$1
11439 shift
11440
11441 case $ac_mode in
11442 :L) ac_source=$1;;
11443 :[FH])
11444 ac_file_inputs=
11445 for ac_f
11446 do
11447 case $ac_f in
11448 -) ac_f="$tmp/stdin";;
11449 *) # Look for the file first in the build tree, then in the source tree
11450 # (if the path is not absolute). The absolute path cannot be DOS-style,
11451 # because $ac_f cannot contain `:'.
11452 test -f "$ac_f" ||
11453 case $ac_f in
11454 [\\/$]*) false;;
11455 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11456 esac ||
11457 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11458 esac
11459 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11460 as_fn_append ac_file_inputs " '$ac_f'"
11461 done
11462
11463 # Let's still pretend it is `configure' which instantiates (i.e., don't
11464 # use $as_me), people would be surprised to read:
11465 # /* config.h. Generated by config.status. */
11466 configure_input='Generated from '`
11467 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11468 `' by configure.'
11469 if test x"$ac_file" != x-; then
11470 configure_input="$ac_file. $configure_input"
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11472 $as_echo "$as_me: creating $ac_file" >&6;}
11473 fi
11474 # Neutralize special characters interpreted by sed in replacement strings.
11475 case $configure_input in #(
11476 *\&* | *\|* | *\\* )
11477 ac_sed_conf_input=`$as_echo "$configure_input" |
11478 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11479 *) ac_sed_conf_input=$configure_input;;
11480 esac
11481
11482 case $ac_tag in
11483 *:-:* | *:-) cat >"$tmp/stdin" \
11484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11485 esac
11486 ;;
11487 esac
11488
11489 ac_dir=`$as_dirname -- "$ac_file" ||
11490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11491 X"$ac_file" : 'X\(//\)[^/]' \| \
11492 X"$ac_file" : 'X\(//\)$' \| \
11493 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11494 $as_echo X"$ac_file" |
11495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11496 s//\1/
11497 q
11498 }
11499 /^X\(\/\/\)[^/].*/{
11500 s//\1/
11501 q
11502 }
11503 /^X\(\/\/\)$/{
11504 s//\1/
11505 q
11506 }
11507 /^X\(\/\).*/{
11508 s//\1/
11509 q
11510 }
11511 s/.*/./; q'`
11512 as_dir="$ac_dir"; as_fn_mkdir_p
11513 ac_builddir=.
11514
11515 case "$ac_dir" in
11516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11517 *)
11518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11519 # A ".." for each directory in $ac_dir_suffix.
11520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11521 case $ac_top_builddir_sub in
11522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11524 esac ;;
11525 esac
11526 ac_abs_top_builddir=$ac_pwd
11527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11528 # for backward compatibility:
11529 ac_top_builddir=$ac_top_build_prefix
11530
11531 case $srcdir in
11532 .) # We are building in place.
11533 ac_srcdir=.
11534 ac_top_srcdir=$ac_top_builddir_sub
11535 ac_abs_top_srcdir=$ac_pwd ;;
11536 [\\/]* | ?:[\\/]* ) # Absolute name.
11537 ac_srcdir=$srcdir$ac_dir_suffix;
11538 ac_top_srcdir=$srcdir
11539 ac_abs_top_srcdir=$srcdir ;;
11540 *) # Relative name.
11541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11542 ac_top_srcdir=$ac_top_build_prefix$srcdir
11543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11544 esac
11545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11546
11547
11548 case $ac_mode in
11549 :F)
11550 #
11551 # CONFIG_FILE
11552 #
11553
11554 case $INSTALL in
11555 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11556 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11557 esac
11558 ac_MKDIR_P=$MKDIR_P
11559 case $MKDIR_P in
11560 [\\/$]* | ?:[\\/]* ) ;;
11561 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11562 esac
11563 _ACEOF
11564
11565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11566 # If the template does not know about datarootdir, expand it.
11567 # FIXME: This hack should be removed a few years after 2.60.
11568 ac_datarootdir_hack=; ac_datarootdir_seen=
11569 ac_sed_dataroot='
11570 /datarootdir/ {
11571 p
11572 q
11573 }
11574 /@datadir@/p
11575 /@docdir@/p
11576 /@infodir@/p
11577 /@localedir@/p
11578 /@mandir@/p'
11579 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11580 *datarootdir*) ac_datarootdir_seen=yes;;
11581 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11583 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11584 _ACEOF
11585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11586 ac_datarootdir_hack='
11587 s&@datadir@&$datadir&g
11588 s&@docdir@&$docdir&g
11589 s&@infodir@&$infodir&g
11590 s&@localedir@&$localedir&g
11591 s&@mandir@&$mandir&g
11592 s&\\\${datarootdir}&$datarootdir&g' ;;
11593 esac
11594 _ACEOF
11595
11596 # Neutralize VPATH when `$srcdir' = `.'.
11597 # Shell code in configure.ac might set extrasub.
11598 # FIXME: do we really want to maintain this feature?
11599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11600 ac_sed_extra="$ac_vpsub
11601 $extrasub
11602 _ACEOF
11603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11604 :t
11605 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11606 s|@configure_input@|$ac_sed_conf_input|;t t
11607 s&@top_builddir@&$ac_top_builddir_sub&;t t
11608 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11609 s&@srcdir@&$ac_srcdir&;t t
11610 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11611 s&@top_srcdir@&$ac_top_srcdir&;t t
11612 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11613 s&@builddir@&$ac_builddir&;t t
11614 s&@abs_builddir@&$ac_abs_builddir&;t t
11615 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11616 s&@INSTALL@&$ac_INSTALL&;t t
11617 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11618 $ac_datarootdir_hack
11619 "
11620 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11622
11623 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11624 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11625 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11627 which seems to be undefined. Please make sure it is defined" >&5
11628 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11629 which seems to be undefined. Please make sure it is defined" >&2;}
11630
11631 rm -f "$tmp/stdin"
11632 case $ac_file in
11633 -) cat "$tmp/out" && rm -f "$tmp/out";;
11634 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11635 esac \
11636 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11637 ;;
11638 :H)
11639 #
11640 # CONFIG_HEADER
11641 #
11642 if test x"$ac_file" != x-; then
11643 {
11644 $as_echo "/* $configure_input */" \
11645 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11646 } >"$tmp/config.h" \
11647 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11648 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11650 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11651 else
11652 rm -f "$ac_file"
11653 mv "$tmp/config.h" "$ac_file" \
11654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11655 fi
11656 else
11657 $as_echo "/* $configure_input */" \
11658 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11659 || as_fn_error $? "could not create -" "$LINENO" 5
11660 fi
11661 ;;
11662
11663
11664 esac
11665
11666 done # for ac_tag
11667
11668
11669 as_fn_exit 0
11670 _ACEOF
11671 ac_clean_files=$ac_clean_files_save
11672
11673 test $ac_write_fail = 0 ||
11674 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11675
11676
11677 # configure is writing to config.log, and then calls config.status.
11678 # config.status does its own redirection, appending to config.log.
11679 # Unfortunately, on DOS this fails, as config.log is still kept open
11680 # by configure, so config.status won't be able to write to it; its
11681 # output is simply discarded. So we exec the FD to /dev/null,
11682 # effectively closing config.log, so it can be properly (re)opened and
11683 # appended to by config.status. When coming back to configure, we
11684 # need to make the FD available again.
11685 if test "$no_create" != yes; then
11686 ac_cs_success=:
11687 ac_config_status_args=
11688 test "$silent" = yes &&
11689 ac_config_status_args="$ac_config_status_args --quiet"
11690 exec 5>/dev/null
11691 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11692 exec 5>>config.log
11693 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11694 # would make configure fail if this is the last instruction.
11695 $ac_cs_success || as_fn_exit 1
11696 fi
11697 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11699 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11700 fi
11701
11702
11703 if test x$ODIRECT != xyes; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11705 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
11706 fi
This page took 0.625943 seconds and 6 git commands to generate.