]> sourceware.org Git - lvm2.git/blob - configure
autoreconf
[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 DMEVENTD_PIDFILE
607 WRITE_INSTALL
608 UDEV_SYNC
609 UDEV_RULES
610 UDEV_PC
611 TESTING
612 STATIC_LINK
613 STATICDIR
614 SNAPSHOTS
615 SELINUX_PC
616 SELINUX_LIBS
617 READLINE_LIBS
618 PTHREAD_LIBS
619 POOL
620 PKGCONFIG
621 REPLICATORS
622 OCFDIR
623 OCF
624 MIRRORS
625 LVM_RELEASE_DATE
626 LVM_RELEASE
627 LVM_PATCHLEVEL
628 LVM_MINOR
629 LVM_MAJOR
630 LVM_LIBAPI
631 LVM_VERSION
632 LVM1_FALLBACK
633 LVM1
634 LOCALEDIR
635 LIB_SUFFIX
636 LDDEPS
637 JOBS
638 INTL_PACKAGE
639 INTL
640 HAVE_REALTIME
641 HAVE_LIBDL
642 FSADM
643 DM_LIB_PATCHLEVEL
644 DM_LIB_VERSION
645 DM_IOCTLS
646 DM_DEVICE_UID
647 DM_DEVICE_MODE
648 DM_DEVICE_GID
649 DM_COMPAT
650 DMEVENTD_PATH
651 DMEVENTD
652 DL_LIBS
653 DEVMAPPER
654 DEFAULT_RUN_DIR
655 DEFAULT_LOCK_DIR
656 DEFAULT_DATA_ALIGNMENT
657 DEFAULT_CACHE_SUBDIR
658 DEFAULT_BACKUP_SUBDIR
659 DEFAULT_ARCHIVE_SUBDIR
660 DEFAULT_SYS_DIR
661 DEBUG
662 COPTIMISE_FLAG
663 CONFDIR
664 CMDLIB
665 CLVMD_CMANAGERS
666 CLVMD
667 CLUSTER
668 CLDWHOLEARCHIVE
669 CLDNOWHOLEARCHIVE
670 CLDFLAGS
671 BUILD_DMEVENTD
672 BUILD_CMIRRORD
673 APPLIB
674 MODPROBE_CMD
675 MSGFMT
676 LVM2CMD_LIB
677 LVM2APP_LIB
678 UDEV_LIBS
679 UDEV_CFLAGS
680 VALGRIND
681 RUBY19
682 GENPNG
683 GENHTML
684 LCOV
685 SACKPT_LIBS
686 SACKPT_CFLAGS
687 DLM_LIBS
688 DLM_CFLAGS
689 CPG_LIBS
690 CPG_CFLAGS
691 CONFDB_LIBS
692 CONFDB_CFLAGS
693 SALCK_LIBS
694 SALCK_CFLAGS
695 QUORUM_LIBS
696 QUORUM_CFLAGS
697 COROSYNC_LIBS
698 COROSYNC_CFLAGS
699 CMAN_LIBS
700 CMAN_CFLAGS
701 GULM_LIBS
702 GULM_CFLAGS
703 CCS_LIBS
704 CCS_CFLAGS
705 PKGCONFIGINIT_LIBS
706 PKGCONFIGINIT_CFLAGS
707 PKG_CONFIG_LIBDIR
708 PKG_CONFIG_PATH
709 PKG_CONFIG
710 POW_LIB
711 LIBOBJS
712 ALLOCA
713 CSCOPE_CMD
714 CFLOW_CMD
715 RANLIB
716 MKDIR_P
717 SET_MAKE
718 LN_S
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 EGREP
723 GREP
724 CPP
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
731 CC
732 AWK
733 SED
734 target_os
735 target_vendor
736 target_cpu
737 target
738 host_os
739 host_vendor
740 host_cpu
741 host
742 build_os
743 build_vendor
744 build_cpu
745 build
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_static_link
788 with_user
789 with_group
790 with_device_uid
791 with_device_gid
792 with_device_mode
793 with_device_nodes_on
794 enable_lvm1_fallback
795 with_lvm1
796 with_pool
797 with_cluster
798 with_snapshots
799 with_mirrors
800 with_replicators
801 enable_readline
802 enable_realtime
803 enable_ocf
804 with_ocfdir
805 with_clvmd
806 with_clvmd_pidfile
807 enable_cmirrord
808 with_cmirrord_pidfile
809 enable_debug
810 with_optimisation
811 enable_profiling
812 enable_testing
813 enable_valgrind_pool
814 enable_devmapper
815 enable_udev_sync
816 enable_udev_rules
817 enable_compat
818 enable_units_compat
819 enable_ioctl
820 enable_o_direct
821 enable_applib
822 enable_cmdlib
823 enable_pkgconfig
824 enable_write_install
825 enable_fsadm
826 enable_dmeventd
827 enable_selinux
828 enable_nls
829 with_localedir
830 with_confdir
831 with_staticdir
832 with_usrlibdir
833 with_usrsbindir
834 with_udev_prefix
835 with_udevdir
836 with_dmeventd_pidfile
837 with_dmeventd_path
838 with_default_run_dir
839 with_default_system_dir
840 with_default_archive_subdir
841 with_default_backup_subdir
842 with_default_cache_subdir
843 with_default_locking_dir
844 with_default_data_alignment
845 with_interface
846 '
847 ac_precious_vars='build_alias
848 host_alias
849 target_alias
850 CC
851 CFLAGS
852 LDFLAGS
853 LIBS
854 CPPFLAGS
855 CPP
856 PKG_CONFIG
857 PKG_CONFIG_PATH
858 PKG_CONFIG_LIBDIR
859 PKGCONFIGINIT_CFLAGS
860 PKGCONFIGINIT_LIBS
861 CCS_CFLAGS
862 CCS_LIBS
863 GULM_CFLAGS
864 GULM_LIBS
865 CMAN_CFLAGS
866 CMAN_LIBS
867 COROSYNC_CFLAGS
868 COROSYNC_LIBS
869 QUORUM_CFLAGS
870 QUORUM_LIBS
871 SALCK_CFLAGS
872 SALCK_LIBS
873 CONFDB_CFLAGS
874 CONFDB_LIBS
875 CPG_CFLAGS
876 CPG_LIBS
877 DLM_CFLAGS
878 DLM_LIBS
879 SACKPT_CFLAGS
880 SACKPT_LIBS
881 UDEV_CFLAGS
882 UDEV_LIBS'
883
884
885 # Initialize some variables set by options.
886 ac_init_help=
887 ac_init_version=false
888 ac_unrecognized_opts=
889 ac_unrecognized_sep=
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
892 cache_file=/dev/null
893 exec_prefix=NONE
894 no_create=
895 no_recursion=
896 prefix=NONE
897 program_prefix=NONE
898 program_suffix=NONE
899 program_transform_name=s,x,x,
900 silent=
901 site=
902 srcdir=
903 verbose=
904 x_includes=NONE
905 x_libraries=NONE
906
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir='${exec_prefix}/bin'
914 sbindir='${exec_prefix}/sbin'
915 libexecdir='${exec_prefix}/libexec'
916 datarootdir='${prefix}/share'
917 datadir='${datarootdir}'
918 sysconfdir='${prefix}/etc'
919 sharedstatedir='${prefix}/com'
920 localstatedir='${prefix}/var'
921 includedir='${prefix}/include'
922 oldincludedir='/usr/include'
923 docdir='${datarootdir}/doc/${PACKAGE}'
924 infodir='${datarootdir}/info'
925 htmldir='${docdir}'
926 dvidir='${docdir}'
927 pdfdir='${docdir}'
928 psdir='${docdir}'
929 libdir='${exec_prefix}/lib'
930 localedir='${datarootdir}/locale'
931 mandir='${datarootdir}/man'
932
933 ac_prev=
934 ac_dashdash=
935 for ac_option
936 do
937 # If the previous option needs an argument, assign it.
938 if test -n "$ac_prev"; then
939 eval $ac_prev=\$ac_option
940 ac_prev=
941 continue
942 fi
943
944 case $ac_option in
945 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946 *) ac_optarg=yes ;;
947 esac
948
949 # Accept the important Cygnus configure options, so we can diagnose typos.
950
951 case $ac_dashdash$ac_option in
952 --)
953 ac_dashdash=yes ;;
954
955 -bindir | --bindir | --bindi | --bind | --bin | --bi)
956 ac_prev=bindir ;;
957 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
958 bindir=$ac_optarg ;;
959
960 -build | --build | --buil | --bui | --bu)
961 ac_prev=build_alias ;;
962 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963 build_alias=$ac_optarg ;;
964
965 -cache-file | --cache-file | --cache-fil | --cache-fi \
966 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967 ac_prev=cache_file ;;
968 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970 cache_file=$ac_optarg ;;
971
972 --config-cache | -C)
973 cache_file=config.cache ;;
974
975 -datadir | --datadir | --datadi | --datad)
976 ac_prev=datadir ;;
977 -datadir=* | --datadir=* | --datadi=* | --datad=*)
978 datadir=$ac_optarg ;;
979
980 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981 | --dataroo | --dataro | --datar)
982 ac_prev=datarootdir ;;
983 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985 datarootdir=$ac_optarg ;;
986
987 -disable-* | --disable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error $? "invalid feature name: $ac_useropt"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996 "enable_$ac_useropt"
997 "*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=no ;;
1002
1003 -docdir | --docdir | --docdi | --doc | --do)
1004 ac_prev=docdir ;;
1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006 docdir=$ac_optarg ;;
1007
1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009 ac_prev=dvidir ;;
1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011 dvidir=$ac_optarg ;;
1012
1013 -enable-* | --enable-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 as_fn_error $? "invalid feature name: $ac_useropt"
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1021 *"
1022 "enable_$ac_useropt"
1023 "*) ;;
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1026 esac
1027 eval enable_$ac_useropt=\$ac_optarg ;;
1028
1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031 | --exec | --exe | --ex)
1032 ac_prev=exec_prefix ;;
1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035 | --exec=* | --exe=* | --ex=*)
1036 exec_prefix=$ac_optarg ;;
1037
1038 -gas | --gas | --ga | --g)
1039 # Obsolete; use --with-gas.
1040 with_gas=yes ;;
1041
1042 -help | --help | --hel | --he | -h)
1043 ac_init_help=long ;;
1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045 ac_init_help=recursive ;;
1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047 ac_init_help=short ;;
1048
1049 -host | --host | --hos | --ho)
1050 ac_prev=host_alias ;;
1051 -host=* | --host=* | --hos=* | --ho=*)
1052 host_alias=$ac_optarg ;;
1053
1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055 ac_prev=htmldir ;;
1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057 | --ht=*)
1058 htmldir=$ac_optarg ;;
1059
1060 -includedir | --includedir | --includedi | --included | --include \
1061 | --includ | --inclu | --incl | --inc)
1062 ac_prev=includedir ;;
1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064 | --includ=* | --inclu=* | --incl=* | --inc=*)
1065 includedir=$ac_optarg ;;
1066
1067 -infodir | --infodir | --infodi | --infod | --info | --inf)
1068 ac_prev=infodir ;;
1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070 infodir=$ac_optarg ;;
1071
1072 -libdir | --libdir | --libdi | --libd)
1073 ac_prev=libdir ;;
1074 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075 libdir=$ac_optarg ;;
1076
1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078 | --libexe | --libex | --libe)
1079 ac_prev=libexecdir ;;
1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081 | --libexe=* | --libex=* | --libe=*)
1082 libexecdir=$ac_optarg ;;
1083
1084 -localedir | --localedir | --localedi | --localed | --locale)
1085 ac_prev=localedir ;;
1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087 localedir=$ac_optarg ;;
1088
1089 -localstatedir | --localstatedir | --localstatedi | --localstated \
1090 | --localstate | --localstat | --localsta | --localst | --locals)
1091 ac_prev=localstatedir ;;
1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094 localstatedir=$ac_optarg ;;
1095
1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097 ac_prev=mandir ;;
1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099 mandir=$ac_optarg ;;
1100
1101 -nfp | --nfp | --nf)
1102 # Obsolete; use --without-fp.
1103 with_fp=no ;;
1104
1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106 | --no-cr | --no-c | -n)
1107 no_create=yes ;;
1108
1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 no_recursion=yes ;;
1112
1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115 | --oldin | --oldi | --old | --ol | --o)
1116 ac_prev=oldincludedir ;;
1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120 oldincludedir=$ac_optarg ;;
1121
1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123 ac_prev=prefix ;;
1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125 prefix=$ac_optarg ;;
1126
1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128 | --program-pre | --program-pr | --program-p)
1129 ac_prev=program_prefix ;;
1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132 program_prefix=$ac_optarg ;;
1133
1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135 | --program-suf | --program-su | --program-s)
1136 ac_prev=program_suffix ;;
1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139 program_suffix=$ac_optarg ;;
1140
1141 -program-transform-name | --program-transform-name \
1142 | --program-transform-nam | --program-transform-na \
1143 | --program-transform-n | --program-transform- \
1144 | --program-transform | --program-transfor \
1145 | --program-transfo | --program-transf \
1146 | --program-trans | --program-tran \
1147 | --progr-tra | --program-tr | --program-t)
1148 ac_prev=program_transform_name ;;
1149 -program-transform-name=* | --program-transform-name=* \
1150 | --program-transform-nam=* | --program-transform-na=* \
1151 | --program-transform-n=* | --program-transform-=* \
1152 | --program-transform=* | --program-transfor=* \
1153 | --program-transfo=* | --program-transf=* \
1154 | --program-trans=* | --program-tran=* \
1155 | --progr-tra=* | --program-tr=* | --program-t=*)
1156 program_transform_name=$ac_optarg ;;
1157
1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159 ac_prev=pdfdir ;;
1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161 pdfdir=$ac_optarg ;;
1162
1163 -psdir | --psdir | --psdi | --psd | --ps)
1164 ac_prev=psdir ;;
1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 psdir=$ac_optarg ;;
1167
1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169 | -silent | --silent | --silen | --sile | --sil)
1170 silent=yes ;;
1171
1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173 ac_prev=sbindir ;;
1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175 | --sbi=* | --sb=*)
1176 sbindir=$ac_optarg ;;
1177
1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180 | --sharedst | --shareds | --shared | --share | --shar \
1181 | --sha | --sh)
1182 ac_prev=sharedstatedir ;;
1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186 | --sha=* | --sh=*)
1187 sharedstatedir=$ac_optarg ;;
1188
1189 -site | --site | --sit)
1190 ac_prev=site ;;
1191 -site=* | --site=* | --sit=*)
1192 site=$ac_optarg ;;
1193
1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195 ac_prev=srcdir ;;
1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197 srcdir=$ac_optarg ;;
1198
1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200 | --syscon | --sysco | --sysc | --sys | --sy)
1201 ac_prev=sysconfdir ;;
1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204 sysconfdir=$ac_optarg ;;
1205
1206 -target | --target | --targe | --targ | --tar | --ta | --t)
1207 ac_prev=target_alias ;;
1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209 target_alias=$ac_optarg ;;
1210
1211 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 verbose=yes ;;
1213
1214 -version | --version | --versio | --versi | --vers | -V)
1215 ac_init_version=: ;;
1216
1217 -with-* | --with-*)
1218 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221 as_fn_error $? "invalid package name: $ac_useropt"
1222 ac_useropt_orig=$ac_useropt
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1225 *"
1226 "with_$ac_useropt"
1227 "*) ;;
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229 ac_unrecognized_sep=', ';;
1230 esac
1231 eval with_$ac_useropt=\$ac_optarg ;;
1232
1233 -without-* | --without-*)
1234 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 as_fn_error $? "invalid package name: $ac_useropt"
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1241 *"
1242 "with_$ac_useropt"
1243 "*) ;;
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
1246 esac
1247 eval with_$ac_useropt=no ;;
1248
1249 --x)
1250 # Obsolete; use --with-x.
1251 with_x=yes ;;
1252
1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254 | --x-incl | --x-inc | --x-in | --x-i)
1255 ac_prev=x_includes ;;
1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258 x_includes=$ac_optarg ;;
1259
1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262 ac_prev=x_libraries ;;
1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265 x_libraries=$ac_optarg ;;
1266
1267 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1268 Try \`$0 --help' for more information"
1269 ;;
1270
1271 *=*)
1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 case $ac_envvar in #(
1275 '' | [0-9]* | *[!_$as_cr_alnum]* )
1276 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1277 esac
1278 eval $ac_envvar=\$ac_optarg
1279 export $ac_envvar ;;
1280
1281 *)
1282 # FIXME: should be removed in autoconf 3.0.
1283 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287 ;;
1288
1289 esac
1290 done
1291
1292 if test -n "$ac_prev"; then
1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294 as_fn_error $? "missing argument to $ac_option"
1295 fi
1296
1297 if test -n "$ac_unrecognized_opts"; then
1298 case $enable_option_checking in
1299 no) ;;
1300 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1301 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302 esac
1303 fi
1304
1305 # Check all directory arguments for consistency.
1306 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307 datadir sysconfdir sharedstatedir localstatedir includedir \
1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309 libdir localedir mandir
1310 do
1311 eval ac_val=\$$ac_var
1312 # Remove trailing slashes.
1313 case $ac_val in
1314 */ )
1315 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316 eval $ac_var=\$ac_val;;
1317 esac
1318 # Be sure to have absolute directory names.
1319 case $ac_val in
1320 [\\/$]* | ?:[\\/]* ) continue;;
1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322 esac
1323 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1324 done
1325
1326 # There might be people who depend on the old broken behavior: `$host'
1327 # used to hold the argument of --host etc.
1328 # FIXME: To remove some day.
1329 build=$build_alias
1330 host=$host_alias
1331 target=$target_alias
1332
1333 # FIXME: To remove some day.
1334 if test "x$host_alias" != x; then
1335 if test "x$build_alias" = x; then
1336 cross_compiling=maybe
1337 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1338 If a cross compiler is detected then cross compile mode will be used" >&2
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1341 fi
1342 fi
1343
1344 ac_tool_prefix=
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347 test "$silent" = yes && exec 6>/dev/null
1348
1349
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353 as_fn_error $? "working directory cannot be determined"
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 as_fn_error $? "pwd does not report name of working directory"
1356
1357
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$as_myself" ||
1363 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367 $as_echo X"$as_myself" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\).*/{
1381 s//\1/
1382 q
1383 }
1384 s/.*/./; q'`
1385 srcdir=$ac_confdir
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 srcdir=..
1388 fi
1389 else
1390 ac_srcdir_defaulted=no
1391 fi
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1395 fi
1396 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 ac_abs_confdir=`(
1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1399 pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403 fi
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
1416
1417 #
1418 # Report the --help message.
1419 #
1420 if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424 \`configure' configures this package to adapt to many kinds of systems.
1425
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431 Defaults for the options are specified in brackets.
1432
1433 Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking ...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443
1444 Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 [PREFIX]
1449
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1454
1455 For better control, use the options below.
1456
1457 Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1477 _ACEOF
1478
1479 cat <<\_ACEOF
1480
1481 System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1484 --target=TARGET configure for building compilers for TARGET [HOST]
1485 _ACEOF
1486 fi
1487
1488 if test -n "$ac_init_help"; then
1489
1490 cat <<\_ACEOF
1491
1492 Optional Features:
1493 --disable-option-checking ignore unrecognized --enable/--with options
1494 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1495 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1496 --enable-static_link use this to link the tools to their libraries
1497 statically (default is dynamic linking
1498 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
1499 device-mapper is missing from the kernel
1500 --disable-readline disable readline support
1501 --enable-realtime enable realtime clock support
1502 --enable-ocf enable Open Cluster Framework (OCF) compliant
1503 resource agents
1504 --enable-cmirrord enable the cluster mirror log daemon
1505 --enable-debug enable debugging
1506 --enable-profiling gather gcov profiling data
1507 --enable-testing enable testing targets in the makefile
1508 --enable-valgrind-pool enable valgrind awareness of pools
1509 --disable-devmapper disable LVM2 device-mapper interaction
1510 --enable-udev_sync enable synchronisation with udev processing
1511 --enable-udev_rules install rule files needed for udev synchronisation
1512 --enable-compat enable support for old device-mapper versions
1513 --enable-units-compat enable output compatibility with old versions that
1514 that do not use KiB-style unit suffixes
1515 --disable-driver disable calls to device-mapper in the kernel
1516 --disable-o_direct disable O_DIRECT
1517 --enable-applib build application library
1518 --enable-cmdlib build shared command library
1519 --enable-pkgconfig install pkgconfig support
1520 --enable-write_install install user writable files
1521 --disable-fsadm disable fsadm
1522 --enable-dmeventd enable the device-mapper event daemon
1523 --disable-selinux disable selinux support
1524 --enable-nls enable Native Language Support
1525
1526 Optional Packages:
1527 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1528 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1529 --with-user=USER set the owner of installed files [[USER=]]
1530 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1531 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1532 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1533 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
1534 --with-device-nodes-on=ON
1535 create nodes on resume or create [[ON=resume]]
1536 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1537 [[TYPE=internal]]
1538 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1539 [[TYPE=internal]]
1540 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1541 [[TYPE=internal]]
1542 --with-snapshots=TYPE snapshot support: internal/shared/none
1543 [[TYPE=internal]]
1544 --with-mirrors=TYPE mirror support: internal/shared/none
1545 [[TYPE=internal]]
1546 --with-replicators=TYPE replicator support: internal/shared/none
1547 [[TYPE=none]]
1548 --with-ocfdir=DIR install OCF files in DIR
1549 [[PREFIX/lib/ocf/resource.d/lvm2]]
1550 --with-clvmd=TYPE build cluster LVM Daemon
1551 The following cluster manager combinations are valid:
1552 * cman,gulm (RHEL4 or equivalent)
1553 * cman (RHEL5 or equivalent)
1554 * cman,corosync,openais (or selection of them)
1555 * singlenode (localhost only)
1556 * all (autodetect)
1557 * none (disable build)
1558 [TYPE=none]
1559 --with-clvmd-pidfile=PATH
1560 clvmd pidfile [[/var/run/clvmd.pid]]
1561 --with-cmirrord-pidfile=PATH
1562 cmirrord pidfile [[/var/run/cmirrord.pid]]
1563 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1564 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1565 --with-confdir=DIR configuration files in DIR [[/etc]]
1566 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1567 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1568 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
1569 --with-udev-prefix=UPREFIX
1570 install udev rule files in UPREFIX [[EPREFIX]]
1571 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
1572 --with-dmeventd-pidfile=PATH
1573 dmeventd pidfile [[/var/run/dmeventd.pid]]
1574 --with-dmeventd-path=PATH
1575 dmeventd path [[EPREFIX/sbin/dmeventd]]
1576 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
1577 --with-default-system-dir=DIR
1578 default LVM system directory [[/etc/lvm]]
1579 --with-default-archive-subdir=SUBDIR
1580 default metadata archive subdir [[archive]]
1581 --with-default-backup-subdir=SUBDIR
1582 default metadata backup subdir [[backup]]
1583 --with-default-cache-subdir=SUBDIR
1584 default metadata cache subdir [[cache]]
1585 --with-default-locking-dir=DIR
1586 default locking directory [[/var/lock/lvm]]
1587 --with-default-data-alignment=NUM
1588 set the default data alignment in MiB [[1]]
1589 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
1590
1591 Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
1596 LIBS libraries to pass to the linker, e.g. -l<library>
1597 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598 you have headers in a nonstandard directory <include dir>
1599 CPP C preprocessor
1600 PKG_CONFIG path to pkg-config utility
1601 PKG_CONFIG_PATH
1602 directories to add to pkg-config's search path
1603 PKG_CONFIG_LIBDIR
1604 path overriding pkg-config's built-in search path
1605 PKGCONFIGINIT_CFLAGS
1606 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1607 PKGCONFIGINIT_LIBS
1608 linker flags for PKGCONFIGINIT, overriding pkg-config
1609 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1610 CCS_LIBS linker flags for CCS, overriding pkg-config
1611 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1612 GULM_LIBS linker flags for GULM, overriding pkg-config
1613 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1614 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1615 COROSYNC_CFLAGS
1616 C compiler flags for COROSYNC, overriding pkg-config
1617 COROSYNC_LIBS
1618 linker flags for COROSYNC, overriding pkg-config
1619 QUORUM_CFLAGS
1620 C compiler flags for QUORUM, overriding pkg-config
1621 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1622 SALCK_CFLAGS
1623 C compiler flags for SALCK, overriding pkg-config
1624 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1625 CONFDB_CFLAGS
1626 C compiler flags for CONFDB, overriding pkg-config
1627 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1628 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1629 CPG_LIBS linker flags for CPG, overriding pkg-config
1630 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1631 DLM_LIBS linker flags for DLM, overriding pkg-config
1632 SACKPT_CFLAGS
1633 C compiler flags for SACKPT, overriding pkg-config
1634 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1635 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1636 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1637
1638 Use these variables to override the choices made by `configure' or to help
1639 it to find libraries and programs with nonstandard names/locations.
1640
1641 Report bugs to the package provider.
1642 _ACEOF
1643 ac_status=$?
1644 fi
1645
1646 if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1649 test -d "$ac_dir" ||
1650 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1651 continue
1652 ac_builddir=.
1653
1654 case "$ac_dir" in
1655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *)
1657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1658 # A ".." for each directory in $ac_dir_suffix.
1659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 esac ;;
1664 esac
1665 ac_abs_top_builddir=$ac_pwd
1666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667 # for backward compatibility:
1668 ac_top_builddir=$ac_top_build_prefix
1669
1670 case $srcdir in
1671 .) # We are building in place.
1672 ac_srcdir=.
1673 ac_top_srcdir=$ac_top_builddir_sub
1674 ac_abs_top_srcdir=$ac_pwd ;;
1675 [\\/]* | ?:[\\/]* ) # Absolute name.
1676 ac_srcdir=$srcdir$ac_dir_suffix;
1677 ac_top_srcdir=$srcdir
1678 ac_abs_top_srcdir=$srcdir ;;
1679 *) # Relative name.
1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1683 esac
1684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685
1686 cd "$ac_dir" || { ac_status=$?; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1689 echo &&
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1692 echo &&
1693 $SHELL "$ac_srcdir/configure" --help=recursive
1694 else
1695 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1696 fi || ac_status=$?
1697 cd "$ac_pwd" || { ac_status=$?; break; }
1698 done
1699 fi
1700
1701 test -n "$ac_init_help" && exit $ac_status
1702 if $ac_init_version; then
1703 cat <<\_ACEOF
1704 configure
1705 generated by GNU Autoconf 2.66
1706
1707 Copyright (C) 2010 Free Software Foundation, Inc.
1708 This configure script is free software; the Free Software Foundation
1709 gives unlimited permission to copy, distribute and modify it.
1710 _ACEOF
1711 exit
1712 fi
1713
1714 ## ------------------------ ##
1715 ## Autoconf initialization. ##
1716 ## ------------------------ ##
1717
1718 # ac_fn_c_try_compile LINENO
1719 # --------------------------
1720 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_compile ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext
1725 if { { ac_try="$ac_compile"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_compile") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest.$ac_objext; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750 fi
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_compile
1755
1756 # ac_fn_c_try_cpp LINENO
1757 # ----------------------
1758 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_cpp ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_cpp conftest.$ac_ext"
1763 case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1770 ac_status=$?
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1775 fi
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } >/dev/null && {
1778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1779 test ! -s conftest.err
1780 }; then :
1781 ac_retval=0
1782 else
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1785
1786 ac_retval=1
1787 fi
1788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1789 as_fn_set_status $ac_retval
1790
1791 } # ac_fn_c_try_cpp
1792
1793 # ac_fn_c_try_link LINENO
1794 # -----------------------
1795 # Try to link conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_link ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext conftest$ac_exeext
1800 if { { ac_try="$ac_link"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_link") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest$ac_exeext && {
1819 test "$cross_compiling" = yes ||
1820 $as_test_x conftest$ac_exeext
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 ac_retval=1
1828 fi
1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831 # interfere with the next link command; also delete a directory that is
1832 # left behind by Apple's compiler. We do this before executing the actions.
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835 as_fn_set_status $ac_retval
1836
1837 } # ac_fn_c_try_link
1838
1839 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1840 # -------------------------------------------------------
1841 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1842 # the include files in INCLUDES and setting the cache variable VAR
1843 # accordingly.
1844 ac_fn_c_check_header_mongrel ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if eval "test \"\${$3+set}\"" = set; then :
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if eval "test \"\${$3+set}\"" = set; then :
1851 $as_echo_n "(cached) " >&6
1852 fi
1853 eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 else
1857 # Is the header compilable?
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1859 $as_echo_n "checking $2 usability... " >&6; }
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 $4
1863 #include <$2>
1864 _ACEOF
1865 if ac_fn_c_try_compile "$LINENO"; then :
1866 ac_header_compiler=yes
1867 else
1868 ac_header_compiler=no
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1872 $as_echo "$ac_header_compiler" >&6; }
1873
1874 # Is the header present?
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1876 $as_echo_n "checking $2 presence... " >&6; }
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 #include <$2>
1880 _ACEOF
1881 if ac_fn_c_try_cpp "$LINENO"; then :
1882 ac_header_preproc=yes
1883 else
1884 ac_header_preproc=no
1885 fi
1886 rm -f conftest.err conftest.$ac_ext
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1888 $as_echo "$ac_header_preproc" >&6; }
1889
1890 # So? What about this header?
1891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1892 yes:no: )
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1894 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1896 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1897 ;;
1898 no:yes:* )
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1900 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1902 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1904 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1906 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1908 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1909 ;;
1910 esac
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval "test \"\${$3+set}\"" = set; then :
1914 $as_echo_n "(cached) " >&6
1915 else
1916 eval "$3=\$ac_header_compiler"
1917 fi
1918 eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 fi
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923
1924 } # ac_fn_c_check_header_mongrel
1925
1926 # ac_fn_c_try_run LINENO
1927 # ----------------------
1928 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1929 # that executables *can* be run.
1930 ac_fn_c_try_run ()
1931 {
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if { { ac_try="$ac_link"
1934 case "(($ac_try" in
1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936 *) ac_try_echo=$ac_try;;
1937 esac
1938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939 $as_echo "$ac_try_echo"; } >&5
1940 (eval "$ac_link") 2>&5
1941 ac_status=$?
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1944 { { case "(($ac_try" in
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1947 esac
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_try") 2>&5
1951 ac_status=$?
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; }; }; then :
1954 ac_retval=0
1955 else
1956 $as_echo "$as_me: program exited with status $ac_status" >&5
1957 $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1959
1960 ac_retval=$ac_status
1961 fi
1962 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964 as_fn_set_status $ac_retval
1965
1966 } # ac_fn_c_try_run
1967
1968 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1969 # -------------------------------------------------------
1970 # Tests whether HEADER exists and can be compiled using the include files in
1971 # INCLUDES, setting the cache variable VAR accordingly.
1972 ac_fn_c_check_header_compile ()
1973 {
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval "test \"\${$3+set}\"" = set; then :
1978 $as_echo_n "(cached) " >&6
1979 else
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1982 $4
1983 #include <$2>
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986 eval "$3=yes"
1987 else
1988 eval "$3=no"
1989 fi
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 fi
1992 eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996
1997 } # ac_fn_c_check_header_compile
1998
1999 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2000 # ----------------------------------------------------
2001 # Tries to find if the field MEMBER exists in type AGGR, after including
2002 # INCLUDES, setting cache variable VAR accordingly.
2003 ac_fn_c_check_member ()
2004 {
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2007 $as_echo_n "checking for $2.$3... " >&6; }
2008 if eval "test \"\${$4+set}\"" = set; then :
2009 $as_echo_n "(cached) " >&6
2010 else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2013 $5
2014 int
2015 main ()
2016 {
2017 static $2 ac_aggr;
2018 if (ac_aggr.$3)
2019 return 0;
2020 ;
2021 return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$4=yes"
2026 else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 $5
2030 int
2031 main ()
2032 {
2033 static $2 ac_aggr;
2034 if (sizeof ac_aggr.$3)
2035 return 0;
2036 ;
2037 return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041 eval "$4=yes"
2042 else
2043 eval "$4=no"
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 fi
2049 eval ac_res=\$$4
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053
2054 } # ac_fn_c_check_member
2055
2056 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2057 # -------------------------------------------
2058 # Tests whether TYPE exists after having included INCLUDES, setting cache
2059 # variable VAR accordingly.
2060 ac_fn_c_check_type ()
2061 {
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval "test \"\${$3+set}\"" = set; then :
2066 $as_echo_n "(cached) " >&6
2067 else
2068 eval "$3=no"
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 $4
2072 int
2073 main ()
2074 {
2075 if (sizeof ($2))
2076 return 0;
2077 ;
2078 return 0;
2079 }
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2084 $4
2085 int
2086 main ()
2087 {
2088 if (sizeof (($2)))
2089 return 0;
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095
2096 else
2097 eval "$3=yes"
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 fi
2103 eval ac_res=\$$3
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2106 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107
2108 } # ac_fn_c_check_type
2109
2110 # ac_fn_c_find_intX_t LINENO BITS VAR
2111 # -----------------------------------
2112 # Finds a signed integer type with width BITS, setting cache variable VAR
2113 # accordingly.
2114 ac_fn_c_find_intX_t ()
2115 {
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2118 $as_echo_n "checking for int$2_t... " >&6; }
2119 if eval "test \"\${$3+set}\"" = set; then :
2120 $as_echo_n "(cached) " >&6
2121 else
2122 eval "$3=no"
2123 # Order is important - never check a type that is potentially smaller
2124 # than half of the expected target width.
2125 for ac_type in int$2_t 'int' 'long int' \
2126 'long long int' 'short int' 'signed char'; do
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2129 $ac_includes_default
2130 enum { N = $2 / 2 - 1 };
2131 int
2132 main ()
2133 {
2134 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2135 test_array [0] = 0
2136
2137 ;
2138 return 0;
2139 }
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2144 $ac_includes_default
2145 enum { N = $2 / 2 - 1 };
2146 int
2147 main ()
2148 {
2149 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2150 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2151 test_array [0] = 0
2152
2153 ;
2154 return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158
2159 else
2160 case $ac_type in #(
2161 int$2_t) :
2162 eval "$3=yes" ;; #(
2163 *) :
2164 eval "$3=\$ac_type" ;;
2165 esac
2166 fi
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 fi
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 if eval test \"x\$"$3"\" = x"no"; then :
2171
2172 else
2173 break
2174 fi
2175 done
2176 fi
2177 eval ac_res=\$$3
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2181
2182 } # ac_fn_c_find_intX_t
2183
2184 # ac_fn_c_find_uintX_t LINENO BITS VAR
2185 # ------------------------------------
2186 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2187 # accordingly.
2188 ac_fn_c_find_uintX_t ()
2189 {
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2192 $as_echo_n "checking for uint$2_t... " >&6; }
2193 if eval "test \"\${$3+set}\"" = set; then :
2194 $as_echo_n "(cached) " >&6
2195 else
2196 eval "$3=no"
2197 # Order is important - never check a type that is potentially smaller
2198 # than half of the expected target width.
2199 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2200 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2203 $ac_includes_default
2204 int
2205 main ()
2206 {
2207 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2208 test_array [0] = 0
2209
2210 ;
2211 return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215 case $ac_type in #(
2216 uint$2_t) :
2217 eval "$3=yes" ;; #(
2218 *) :
2219 eval "$3=\$ac_type" ;;
2220 esac
2221 fi
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 if eval test \"x\$"$3"\" = x"no"; then :
2224
2225 else
2226 break
2227 fi
2228 done
2229 fi
2230 eval ac_res=\$$3
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2234
2235 } # ac_fn_c_find_uintX_t
2236
2237 # ac_fn_c_check_func LINENO FUNC VAR
2238 # ----------------------------------
2239 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2240 ac_fn_c_check_func ()
2241 {
2242 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2244 $as_echo_n "checking for $2... " >&6; }
2245 if eval "test \"\${$3+set}\"" = set; then :
2246 $as_echo_n "(cached) " >&6
2247 else
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2250 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2252 #define $2 innocuous_$2
2253
2254 /* System header to define __stub macros and hopefully few prototypes,
2255 which can conflict with char $2 (); below.
2256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2257 <limits.h> exists even on freestanding compilers. */
2258
2259 #ifdef __STDC__
2260 # include <limits.h>
2261 #else
2262 # include <assert.h>
2263 #endif
2264
2265 #undef $2
2266
2267 /* Override any GCC internal prototype to avoid an error.
2268 Use char because int might match the return type of a GCC
2269 builtin and then its argument prototype would still apply. */
2270 #ifdef __cplusplus
2271 extern "C"
2272 #endif
2273 char $2 ();
2274 /* The GNU C library defines this for functions which it implements
2275 to always fail with ENOSYS. Some functions are actually named
2276 something starting with __ and the normal name is an alias. */
2277 #if defined __stub_$2 || defined __stub___$2
2278 choke me
2279 #endif
2280
2281 int
2282 main ()
2283 {
2284 return $2 ();
2285 ;
2286 return 0;
2287 }
2288 _ACEOF
2289 if ac_fn_c_try_link "$LINENO"; then :
2290 eval "$3=yes"
2291 else
2292 eval "$3=no"
2293 fi
2294 rm -f core conftest.err conftest.$ac_objext \
2295 conftest$ac_exeext conftest.$ac_ext
2296 fi
2297 eval ac_res=\$$3
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2301
2302 } # ac_fn_c_check_func
2303 cat >config.log <<_ACEOF
2304 This file contains any messages produced by compilers while
2305 running configure, to aid debugging if configure makes a mistake.
2306
2307 It was created by $as_me, which was
2308 generated by GNU Autoconf 2.66. Invocation command line was
2309
2310 $ $0 $@
2311
2312 _ACEOF
2313 exec 5>>config.log
2314 {
2315 cat <<_ASUNAME
2316 ## --------- ##
2317 ## Platform. ##
2318 ## --------- ##
2319
2320 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2321 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2322 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2323 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2324 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2325
2326 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2327 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2328
2329 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2330 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2331 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2332 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2333 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2334 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2335 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2336
2337 _ASUNAME
2338
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 $as_echo "PATH: $as_dir"
2345 done
2346 IFS=$as_save_IFS
2347
2348 } >&5
2349
2350 cat >&5 <<_ACEOF
2351
2352
2353 ## ----------- ##
2354 ## Core tests. ##
2355 ## ----------- ##
2356
2357 _ACEOF
2358
2359
2360 # Keep a trace of the command line.
2361 # Strip out --no-create and --no-recursion so they do not pile up.
2362 # Strip out --silent because we don't want to record it for future runs.
2363 # Also quote any args containing shell meta-characters.
2364 # Make two passes to allow for proper duplicate-argument suppression.
2365 ac_configure_args=
2366 ac_configure_args0=
2367 ac_configure_args1=
2368 ac_must_keep_next=false
2369 for ac_pass in 1 2
2370 do
2371 for ac_arg
2372 do
2373 case $ac_arg in
2374 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2376 | -silent | --silent | --silen | --sile | --sil)
2377 continue ;;
2378 *\'*)
2379 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2380 esac
2381 case $ac_pass in
2382 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2383 2)
2384 as_fn_append ac_configure_args1 " '$ac_arg'"
2385 if test $ac_must_keep_next = true; then
2386 ac_must_keep_next=false # Got value, back to normal.
2387 else
2388 case $ac_arg in
2389 *=* | --config-cache | -C | -disable-* | --disable-* \
2390 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2391 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2392 | -with-* | --with-* | -without-* | --without-* | --x)
2393 case "$ac_configure_args0 " in
2394 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2395 esac
2396 ;;
2397 -* ) ac_must_keep_next=true ;;
2398 esac
2399 fi
2400 as_fn_append ac_configure_args " '$ac_arg'"
2401 ;;
2402 esac
2403 done
2404 done
2405 { ac_configure_args0=; unset ac_configure_args0;}
2406 { ac_configure_args1=; unset ac_configure_args1;}
2407
2408 # When interrupted or exit'd, cleanup temporary files, and complete
2409 # config.log. We remove comments because anyway the quotes in there
2410 # would cause problems or look ugly.
2411 # WARNING: Use '\'' to represent an apostrophe within the trap.
2412 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2413 trap 'exit_status=$?
2414 # Save into config.log some information that might help in debugging.
2415 {
2416 echo
2417
2418 $as_echo "## ---------------- ##
2419 ## Cache variables. ##
2420 ## ---------------- ##"
2421 echo
2422 # The following way of writing the cache mishandles newlines in values,
2423 (
2424 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2425 eval ac_val=\$$ac_var
2426 case $ac_val in #(
2427 *${as_nl}*)
2428 case $ac_var in #(
2429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2430 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2431 esac
2432 case $ac_var in #(
2433 _ | IFS | as_nl) ;; #(
2434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2435 *) { eval $ac_var=; unset $ac_var;} ;;
2436 esac ;;
2437 esac
2438 done
2439 (set) 2>&1 |
2440 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2441 *${as_nl}ac_space=\ *)
2442 sed -n \
2443 "s/'\''/'\''\\\\'\'''\''/g;
2444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2445 ;; #(
2446 *)
2447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2448 ;;
2449 esac |
2450 sort
2451 )
2452 echo
2453
2454 $as_echo "## ----------------- ##
2455 ## Output variables. ##
2456 ## ----------------- ##"
2457 echo
2458 for ac_var in $ac_subst_vars
2459 do
2460 eval ac_val=\$$ac_var
2461 case $ac_val in
2462 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2463 esac
2464 $as_echo "$ac_var='\''$ac_val'\''"
2465 done | sort
2466 echo
2467
2468 if test -n "$ac_subst_files"; then
2469 $as_echo "## ------------------- ##
2470 ## File substitutions. ##
2471 ## ------------------- ##"
2472 echo
2473 for ac_var in $ac_subst_files
2474 do
2475 eval ac_val=\$$ac_var
2476 case $ac_val in
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478 esac
2479 $as_echo "$ac_var='\''$ac_val'\''"
2480 done | sort
2481 echo
2482 fi
2483
2484 if test -s confdefs.h; then
2485 $as_echo "## ----------- ##
2486 ## confdefs.h. ##
2487 ## ----------- ##"
2488 echo
2489 cat confdefs.h
2490 echo
2491 fi
2492 test "$ac_signal" != 0 &&
2493 $as_echo "$as_me: caught signal $ac_signal"
2494 $as_echo "$as_me: exit $exit_status"
2495 } >&5
2496 rm -f core *.core core.conftest.* &&
2497 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2498 exit $exit_status
2499 ' 0
2500 for ac_signal in 1 2 13 15; do
2501 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2502 done
2503 ac_signal=0
2504
2505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2506 rm -f -r conftest* confdefs.h
2507
2508 $as_echo "/* confdefs.h */" > confdefs.h
2509
2510 # Predefined preprocessor variables.
2511
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_NAME "$PACKAGE_NAME"
2514 _ACEOF
2515
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2518 _ACEOF
2519
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2522 _ACEOF
2523
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_STRING "$PACKAGE_STRING"
2526 _ACEOF
2527
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2530 _ACEOF
2531
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_URL "$PACKAGE_URL"
2534 _ACEOF
2535
2536
2537 # Let the site file select an alternate cache file if it wants to.
2538 # Prefer an explicitly selected file to automatically selected ones.
2539 ac_site_file1=NONE
2540 ac_site_file2=NONE
2541 if test -n "$CONFIG_SITE"; then
2542 # We do not want a PATH search for config.site.
2543 case $CONFIG_SITE in #((
2544 -*) ac_site_file1=./$CONFIG_SITE;;
2545 */*) ac_site_file1=$CONFIG_SITE;;
2546 *) ac_site_file1=./$CONFIG_SITE;;
2547 esac
2548 elif test "x$prefix" != xNONE; then
2549 ac_site_file1=$prefix/share/config.site
2550 ac_site_file2=$prefix/etc/config.site
2551 else
2552 ac_site_file1=$ac_default_prefix/share/config.site
2553 ac_site_file2=$ac_default_prefix/etc/config.site
2554 fi
2555 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2556 do
2557 test "x$ac_site_file" = xNONE && continue
2558 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2560 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2561 sed 's/^/| /' "$ac_site_file" >&5
2562 . "$ac_site_file" \
2563 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565 as_fn_error $? "failed to load site script $ac_site_file
2566 See \`config.log' for more details" "$LINENO" 5; }
2567 fi
2568 done
2569
2570 if test -r "$cache_file"; then
2571 # Some versions of bash will fail to source /dev/null (special files
2572 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2573 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2575 $as_echo "$as_me: loading cache $cache_file" >&6;}
2576 case $cache_file in
2577 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2578 *) . "./$cache_file";;
2579 esac
2580 fi
2581 else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2583 $as_echo "$as_me: creating cache $cache_file" >&6;}
2584 >$cache_file
2585 fi
2586
2587 as_fn_append ac_header_list " stdlib.h"
2588 as_fn_append ac_header_list " unistd.h"
2589 as_fn_append ac_header_list " sys/param.h"
2590 # Check that the precious variables saved in the cache have kept the same
2591 # value.
2592 ac_cache_corrupted=false
2593 for ac_var in $ac_precious_vars; do
2594 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2595 eval ac_new_set=\$ac_env_${ac_var}_set
2596 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2597 eval ac_new_val=\$ac_env_${ac_var}_value
2598 case $ac_old_set,$ac_new_set in
2599 set,)
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2601 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2602 ac_cache_corrupted=: ;;
2603 ,set)
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2605 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2606 ac_cache_corrupted=: ;;
2607 ,);;
2608 *)
2609 if test "x$ac_old_val" != "x$ac_new_val"; then
2610 # differences in whitespace do not lead to failure.
2611 ac_old_val_w=`echo x $ac_old_val`
2612 ac_new_val_w=`echo x $ac_new_val`
2613 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2615 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2616 ac_cache_corrupted=:
2617 else
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2619 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2620 eval $ac_var=\$ac_old_val
2621 fi
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2623 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2625 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2626 fi;;
2627 esac
2628 # Pass precious variables to config.status.
2629 if test "$ac_new_set" = set; then
2630 case $ac_new_val in
2631 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2632 *) ac_arg=$ac_var=$ac_new_val ;;
2633 esac
2634 case " $ac_configure_args " in
2635 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2636 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2637 esac
2638 fi
2639 done
2640 if $ac_cache_corrupted; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2644 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2645 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2646 fi
2647 ## -------------------- ##
2648 ## Main body of script. ##
2649 ## -------------------- ##
2650
2651 ac_ext=c
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656
2657
2658
2659 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2660
2661
2662 ################################################################################
2663 ac_aux_dir=
2664 for ac_dir in autoconf "$srcdir"/autoconf; do
2665 if test -f "$ac_dir/install-sh"; then
2666 ac_aux_dir=$ac_dir
2667 ac_install_sh="$ac_aux_dir/install-sh -c"
2668 break
2669 elif test -f "$ac_dir/install.sh"; then
2670 ac_aux_dir=$ac_dir
2671 ac_install_sh="$ac_aux_dir/install.sh -c"
2672 break
2673 elif test -f "$ac_dir/shtool"; then
2674 ac_aux_dir=$ac_dir
2675 ac_install_sh="$ac_aux_dir/shtool install -c"
2676 break
2677 fi
2678 done
2679 if test -z "$ac_aux_dir"; then
2680 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2681 fi
2682
2683 # These three variables are undocumented and unsupported,
2684 # and are intended to be withdrawn in a future Autoconf release.
2685 # They can cause serious problems if a builder's source tree is in a directory
2686 # whose full name contains unusual characters.
2687 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2688 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2689 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2690
2691
2692
2693 ################################################################################
2694 # Make sure we can run config.sub.
2695 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2696 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2697
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2699 $as_echo_n "checking build system type... " >&6; }
2700 if test "${ac_cv_build+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 ac_build_alias=$build_alias
2704 test "x$ac_build_alias" = x &&
2705 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2706 test "x$ac_build_alias" = x &&
2707 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2708 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2709 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2710
2711 fi
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2713 $as_echo "$ac_cv_build" >&6; }
2714 case $ac_cv_build in
2715 *-*-*) ;;
2716 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2717 esac
2718 build=$ac_cv_build
2719 ac_save_IFS=$IFS; IFS='-'
2720 set x $ac_cv_build
2721 shift
2722 build_cpu=$1
2723 build_vendor=$2
2724 shift; shift
2725 # Remember, the first character of IFS is used to create $*,
2726 # except with old shells:
2727 build_os=$*
2728 IFS=$ac_save_IFS
2729 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2730
2731
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2733 $as_echo_n "checking host system type... " >&6; }
2734 if test "${ac_cv_host+set}" = set; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 if test "x$host_alias" = x; then
2738 ac_cv_host=$ac_cv_build
2739 else
2740 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2741 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2742 fi
2743
2744 fi
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2746 $as_echo "$ac_cv_host" >&6; }
2747 case $ac_cv_host in
2748 *-*-*) ;;
2749 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2750 esac
2751 host=$ac_cv_host
2752 ac_save_IFS=$IFS; IFS='-'
2753 set x $ac_cv_host
2754 shift
2755 host_cpu=$1
2756 host_vendor=$2
2757 shift; shift
2758 # Remember, the first character of IFS is used to create $*,
2759 # except with old shells:
2760 host_os=$*
2761 IFS=$ac_save_IFS
2762 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2763
2764
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2766 $as_echo_n "checking target system type... " >&6; }
2767 if test "${ac_cv_target+set}" = set; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if test "x$target_alias" = x; then
2771 ac_cv_target=$ac_cv_host
2772 else
2773 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2774 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2775 fi
2776
2777 fi
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2779 $as_echo "$ac_cv_target" >&6; }
2780 case $ac_cv_target in
2781 *-*-*) ;;
2782 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2783 esac
2784 target=$ac_cv_target
2785 ac_save_IFS=$IFS; IFS='-'
2786 set x $ac_cv_target
2787 shift
2788 target_cpu=$1
2789 target_vendor=$2
2790 shift; shift
2791 # Remember, the first character of IFS is used to create $*,
2792 # except with old shells:
2793 target_os=$*
2794 IFS=$ac_save_IFS
2795 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2796
2797
2798 # The aliases save the names the user supplied, while $host etc.
2799 # will get canonicalized.
2800 test -n "$target_alias" &&
2801 test "$program_prefix$program_suffix$program_transform_name" = \
2802 NONENONEs,x,x, &&
2803 program_prefix=${target_alias}-
2804
2805 case "$host_os" in
2806 linux*)
2807 CFLAGS="$CFLAGS"
2808 COPTIMISE_FLAG="-O2"
2809 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2810 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2811 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2812 LDDEPS="$LDDEPS .export.sym"
2813 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2814 LIB_SUFFIX=so
2815 DEVMAPPER=yes
2816 ODIRECT=yes
2817 DM_IOCTLS=yes
2818 SELINUX=yes
2819 CLUSTER=internal
2820 FSADM=yes
2821 ;;
2822 darwin*)
2823 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2824 COPTIMISE_FLAG="-O2"
2825 CLDFLAGS="$CLDFLAGS"
2826 CLDWHOLEARCHIVE="-all_load"
2827 CLDNOWHOLEARCHIVE=
2828 LIB_SUFFIX=dylib
2829 DEVMAPPER=yes
2830 ODIRECT=no
2831 DM_IOCTLS=no
2832 SELINUX=no
2833 CLUSTER=none
2834 FSADM=no
2835 ;;
2836 esac
2837
2838 ################################################################################
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2840 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2841 if test "${ac_cv_path_SED+set}" = set; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2845 for ac_i in 1 2 3 4 5 6 7; do
2846 ac_script="$ac_script$as_nl$ac_script"
2847 done
2848 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2849 { ac_script=; unset ac_script;}
2850 if test -z "$SED"; then
2851 ac_path_SED_found=false
2852 # Loop through the user's path and test for each of PROGNAME-LIST
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_prog in sed gsed; do
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2861 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2862 # Check for GNU ac_path_SED and select it if it is found.
2863 # Check for GNU $ac_path_SED
2864 case `"$ac_path_SED" --version 2>&1` in
2865 *GNU*)
2866 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2867 *)
2868 ac_count=0
2869 $as_echo_n 0123456789 >"conftest.in"
2870 while :
2871 do
2872 cat "conftest.in" "conftest.in" >"conftest.tmp"
2873 mv "conftest.tmp" "conftest.in"
2874 cp "conftest.in" "conftest.nl"
2875 $as_echo '' >> "conftest.nl"
2876 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2877 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2878 as_fn_arith $ac_count + 1 && ac_count=$as_val
2879 if test $ac_count -gt ${ac_path_SED_max-0}; then
2880 # Best one so far, save it but keep looking for a better one
2881 ac_cv_path_SED="$ac_path_SED"
2882 ac_path_SED_max=$ac_count
2883 fi
2884 # 10*(2^10) chars as input seems more than enough
2885 test $ac_count -gt 10 && break
2886 done
2887 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2888 esac
2889
2890 $ac_path_SED_found && break 3
2891 done
2892 done
2893 done
2894 IFS=$as_save_IFS
2895 if test -z "$ac_cv_path_SED"; then
2896 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2897 fi
2898 else
2899 ac_cv_path_SED=$SED
2900 fi
2901
2902 fi
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2904 $as_echo "$ac_cv_path_SED" >&6; }
2905 SED="$ac_cv_path_SED"
2906 rm -f conftest.sed
2907
2908 for ac_prog in gawk mawk nawk awk
2909 do
2910 # Extract the first word of "$ac_prog", so it can be a program name with args.
2911 set dummy $ac_prog; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if test "${ac_cv_prog_AWK+set}" = set; then :
2915 $as_echo_n "(cached) " >&6
2916 else
2917 if test -n "$AWK"; then
2918 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 ac_cv_prog_AWK="$ac_prog"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931 done
2932 done
2933 IFS=$as_save_IFS
2934
2935 fi
2936 fi
2937 AWK=$ac_cv_prog_AWK
2938 if test -n "$AWK"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2940 $as_echo "$AWK" >&6; }
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2944 fi
2945
2946
2947 test -n "$AWK" && break
2948 done
2949
2950 ac_ext=c
2951 ac_cpp='$CPP $CPPFLAGS'
2952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955 if test -n "$ac_tool_prefix"; then
2956 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2957 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if test "${ac_cv_prog_CC+set}" = set; then :
2961 $as_echo_n "(cached) " >&6
2962 else
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977 done
2978 done
2979 IFS=$as_save_IFS
2980
2981 fi
2982 fi
2983 CC=$ac_cv_prog_CC
2984 if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 fi
2991
2992
2993 fi
2994 if test -z "$ac_cv_prog_CC"; then
2995 ac_ct_CC=$CC
2996 # Extract the first word of "gcc", so it can be a program name with args.
2997 set dummy gcc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 if test -n "$ac_ct_CC"; then
3004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_ac_ct_CC="gcc"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 break 2
3016 fi
3017 done
3018 done
3019 IFS=$as_save_IFS
3020
3021 fi
3022 fi
3023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3024 if test -n "$ac_ct_CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3026 $as_echo "$ac_ct_CC" >&6; }
3027 else
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3030 fi
3031
3032 if test "x$ac_ct_CC" = x; then
3033 CC=""
3034 else
3035 case $cross_compiling:$ac_tool_warned in
3036 yes:)
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3039 ac_tool_warned=yes ;;
3040 esac
3041 CC=$ac_ct_CC
3042 fi
3043 else
3044 CC="$ac_cv_prog_CC"
3045 fi
3046
3047 if test -z "$CC"; then
3048 if test -n "$ac_tool_prefix"; then
3049 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}cc; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if test "${ac_cv_prog_CC+set}" = set; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC="$CC" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_CC="${ac_tool_prefix}cc"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 break 2
3069 fi
3070 done
3071 done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 CC=$ac_cv_prog_CC
3077 if test -n "$CC"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3080 else
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3083 fi
3084
3085
3086 fi
3087 fi
3088 if test -z "$CC"; then
3089 # Extract the first word of "cc", so it can be a program name with args.
3090 set dummy cc; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if test "${ac_cv_prog_CC+set}" = set; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3098 else
3099 ac_prog_rejected=no
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103 IFS=$as_save_IFS
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3107 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3108 ac_prog_rejected=yes
3109 continue
3110 fi
3111 ac_cv_prog_CC="cc"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115 done
3116 done
3117 IFS=$as_save_IFS
3118
3119 if test $ac_prog_rejected = yes; then
3120 # We found a bogon in the path, so make sure we never use it.
3121 set dummy $ac_cv_prog_CC
3122 shift
3123 if test $# != 0; then
3124 # We chose a different compiler from the bogus one.
3125 # However, it has the same basename, so the bogon will be chosen
3126 # first if we set CC to just the basename; use the full file name.
3127 shift
3128 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3129 fi
3130 fi
3131 fi
3132 fi
3133 CC=$ac_cv_prog_CC
3134 if test -n "$CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136 $as_echo "$CC" >&6; }
3137 else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 fi
3141
3142
3143 fi
3144 if test -z "$CC"; then
3145 if test -n "$ac_tool_prefix"; then
3146 for ac_prog in cl.exe
3147 do
3148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if test "${ac_cv_prog_CC+set}" = set; then :
3153 $as_echo_n "(cached) " >&6
3154 else
3155 if test -n "$CC"; then
3156 ac_cv_prog_CC="$CC" # Let the user override the test.
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169 done
3170 done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 CC=$ac_cv_prog_CC
3176 if test -n "$CC"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3179 else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 fi
3183
3184
3185 test -n "$CC" && break
3186 done
3187 fi
3188 if test -z "$CC"; then
3189 ac_ct_CC=$CC
3190 for ac_prog in cl.exe
3191 do
3192 # Extract the first word of "$ac_prog", so it can be a program name with args.
3193 set dummy $ac_prog; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 ac_cv_prog_ac_ct_CC="$ac_prog"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213 done
3214 done
3215 IFS=$as_save_IFS
3216
3217 fi
3218 fi
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 $as_echo "$ac_ct_CC" >&6; }
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3227
3228
3229 test -n "$ac_ct_CC" && break
3230 done
3231
3232 if test "x$ac_ct_CC" = x; then
3233 CC=""
3234 else
3235 case $cross_compiling:$ac_tool_warned in
3236 yes:)
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239 ac_tool_warned=yes ;;
3240 esac
3241 CC=$ac_ct_CC
3242 fi
3243 fi
3244
3245 fi
3246
3247
3248 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 as_fn_error $? "no acceptable C compiler found in \$PATH
3251 See \`config.log' for more details" "$LINENO" 5; }
3252
3253 # Provide some information about the compiler.
3254 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3255 set X $ac_compile
3256 ac_compiler=$2
3257 for ac_option in --version -v -V -qversion; do
3258 { { ac_try="$ac_compiler $ac_option >&5"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3266 ac_status=$?
3267 if test -s conftest.err; then
3268 sed '10a\
3269 ... rest of stderr output deleted ...
3270 10q' conftest.err >conftest.er1
3271 cat conftest.er1 >&5
3272 fi
3273 rm -f conftest.er1 conftest.err
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }
3276 done
3277
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3280
3281 int
3282 main ()
3283 {
3284
3285 ;
3286 return 0;
3287 }
3288 _ACEOF
3289 ac_clean_files_save=$ac_clean_files
3290 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3291 # Try to create an executable without -o first, disregard a.out.
3292 # It will help us diagnose broken compilers, and finding out an intuition
3293 # of exeext.
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3295 $as_echo_n "checking whether the C compiler works... " >&6; }
3296 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3297
3298 # The possible output files:
3299 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3300
3301 ac_rmfiles=
3302 for ac_file in $ac_files
3303 do
3304 case $ac_file in
3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3306 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3307 esac
3308 done
3309 rm -f $ac_rmfiles
3310
3311 if { { ac_try="$ac_link_default"
3312 case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_link_default") 2>&5
3319 ac_status=$?
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }; then :
3322 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3323 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3324 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3325 # so that the user can short-circuit this test for compilers unknown to
3326 # Autoconf.
3327 for ac_file in $ac_files ''
3328 do
3329 test -f "$ac_file" || continue
3330 case $ac_file in
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3332 ;;
3333 [ab].out )
3334 # We found the default executable, but exeext='' is most
3335 # certainly right.
3336 break;;
3337 *.* )
3338 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3339 then :; else
3340 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3341 fi
3342 # We set ac_cv_exeext here because the later test for it is not
3343 # safe: cross compilers may not add the suffix if given an `-o'
3344 # argument, so we may need to know it at that point already.
3345 # Even if this section looks crufty: it has the advantage of
3346 # actually working.
3347 break;;
3348 * )
3349 break;;
3350 esac
3351 done
3352 test "$ac_cv_exeext" = no && ac_cv_exeext=
3353
3354 else
3355 ac_file=''
3356 fi
3357 if test -z "$ac_file"; then :
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 $as_echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error 77 "C compiler cannot create executables
3366 See \`config.log' for more details" "$LINENO" 5; }
3367 else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 $as_echo "yes" >&6; }
3370 fi
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3372 $as_echo_n "checking for C compiler default output file name... " >&6; }
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3374 $as_echo "$ac_file" >&6; }
3375 ac_exeext=$ac_cv_exeext
3376
3377 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3378 ac_clean_files=$ac_clean_files_save
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3380 $as_echo_n "checking for suffix of executables... " >&6; }
3381 if { { ac_try="$ac_link"
3382 case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385 esac
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_link") 2>&5
3389 ac_status=$?
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }; then :
3392 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3393 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3394 # work properly (i.e., refer to `conftest.exe'), while it won't with
3395 # `rm'.
3396 for ac_file in conftest.exe conftest conftest.*; do
3397 test -f "$ac_file" || continue
3398 case $ac_file in
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3400 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3401 break;;
3402 * ) break;;
3403 esac
3404 done
3405 else
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3409 See \`config.log' for more details" "$LINENO" 5; }
3410 fi
3411 rm -f conftest conftest$ac_cv_exeext
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3413 $as_echo "$ac_cv_exeext" >&6; }
3414
3415 rm -f conftest.$ac_ext
3416 EXEEXT=$ac_cv_exeext
3417 ac_exeext=$EXEEXT
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3420 #include <stdio.h>
3421 int
3422 main ()
3423 {
3424 FILE *f = fopen ("conftest.out", "w");
3425 return ferror (f) || fclose (f) != 0;
3426
3427 ;
3428 return 0;
3429 }
3430 _ACEOF
3431 ac_clean_files="$ac_clean_files conftest.out"
3432 # Check that the compiler produces executables we can run. If not, either
3433 # the compiler is broken, or we cross compile.
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3435 $as_echo_n "checking whether we are cross compiling... " >&6; }
3436 if test "$cross_compiling" != yes; then
3437 { { ac_try="$ac_link"
3438 case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_link") 2>&5
3445 ac_status=$?
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }
3448 if { ac_try='./conftest$ac_cv_exeext'
3449 { { case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_try") 2>&5
3456 ac_status=$?
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; }; then
3459 cross_compiling=no
3460 else
3461 if test "$cross_compiling" = maybe; then
3462 cross_compiling=yes
3463 else
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "cannot run C compiled programs.
3467 If you meant to cross compile, use \`--host'.
3468 See \`config.log' for more details" "$LINENO" 5; }
3469 fi
3470 fi
3471 fi
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3473 $as_echo "$cross_compiling" >&6; }
3474
3475 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3476 ac_clean_files=$ac_clean_files_save
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3478 $as_echo_n "checking for suffix of object files... " >&6; }
3479 if test "${ac_cv_objext+set}" = set; then :
3480 $as_echo_n "(cached) " >&6
3481 else
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484
3485 int
3486 main ()
3487 {
3488
3489 ;
3490 return 0;
3491 }
3492 _ACEOF
3493 rm -f conftest.o conftest.obj
3494 if { { ac_try="$ac_compile"
3495 case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3498 esac
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501 (eval "$ac_compile") 2>&5
3502 ac_status=$?
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }; then :
3505 for ac_file in conftest.o conftest.obj conftest.*; do
3506 test -f "$ac_file" || continue;
3507 case $ac_file in
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3510 break;;
3511 esac
3512 done
3513 else
3514 $as_echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error $? "cannot compute suffix of object files: cannot compile
3520 See \`config.log' for more details" "$LINENO" 5; }
3521 fi
3522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3525 $as_echo "$ac_cv_objext" >&6; }
3526 OBJEXT=$ac_cv_objext
3527 ac_objext=$OBJEXT
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3529 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3530 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3535
3536 int
3537 main ()
3538 {
3539 #ifndef __GNUC__
3540 choke me
3541 #endif
3542
3543 ;
3544 return 0;
3545 }
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548 ac_compiler_gnu=yes
3549 else
3550 ac_compiler_gnu=no
3551 fi
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3554
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3557 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3558 if test $ac_compiler_gnu = yes; then
3559 GCC=yes
3560 else
3561 GCC=
3562 fi
3563 ac_test_CFLAGS=${CFLAGS+set}
3564 ac_save_CFLAGS=$CFLAGS
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3566 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3567 if test "${ac_cv_prog_cc_g+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 ac_save_c_werror_flag=$ac_c_werror_flag
3571 ac_c_werror_flag=yes
3572 ac_cv_prog_cc_g=no
3573 CFLAGS="-g"
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576
3577 int
3578 main ()
3579 {
3580
3581 ;
3582 return 0;
3583 }
3584 _ACEOF
3585 if ac_fn_c_try_compile "$LINENO"; then :
3586 ac_cv_prog_cc_g=yes
3587 else
3588 CFLAGS=""
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3591
3592 int
3593 main ()
3594 {
3595
3596 ;
3597 return 0;
3598 }
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601
3602 else
3603 ac_c_werror_flag=$ac_save_c_werror_flag
3604 CFLAGS="-g"
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3607
3608 int
3609 main ()
3610 {
3611
3612 ;
3613 return 0;
3614 }
3615 _ACEOF
3616 if ac_fn_c_try_compile "$LINENO"; then :
3617 ac_cv_prog_cc_g=yes
3618 fi
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 fi
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 fi
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_c_werror_flag=$ac_save_c_werror_flag
3625 fi
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3627 $as_echo "$ac_cv_prog_cc_g" >&6; }
3628 if test "$ac_test_CFLAGS" = set; then
3629 CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631 if test "$GCC" = yes; then
3632 CFLAGS="-g -O2"
3633 else
3634 CFLAGS="-g"
3635 fi
3636 else
3637 if test "$GCC" = yes; then
3638 CFLAGS="-O2"
3639 else
3640 CFLAGS=
3641 fi
3642 fi
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3644 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3645 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 ac_cv_prog_cc_c89=no
3649 ac_save_CC=$CC
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3652 #include <stdarg.h>
3653 #include <stdio.h>
3654 #include <sys/types.h>
3655 #include <sys/stat.h>
3656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3657 struct buf { int x; };
3658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3659 static char *e (p, i)
3660 char **p;
3661 int i;
3662 {
3663 return p[i];
3664 }
3665 static char *f (char * (*g) (char **, int), char **p, ...)
3666 {
3667 char *s;
3668 va_list v;
3669 va_start (v,p);
3670 s = g (p, va_arg (v,int));
3671 va_end (v);
3672 return s;
3673 }
3674
3675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3676 function prototypes and stuff, but not '\xHH' hex character constants.
3677 These don't provoke an error unfortunately, instead are silently treated
3678 as 'x'. The following induces an error, until -std is added to get
3679 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3680 array size at least. It's necessary to write '\x00'==0 to get something
3681 that's true only with -std. */
3682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3683
3684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3685 inside strings and character constants. */
3686 #define FOO(x) 'x'
3687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3688
3689 int test (int i, double x);
3690 struct s1 {int (*f) (int a);};
3691 struct s2 {int (*f) (double a);};
3692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3693 int argc;
3694 char **argv;
3695 int
3696 main ()
3697 {
3698 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3699 ;
3700 return 0;
3701 }
3702 _ACEOF
3703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3704 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3705 do
3706 CC="$ac_save_CC $ac_arg"
3707 if ac_fn_c_try_compile "$LINENO"; then :
3708 ac_cv_prog_cc_c89=$ac_arg
3709 fi
3710 rm -f core conftest.err conftest.$ac_objext
3711 test "x$ac_cv_prog_cc_c89" != "xno" && break
3712 done
3713 rm -f conftest.$ac_ext
3714 CC=$ac_save_CC
3715
3716 fi
3717 # AC_CACHE_VAL
3718 case "x$ac_cv_prog_cc_c89" in
3719 x)
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3721 $as_echo "none needed" >&6; } ;;
3722 xno)
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3724 $as_echo "unsupported" >&6; } ;;
3725 *)
3726 CC="$CC $ac_cv_prog_cc_c89"
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3728 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3729 esac
3730 if test "x$ac_cv_prog_cc_c89" != xno; then :
3731
3732 fi
3733
3734 ac_ext=c
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739
3740
3741
3742 ac_ext=c
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3748 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3749 # On Suns, sometimes $CPP names a directory.
3750 if test -n "$CPP" && test -d "$CPP"; then
3751 CPP=
3752 fi
3753 if test -z "$CPP"; then
3754 if test "${ac_cv_prog_CPP+set}" = set; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 # Double quotes because CPP needs to be expanded
3758 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3759 do
3760 ac_preproc_ok=false
3761 for ac_c_preproc_warn_flag in '' yes
3762 do
3763 # Use a header file that comes with gcc, so configuring glibc
3764 # with a fresh cross-compiler works.
3765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3766 # <limits.h> exists even on freestanding compilers.
3767 # On the NeXT, cc -E runs the code through the compiler's parser,
3768 # not just through cpp. "Syntax error" is here to catch this case.
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771 #ifdef __STDC__
3772 # include <limits.h>
3773 #else
3774 # include <assert.h>
3775 #endif
3776 Syntax error
3777 _ACEOF
3778 if ac_fn_c_try_cpp "$LINENO"; then :
3779
3780 else
3781 # Broken: fails on valid input.
3782 continue
3783 fi
3784 rm -f conftest.err conftest.$ac_ext
3785
3786 # OK, works on sane cases. Now check whether nonexistent headers
3787 # can be detected and how.
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3790 #include <ac_nonexistent.h>
3791 _ACEOF
3792 if ac_fn_c_try_cpp "$LINENO"; then :
3793 # Broken: success on invalid input.
3794 continue
3795 else
3796 # Passes both tests.
3797 ac_preproc_ok=:
3798 break
3799 fi
3800 rm -f conftest.err conftest.$ac_ext
3801
3802 done
3803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3804 rm -f conftest.err conftest.$ac_ext
3805 if $ac_preproc_ok; then :
3806 break
3807 fi
3808
3809 done
3810 ac_cv_prog_CPP=$CPP
3811
3812 fi
3813 CPP=$ac_cv_prog_CPP
3814 else
3815 ac_cv_prog_CPP=$CPP
3816 fi
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3818 $as_echo "$CPP" >&6; }
3819 ac_preproc_ok=false
3820 for ac_c_preproc_warn_flag in '' yes
3821 do
3822 # Use a header file that comes with gcc, so configuring glibc
3823 # with a fresh cross-compiler works.
3824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3825 # <limits.h> exists even on freestanding compilers.
3826 # On the NeXT, cc -E runs the code through the compiler's parser,
3827 # not just through cpp. "Syntax error" is here to catch this case.
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3830 #ifdef __STDC__
3831 # include <limits.h>
3832 #else
3833 # include <assert.h>
3834 #endif
3835 Syntax error
3836 _ACEOF
3837 if ac_fn_c_try_cpp "$LINENO"; then :
3838
3839 else
3840 # Broken: fails on valid input.
3841 continue
3842 fi
3843 rm -f conftest.err conftest.$ac_ext
3844
3845 # OK, works on sane cases. Now check whether nonexistent headers
3846 # can be detected and how.
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849 #include <ac_nonexistent.h>
3850 _ACEOF
3851 if ac_fn_c_try_cpp "$LINENO"; then :
3852 # Broken: success on invalid input.
3853 continue
3854 else
3855 # Passes both tests.
3856 ac_preproc_ok=:
3857 break
3858 fi
3859 rm -f conftest.err conftest.$ac_ext
3860
3861 done
3862 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3863 rm -f conftest.err conftest.$ac_ext
3864 if $ac_preproc_ok; then :
3865
3866 else
3867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3870 See \`config.log' for more details" "$LINENO" 5; }
3871 fi
3872
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878
3879
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3881 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3882 if test "${ac_cv_path_GREP+set}" = set; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 if test -z "$GREP"; then
3886 ac_path_GREP_found=false
3887 # Loop through the user's path and test for each of PROGNAME-LIST
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3890 do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_prog in grep ggrep; do
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3896 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3897 # Check for GNU ac_path_GREP and select it if it is found.
3898 # Check for GNU $ac_path_GREP
3899 case `"$ac_path_GREP" --version 2>&1` in
3900 *GNU*)
3901 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3902 *)
3903 ac_count=0
3904 $as_echo_n 0123456789 >"conftest.in"
3905 while :
3906 do
3907 cat "conftest.in" "conftest.in" >"conftest.tmp"
3908 mv "conftest.tmp" "conftest.in"
3909 cp "conftest.in" "conftest.nl"
3910 $as_echo 'GREP' >> "conftest.nl"
3911 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3913 as_fn_arith $ac_count + 1 && ac_count=$as_val
3914 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3915 # Best one so far, save it but keep looking for a better one
3916 ac_cv_path_GREP="$ac_path_GREP"
3917 ac_path_GREP_max=$ac_count
3918 fi
3919 # 10*(2^10) chars as input seems more than enough
3920 test $ac_count -gt 10 && break
3921 done
3922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923 esac
3924
3925 $ac_path_GREP_found && break 3
3926 done
3927 done
3928 done
3929 IFS=$as_save_IFS
3930 if test -z "$ac_cv_path_GREP"; then
3931 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3932 fi
3933 else
3934 ac_cv_path_GREP=$GREP
3935 fi
3936
3937 fi
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3939 $as_echo "$ac_cv_path_GREP" >&6; }
3940 GREP="$ac_cv_path_GREP"
3941
3942
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3944 $as_echo_n "checking for egrep... " >&6; }
3945 if test "${ac_cv_path_EGREP+set}" = set; then :
3946 $as_echo_n "(cached) " >&6
3947 else
3948 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3949 then ac_cv_path_EGREP="$GREP -E"
3950 else
3951 if test -z "$EGREP"; then
3952 ac_path_EGREP_found=false
3953 # Loop through the user's path and test for each of PROGNAME-LIST
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956 do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_prog in egrep; do
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3962 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3963 # Check for GNU ac_path_EGREP and select it if it is found.
3964 # Check for GNU $ac_path_EGREP
3965 case `"$ac_path_EGREP" --version 2>&1` in
3966 *GNU*)
3967 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3968 *)
3969 ac_count=0
3970 $as_echo_n 0123456789 >"conftest.in"
3971 while :
3972 do
3973 cat "conftest.in" "conftest.in" >"conftest.tmp"
3974 mv "conftest.tmp" "conftest.in"
3975 cp "conftest.in" "conftest.nl"
3976 $as_echo 'EGREP' >> "conftest.nl"
3977 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3979 as_fn_arith $ac_count + 1 && ac_count=$as_val
3980 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3981 # Best one so far, save it but keep looking for a better one
3982 ac_cv_path_EGREP="$ac_path_EGREP"
3983 ac_path_EGREP_max=$ac_count
3984 fi
3985 # 10*(2^10) chars as input seems more than enough
3986 test $ac_count -gt 10 && break
3987 done
3988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989 esac
3990
3991 $ac_path_EGREP_found && break 3
3992 done
3993 done
3994 done
3995 IFS=$as_save_IFS
3996 if test -z "$ac_cv_path_EGREP"; then
3997 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3998 fi
3999 else
4000 ac_cv_path_EGREP=$EGREP
4001 fi
4002
4003 fi
4004 fi
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4006 $as_echo "$ac_cv_path_EGREP" >&6; }
4007 EGREP="$ac_cv_path_EGREP"
4008
4009
4010 if test $ac_cv_c_compiler_gnu = yes; then
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4012 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4013 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4014 $as_echo_n "(cached) " >&6
4015 else
4016 ac_pattern="Autoconf.*'x'"
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019 #include <sgtty.h>
4020 Autoconf TIOCGETP
4021 _ACEOF
4022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4023 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4024 ac_cv_prog_gcc_traditional=yes
4025 else
4026 ac_cv_prog_gcc_traditional=no
4027 fi
4028 rm -f conftest*
4029
4030
4031 if test $ac_cv_prog_gcc_traditional = no; then
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4034 #include <termio.h>
4035 Autoconf TCGETA
4036 _ACEOF
4037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4038 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4039 ac_cv_prog_gcc_traditional=yes
4040 fi
4041 rm -f conftest*
4042
4043 fi
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4046 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4047 if test $ac_cv_prog_gcc_traditional = yes; then
4048 CC="$CC -traditional"
4049 fi
4050 fi
4051
4052 # Find a good install program. We prefer a C program (faster),
4053 # so one script is as good as another. But avoid the broken or
4054 # incompatible versions:
4055 # SysV /etc/install, /usr/sbin/install
4056 # SunOS /usr/etc/install
4057 # IRIX /sbin/install
4058 # AIX /bin/install
4059 # AmigaOS /C/install, which installs bootblocks on floppy discs
4060 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4061 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4062 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4063 # OS/2's system install, which has a completely different semantic
4064 # ./install, which can be erroneously created by make from ./install.sh.
4065 # Reject install programs that cannot install multiple files.
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4067 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4068 if test -z "$INSTALL"; then
4069 if test "${ac_cv_path_install+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
4071 else
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4074 do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 # Account for people who put trailing slashes in PATH elements.
4078 case $as_dir/ in #((
4079 ./ | .// | /[cC]/* | \
4080 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4081 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4082 /usr/ucb/* ) ;;
4083 *)
4084 # OSF1 and SCO ODT 3.0 have their own names for install.
4085 # Don't use installbsd from OSF since it installs stuff as root
4086 # by default.
4087 for ac_prog in ginstall scoinst install; do
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4090 if test $ac_prog = install &&
4091 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4092 # AIX install. It has an incompatible calling convention.
4093 :
4094 elif test $ac_prog = install &&
4095 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4096 # program-specific install script used by HP pwplus--don't use.
4097 :
4098 else
4099 rm -rf conftest.one conftest.two conftest.dir
4100 echo one > conftest.one
4101 echo two > conftest.two
4102 mkdir conftest.dir
4103 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4104 test -s conftest.one && test -s conftest.two &&
4105 test -s conftest.dir/conftest.one &&
4106 test -s conftest.dir/conftest.two
4107 then
4108 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4109 break 3
4110 fi
4111 fi
4112 fi
4113 done
4114 done
4115 ;;
4116 esac
4117
4118 done
4119 IFS=$as_save_IFS
4120
4121 rm -rf conftest.one conftest.two conftest.dir
4122
4123 fi
4124 if test "${ac_cv_path_install+set}" = set; then
4125 INSTALL=$ac_cv_path_install
4126 else
4127 # As a last resort, use the slow shell script. Don't cache a
4128 # value for INSTALL within a source directory, because that will
4129 # break other packages using the cache if that directory is
4130 # removed, or if the value is a relative name.
4131 INSTALL=$ac_install_sh
4132 fi
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4135 $as_echo "$INSTALL" >&6; }
4136
4137 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4138 # It thinks the first close brace ends the variable substitution.
4139 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4140
4141 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4142
4143 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4144
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4146 $as_echo_n "checking whether ln -s works... " >&6; }
4147 LN_S=$as_ln_s
4148 if test "$LN_S" = "ln -s"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4150 $as_echo "yes" >&6; }
4151 else
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4153 $as_echo "no, using $LN_S" >&6; }
4154 fi
4155
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4157 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4158 set x ${MAKE-make}
4159 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4160 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 cat >conftest.make <<\_ACEOF
4164 SHELL = /bin/sh
4165 all:
4166 @echo '@@@%%%=$(MAKE)=@@@%%%'
4167 _ACEOF
4168 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4169 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4170 *@@@%%%=?*=@@@%%%*)
4171 eval ac_cv_prog_make_${ac_make}_set=yes;;
4172 *)
4173 eval ac_cv_prog_make_${ac_make}_set=no;;
4174 esac
4175 rm -f conftest.make
4176 fi
4177 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4179 $as_echo "yes" >&6; }
4180 SET_MAKE=
4181 else
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 $as_echo "no" >&6; }
4184 SET_MAKE="MAKE=${MAKE-make}"
4185 fi
4186
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4188 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4189 if test -z "$MKDIR_P"; then
4190 if test "${ac_cv_path_mkdir+set}" = set; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4195 do
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_prog in mkdir gmkdir; do
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4201 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4202 'mkdir (GNU coreutils) '* | \
4203 'mkdir (coreutils) '* | \
4204 'mkdir (fileutils) '4.1*)
4205 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4206 break 3;;
4207 esac
4208 done
4209 done
4210 done
4211 IFS=$as_save_IFS
4212
4213 fi
4214
4215 test -d ./--version && rmdir ./--version
4216 if test "${ac_cv_path_mkdir+set}" = set; then
4217 MKDIR_P="$ac_cv_path_mkdir -p"
4218 else
4219 # As a last resort, use the slow shell script. Don't cache a
4220 # value for MKDIR_P within a source directory, because that will
4221 # break other packages using the cache if that directory is
4222 # removed, or if the value is a relative name.
4223 MKDIR_P="$ac_install_sh -d"
4224 fi
4225 fi
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4227 $as_echo "$MKDIR_P" >&6; }
4228
4229 if test -n "$ac_tool_prefix"; then
4230 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4231 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 if test -n "$RANLIB"; then
4238 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4247 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 break 2
4250 fi
4251 done
4252 done
4253 IFS=$as_save_IFS
4254
4255 fi
4256 fi
4257 RANLIB=$ac_cv_prog_RANLIB
4258 if test -n "$RANLIB"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4260 $as_echo "$RANLIB" >&6; }
4261 else
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4264 fi
4265
4266
4267 fi
4268 if test -z "$ac_cv_prog_RANLIB"; then
4269 ac_ct_RANLIB=$RANLIB
4270 # Extract the first word of "ranlib", so it can be a program name with args.
4271 set dummy ranlib; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 if test -n "$ac_ct_RANLIB"; then
4278 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287 ac_cv_prog_ac_ct_RANLIB="ranlib"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4290 fi
4291 done
4292 done
4293 IFS=$as_save_IFS
4294
4295 fi
4296 fi
4297 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4298 if test -n "$ac_ct_RANLIB"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4300 $as_echo "$ac_ct_RANLIB" >&6; }
4301 else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4304 fi
4305
4306 if test "x$ac_ct_RANLIB" = x; then
4307 RANLIB=":"
4308 else
4309 case $cross_compiling:$ac_tool_warned in
4310 yes:)
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4313 ac_tool_warned=yes ;;
4314 esac
4315 RANLIB=$ac_ct_RANLIB
4316 fi
4317 else
4318 RANLIB="$ac_cv_prog_RANLIB"
4319 fi
4320
4321 # Extract the first word of "cflow", so it can be a program name with args.
4322 set dummy cflow; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 case $CFLOW_CMD in
4329 [\\/]* | ?:[\\/]*)
4330 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4331 ;;
4332 *)
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4335 do
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 break 2
4343 fi
4344 done
4345 done
4346 IFS=$as_save_IFS
4347
4348 ;;
4349 esac
4350 fi
4351 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4352 if test -n "$CFLOW_CMD"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4354 $as_echo "$CFLOW_CMD" >&6; }
4355 else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4358 fi
4359
4360
4361 # Extract the first word of "cscope", so it can be a program name with args.
4362 set dummy cscope; ac_word=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 case $CSCOPE_CMD in
4369 [\\/]* | ?:[\\/]*)
4370 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4371 ;;
4372 *)
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4383 fi
4384 done
4385 done
4386 IFS=$as_save_IFS
4387
4388 ;;
4389 esac
4390 fi
4391 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4392 if test -n "$CSCOPE_CMD"; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4394 $as_echo "$CSCOPE_CMD" >&6; }
4395 else
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 $as_echo "no" >&6; }
4398 fi
4399
4400
4401
4402 ################################################################################
4403 ac_header_dirent=no
4404 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4405 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4407 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4408 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413 #include <sys/types.h>
4414 #include <$ac_hdr>
4415
4416 int
4417 main ()
4418 {
4419 if ((DIR *) 0)
4420 return 0;
4421 ;
4422 return 0;
4423 }
4424 _ACEOF
4425 if ac_fn_c_try_compile "$LINENO"; then :
4426 eval "$as_ac_Header=yes"
4427 else
4428 eval "$as_ac_Header=no"
4429 fi
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 fi
4432 eval ac_res=\$$as_ac_Header
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4434 $as_echo "$ac_res" >&6; }
4435 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4436 cat >>confdefs.h <<_ACEOF
4437 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4438 _ACEOF
4439
4440 ac_header_dirent=$ac_hdr; break
4441 fi
4442
4443 done
4444 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4445 if test $ac_header_dirent = dirent.h; then
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4447 $as_echo_n "checking for library containing opendir... " >&6; }
4448 if test "${ac_cv_search_opendir+set}" = set; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 ac_func_search_save_LIBS=$LIBS
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4454
4455 /* Override any GCC internal prototype to avoid an error.
4456 Use char because int might match the return type of a GCC
4457 builtin and then its argument prototype would still apply. */
4458 #ifdef __cplusplus
4459 extern "C"
4460 #endif
4461 char opendir ();
4462 int
4463 main ()
4464 {
4465 return opendir ();
4466 ;
4467 return 0;
4468 }
4469 _ACEOF
4470 for ac_lib in '' dir; do
4471 if test -z "$ac_lib"; then
4472 ac_res="none required"
4473 else
4474 ac_res=-l$ac_lib
4475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4476 fi
4477 if ac_fn_c_try_link "$LINENO"; then :
4478 ac_cv_search_opendir=$ac_res
4479 fi
4480 rm -f core conftest.err conftest.$ac_objext \
4481 conftest$ac_exeext
4482 if test "${ac_cv_search_opendir+set}" = set; then :
4483 break
4484 fi
4485 done
4486 if test "${ac_cv_search_opendir+set}" = set; then :
4487
4488 else
4489 ac_cv_search_opendir=no
4490 fi
4491 rm conftest.$ac_ext
4492 LIBS=$ac_func_search_save_LIBS
4493 fi
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4495 $as_echo "$ac_cv_search_opendir" >&6; }
4496 ac_res=$ac_cv_search_opendir
4497 if test "$ac_res" != no; then :
4498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4499
4500 fi
4501
4502 else
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4504 $as_echo_n "checking for library containing opendir... " >&6; }
4505 if test "${ac_cv_search_opendir+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 ac_func_search_save_LIBS=$LIBS
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4511
4512 /* Override any GCC internal prototype to avoid an error.
4513 Use char because int might match the return type of a GCC
4514 builtin and then its argument prototype would still apply. */
4515 #ifdef __cplusplus
4516 extern "C"
4517 #endif
4518 char opendir ();
4519 int
4520 main ()
4521 {
4522 return opendir ();
4523 ;
4524 return 0;
4525 }
4526 _ACEOF
4527 for ac_lib in '' x; do
4528 if test -z "$ac_lib"; then
4529 ac_res="none required"
4530 else
4531 ac_res=-l$ac_lib
4532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4533 fi
4534 if ac_fn_c_try_link "$LINENO"; then :
4535 ac_cv_search_opendir=$ac_res
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext \
4538 conftest$ac_exeext
4539 if test "${ac_cv_search_opendir+set}" = set; then :
4540 break
4541 fi
4542 done
4543 if test "${ac_cv_search_opendir+set}" = set; then :
4544
4545 else
4546 ac_cv_search_opendir=no
4547 fi
4548 rm conftest.$ac_ext
4549 LIBS=$ac_func_search_save_LIBS
4550 fi
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4552 $as_echo "$ac_cv_search_opendir" >&6; }
4553 ac_res=$ac_cv_search_opendir
4554 if test "$ac_res" != no; then :
4555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4556
4557 fi
4558
4559 fi
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4562 $as_echo_n "checking for ANSI C header files... " >&6; }
4563 if test "${ac_cv_header_stdc+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4568 #include <stdlib.h>
4569 #include <stdarg.h>
4570 #include <string.h>
4571 #include <float.h>
4572
4573 int
4574 main ()
4575 {
4576
4577 ;
4578 return 0;
4579 }
4580 _ACEOF
4581 if ac_fn_c_try_compile "$LINENO"; then :
4582 ac_cv_header_stdc=yes
4583 else
4584 ac_cv_header_stdc=no
4585 fi
4586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587
4588 if test $ac_cv_header_stdc = yes; then
4589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592 #include <string.h>
4593
4594 _ACEOF
4595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4596 $EGREP "memchr" >/dev/null 2>&1; then :
4597
4598 else
4599 ac_cv_header_stdc=no
4600 fi
4601 rm -f conftest*
4602
4603 fi
4604
4605 if test $ac_cv_header_stdc = yes; then
4606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609 #include <stdlib.h>
4610
4611 _ACEOF
4612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 $EGREP "free" >/dev/null 2>&1; then :
4614
4615 else
4616 ac_cv_header_stdc=no
4617 fi
4618 rm -f conftest*
4619
4620 fi
4621
4622 if test $ac_cv_header_stdc = yes; then
4623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4624 if test "$cross_compiling" = yes; then :
4625 :
4626 else
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629 #include <ctype.h>
4630 #include <stdlib.h>
4631 #if ((' ' & 0x0FF) == 0x020)
4632 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4633 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4634 #else
4635 # define ISLOWER(c) \
4636 (('a' <= (c) && (c) <= 'i') \
4637 || ('j' <= (c) && (c) <= 'r') \
4638 || ('s' <= (c) && (c) <= 'z'))
4639 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4640 #endif
4641
4642 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4643 int
4644 main ()
4645 {
4646 int i;
4647 for (i = 0; i < 256; i++)
4648 if (XOR (islower (i), ISLOWER (i))
4649 || toupper (i) != TOUPPER (i))
4650 return 2;
4651 return 0;
4652 }
4653 _ACEOF
4654 if ac_fn_c_try_run "$LINENO"; then :
4655
4656 else
4657 ac_cv_header_stdc=no
4658 fi
4659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4660 conftest.$ac_objext conftest.beam conftest.$ac_ext
4661 fi
4662
4663 fi
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4666 $as_echo "$ac_cv_header_stdc" >&6; }
4667 if test $ac_cv_header_stdc = yes; then
4668
4669 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4670
4671 fi
4672
4673 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4674 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4675 inttypes.h stdint.h unistd.h
4676 do :
4677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4678 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4679 "
4680 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4681 cat >>confdefs.h <<_ACEOF
4682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4683 _ACEOF
4684
4685 fi
4686
4687 done
4688
4689
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4691 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4692 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #include <sys/types.h>
4698 int
4699 main ()
4700 {
4701 return makedev(0, 0);
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_c_try_link "$LINENO"; then :
4707 ac_cv_header_sys_types_h_makedev=yes
4708 else
4709 ac_cv_header_sys_types_h_makedev=no
4710 fi
4711 rm -f core conftest.err conftest.$ac_objext \
4712 conftest$ac_exeext conftest.$ac_ext
4713
4714 fi
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4716 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4717
4718 if test $ac_cv_header_sys_types_h_makedev = no; then
4719 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4720 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4721
4722 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
4723
4724 fi
4725
4726
4727
4728 if test $ac_cv_header_sys_mkdev_h = no; then
4729 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4730 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4731
4732 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4733
4734 fi
4735
4736
4737 fi
4738 fi
4739
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4741 $as_echo_n "checking for ANSI C header files... " >&6; }
4742 if test "${ac_cv_header_stdc+set}" = set; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747 #include <stdlib.h>
4748 #include <stdarg.h>
4749 #include <string.h>
4750 #include <float.h>
4751
4752 int
4753 main ()
4754 {
4755
4756 ;
4757 return 0;
4758 }
4759 _ACEOF
4760 if ac_fn_c_try_compile "$LINENO"; then :
4761 ac_cv_header_stdc=yes
4762 else
4763 ac_cv_header_stdc=no
4764 fi
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766
4767 if test $ac_cv_header_stdc = yes; then
4768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4771 #include <string.h>
4772
4773 _ACEOF
4774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4775 $EGREP "memchr" >/dev/null 2>&1; then :
4776
4777 else
4778 ac_cv_header_stdc=no
4779 fi
4780 rm -f conftest*
4781
4782 fi
4783
4784 if test $ac_cv_header_stdc = yes; then
4785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4788 #include <stdlib.h>
4789
4790 _ACEOF
4791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4792 $EGREP "free" >/dev/null 2>&1; then :
4793
4794 else
4795 ac_cv_header_stdc=no
4796 fi
4797 rm -f conftest*
4798
4799 fi
4800
4801 if test $ac_cv_header_stdc = yes; then
4802 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4803 if test "$cross_compiling" = yes; then :
4804 :
4805 else
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4808 #include <ctype.h>
4809 #include <stdlib.h>
4810 #if ((' ' & 0x0FF) == 0x020)
4811 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4812 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4813 #else
4814 # define ISLOWER(c) \
4815 (('a' <= (c) && (c) <= 'i') \
4816 || ('j' <= (c) && (c) <= 'r') \
4817 || ('s' <= (c) && (c) <= 'z'))
4818 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4819 #endif
4820
4821 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4822 int
4823 main ()
4824 {
4825 int i;
4826 for (i = 0; i < 256; i++)
4827 if (XOR (islower (i), ISLOWER (i))
4828 || toupper (i) != TOUPPER (i))
4829 return 2;
4830 return 0;
4831 }
4832 _ACEOF
4833 if ac_fn_c_try_run "$LINENO"; then :
4834
4835 else
4836 ac_cv_header_stdc=no
4837 fi
4838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4839 conftest.$ac_objext conftest.beam conftest.$ac_ext
4840 fi
4841
4842 fi
4843 fi
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4845 $as_echo "$ac_cv_header_stdc" >&6; }
4846 if test $ac_cv_header_stdc = yes; then
4847
4848 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4849
4850 fi
4851
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4853 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4854 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4859 #include <sys/types.h>
4860 #include <sys/wait.h>
4861 #ifndef WEXITSTATUS
4862 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4863 #endif
4864 #ifndef WIFEXITED
4865 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4866 #endif
4867
4868 int
4869 main ()
4870 {
4871 int s;
4872 wait (&s);
4873 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4874 ;
4875 return 0;
4876 }
4877 _ACEOF
4878 if ac_fn_c_try_compile "$LINENO"; then :
4879 ac_cv_header_sys_wait_h=yes
4880 else
4881 ac_cv_header_sys_wait_h=no
4882 fi
4883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4884 fi
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4886 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4887 if test $ac_cv_header_sys_wait_h = yes; then
4888
4889 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4890
4891 fi
4892
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4894 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4895 if test "${ac_cv_header_time+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4900 #include <sys/types.h>
4901 #include <sys/time.h>
4902 #include <time.h>
4903
4904 int
4905 main ()
4906 {
4907 if ((struct tm *) 0)
4908 return 0;
4909 ;
4910 return 0;
4911 }
4912 _ACEOF
4913 if ac_fn_c_try_compile "$LINENO"; then :
4914 ac_cv_header_time=yes
4915 else
4916 ac_cv_header_time=no
4917 fi
4918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4919 fi
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4921 $as_echo "$ac_cv_header_time" >&6; }
4922 if test $ac_cv_header_time = yes; then
4923
4924 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4925
4926 fi
4927
4928
4929 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4930 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4931 sys/wait.h time.h
4932 do :
4933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4934 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4935 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4936 cat >>confdefs.h <<_ACEOF
4937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4938 _ACEOF
4939
4940 else
4941 as_fn_error $? "bailing out" "$LINENO" 5
4942 fi
4943
4944 done
4945
4946
4947 case "$host_os" in
4948 linux*)
4949 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4950 do :
4951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4952 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4953 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4954 cat >>confdefs.h <<_ACEOF
4955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4956 _ACEOF
4957
4958 else
4959 as_fn_error $? "bailing out" "$LINENO" 5
4960 fi
4961
4962 done
4963 ;;
4964 darwin*)
4965 for ac_header in machine/endian.h sys/disk.h
4966 do :
4967 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4968 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4969 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4970 cat >>confdefs.h <<_ACEOF
4971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4972 _ACEOF
4973
4974 else
4975 as_fn_error $? "bailing out" "$LINENO" 5
4976 fi
4977
4978 done
4979 ;;
4980 esac
4981
4982 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4983 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4984 sys/types.h unistd.h
4985 do :
4986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4987 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4988 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4989 cat >>confdefs.h <<_ACEOF
4990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4991 _ACEOF
4992
4993 else
4994 as_fn_error $? "bailing out" "$LINENO" 5
4995 fi
4996
4997 done
4998
4999 for ac_header in termios.h sys/statvfs.h
5000 do :
5001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5002 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5003 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5004 cat >>confdefs.h <<_ACEOF
5005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5006 _ACEOF
5007
5008 fi
5009
5010 done
5011
5012
5013 ################################################################################
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5015 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5016 if test "${ac_cv_c_const+set}" = set; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5021
5022 int
5023 main ()
5024 {
5025 /* FIXME: Include the comments suggested by Paul. */
5026 #ifndef __cplusplus
5027 /* Ultrix mips cc rejects this. */
5028 typedef int charset[2];
5029 const charset cs;
5030 /* SunOS 4.1.1 cc rejects this. */
5031 char const *const *pcpcc;
5032 char **ppc;
5033 /* NEC SVR4.0.2 mips cc rejects this. */
5034 struct point {int x, y;};
5035 static struct point const zero = {0,0};
5036 /* AIX XL C 1.02.0.0 rejects this.
5037 It does not let you subtract one const X* pointer from another in
5038 an arm of an if-expression whose if-part is not a constant
5039 expression */
5040 const char *g = "string";
5041 pcpcc = &g + (g ? g-g : 0);
5042 /* HPUX 7.0 cc rejects these. */
5043 ++pcpcc;
5044 ppc = (char**) pcpcc;
5045 pcpcc = (char const *const *) ppc;
5046 { /* SCO 3.2v4 cc rejects this. */
5047 char *t;
5048 char const *s = 0 ? (char *) 0 : (char const *) 0;
5049
5050 *t++ = 0;
5051 if (s) return 0;
5052 }
5053 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5054 int x[] = {25, 17};
5055 const int *foo = &x[0];
5056 ++foo;
5057 }
5058 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5059 typedef const int *iptr;
5060 iptr p = 0;
5061 ++p;
5062 }
5063 { /* AIX XL C 1.02.0.0 rejects this saying
5064 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5065 struct s { int j; const int *ap[3]; };
5066 struct s *b; b->j = 5;
5067 }
5068 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5069 const int foo = 10;
5070 if (!foo) return 0;
5071 }
5072 return !cs[0] && !zero.x;
5073 #endif
5074
5075 ;
5076 return 0;
5077 }
5078 _ACEOF
5079 if ac_fn_c_try_compile "$LINENO"; then :
5080 ac_cv_c_const=yes
5081 else
5082 ac_cv_c_const=no
5083 fi
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5087 $as_echo "$ac_cv_c_const" >&6; }
5088 if test $ac_cv_c_const = no; then
5089
5090 $as_echo "#define const /**/" >>confdefs.h
5091
5092 fi
5093
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5095 $as_echo_n "checking for inline... " >&6; }
5096 if test "${ac_cv_c_inline+set}" = set; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 ac_cv_c_inline=no
5100 for ac_kw in inline __inline__ __inline; do
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 #ifndef __cplusplus
5104 typedef int foo_t;
5105 static $ac_kw foo_t static_foo () {return 0; }
5106 $ac_kw foo_t foo () {return 0; }
5107 #endif
5108
5109 _ACEOF
5110 if ac_fn_c_try_compile "$LINENO"; then :
5111 ac_cv_c_inline=$ac_kw
5112 fi
5113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114 test "$ac_cv_c_inline" != no && break
5115 done
5116
5117 fi
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5119 $as_echo "$ac_cv_c_inline" >&6; }
5120
5121 case $ac_cv_c_inline in
5122 inline | yes) ;;
5123 *)
5124 case $ac_cv_c_inline in
5125 no) ac_val=;;
5126 *) ac_val=$ac_cv_c_inline;;
5127 esac
5128 cat >>confdefs.h <<_ACEOF
5129 #ifndef __cplusplus
5130 #define inline $ac_val
5131 #endif
5132 _ACEOF
5133 ;;
5134 esac
5135
5136 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5137 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5138
5139 cat >>confdefs.h <<_ACEOF
5140 #define HAVE_STRUCT_STAT_ST_RDEV 1
5141 _ACEOF
5142
5143
5144 fi
5145
5146 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5147 if test "x$ac_cv_type_off_t" = x""yes; then :
5148
5149 else
5150
5151 cat >>confdefs.h <<_ACEOF
5152 #define off_t long int
5153 _ACEOF
5154
5155 fi
5156
5157 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5158 if test "x$ac_cv_type_pid_t" = x""yes; then :
5159
5160 else
5161
5162 cat >>confdefs.h <<_ACEOF
5163 #define pid_t int
5164 _ACEOF
5165
5166 fi
5167
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5169 $as_echo_n "checking return type of signal handlers... " >&6; }
5170 if test "${ac_cv_type_signal+set}" = set; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175 #include <sys/types.h>
5176 #include <signal.h>
5177
5178 int
5179 main ()
5180 {
5181 return *(signal (0, 0)) (0) == 1;
5182 ;
5183 return 0;
5184 }
5185 _ACEOF
5186 if ac_fn_c_try_compile "$LINENO"; then :
5187 ac_cv_type_signal=int
5188 else
5189 ac_cv_type_signal=void
5190 fi
5191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192 fi
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5194 $as_echo "$ac_cv_type_signal" >&6; }
5195
5196 cat >>confdefs.h <<_ACEOF
5197 #define RETSIGTYPE $ac_cv_type_signal
5198 _ACEOF
5199
5200
5201 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5202 if test "x$ac_cv_type_size_t" = x""yes; then :
5203
5204 else
5205
5206 cat >>confdefs.h <<_ACEOF
5207 #define size_t unsigned int
5208 _ACEOF
5209
5210 fi
5211
5212 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5213 if test "x$ac_cv_type_mode_t" = x""yes; then :
5214
5215 else
5216
5217 cat >>confdefs.h <<_ACEOF
5218 #define mode_t int
5219 _ACEOF
5220
5221 fi
5222
5223 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5224 case $ac_cv_c_int8_t in #(
5225 no|yes) ;; #(
5226 *)
5227
5228 cat >>confdefs.h <<_ACEOF
5229 #define int8_t $ac_cv_c_int8_t
5230 _ACEOF
5231 ;;
5232 esac
5233
5234 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5235 case $ac_cv_c_int16_t in #(
5236 no|yes) ;; #(
5237 *)
5238
5239 cat >>confdefs.h <<_ACEOF
5240 #define int16_t $ac_cv_c_int16_t
5241 _ACEOF
5242 ;;
5243 esac
5244
5245 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5246 case $ac_cv_c_int32_t in #(
5247 no|yes) ;; #(
5248 *)
5249
5250 cat >>confdefs.h <<_ACEOF
5251 #define int32_t $ac_cv_c_int32_t
5252 _ACEOF
5253 ;;
5254 esac
5255
5256 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5257 case $ac_cv_c_int64_t in #(
5258 no|yes) ;; #(
5259 *)
5260
5261 cat >>confdefs.h <<_ACEOF
5262 #define int64_t $ac_cv_c_int64_t
5263 _ACEOF
5264 ;;
5265 esac
5266
5267 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5268 if test "x$ac_cv_type_ssize_t" = x""yes; then :
5269
5270 else
5271
5272 cat >>confdefs.h <<_ACEOF
5273 #define ssize_t int
5274 _ACEOF
5275
5276 fi
5277
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5279 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5280 if test "${ac_cv_type_uid_t+set}" = set; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285 #include <sys/types.h>
5286
5287 _ACEOF
5288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 $EGREP "uid_t" >/dev/null 2>&1; then :
5290 ac_cv_type_uid_t=yes
5291 else
5292 ac_cv_type_uid_t=no
5293 fi
5294 rm -f conftest*
5295
5296 fi
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5298 $as_echo "$ac_cv_type_uid_t" >&6; }
5299 if test $ac_cv_type_uid_t = no; then
5300
5301 $as_echo "#define uid_t int" >>confdefs.h
5302
5303
5304 $as_echo "#define gid_t int" >>confdefs.h
5305
5306 fi
5307
5308 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5309 case $ac_cv_c_uint8_t in #(
5310 no|yes) ;; #(
5311 *)
5312
5313 $as_echo "#define _UINT8_T 1" >>confdefs.h
5314
5315
5316 cat >>confdefs.h <<_ACEOF
5317 #define uint8_t $ac_cv_c_uint8_t
5318 _ACEOF
5319 ;;
5320 esac
5321
5322 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5323 case $ac_cv_c_uint16_t in #(
5324 no|yes) ;; #(
5325 *)
5326
5327
5328 cat >>confdefs.h <<_ACEOF
5329 #define uint16_t $ac_cv_c_uint16_t
5330 _ACEOF
5331 ;;
5332 esac
5333
5334 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5335 case $ac_cv_c_uint32_t in #(
5336 no|yes) ;; #(
5337 *)
5338
5339 $as_echo "#define _UINT32_T 1" >>confdefs.h
5340
5341
5342 cat >>confdefs.h <<_ACEOF
5343 #define uint32_t $ac_cv_c_uint32_t
5344 _ACEOF
5345 ;;
5346 esac
5347
5348 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5349 case $ac_cv_c_uint64_t in #(
5350 no|yes) ;; #(
5351 *)
5352
5353 $as_echo "#define _UINT64_T 1" >>confdefs.h
5354
5355
5356 cat >>confdefs.h <<_ACEOF
5357 #define uint64_t $ac_cv_c_uint64_t
5358 _ACEOF
5359 ;;
5360 esac
5361
5362 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5363 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5364
5365 cat >>confdefs.h <<_ACEOF
5366 #define HAVE_STRUCT_STAT_ST_RDEV 1
5367 _ACEOF
5368
5369
5370 fi
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5373 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5374 if test "${ac_cv_struct_tm+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5379 #include <sys/types.h>
5380 #include <time.h>
5381
5382 int
5383 main ()
5384 {
5385 struct tm tm;
5386 int *p = &tm.tm_sec;
5387 return !p;
5388 ;
5389 return 0;
5390 }
5391 _ACEOF
5392 if ac_fn_c_try_compile "$LINENO"; then :
5393 ac_cv_struct_tm=time.h
5394 else
5395 ac_cv_struct_tm=sys/time.h
5396 fi
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 fi
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5400 $as_echo "$ac_cv_struct_tm" >&6; }
5401 if test $ac_cv_struct_tm = sys/time.h; then
5402
5403 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5404
5405 fi
5406
5407
5408 ################################################################################
5409 for ac_func in ftruncate gethostname getpagesize \
5410 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5411 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5412 strstr strtol strtoul uname
5413 do :
5414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5415 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5416 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5417 cat >>confdefs.h <<_ACEOF
5418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5419 _ACEOF
5420
5421 else
5422 as_fn_error $? "bailing out" "$LINENO" 5
5423 fi
5424 done
5425
5426 for ac_func in siginterrupt
5427 do :
5428 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5429 if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5430 cat >>confdefs.h <<_ACEOF
5431 #define HAVE_SIGINTERRUPT 1
5432 _ACEOF
5433
5434 fi
5435 done
5436
5437 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5438 # for constant arguments. Useless!
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5440 $as_echo_n "checking for working alloca.h... " >&6; }
5441 if test "${ac_cv_working_alloca_h+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 #include <alloca.h>
5447 int
5448 main ()
5449 {
5450 char *p = (char *) alloca (2 * sizeof (int));
5451 if (p) return 0;
5452 ;
5453 return 0;
5454 }
5455 _ACEOF
5456 if ac_fn_c_try_link "$LINENO"; then :
5457 ac_cv_working_alloca_h=yes
5458 else
5459 ac_cv_working_alloca_h=no
5460 fi
5461 rm -f core conftest.err conftest.$ac_objext \
5462 conftest$ac_exeext conftest.$ac_ext
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5465 $as_echo "$ac_cv_working_alloca_h" >&6; }
5466 if test $ac_cv_working_alloca_h = yes; then
5467
5468 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5469
5470 fi
5471
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5473 $as_echo_n "checking for alloca... " >&6; }
5474 if test "${ac_cv_func_alloca_works+set}" = set; then :
5475 $as_echo_n "(cached) " >&6
5476 else
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5479 #ifdef __GNUC__
5480 # define alloca __builtin_alloca
5481 #else
5482 # ifdef _MSC_VER
5483 # include <malloc.h>
5484 # define alloca _alloca
5485 # else
5486 # ifdef HAVE_ALLOCA_H
5487 # include <alloca.h>
5488 # else
5489 # ifdef _AIX
5490 #pragma alloca
5491 # else
5492 # ifndef alloca /* predefined by HP cc +Olibcalls */
5493 char *alloca ();
5494 # endif
5495 # endif
5496 # endif
5497 # endif
5498 #endif
5499
5500 int
5501 main ()
5502 {
5503 char *p = (char *) alloca (1);
5504 if (p) return 0;
5505 ;
5506 return 0;
5507 }
5508 _ACEOF
5509 if ac_fn_c_try_link "$LINENO"; then :
5510 ac_cv_func_alloca_works=yes
5511 else
5512 ac_cv_func_alloca_works=no
5513 fi
5514 rm -f core conftest.err conftest.$ac_objext \
5515 conftest$ac_exeext conftest.$ac_ext
5516 fi
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5518 $as_echo "$ac_cv_func_alloca_works" >&6; }
5519
5520 if test $ac_cv_func_alloca_works = yes; then
5521
5522 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5523
5524 else
5525 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5526 # that cause trouble. Some versions do not even contain alloca or
5527 # contain a buggy version. If you still want to use their alloca,
5528 # use ar to extract alloca.o from them instead of compiling alloca.c.
5529
5530 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5531
5532 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5533
5534
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5536 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5537 if test "${ac_cv_os_cray+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 #if defined CRAY && ! defined CRAY2
5543 webecray
5544 #else
5545 wenotbecray
5546 #endif
5547
5548 _ACEOF
5549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5550 $EGREP "webecray" >/dev/null 2>&1; then :
5551 ac_cv_os_cray=yes
5552 else
5553 ac_cv_os_cray=no
5554 fi
5555 rm -f conftest*
5556
5557 fi
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5559 $as_echo "$ac_cv_os_cray" >&6; }
5560 if test $ac_cv_os_cray = yes; then
5561 for ac_func in _getb67 GETB67 getb67; do
5562 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5563 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5564 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5565
5566 cat >>confdefs.h <<_ACEOF
5567 #define CRAY_STACKSEG_END $ac_func
5568 _ACEOF
5569
5570 break
5571 fi
5572
5573 done
5574 fi
5575
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5577 $as_echo_n "checking stack direction for C alloca... " >&6; }
5578 if test "${ac_cv_c_stack_direction+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test "$cross_compiling" = yes; then :
5582 ac_cv_c_stack_direction=0
5583 else
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 $ac_includes_default
5587 int
5588 find_stack_direction ()
5589 {
5590 static char *addr = 0;
5591 auto char dummy;
5592 if (addr == 0)
5593 {
5594 addr = &dummy;
5595 return find_stack_direction ();
5596 }
5597 else
5598 return (&dummy > addr) ? 1 : -1;
5599 }
5600
5601 int
5602 main ()
5603 {
5604 return find_stack_direction () < 0;
5605 }
5606 _ACEOF
5607 if ac_fn_c_try_run "$LINENO"; then :
5608 ac_cv_c_stack_direction=1
5609 else
5610 ac_cv_c_stack_direction=-1
5611 fi
5612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5613 conftest.$ac_objext conftest.beam conftest.$ac_ext
5614 fi
5615
5616 fi
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5618 $as_echo "$ac_cv_c_stack_direction" >&6; }
5619 cat >>confdefs.h <<_ACEOF
5620 #define STACK_DIRECTION $ac_cv_c_stack_direction
5621 _ACEOF
5622
5623
5624 fi
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5627 $as_echo_n "checking whether closedir returns void... " >&6; }
5628 if test "${ac_cv_func_closedir_void+set}" = set; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5631 if test "$cross_compiling" = yes; then :
5632 ac_cv_func_closedir_void=yes
5633 else
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 $ac_includes_default
5637 #include <$ac_header_dirent>
5638 #ifndef __cplusplus
5639 int closedir ();
5640 #endif
5641
5642 int
5643 main ()
5644 {
5645 return closedir (opendir (".")) != 0;
5646 ;
5647 return 0;
5648 }
5649 _ACEOF
5650 if ac_fn_c_try_run "$LINENO"; then :
5651 ac_cv_func_closedir_void=no
5652 else
5653 ac_cv_func_closedir_void=yes
5654 fi
5655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5656 conftest.$ac_objext conftest.beam conftest.$ac_ext
5657 fi
5658
5659 fi
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5661 $as_echo "$ac_cv_func_closedir_void" >&6; }
5662 if test $ac_cv_func_closedir_void = yes; then
5663
5664 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5665
5666 fi
5667
5668 for ac_header in unistd.h
5669 do :
5670 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5671 if test "x$ac_cv_header_unistd_h" = x""yes; then :
5672 cat >>confdefs.h <<_ACEOF
5673 #define HAVE_UNISTD_H 1
5674 _ACEOF
5675
5676 fi
5677
5678 done
5679
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5681 $as_echo_n "checking for working chown... " >&6; }
5682 if test "${ac_cv_func_chown_works+set}" = set; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 if test "$cross_compiling" = yes; then :
5686 ac_cv_func_chown_works=no
5687 else
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 $ac_includes_default
5691 #include <fcntl.h>
5692
5693 int
5694 main ()
5695 {
5696 char *f = "conftest.chown";
5697 struct stat before, after;
5698
5699 if (creat (f, 0600) < 0)
5700 return 1;
5701 if (stat (f, &before) < 0)
5702 return 1;
5703 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5704 return 1;
5705 if (stat (f, &after) < 0)
5706 return 1;
5707 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
5708
5709 ;
5710 return 0;
5711 }
5712 _ACEOF
5713 if ac_fn_c_try_run "$LINENO"; then :
5714 ac_cv_func_chown_works=yes
5715 else
5716 ac_cv_func_chown_works=no
5717 fi
5718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5719 conftest.$ac_objext conftest.beam conftest.$ac_ext
5720 fi
5721
5722 rm -f conftest.chown
5723
5724 fi
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5726 $as_echo "$ac_cv_func_chown_works" >&6; }
5727 if test $ac_cv_func_chown_works = yes; then
5728
5729 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
5730
5731 fi
5732
5733 for ac_header in vfork.h
5734 do :
5735 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5736 if test "x$ac_cv_header_vfork_h" = x""yes; then :
5737 cat >>confdefs.h <<_ACEOF
5738 #define HAVE_VFORK_H 1
5739 _ACEOF
5740
5741 fi
5742
5743 done
5744
5745 for ac_func in fork vfork
5746 do :
5747 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5748 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5749 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5750 cat >>confdefs.h <<_ACEOF
5751 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5752 _ACEOF
5753
5754 fi
5755 done
5756
5757 if test "x$ac_cv_func_fork" = xyes; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5759 $as_echo_n "checking for working fork... " >&6; }
5760 if test "${ac_cv_func_fork_works+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if test "$cross_compiling" = yes; then :
5764 ac_cv_func_fork_works=cross
5765 else
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768 $ac_includes_default
5769 int
5770 main ()
5771 {
5772
5773 /* By Ruediger Kuhlmann. */
5774 return fork () < 0;
5775
5776 ;
5777 return 0;
5778 }
5779 _ACEOF
5780 if ac_fn_c_try_run "$LINENO"; then :
5781 ac_cv_func_fork_works=yes
5782 else
5783 ac_cv_func_fork_works=no
5784 fi
5785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5786 conftest.$ac_objext conftest.beam conftest.$ac_ext
5787 fi
5788
5789 fi
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5791 $as_echo "$ac_cv_func_fork_works" >&6; }
5792
5793 else
5794 ac_cv_func_fork_works=$ac_cv_func_fork
5795 fi
5796 if test "x$ac_cv_func_fork_works" = xcross; then
5797 case $host in
5798 *-*-amigaos* | *-*-msdosdjgpp*)
5799 # Override, as these systems have only a dummy fork() stub
5800 ac_cv_func_fork_works=no
5801 ;;
5802 *)
5803 ac_cv_func_fork_works=yes
5804 ;;
5805 esac
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5807 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5808 fi
5809 ac_cv_func_vfork_works=$ac_cv_func_vfork
5810 if test "x$ac_cv_func_vfork" = xyes; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5812 $as_echo_n "checking for working vfork... " >&6; }
5813 if test "${ac_cv_func_vfork_works+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 if test "$cross_compiling" = yes; then :
5817 ac_cv_func_vfork_works=cross
5818 else
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 /* Thanks to Paul Eggert for this test. */
5822 $ac_includes_default
5823 #include <sys/wait.h>
5824 #ifdef HAVE_VFORK_H
5825 # include <vfork.h>
5826 #endif
5827 /* On some sparc systems, changes by the child to local and incoming
5828 argument registers are propagated back to the parent. The compiler
5829 is told about this with #include <vfork.h>, but some compilers
5830 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5831 static variable whose address is put into a register that is
5832 clobbered by the vfork. */
5833 static void
5834 #ifdef __cplusplus
5835 sparc_address_test (int arg)
5836 # else
5837 sparc_address_test (arg) int arg;
5838 #endif
5839 {
5840 static pid_t child;
5841 if (!child) {
5842 child = vfork ();
5843 if (child < 0) {
5844 perror ("vfork");
5845 _exit(2);
5846 }
5847 if (!child) {
5848 arg = getpid();
5849 write(-1, "", 0);
5850 _exit (arg);
5851 }
5852 }
5853 }
5854
5855 int
5856 main ()
5857 {
5858 pid_t parent = getpid ();
5859 pid_t child;
5860
5861 sparc_address_test (0);
5862
5863 child = vfork ();
5864
5865 if (child == 0) {
5866 /* Here is another test for sparc vfork register problems. This
5867 test uses lots of local variables, at least as many local
5868 variables as main has allocated so far including compiler
5869 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5870 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5871 reuse the register of parent for one of the local variables,
5872 since it will think that parent can't possibly be used any more
5873 in this routine. Assigning to the local variable will thus
5874 munge parent in the parent process. */
5875 pid_t
5876 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5877 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5878 /* Convince the compiler that p..p7 are live; otherwise, it might
5879 use the same hardware register for all 8 local variables. */
5880 if (p != p1 || p != p2 || p != p3 || p != p4
5881 || p != p5 || p != p6 || p != p7)
5882 _exit(1);
5883
5884 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5885 from child file descriptors. If the child closes a descriptor
5886 before it execs or exits, this munges the parent's descriptor
5887 as well. Test for this by closing stdout in the child. */
5888 _exit(close(fileno(stdout)) != 0);
5889 } else {
5890 int status;
5891 struct stat st;
5892
5893 while (wait(&status) != child)
5894 ;
5895 return (
5896 /* Was there some problem with vforking? */
5897 child < 0
5898
5899 /* Did the child fail? (This shouldn't happen.) */
5900 || status
5901
5902 /* Did the vfork/compiler bug occur? */
5903 || parent != getpid()
5904
5905 /* Did the file descriptor bug occur? */
5906 || fstat(fileno(stdout), &st) != 0
5907 );
5908 }
5909 }
5910 _ACEOF
5911 if ac_fn_c_try_run "$LINENO"; then :
5912 ac_cv_func_vfork_works=yes
5913 else
5914 ac_cv_func_vfork_works=no
5915 fi
5916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5917 conftest.$ac_objext conftest.beam conftest.$ac_ext
5918 fi
5919
5920 fi
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5922 $as_echo "$ac_cv_func_vfork_works" >&6; }
5923
5924 fi;
5925 if test "x$ac_cv_func_fork_works" = xcross; then
5926 ac_cv_func_vfork_works=$ac_cv_func_vfork
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5928 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5929 fi
5930
5931 if test "x$ac_cv_func_vfork_works" = xyes; then
5932
5933 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5934
5935 else
5936
5937 $as_echo "#define vfork fork" >>confdefs.h
5938
5939 fi
5940 if test "x$ac_cv_func_fork_works" = xyes; then
5941
5942 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5943
5944 fi
5945
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5947 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5948 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 rm -f conftest.sym conftest.file
5952 echo >conftest.file
5953 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5954 if test "$cross_compiling" = yes; then :
5955 ac_cv_func_lstat_dereferences_slashed_symlink=no
5956 else
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5959 $ac_includes_default
5960 int
5961 main ()
5962 {
5963 struct stat sbuf;
5964 /* Linux will dereference the symlink and fail, as required by POSIX.
5965 That is better in the sense that it means we will not
5966 have to compile and use the lstat wrapper. */
5967 return lstat ("conftest.sym/", &sbuf) == 0;
5968 ;
5969 return 0;
5970 }
5971 _ACEOF
5972 if ac_fn_c_try_run "$LINENO"; then :
5973 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5974 else
5975 ac_cv_func_lstat_dereferences_slashed_symlink=no
5976 fi
5977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5978 conftest.$ac_objext conftest.beam conftest.$ac_ext
5979 fi
5980
5981 else
5982 # If the `ln -s' command failed, then we probably don't even
5983 # have an lstat function.
5984 ac_cv_func_lstat_dereferences_slashed_symlink=no
5985 fi
5986 rm -f conftest.sym conftest.file
5987
5988 fi
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5990 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5991
5992 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5993
5994 cat >>confdefs.h <<_ACEOF
5995 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5996 _ACEOF
5997
5998
5999 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6000 case " $LIBOBJS " in
6001 *" lstat.$ac_objext "* ) ;;
6002 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6003 ;;
6004 esac
6005
6006 fi
6007
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6009 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6010 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 if test "$cross_compiling" = yes; then :
6014 ac_cv_func_lstat_empty_string_bug=yes
6015 else
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6018 $ac_includes_default
6019 int
6020 main ()
6021 {
6022 struct stat sbuf;
6023 return lstat ("", &sbuf) == 0;
6024 ;
6025 return 0;
6026 }
6027 _ACEOF
6028 if ac_fn_c_try_run "$LINENO"; then :
6029 ac_cv_func_lstat_empty_string_bug=no
6030 else
6031 ac_cv_func_lstat_empty_string_bug=yes
6032 fi
6033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6034 conftest.$ac_objext conftest.beam conftest.$ac_ext
6035 fi
6036
6037 fi
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6039 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6040 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6041 case " $LIBOBJS " in
6042 *" lstat.$ac_objext "* ) ;;
6043 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6044 ;;
6045 esac
6046
6047
6048 cat >>confdefs.h <<_ACEOF
6049 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6050 _ACEOF
6051
6052 fi
6053
6054 for ac_header in stdlib.h
6055 do :
6056 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6057 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6058 cat >>confdefs.h <<_ACEOF
6059 #define HAVE_STDLIB_H 1
6060 _ACEOF
6061
6062 fi
6063
6064 done
6065
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6067 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6068 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6070 else
6071 if test "$cross_compiling" = yes; then :
6072 ac_cv_func_malloc_0_nonnull=no
6073 else
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6077 # include <stdlib.h>
6078 #else
6079 char *malloc ();
6080 #endif
6081
6082 int
6083 main ()
6084 {
6085 return ! malloc (0);
6086 ;
6087 return 0;
6088 }
6089 _ACEOF
6090 if ac_fn_c_try_run "$LINENO"; then :
6091 ac_cv_func_malloc_0_nonnull=yes
6092 else
6093 ac_cv_func_malloc_0_nonnull=no
6094 fi
6095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6096 conftest.$ac_objext conftest.beam conftest.$ac_ext
6097 fi
6098
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6101 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6102 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6103
6104 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6105
6106 else
6107 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6108
6109 case " $LIBOBJS " in
6110 *" malloc.$ac_objext "* ) ;;
6111 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6112 ;;
6113 esac
6114
6115
6116 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6117
6118 fi
6119
6120
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6122 $as_echo_n "checking for working memcmp... " >&6; }
6123 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126 if test "$cross_compiling" = yes; then :
6127 ac_cv_func_memcmp_working=no
6128 else
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131 $ac_includes_default
6132 int
6133 main ()
6134 {
6135
6136 /* Some versions of memcmp are not 8-bit clean. */
6137 char c0 = '\100', c1 = '\200', c2 = '\201';
6138 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6139 return 1;
6140
6141 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6142 or more and with at least one buffer not starting on a 4-byte boundary.
6143 William Lewis provided this test program. */
6144 {
6145 char foo[21];
6146 char bar[21];
6147 int i;
6148 for (i = 0; i < 4; i++)
6149 {
6150 char *a = foo + i;
6151 char *b = bar + i;
6152 strcpy (a, "--------01111111");
6153 strcpy (b, "--------10000000");
6154 if (memcmp (a, b, 16) >= 0)
6155 return 1;
6156 }
6157 return 0;
6158 }
6159
6160 ;
6161 return 0;
6162 }
6163 _ACEOF
6164 if ac_fn_c_try_run "$LINENO"; then :
6165 ac_cv_func_memcmp_working=yes
6166 else
6167 ac_cv_func_memcmp_working=no
6168 fi
6169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6170 conftest.$ac_objext conftest.beam conftest.$ac_ext
6171 fi
6172
6173 fi
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6175 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6176 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6177 *" memcmp.$ac_objext "* ) ;;
6178 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6179 ;;
6180 esac
6181
6182
6183
6184
6185
6186 for ac_header in $ac_header_list
6187 do :
6188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6189 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6190 "
6191 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6192 cat >>confdefs.h <<_ACEOF
6193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6194 _ACEOF
6195
6196 fi
6197
6198 done
6199
6200
6201
6202
6203
6204
6205
6206
6207 for ac_func in getpagesize
6208 do :
6209 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6210 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6211 cat >>confdefs.h <<_ACEOF
6212 #define HAVE_GETPAGESIZE 1
6213 _ACEOF
6214
6215 fi
6216 done
6217
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6219 $as_echo_n "checking for working mmap... " >&6; }
6220 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 if test "$cross_compiling" = yes; then :
6224 ac_cv_func_mmap_fixed_mapped=no
6225 else
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228 $ac_includes_default
6229 /* malloc might have been renamed as rpl_malloc. */
6230 #undef malloc
6231
6232 /* Thanks to Mike Haertel and Jim Avera for this test.
6233 Here is a matrix of mmap possibilities:
6234 mmap private not fixed
6235 mmap private fixed at somewhere currently unmapped
6236 mmap private fixed at somewhere already mapped
6237 mmap shared not fixed
6238 mmap shared fixed at somewhere currently unmapped
6239 mmap shared fixed at somewhere already mapped
6240 For private mappings, we should verify that changes cannot be read()
6241 back from the file, nor mmap's back from the file at a different
6242 address. (There have been systems where private was not correctly
6243 implemented like the infamous i386 svr4.0, and systems where the
6244 VM page cache was not coherent with the file system buffer cache
6245 like early versions of FreeBSD and possibly contemporary NetBSD.)
6246 For shared mappings, we should conversely verify that changes get
6247 propagated back to all the places they're supposed to be.
6248
6249 Grep wants private fixed already mapped.
6250 The main things grep needs to know about mmap are:
6251 * does it exist and is it safe to write into the mmap'd area
6252 * how to use it (BSD variants) */
6253
6254 #include <fcntl.h>
6255 #include <sys/mman.h>
6256
6257 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6258 char *malloc ();
6259 #endif
6260
6261 /* This mess was copied from the GNU getpagesize.h. */
6262 #ifndef HAVE_GETPAGESIZE
6263 # ifdef _SC_PAGESIZE
6264 # define getpagesize() sysconf(_SC_PAGESIZE)
6265 # else /* no _SC_PAGESIZE */
6266 # ifdef HAVE_SYS_PARAM_H
6267 # include <sys/param.h>
6268 # ifdef EXEC_PAGESIZE
6269 # define getpagesize() EXEC_PAGESIZE
6270 # else /* no EXEC_PAGESIZE */
6271 # ifdef NBPG
6272 # define getpagesize() NBPG * CLSIZE
6273 # ifndef CLSIZE
6274 # define CLSIZE 1
6275 # endif /* no CLSIZE */
6276 # else /* no NBPG */
6277 # ifdef NBPC
6278 # define getpagesize() NBPC
6279 # else /* no NBPC */
6280 # ifdef PAGESIZE
6281 # define getpagesize() PAGESIZE
6282 # endif /* PAGESIZE */
6283 # endif /* no NBPC */
6284 # endif /* no NBPG */
6285 # endif /* no EXEC_PAGESIZE */
6286 # else /* no HAVE_SYS_PARAM_H */
6287 # define getpagesize() 8192 /* punt totally */
6288 # endif /* no HAVE_SYS_PARAM_H */
6289 # endif /* no _SC_PAGESIZE */
6290
6291 #endif /* no HAVE_GETPAGESIZE */
6292
6293 int
6294 main ()
6295 {
6296 char *data, *data2, *data3;
6297 const char *cdata2;
6298 int i, pagesize;
6299 int fd, fd2;
6300
6301 pagesize = getpagesize ();
6302
6303 /* First, make a file with some known garbage in it. */
6304 data = (char *) malloc (pagesize);
6305 if (!data)
6306 return 1;
6307 for (i = 0; i < pagesize; ++i)
6308 *(data + i) = rand ();
6309 umask (0);
6310 fd = creat ("conftest.mmap", 0600);
6311 if (fd < 0)
6312 return 2;
6313 if (write (fd, data, pagesize) != pagesize)
6314 return 3;
6315 close (fd);
6316
6317 /* Next, check that the tail of a page is zero-filled. File must have
6318 non-zero length, otherwise we risk SIGBUS for entire page. */
6319 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6320 if (fd2 < 0)
6321 return 4;
6322 cdata2 = "";
6323 if (write (fd2, cdata2, 1) != 1)
6324 return 5;
6325 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6326 if (data2 == MAP_FAILED)
6327 return 6;
6328 for (i = 0; i < pagesize; ++i)
6329 if (*(data2 + i))
6330 return 7;
6331 close (fd2);
6332 if (munmap (data2, pagesize))
6333 return 8;
6334
6335 /* Next, try to mmap the file at a fixed address which already has
6336 something else allocated at it. If we can, also make sure that
6337 we see the same garbage. */
6338 fd = open ("conftest.mmap", O_RDWR);
6339 if (fd < 0)
6340 return 9;
6341 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6342 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6343 return 10;
6344 for (i = 0; i < pagesize; ++i)
6345 if (*(data + i) != *(data2 + i))
6346 return 11;
6347
6348 /* Finally, make sure that changes to the mapped area do not
6349 percolate back to the file as seen by read(). (This is a bug on
6350 some variants of i386 svr4.0.) */
6351 for (i = 0; i < pagesize; ++i)
6352 *(data2 + i) = *(data2 + i) + 1;
6353 data3 = (char *) malloc (pagesize);
6354 if (!data3)
6355 return 12;
6356 if (read (fd, data3, pagesize) != pagesize)
6357 return 13;
6358 for (i = 0; i < pagesize; ++i)
6359 if (*(data + i) != *(data3 + i))
6360 return 14;
6361 close (fd);
6362 return 0;
6363 }
6364 _ACEOF
6365 if ac_fn_c_try_run "$LINENO"; then :
6366 ac_cv_func_mmap_fixed_mapped=yes
6367 else
6368 ac_cv_func_mmap_fixed_mapped=no
6369 fi
6370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6371 conftest.$ac_objext conftest.beam conftest.$ac_ext
6372 fi
6373
6374 fi
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6376 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6377 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6378
6379 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6380
6381 fi
6382 rm -f conftest.mmap conftest.txt
6383
6384 for ac_header in stdlib.h
6385 do :
6386 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6387 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6388 cat >>confdefs.h <<_ACEOF
6389 #define HAVE_STDLIB_H 1
6390 _ACEOF
6391
6392 fi
6393
6394 done
6395
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6397 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6398 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6401 if test "$cross_compiling" = yes; then :
6402 ac_cv_func_realloc_0_nonnull=no
6403 else
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6406 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6407 # include <stdlib.h>
6408 #else
6409 char *realloc ();
6410 #endif
6411
6412 int
6413 main ()
6414 {
6415 return ! realloc (0, 0);
6416 ;
6417 return 0;
6418 }
6419 _ACEOF
6420 if ac_fn_c_try_run "$LINENO"; then :
6421 ac_cv_func_realloc_0_nonnull=yes
6422 else
6423 ac_cv_func_realloc_0_nonnull=no
6424 fi
6425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6426 conftest.$ac_objext conftest.beam conftest.$ac_ext
6427 fi
6428
6429 fi
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6431 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6432 if test $ac_cv_func_realloc_0_nonnull = yes; then :
6433
6434 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6435
6436 else
6437 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6438
6439 case " $LIBOBJS " in
6440 *" realloc.$ac_objext "* ) ;;
6441 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6442 ;;
6443 esac
6444
6445
6446 $as_echo "#define realloc rpl_realloc" >>confdefs.h
6447
6448 fi
6449
6450
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6452 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
6453 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 if test "$cross_compiling" = yes; then :
6457 ac_cv_func_stat_empty_string_bug=yes
6458 else
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6461 $ac_includes_default
6462 int
6463 main ()
6464 {
6465 struct stat sbuf;
6466 return stat ("", &sbuf) == 0;
6467 ;
6468 return 0;
6469 }
6470 _ACEOF
6471 if ac_fn_c_try_run "$LINENO"; then :
6472 ac_cv_func_stat_empty_string_bug=no
6473 else
6474 ac_cv_func_stat_empty_string_bug=yes
6475 fi
6476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6477 conftest.$ac_objext conftest.beam conftest.$ac_ext
6478 fi
6479
6480 fi
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6482 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6483 if test $ac_cv_func_stat_empty_string_bug = yes; then
6484 case " $LIBOBJS " in
6485 *" stat.$ac_objext "* ) ;;
6486 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6487 ;;
6488 esac
6489
6490
6491 cat >>confdefs.h <<_ACEOF
6492 #define HAVE_STAT_EMPTY_STRING_BUG 1
6493 _ACEOF
6494
6495 fi
6496
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6498 $as_echo_n "checking for working strtod... " >&6; }
6499 if test "${ac_cv_func_strtod+set}" = set; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 if test "$cross_compiling" = yes; then :
6503 ac_cv_func_strtod=no
6504 else
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6507
6508 $ac_includes_default
6509 #ifndef strtod
6510 double strtod ();
6511 #endif
6512 int
6513 main()
6514 {
6515 {
6516 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6517 char *string = " +69";
6518 char *term;
6519 double value;
6520 value = strtod (string, &term);
6521 if (value != 69 || term != (string + 4))
6522 return 1;
6523 }
6524
6525 {
6526 /* Under Solaris 2.4, strtod returns the wrong value for the
6527 terminating character under some conditions. */
6528 char *string = "NaN";
6529 char *term;
6530 strtod (string, &term);
6531 if (term != string && *(term - 1) == 0)
6532 return 1;
6533 }
6534 return 0;
6535 }
6536
6537 _ACEOF
6538 if ac_fn_c_try_run "$LINENO"; then :
6539 ac_cv_func_strtod=yes
6540 else
6541 ac_cv_func_strtod=no
6542 fi
6543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6544 conftest.$ac_objext conftest.beam conftest.$ac_ext
6545 fi
6546
6547 fi
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6549 $as_echo "$ac_cv_func_strtod" >&6; }
6550 if test $ac_cv_func_strtod = no; then
6551 case " $LIBOBJS " in
6552 *" strtod.$ac_objext "* ) ;;
6553 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6554 ;;
6555 esac
6556
6557 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6558 if test "x$ac_cv_func_pow" = x""yes; then :
6559
6560 fi
6561
6562 if test $ac_cv_func_pow = no; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6564 $as_echo_n "checking for pow in -lm... " >&6; }
6565 if test "${ac_cv_lib_m_pow+set}" = set; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568 ac_check_lib_save_LIBS=$LIBS
6569 LIBS="-lm $LIBS"
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572
6573 /* Override any GCC internal prototype to avoid an error.
6574 Use char because int might match the return type of a GCC
6575 builtin and then its argument prototype would still apply. */
6576 #ifdef __cplusplus
6577 extern "C"
6578 #endif
6579 char pow ();
6580 int
6581 main ()
6582 {
6583 return pow ();
6584 ;
6585 return 0;
6586 }
6587 _ACEOF
6588 if ac_fn_c_try_link "$LINENO"; then :
6589 ac_cv_lib_m_pow=yes
6590 else
6591 ac_cv_lib_m_pow=no
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext \
6594 conftest$ac_exeext conftest.$ac_ext
6595 LIBS=$ac_check_lib_save_LIBS
6596 fi
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6598 $as_echo "$ac_cv_lib_m_pow" >&6; }
6599 if test "x$ac_cv_lib_m_pow" = x""yes; then :
6600 POW_LIB=-lm
6601 else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6603 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6604 fi
6605
6606 fi
6607
6608 fi
6609
6610 for ac_func in vprintf
6611 do :
6612 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6613 if test "x$ac_cv_func_vprintf" = x""yes; then :
6614 cat >>confdefs.h <<_ACEOF
6615 #define HAVE_VPRINTF 1
6616 _ACEOF
6617
6618 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6619 if test "x$ac_cv_func__doprnt" = x""yes; then :
6620
6621 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6622
6623 fi
6624
6625 fi
6626 done
6627
6628
6629
6630 ################################################################################
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6632 $as_echo_n "checking whether to use static linking... " >&6; }
6633 # Check whether --enable-static_link was given.
6634 if test "${enable_static_link+set}" = set; then :
6635 enableval=$enable_static_link; STATIC_LINK=$enableval
6636 else
6637 STATIC_LINK=no
6638 fi
6639
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6641 $as_echo "$STATIC_LINK" >&6; }
6642
6643 ################################################################################
6644
6645
6646 ################################################################################
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6648 $as_echo_n "checking file owner... " >&6; }
6649
6650 # Check whether --with-user was given.
6651 if test "${with_user+set}" = set; then :
6652 withval=$with_user; OWNER=$withval
6653 fi
6654
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6656 $as_echo "$OWNER" >&6; }
6657
6658 if test x$OWNER != x; then
6659 INSTALL="$INSTALL -o $OWNER"
6660 fi
6661
6662 ################################################################################
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6664 $as_echo_n "checking group owner... " >&6; }
6665
6666 # Check whether --with-group was given.
6667 if test "${with_group+set}" = set; then :
6668 withval=$with_group; GROUP=$withval
6669 fi
6670
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6672 $as_echo "$GROUP" >&6; }
6673
6674 if test x$GROUP != x; then
6675 INSTALL="$INSTALL -g $GROUP"
6676 fi
6677
6678 ################################################################################
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6680 $as_echo_n "checking device node uid... " >&6; }
6681
6682
6683 # Check whether --with-device-uid was given.
6684 if test "${with_device_uid+set}" = set; then :
6685 withval=$with_device_uid; DM_DEVICE_UID=$withval
6686 else
6687 DM_DEVICE_UID=0
6688 fi
6689
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6691 $as_echo "$DM_DEVICE_UID" >&6; }
6692
6693 ################################################################################
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6695 $as_echo_n "checking device node gid... " >&6; }
6696
6697
6698 # Check whether --with-device-gid was given.
6699 if test "${with_device_gid+set}" = set; then :
6700 withval=$with_device_gid; DM_DEVICE_GID=$withval
6701 else
6702 DM_DEVICE_GID=0
6703 fi
6704
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6706 $as_echo "$DM_DEVICE_GID" >&6; }
6707
6708 ################################################################################
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6710 $as_echo_n "checking device node mode... " >&6; }
6711
6712
6713 # Check whether --with-device-mode was given.
6714 if test "${with_device_mode+set}" = set; then :
6715 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6716 else
6717 DM_DEVICE_MODE=0600
6718 fi
6719
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6721 $as_echo "$DM_DEVICE_MODE" >&6; }
6722
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6724 $as_echo_n "checking when to create device nodes... " >&6; }
6725
6726 # Check whether --with-device-nodes-on was given.
6727 if test "${with_device_nodes_on+set}" = set; then :
6728 withval=$with_device_nodes_on; ADD_NODE=$withval
6729 else
6730 ADD_NODE=resume
6731 fi
6732
6733 case "$ADD_NODE" in
6734 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6735 create) add_on=DM_ADD_NODE_ON_CREATE;;
6736 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6737 esac
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6739 $as_echo "on $ADD_NODE" >&6; }
6740
6741 cat >>confdefs.h <<_ACEOF
6742 #define DEFAULT_DM_ADD_NODE $add_on
6743 _ACEOF
6744
6745
6746 ################################################################################
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6748 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6749 # Check whether --enable-lvm1_fallback was given.
6750 if test "${enable_lvm1_fallback+set}" = set; then :
6751 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6752 else
6753 LVM1_FALLBACK=no
6754 fi
6755
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6757 $as_echo "$LVM1_FALLBACK" >&6; }
6758
6759 if test x$LVM1_FALLBACK = xyes; then
6760
6761 $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
6762
6763 fi
6764
6765 ################################################################################
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6767 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6768
6769 # Check whether --with-lvm1 was given.
6770 if test "${with_lvm1+set}" = set; then :
6771 withval=$with_lvm1; LVM1=$withval
6772 else
6773 LVM1=internal
6774 fi
6775
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6777 $as_echo "$LVM1" >&6; }
6778
6779 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6780 then as_fn_error $? "--with-lvm1 parameter invalid
6781 " "$LINENO" 5
6782 fi;
6783
6784 if test x$LVM1 = xinternal; then
6785
6786 $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6787
6788 fi
6789
6790 ################################################################################
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6792 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6793
6794 # Check whether --with-pool was given.
6795 if test "${with_pool+set}" = set; then :
6796 withval=$with_pool; POOL=$withval
6797 else
6798 POOL=internal
6799 fi
6800
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6802 $as_echo "$POOL" >&6; }
6803
6804 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6805 then as_fn_error $? "--with-pool parameter invalid
6806 " "$LINENO" 5
6807 fi;
6808
6809 if test x$POOL = xinternal; then
6810
6811 $as_echo "#define POOL_INTERNAL 1" >>confdefs.h
6812
6813 fi
6814
6815 ################################################################################
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6817 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
6818
6819 # Check whether --with-cluster was given.
6820 if test "${with_cluster+set}" = set; then :
6821 withval=$with_cluster; CLUSTER=$withval
6822 fi
6823
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6825 $as_echo "$CLUSTER" >&6; }
6826
6827 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6828 then as_fn_error $? "--with-cluster parameter invalid
6829 " "$LINENO" 5
6830 fi;
6831
6832 if test x$CLUSTER = xinternal; then
6833
6834 $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
6835
6836 fi
6837
6838 ################################################################################
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6840 $as_echo_n "checking whether to include snapshots... " >&6; }
6841
6842 # Check whether --with-snapshots was given.
6843 if test "${with_snapshots+set}" = set; then :
6844 withval=$with_snapshots; SNAPSHOTS=$withval
6845 else
6846 SNAPSHOTS=internal
6847 fi
6848
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6850 $as_echo "$SNAPSHOTS" >&6; }
6851
6852 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6853 then as_fn_error $? "--with-snapshots parameter invalid
6854 " "$LINENO" 5
6855 fi;
6856
6857 if test x$SNAPSHOTS = xinternal; then
6858
6859 $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6860
6861 fi
6862
6863 ################################################################################
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6865 $as_echo_n "checking whether to include mirrors... " >&6; }
6866
6867 # Check whether --with-mirrors was given.
6868 if test "${with_mirrors+set}" = set; then :
6869 withval=$with_mirrors; MIRRORS=$withval
6870 else
6871 MIRRORS=internal
6872 fi
6873
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6875 $as_echo "$MIRRORS" >&6; }
6876
6877 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6878 then as_fn_error $? "--with-mirrors parameter invalid
6879 " "$LINENO" 5
6880 fi;
6881
6882 if test x$MIRRORS = xinternal; then
6883
6884 $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6885
6886 fi
6887
6888 ################################################################################
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6890 $as_echo_n "checking whether to include replicators... " >&6; }
6891
6892 # Check whether --with-replicators was given.
6893 if test "${with_replicators+set}" = set; then :
6894 withval=$with_replicators; REPLICATORS=$withval
6895 else
6896 REPLICATORS=none
6897 fi
6898
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6900 $as_echo "$REPLICATORS" >&6; }
6901
6902 case "$REPLICATORS" in
6903 none|shared) ;;
6904 internal)
6905 $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6906 ;;
6907 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
6908 esac
6909
6910 ################################################################################
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6912 $as_echo_n "checking whether to enable readline... " >&6; }
6913 # Check whether --enable-readline was given.
6914 if test "${enable_readline+set}" = set; then :
6915 enableval=$enable_readline; READLINE=$enableval
6916 else
6917 READLINE=maybe
6918 fi
6919
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6921 $as_echo "$READLINE" >&6; }
6922
6923 ################################################################################
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6925 $as_echo_n "checking whether to enable realtime support... " >&6; }
6926 # Check whether --enable-realtime was given.
6927 if test "${enable_realtime+set}" = set; then :
6928 enableval=$enable_realtime; REALTIME=$enableval
6929 fi
6930
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6932 $as_echo "$REALTIME" >&6; }
6933
6934 ################################################################################
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6936 $as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6937 # Check whether --enable-ocf was given.
6938 if test "${enable_ocf+set}" = set; then :
6939 enableval=$enable_ocf; OCF=$enableval
6940 else
6941 OCF=no
6942 fi
6943
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6945 $as_echo "$OCF" >&6; }
6946
6947 # Check whether --with-ocfdir was given.
6948 if test "${with_ocfdir+set}" = set; then :
6949 withval=$with_ocfdir; OCFDIR=$withval
6950 else
6951 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
6952 fi
6953
6954
6955 ################################################################################
6956 pkg_config_init() {
6957
6958
6959
6960
6961
6962
6963 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6964 if test -n "$ac_tool_prefix"; then
6965 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6966 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6970 $as_echo_n "(cached) " >&6
6971 else
6972 case $PKG_CONFIG in
6973 [\\/]* | ?:[\\/]*)
6974 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6975 ;;
6976 *)
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6987 fi
6988 done
6989 done
6990 IFS=$as_save_IFS
6991
6992 ;;
6993 esac
6994 fi
6995 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6996 if test -n "$PKG_CONFIG"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6998 $as_echo "$PKG_CONFIG" >&6; }
6999 else
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7002 fi
7003
7004
7005 fi
7006 if test -z "$ac_cv_path_PKG_CONFIG"; then
7007 ac_pt_PKG_CONFIG=$PKG_CONFIG
7008 # Extract the first word of "pkg-config", so it can be a program name with args.
7009 set dummy pkg-config; ac_word=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 case $ac_pt_PKG_CONFIG in
7016 [\\/]* | ?:[\\/]*)
7017 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7018 ;;
7019 *)
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7022 do
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7030 fi
7031 done
7032 done
7033 IFS=$as_save_IFS
7034
7035 ;;
7036 esac
7037 fi
7038 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7039 if test -n "$ac_pt_PKG_CONFIG"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7041 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7042 else
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7045 fi
7046
7047 if test "x$ac_pt_PKG_CONFIG" = x; then
7048 PKG_CONFIG=""
7049 else
7050 case $cross_compiling:$ac_tool_warned in
7051 yes:)
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7054 ac_tool_warned=yes ;;
7055 esac
7056 PKG_CONFIG=$ac_pt_PKG_CONFIG
7057 fi
7058 else
7059 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7060 fi
7061
7062 fi
7063 if test -n "$PKG_CONFIG"; then
7064 _pkg_min_version=0.9.0
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7066 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7067 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7069 $as_echo "yes" >&6; }
7070 else
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7073 PKG_CONFIG=""
7074 fi
7075 fi
7076
7077 pkg_failed=no
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7079 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
7080
7081 if test -n "$PKGCONFIGINIT_CFLAGS"; then
7082 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7083 elif test -n "$PKG_CONFIG"; then
7084 if test -n "$PKG_CONFIG" && \
7085 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7086 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7087 ac_status=$?
7088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7089 test $ac_status = 0; }; then
7090 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
7091 else
7092 pkg_failed=yes
7093 fi
7094 else
7095 pkg_failed=untried
7096 fi
7097 if test -n "$PKGCONFIGINIT_LIBS"; then
7098 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7099 elif test -n "$PKG_CONFIG"; then
7100 if test -n "$PKG_CONFIG" && \
7101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7102 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7103 ac_status=$?
7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105 test $ac_status = 0; }; then
7106 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
7107 else
7108 pkg_failed=yes
7109 fi
7110 else
7111 pkg_failed=untried
7112 fi
7113
7114
7115
7116 if test $pkg_failed = yes; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 $as_echo "no" >&6; }
7119
7120 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7121 _pkg_short_errors_supported=yes
7122 else
7123 _pkg_short_errors_supported=no
7124 fi
7125 if test $_pkg_short_errors_supported = yes; then
7126 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7127 else
7128 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7129 fi
7130 # Put the nasty error message in config.log where it belongs
7131 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7132
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7134 $as_echo "pkg-config initialized" >&6; }
7135 elif test $pkg_failed = untried; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7139 $as_echo "pkg-config initialized" >&6; }
7140 else
7141 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7142 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7144 $as_echo "yes" >&6; }
7145
7146 fi
7147 PKGCONFIG_INIT=1
7148 }
7149
7150 ################################################################################
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7152 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
7153
7154 # Check whether --with-clvmd was given.
7155 if test "${with_clvmd+set}" = set; then :
7156 withval=$with_clvmd; CLVMD=$withval
7157 else
7158 CLVMD=none
7159 fi
7160
7161 if test x$CLVMD = xyes; then
7162 CLVMD=all
7163 fi
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7165 $as_echo "$CLVMD" >&6; }
7166
7167 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7168 CLUSTER=internal
7169 fi
7170
7171 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7172 pkg_config_init
7173 fi
7174
7175 CLVMD_CMANAGERS=""
7176 CLVMD_NEEDS_QDISKD=no
7177
7178 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7179 BUILDGULM=yes
7180 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
7181 CLVMD_NEEDS_QDISKD=yes
7182 fi
7183 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7184 BUILDCMAN=yes
7185 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7186 CLVMD_NEEDS_QDISKD=yes
7187 fi
7188 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7189 BUILDCOROSYNC=yes
7190 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7191 fi
7192 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7193 BUILDOPENAIS=yes
7194 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7195 fi
7196 if test x$CLVMD_NEEDS_QDISKD != xno; then
7197 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
7198 fi
7199
7200 if test x$BUILDGULM = xyes; then
7201 if test x$BUILDCOROSYNC = xyes || \
7202 test x$BUILDOPENAIS = xyes; then
7203 as_fn_error $? "requested clvmd configuration is not valid" "$LINENO" 5
7204 fi
7205 fi
7206
7207 soft_bailout() {
7208 NOTFOUND=1
7209 }
7210
7211 hard_bailout() {
7212 as_fn_error $? "bailing out" "$LINENO" 5
7213 }
7214
7215 if test x$CLVMD = xall; then
7216 bailout=soft_bailout
7217 BUILDGULM=yes
7218 BUILDCMAN=yes
7219 BUILDCOROSYNC=yes
7220 BUILDOPENAIS=yes
7221 else
7222 bailout=hard_bailout
7223 fi
7224
7225 check_lib_no_libs() {
7226 lib_no_libs_arg1=$1
7227 shift
7228 lib_no_libs_arg2=$1
7229 shift
7230 lib_no_libs_args=$@
7231 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7233 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7234 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 ac_check_lib_save_LIBS=$LIBS
7238 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241
7242 /* Override any GCC internal prototype to avoid an error.
7243 Use char because int might match the return type of a GCC
7244 builtin and then its argument prototype would still apply. */
7245 #ifdef __cplusplus
7246 extern "C"
7247 #endif
7248 char $lib_no_libs_arg2 ();
7249 int
7250 main ()
7251 {
7252 return $lib_no_libs_arg2 ();
7253 ;
7254 return 0;
7255 }
7256 _ACEOF
7257 if ac_fn_c_try_link "$LINENO"; then :
7258 eval "$as_ac_Lib=yes"
7259 else
7260 eval "$as_ac_Lib=no"
7261 fi
7262 rm -f core conftest.err conftest.$ac_objext \
7263 conftest$ac_exeext conftest.$ac_ext
7264 LIBS=$ac_check_lib_save_LIBS
7265 fi
7266 eval ac_res=\$$as_ac_Lib
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7268 $as_echo "$ac_res" >&6; }
7269 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7270 cat >>confdefs.h <<_ACEOF
7271 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7272 _ACEOF
7273
7274 LIBS="-l$lib_no_libs_arg1 $LIBS"
7275
7276 else
7277 $bailout
7278 fi
7279
7280 LIBS=$ac_check_lib_save_LIBS
7281 }
7282
7283 if test x$BUILDGULM = xyes; then
7284
7285 pkg_failed=no
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCS" >&5
7287 $as_echo_n "checking for CCS... " >&6; }
7288
7289 if test -n "$CCS_CFLAGS"; then
7290 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
7291 elif test -n "$PKG_CONFIG"; then
7292 if test -n "$PKG_CONFIG" && \
7293 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7294 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7295 ac_status=$?
7296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7297 test $ac_status = 0; }; then
7298 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
7299 else
7300 pkg_failed=yes
7301 fi
7302 else
7303 pkg_failed=untried
7304 fi
7305 if test -n "$CCS_LIBS"; then
7306 pkg_cv_CCS_LIBS="$CCS_LIBS"
7307 elif test -n "$PKG_CONFIG"; then
7308 if test -n "$PKG_CONFIG" && \
7309 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7310 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7311 ac_status=$?
7312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7313 test $ac_status = 0; }; then
7314 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
7315 else
7316 pkg_failed=yes
7317 fi
7318 else
7319 pkg_failed=untried
7320 fi
7321
7322
7323
7324 if test $pkg_failed = yes; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327
7328 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7329 _pkg_short_errors_supported=yes
7330 else
7331 _pkg_short_errors_supported=no
7332 fi
7333 if test $_pkg_short_errors_supported = yes; then
7334 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
7335 else
7336 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
7337 fi
7338 # Put the nasty error message in config.log where it belongs
7339 echo "$CCS_PKG_ERRORS" >&5
7340
7341 NOTFOUND=0
7342 for ac_header in ccs.h
7343 do :
7344 ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7345 if test "x$ac_cv_header_ccs_h" = x""yes; then :
7346 cat >>confdefs.h <<_ACEOF
7347 #define HAVE_CCS_H 1
7348 _ACEOF
7349
7350 else
7351 $bailout
7352 fi
7353
7354 done
7355
7356 check_lib_no_libs ccs ccs_connect
7357 if test $NOTFOUND = 0; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7359 $as_echo "no pkg for libccs, using -lccs" >&6; }
7360 CCS_LIBS="-lccs"
7361 HAVE_CCS=yes
7362 fi
7363 elif test $pkg_failed = untried; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7366 NOTFOUND=0
7367 for ac_header in ccs.h
7368 do :
7369 ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7370 if test "x$ac_cv_header_ccs_h" = x""yes; then :
7371 cat >>confdefs.h <<_ACEOF
7372 #define HAVE_CCS_H 1
7373 _ACEOF
7374
7375 else
7376 $bailout
7377 fi
7378
7379 done
7380
7381 check_lib_no_libs ccs ccs_connect
7382 if test $NOTFOUND = 0; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7384 $as_echo "no pkg for libccs, using -lccs" >&6; }
7385 CCS_LIBS="-lccs"
7386 HAVE_CCS=yes
7387 fi
7388 else
7389 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
7390 CCS_LIBS=$pkg_cv_CCS_LIBS
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7392 $as_echo "yes" >&6; }
7393 HAVE_CCS=yes
7394 fi
7395
7396 pkg_failed=no
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GULM" >&5
7398 $as_echo_n "checking for GULM... " >&6; }
7399
7400 if test -n "$GULM_CFLAGS"; then
7401 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
7402 elif test -n "$PKG_CONFIG"; then
7403 if test -n "$PKG_CONFIG" && \
7404 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7405 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7406 ac_status=$?
7407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7408 test $ac_status = 0; }; then
7409 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
7410 else
7411 pkg_failed=yes
7412 fi
7413 else
7414 pkg_failed=untried
7415 fi
7416 if test -n "$GULM_LIBS"; then
7417 pkg_cv_GULM_LIBS="$GULM_LIBS"
7418 elif test -n "$PKG_CONFIG"; then
7419 if test -n "$PKG_CONFIG" && \
7420 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7421 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7422 ac_status=$?
7423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424 test $ac_status = 0; }; then
7425 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
7426 else
7427 pkg_failed=yes
7428 fi
7429 else
7430 pkg_failed=untried
7431 fi
7432
7433
7434
7435 if test $pkg_failed = yes; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438
7439 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7440 _pkg_short_errors_supported=yes
7441 else
7442 _pkg_short_errors_supported=no
7443 fi
7444 if test $_pkg_short_errors_supported = yes; then
7445 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
7446 else
7447 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
7448 fi
7449 # Put the nasty error message in config.log where it belongs
7450 echo "$GULM_PKG_ERRORS" >&5
7451
7452 NOTFOUND=0
7453 for ac_header in libgulm.h
7454 do :
7455 ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7456 if test "x$ac_cv_header_libgulm_h" = x""yes; then :
7457 cat >>confdefs.h <<_ACEOF
7458 #define HAVE_LIBGULM_H 1
7459 _ACEOF
7460
7461 else
7462 $bailout
7463 fi
7464
7465 done
7466
7467 check_lib_no_libs gulm lg_core_login
7468 if test $NOTFOUND = 0; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7470 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
7471 GULM_LIBS="-lgulm"
7472 HAVE_GULM=yes
7473 fi
7474 elif test $pkg_failed = untried; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7477 NOTFOUND=0
7478 for ac_header in libgulm.h
7479 do :
7480 ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7481 if test "x$ac_cv_header_libgulm_h" = x""yes; then :
7482 cat >>confdefs.h <<_ACEOF
7483 #define HAVE_LIBGULM_H 1
7484 _ACEOF
7485
7486 else
7487 $bailout
7488 fi
7489
7490 done
7491
7492 check_lib_no_libs gulm lg_core_login
7493 if test $NOTFOUND = 0; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7495 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
7496 GULM_LIBS="-lgulm"
7497 HAVE_GULM=yes
7498 fi
7499 else
7500 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
7501 GULM_LIBS=$pkg_cv_GULM_LIBS
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7503 $as_echo "yes" >&6; }
7504 HAVE_GULM=yes
7505 fi
7506 fi
7507
7508 if test x$BUILDCMAN = xyes; then
7509
7510 pkg_failed=no
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7512 $as_echo_n "checking for CMAN... " >&6; }
7513
7514 if test -n "$CMAN_CFLAGS"; then
7515 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7516 elif test -n "$PKG_CONFIG"; then
7517 if test -n "$PKG_CONFIG" && \
7518 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7519 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7520 ac_status=$?
7521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522 test $ac_status = 0; }; then
7523 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7524 else
7525 pkg_failed=yes
7526 fi
7527 else
7528 pkg_failed=untried
7529 fi
7530 if test -n "$CMAN_LIBS"; then
7531 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7532 elif test -n "$PKG_CONFIG"; then
7533 if test -n "$PKG_CONFIG" && \
7534 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7535 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7536 ac_status=$?
7537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7538 test $ac_status = 0; }; then
7539 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
7540 else
7541 pkg_failed=yes
7542 fi
7543 else
7544 pkg_failed=untried
7545 fi
7546
7547
7548
7549 if test $pkg_failed = yes; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7552
7553 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7554 _pkg_short_errors_supported=yes
7555 else
7556 _pkg_short_errors_supported=no
7557 fi
7558 if test $_pkg_short_errors_supported = yes; then
7559 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7560 else
7561 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7562 fi
7563 # Put the nasty error message in config.log where it belongs
7564 echo "$CMAN_PKG_ERRORS" >&5
7565
7566 NOTFOUND=0
7567 for ac_header in libcman.h
7568 do :
7569 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7570 if test "x$ac_cv_header_libcman_h" = x""yes; then :
7571 cat >>confdefs.h <<_ACEOF
7572 #define HAVE_LIBCMAN_H 1
7573 _ACEOF
7574
7575 else
7576 $bailout
7577 fi
7578
7579 done
7580
7581 check_lib_no_libs cman cman_init
7582 if test $NOTFOUND = 0; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7584 $as_echo "no pkg for libcman, using -lcman" >&6; }
7585 CMAN_LIBS="-lcman"
7586 HAVE_CMAN=yes
7587 fi
7588 elif test $pkg_failed = untried; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7591 NOTFOUND=0
7592 for ac_header in libcman.h
7593 do :
7594 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7595 if test "x$ac_cv_header_libcman_h" = x""yes; then :
7596 cat >>confdefs.h <<_ACEOF
7597 #define HAVE_LIBCMAN_H 1
7598 _ACEOF
7599
7600 else
7601 $bailout
7602 fi
7603
7604 done
7605
7606 check_lib_no_libs cman cman_init
7607 if test $NOTFOUND = 0; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7609 $as_echo "no pkg for libcman, using -lcman" >&6; }
7610 CMAN_LIBS="-lcman"
7611 HAVE_CMAN=yes
7612 fi
7613 else
7614 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7615 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7617 $as_echo "yes" >&6; }
7618 HAVE_CMAN=yes
7619 fi
7620 CHECKCONFDB=yes
7621 CHECKDLM=yes
7622 fi
7623
7624 if test x$BUILDCOROSYNC = xyes || \
7625 test x$BUILDOPENAIS = xyes; then
7626
7627 pkg_failed=no
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7629 $as_echo_n "checking for COROSYNC... " >&6; }
7630
7631 if test -n "$COROSYNC_CFLAGS"; then
7632 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7633 elif test -n "$PKG_CONFIG"; then
7634 if test -n "$PKG_CONFIG" && \
7635 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7636 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7637 ac_status=$?
7638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639 test $ac_status = 0; }; then
7640 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
7641 else
7642 pkg_failed=yes
7643 fi
7644 else
7645 pkg_failed=untried
7646 fi
7647 if test -n "$COROSYNC_LIBS"; then
7648 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7649 elif test -n "$PKG_CONFIG"; then
7650 if test -n "$PKG_CONFIG" && \
7651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7652 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7653 ac_status=$?
7654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7655 test $ac_status = 0; }; then
7656 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
7657 else
7658 pkg_failed=yes
7659 fi
7660 else
7661 pkg_failed=untried
7662 fi
7663
7664
7665
7666 if test $pkg_failed = yes; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7669
7670 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7671 _pkg_short_errors_supported=yes
7672 else
7673 _pkg_short_errors_supported=no
7674 fi
7675 if test $_pkg_short_errors_supported = yes; then
7676 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7677 else
7678 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7679 fi
7680 # Put the nasty error message in config.log where it belongs
7681 echo "$COROSYNC_PKG_ERRORS" >&5
7682
7683 $bailout
7684 elif test $pkg_failed = untried; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7687 $bailout
7688 else
7689 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7690 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7692 $as_echo "yes" >&6; }
7693 HAVE_COROSYNC=yes
7694 fi
7695 CHECKCONFDB=yes
7696 fi
7697
7698 if test x$BUILDCOROSYNC = xyes; then
7699
7700 pkg_failed=no
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7702 $as_echo_n "checking for QUORUM... " >&6; }
7703
7704 if test -n "$QUORUM_CFLAGS"; then
7705 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7706 elif test -n "$PKG_CONFIG"; then
7707 if test -n "$PKG_CONFIG" && \
7708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7709 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7710 ac_status=$?
7711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7712 test $ac_status = 0; }; then
7713 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
7714 else
7715 pkg_failed=yes
7716 fi
7717 else
7718 pkg_failed=untried
7719 fi
7720 if test -n "$QUORUM_LIBS"; then
7721 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7722 elif test -n "$PKG_CONFIG"; then
7723 if test -n "$PKG_CONFIG" && \
7724 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7725 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7726 ac_status=$?
7727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7728 test $ac_status = 0; }; then
7729 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
7730 else
7731 pkg_failed=yes
7732 fi
7733 else
7734 pkg_failed=untried
7735 fi
7736
7737
7738
7739 if test $pkg_failed = yes; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7742
7743 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7744 _pkg_short_errors_supported=yes
7745 else
7746 _pkg_short_errors_supported=no
7747 fi
7748 if test $_pkg_short_errors_supported = yes; then
7749 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7750 else
7751 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7752 fi
7753 # Put the nasty error message in config.log where it belongs
7754 echo "$QUORUM_PKG_ERRORS" >&5
7755
7756 $bailout
7757 elif test $pkg_failed = untried; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7760 $bailout
7761 else
7762 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7763 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7765 $as_echo "yes" >&6; }
7766 HAVE_QUORUM=yes
7767 fi
7768 CHECKCPG=yes
7769 CHECKDLM=yes
7770 fi
7771
7772 if test x$BUILDOPENAIS = xyes; then
7773
7774 pkg_failed=no
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7776 $as_echo_n "checking for SALCK... " >&6; }
7777
7778 if test -n "$SALCK_CFLAGS"; then
7779 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7780 elif test -n "$PKG_CONFIG"; then
7781 if test -n "$PKG_CONFIG" && \
7782 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7783 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7784 ac_status=$?
7785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786 test $ac_status = 0; }; then
7787 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7788 else
7789 pkg_failed=yes
7790 fi
7791 else
7792 pkg_failed=untried
7793 fi
7794 if test -n "$SALCK_LIBS"; then
7795 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7796 elif test -n "$PKG_CONFIG"; then
7797 if test -n "$PKG_CONFIG" && \
7798 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7799 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7800 ac_status=$?
7801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7802 test $ac_status = 0; }; then
7803 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
7804 else
7805 pkg_failed=yes
7806 fi
7807 else
7808 pkg_failed=untried
7809 fi
7810
7811
7812
7813 if test $pkg_failed = yes; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7816
7817 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7818 _pkg_short_errors_supported=yes
7819 else
7820 _pkg_short_errors_supported=no
7821 fi
7822 if test $_pkg_short_errors_supported = yes; then
7823 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7824 else
7825 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7826 fi
7827 # Put the nasty error message in config.log where it belongs
7828 echo "$SALCK_PKG_ERRORS" >&5
7829
7830 $bailout
7831 elif test $pkg_failed = untried; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 $bailout
7835 else
7836 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7837 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7839 $as_echo "yes" >&6; }
7840 HAVE_SALCK=yes
7841 fi
7842 CHECKCPG=yes
7843 fi
7844
7845
7846
7847 if test x$CHECKCONFDB = xyes; then
7848
7849 pkg_failed=no
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7851 $as_echo_n "checking for CONFDB... " >&6; }
7852
7853 if test -n "$CONFDB_CFLAGS"; then
7854 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7855 elif test -n "$PKG_CONFIG"; then
7856 if test -n "$PKG_CONFIG" && \
7857 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7858 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7859 ac_status=$?
7860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7861 test $ac_status = 0; }; then
7862 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
7863 else
7864 pkg_failed=yes
7865 fi
7866 else
7867 pkg_failed=untried
7868 fi
7869 if test -n "$CONFDB_LIBS"; then
7870 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7871 elif test -n "$PKG_CONFIG"; then
7872 if test -n "$PKG_CONFIG" && \
7873 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7874 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7875 ac_status=$?
7876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7877 test $ac_status = 0; }; then
7878 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7879 else
7880 pkg_failed=yes
7881 fi
7882 else
7883 pkg_failed=untried
7884 fi
7885
7886
7887
7888 if test $pkg_failed = yes; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7891
7892 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7893 _pkg_short_errors_supported=yes
7894 else
7895 _pkg_short_errors_supported=no
7896 fi
7897 if test $_pkg_short_errors_supported = yes; then
7898 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7899 else
7900 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7901 fi
7902 # Put the nasty error message in config.log where it belongs
7903 echo "$CONFDB_PKG_ERRORS" >&5
7904
7905 HAVE_CONFDB=no
7906 elif test $pkg_failed = untried; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7909 HAVE_CONFDB=no
7910 else
7911 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7912 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7914 $as_echo "yes" >&6; }
7915 HAVE_CONFDB=yes
7916 fi
7917
7918 for ac_header in corosync/confdb.h
7919 do :
7920 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7921 if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
7922 cat >>confdefs.h <<_ACEOF
7923 #define HAVE_COROSYNC_CONFDB_H 1
7924 _ACEOF
7925 HAVE_CONFDB_H=yes
7926 else
7927 HAVE_CONFDB_H=no
7928 fi
7929
7930 done
7931
7932
7933 if test x$HAVE_CONFDB != xyes && \
7934 test x$HAVE_CONFDB_H = xyes; then
7935 check_lib_no_libs confdb confdb_initialize
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7937 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
7938 CONFDB_LIBS="-lconfdb"
7939 HAVE_CONFDB=yes
7940 fi
7941
7942 if test x$BUILDCOROSYNC = xyes && \
7943 test x$HAVE_CONFDB != xyes &&
7944 test x$CLVMD != xall; then
7945 as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5
7946 fi
7947 fi
7948
7949 if test x$CHECKCPG = xyes; then
7950
7951 pkg_failed=no
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7953 $as_echo_n "checking for CPG... " >&6; }
7954
7955 if test -n "$CPG_CFLAGS"; then
7956 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7957 elif test -n "$PKG_CONFIG"; then
7958 if test -n "$PKG_CONFIG" && \
7959 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7960 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7961 ac_status=$?
7962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7963 test $ac_status = 0; }; then
7964 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
7965 else
7966 pkg_failed=yes
7967 fi
7968 else
7969 pkg_failed=untried
7970 fi
7971 if test -n "$CPG_LIBS"; then
7972 pkg_cv_CPG_LIBS="$CPG_LIBS"
7973 elif test -n "$PKG_CONFIG"; then
7974 if test -n "$PKG_CONFIG" && \
7975 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7976 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7977 ac_status=$?
7978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7979 test $ac_status = 0; }; then
7980 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
7981 else
7982 pkg_failed=yes
7983 fi
7984 else
7985 pkg_failed=untried
7986 fi
7987
7988
7989
7990 if test $pkg_failed = yes; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7993
7994 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7995 _pkg_short_errors_supported=yes
7996 else
7997 _pkg_short_errors_supported=no
7998 fi
7999 if test $_pkg_short_errors_supported = yes; then
8000 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8001 else
8002 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8003 fi
8004 # Put the nasty error message in config.log where it belongs
8005 echo "$CPG_PKG_ERRORS" >&5
8006
8007 $bailout
8008 elif test $pkg_failed = untried; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8011 $bailout
8012 else
8013 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8014 CPG_LIBS=$pkg_cv_CPG_LIBS
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8016 $as_echo "yes" >&6; }
8017 HAVE_CPG=yes
8018 fi
8019 fi
8020
8021 if test x$CHECKDLM = xyes; then
8022
8023 pkg_failed=no
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
8025 $as_echo_n "checking for DLM... " >&6; }
8026
8027 if test -n "$DLM_CFLAGS"; then
8028 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
8029 elif test -n "$PKG_CONFIG"; then
8030 if test -n "$PKG_CONFIG" && \
8031 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8032 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8033 ac_status=$?
8034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8035 test $ac_status = 0; }; then
8036 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
8037 else
8038 pkg_failed=yes
8039 fi
8040 else
8041 pkg_failed=untried
8042 fi
8043 if test -n "$DLM_LIBS"; then
8044 pkg_cv_DLM_LIBS="$DLM_LIBS"
8045 elif test -n "$PKG_CONFIG"; then
8046 if test -n "$PKG_CONFIG" && \
8047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8048 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8049 ac_status=$?
8050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8051 test $ac_status = 0; }; then
8052 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8053 else
8054 pkg_failed=yes
8055 fi
8056 else
8057 pkg_failed=untried
8058 fi
8059
8060
8061
8062 if test $pkg_failed = yes; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8065
8066 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8067 _pkg_short_errors_supported=yes
8068 else
8069 _pkg_short_errors_supported=no
8070 fi
8071 if test $_pkg_short_errors_supported = yes; then
8072 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8073 else
8074 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8075 fi
8076 # Put the nasty error message in config.log where it belongs
8077 echo "$DLM_PKG_ERRORS" >&5
8078
8079 NOTFOUND=0
8080 for ac_header in libdlm.h
8081 do :
8082 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8083 if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8084 cat >>confdefs.h <<_ACEOF
8085 #define HAVE_LIBDLM_H 1
8086 _ACEOF
8087
8088 else
8089 $bailout
8090 fi
8091
8092 done
8093
8094 check_lib_no_libs dlm dlm_lock -lpthread
8095 if test $NOTFOUND = 0; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8097 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8098 DLM_LIBS="-ldlm -lpthread"
8099 HAVE_DLM=yes
8100 fi
8101 elif test $pkg_failed = untried; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 $as_echo "no" >&6; }
8104 NOTFOUND=0
8105 for ac_header in libdlm.h
8106 do :
8107 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8108 if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8109 cat >>confdefs.h <<_ACEOF
8110 #define HAVE_LIBDLM_H 1
8111 _ACEOF
8112
8113 else
8114 $bailout
8115 fi
8116
8117 done
8118
8119 check_lib_no_libs dlm dlm_lock -lpthread
8120 if test $NOTFOUND = 0; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8122 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8123 DLM_LIBS="-ldlm -lpthread"
8124 HAVE_DLM=yes
8125 fi
8126 else
8127 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8128 DLM_LIBS=$pkg_cv_DLM_LIBS
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130 $as_echo "yes" >&6; }
8131 HAVE_DLM=yes
8132 fi
8133 fi
8134
8135 if test x$CLVMD = xall; then
8136 CLVMD=none
8137 CLVMD_CMANAGERS=""
8138 CLVMD_NEEDS_QDISKD=no
8139 if test x$HAVE_CCS = xyes && \
8140 test x$HAVE_GULM = xyes; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd gulm cluster manager" >&5
8142 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
8143 CLVMD="$CLVMD,gulm"
8144 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
8145 CLVMD_NEEDS_QDISKD=yes
8146 fi
8147 if test x$HAVE_CMAN = xyes && \
8148 test x$HAVE_DLM = xyes; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8150 $as_echo "Enabling clvmd cman cluster manager" >&6; }
8151 CLVMD="$CLVMD,cman"
8152 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8153 CLVMD_NEEDS_QDISKD=yes
8154 fi
8155 if test x$HAVE_COROSYNC = xyes && \
8156 test x$HAVE_QUORUM = xyes && \
8157 test x$HAVE_CPG = xyes && \
8158 test x$HAVE_DLM = xyes && \
8159 test x$HAVE_CONFDB = xyes; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8161 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
8162 CLVMD="$CLVMD,corosync"
8163 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
8164 fi
8165 if test x$HAVE_COROSYNC = xyes && \
8166 test x$HAVE_CPG = xyes && \
8167 test x$HAVE_SALCK = xyes; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8169 $as_echo "Enabling clvmd openais cluster manager" >&6; }
8170 CLVMD="$CLVMD,openais"
8171 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8172 fi
8173 if test x$CLVMD_NEEDS_QDISKD != xno; then
8174 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8175 fi
8176 if test x$CLVMD = xnone; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8178 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8179 fi
8180 fi
8181
8182 ################################################################################
8183 if test "x$CLVMD" != xnone; then
8184
8185 # Check whether --with-clvmd-pidfile was given.
8186 if test "${with_clvmd_pidfile+set}" = set; then :
8187 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
8188 else
8189 CLVMD_PIDFILE="/var/run/clvmd.pid"
8190 fi
8191
8192
8193 cat >>confdefs.h <<_ACEOF
8194 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
8195 _ACEOF
8196
8197 fi
8198
8199 ################################################################################
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8201 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8202 # Check whether --enable-cmirrord was given.
8203 if test "${enable_cmirrord+set}" = set; then :
8204 enableval=$enable_cmirrord; CMIRRORD=$enableval
8205 else
8206 CMIRRORD=no
8207 fi
8208
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8210 $as_echo "$CMIRRORD" >&6; }
8211
8212 BUILD_CMIRRORD=$CMIRRORD
8213
8214 ################################################################################
8215 if test "x$BUILD_CMIRRORD" = xyes; then
8216
8217 # Check whether --with-cmirrord-pidfile was given.
8218 if test "${with_cmirrord_pidfile+set}" = set; then :
8219 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
8220 else
8221 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
8222 fi
8223
8224
8225 cat >>confdefs.h <<_ACEOF
8226 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
8227 _ACEOF
8228
8229 fi
8230
8231 ################################################################################
8232 if [ "x$BUILD_CMIRRORD" = xyes ]; then
8233 if test x$PKGCONFIG_INIT != x1; then
8234 pkg_config_init
8235 fi
8236
8237 pkg_failed=no
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8239 $as_echo_n "checking for SACKPT... " >&6; }
8240
8241 if test -n "$SACKPT_CFLAGS"; then
8242 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8243 elif test -n "$PKG_CONFIG"; then
8244 if test -n "$PKG_CONFIG" && \
8245 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8246 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8247 ac_status=$?
8248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8249 test $ac_status = 0; }; then
8250 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
8251 else
8252 pkg_failed=yes
8253 fi
8254 else
8255 pkg_failed=untried
8256 fi
8257 if test -n "$SACKPT_LIBS"; then
8258 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8259 elif test -n "$PKG_CONFIG"; then
8260 if test -n "$PKG_CONFIG" && \
8261 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8262 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8263 ac_status=$?
8264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8265 test $ac_status = 0; }; then
8266 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
8267 else
8268 pkg_failed=yes
8269 fi
8270 else
8271 pkg_failed=untried
8272 fi
8273
8274
8275
8276 if test $pkg_failed = yes; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8279
8280 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8281 _pkg_short_errors_supported=yes
8282 else
8283 _pkg_short_errors_supported=no
8284 fi
8285 if test $_pkg_short_errors_supported = yes; then
8286 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8287 else
8288 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8289 fi
8290 # Put the nasty error message in config.log where it belongs
8291 echo "$SACKPT_PKG_ERRORS" >&5
8292
8293 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8294
8295 $SACKPT_PKG_ERRORS
8296
8297 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8298 installed software in a non-standard prefix.
8299
8300 Alternatively, you may set the environment variables SACKPT_CFLAGS
8301 and SACKPT_LIBS to avoid the need to call pkg-config.
8302 See the pkg-config man page for more details." "$LINENO" 5
8303
8304 elif test $pkg_failed = untried; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8309 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8310 is in your PATH or set the PKG_CONFIG environment variable to the full
8311 path to pkg-config.
8312
8313 Alternatively, you may set the environment variables SACKPT_CFLAGS
8314 and SACKPT_LIBS to avoid the need to call pkg-config.
8315 See the pkg-config man page for more details.
8316
8317 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8318 See \`config.log' for more details" "$LINENO" 5; }
8319
8320 else
8321 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8322 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8324 $as_echo "yes" >&6; }
8325
8326 fi
8327 if test x$HAVE_CPG != xyes; then
8328
8329 pkg_failed=no
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8331 $as_echo_n "checking for CPG... " >&6; }
8332
8333 if test -n "$CPG_CFLAGS"; then
8334 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8335 elif test -n "$PKG_CONFIG"; then
8336 if test -n "$PKG_CONFIG" && \
8337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8338 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8339 ac_status=$?
8340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8341 test $ac_status = 0; }; then
8342 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8343 else
8344 pkg_failed=yes
8345 fi
8346 else
8347 pkg_failed=untried
8348 fi
8349 if test -n "$CPG_LIBS"; then
8350 pkg_cv_CPG_LIBS="$CPG_LIBS"
8351 elif test -n "$PKG_CONFIG"; then
8352 if test -n "$PKG_CONFIG" && \
8353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8354 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8355 ac_status=$?
8356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8357 test $ac_status = 0; }; then
8358 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8359 else
8360 pkg_failed=yes
8361 fi
8362 else
8363 pkg_failed=untried
8364 fi
8365
8366
8367
8368 if test $pkg_failed = yes; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8371
8372 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8373 _pkg_short_errors_supported=yes
8374 else
8375 _pkg_short_errors_supported=no
8376 fi
8377 if test $_pkg_short_errors_supported = yes; then
8378 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8379 else
8380 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8381 fi
8382 # Put the nasty error message in config.log where it belongs
8383 echo "$CPG_PKG_ERRORS" >&5
8384
8385 as_fn_error $? "Package requirements (libcpg) were not met:
8386
8387 $CPG_PKG_ERRORS
8388
8389 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8390 installed software in a non-standard prefix.
8391
8392 Alternatively, you may set the environment variables CPG_CFLAGS
8393 and CPG_LIBS to avoid the need to call pkg-config.
8394 See the pkg-config man page for more details." "$LINENO" 5
8395
8396 elif test $pkg_failed = untried; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8401 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8402 is in your PATH or set the PKG_CONFIG environment variable to the full
8403 path to pkg-config.
8404
8405 Alternatively, you may set the environment variables CPG_CFLAGS
8406 and CPG_LIBS to avoid the need to call pkg-config.
8407 See the pkg-config man page for more details.
8408
8409 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8410 See \`config.log' for more details" "$LINENO" 5; }
8411
8412 else
8413 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8414 CPG_LIBS=$pkg_cv_CPG_LIBS
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8416 $as_echo "yes" >&6; }
8417
8418 fi
8419 fi
8420 fi
8421
8422 ################################################################################
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8424 $as_echo_n "checking whether to enable debugging... " >&6; }
8425 # Check whether --enable-debug was given.
8426 if test "${enable_debug+set}" = set; then :
8427 enableval=$enable_debug; DEBUG=$enableval
8428 else
8429 DEBUG=no
8430 fi
8431
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8433 $as_echo "$DEBUG" >&6; }
8434
8435 if test x$DEBUG = xyes; then
8436 COPTIMISE_FLAG=
8437 else
8438 CSCOPE_CMD=
8439 fi
8440
8441 ################################################################################
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8443 $as_echo_n "checking for C optimisation flag... " >&6; }
8444
8445 # Check whether --with-optimisation was given.
8446 if test "${with_optimisation+set}" = set; then :
8447 withval=$with_optimisation; COPTIMISE_FLAG=$withval
8448 fi
8449
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8451 $as_echo "$COPTIMISE_FLAG" >&6; }
8452
8453 ################################################################################
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8455 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8456 # Check whether --enable-profiling was given.
8457 if test "${enable_profiling+set}" = set; then :
8458 enableval=$enable_profiling; PROFILING=$enableval
8459 else
8460 PROFILING=no
8461 fi
8462
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8464 $as_echo "$PROFILING" >&6; }
8465
8466 if test "x$PROFILING" = xyes; then
8467 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8468 # Extract the first word of "lcov", so it can be a program name with args.
8469 set dummy lcov; ac_word=$2
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 $as_echo_n "checking for $ac_word... " >&6; }
8472 if test "${ac_cv_path_LCOV+set}" = set; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8475 case $LCOV in
8476 [\\/]* | ?:[\\/]*)
8477 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8478 ;;
8479 *)
8480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481 for as_dir in $PATH
8482 do
8483 IFS=$as_save_IFS
8484 test -z "$as_dir" && as_dir=.
8485 for ac_exec_ext in '' $ac_executable_extensions; do
8486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8487 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8489 break 2
8490 fi
8491 done
8492 done
8493 IFS=$as_save_IFS
8494
8495 ;;
8496 esac
8497 fi
8498 LCOV=$ac_cv_path_LCOV
8499 if test -n "$LCOV"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8501 $as_echo "$LCOV" >&6; }
8502 else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8505 fi
8506
8507
8508 # Extract the first word of "genhtml", so it can be a program name with args.
8509 set dummy genhtml; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if test "${ac_cv_path_GENHTML+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 case $GENHTML in
8516 [\\/]* | ?:[\\/]*)
8517 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8518 ;;
8519 *)
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8522 do
8523 IFS=$as_save_IFS
8524 test -z "$as_dir" && as_dir=.
8525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8527 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529 break 2
8530 fi
8531 done
8532 done
8533 IFS=$as_save_IFS
8534
8535 ;;
8536 esac
8537 fi
8538 GENHTML=$ac_cv_path_GENHTML
8539 if test -n "$GENHTML"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8541 $as_echo "$GENHTML" >&6; }
8542 else
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8545 fi
8546
8547
8548 if test -z "$LCOV" -o -z "$GENHTML"; then
8549 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8550 fi
8551 # Extract the first word of "genpng", so it can be a program name with args.
8552 set dummy genpng; ac_word=$2
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8554 $as_echo_n "checking for $ac_word... " >&6; }
8555 if test "${ac_cv_path_GENPNG+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 case $GENPNG in
8559 [\\/]* | ?:[\\/]*)
8560 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8561 ;;
8562 *)
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 for as_dir in $PATH
8565 do
8566 IFS=$as_save_IFS
8567 test -z "$as_dir" && as_dir=.
8568 for ac_exec_ext in '' $ac_executable_extensions; do
8569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8570 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572 break 2
8573 fi
8574 done
8575 done
8576 IFS=$as_save_IFS
8577
8578 ;;
8579 esac
8580 fi
8581 GENPNG=$ac_cv_path_GENPNG
8582 if test -n "$GENPNG"; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8584 $as_echo "$GENPNG" >&6; }
8585 else
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587 $as_echo "no" >&6; }
8588 fi
8589
8590
8591 if test -n "$GENPNG"; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8593 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8594 if $GENPNG --help > /dev/null 2>&1 ; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8596 $as_echo "ok" >&6; }
8597 GENHTML="$GENHTML --frames"
8598 else
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8600 $as_echo "not supported" >&6; }
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8602 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8603 GENPNG=
8604 fi
8605 fi
8606 fi
8607
8608 ################################################################################
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8610 $as_echo_n "checking whether to enable unit testing... " >&6; }
8611 # Check whether --enable-testing was given.
8612 if test "${enable_testing+set}" = set; then :
8613 enableval=$enable_testing; TESTING=$enableval
8614 else
8615 TESTING=no
8616 fi
8617
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8619 $as_echo "$TESTING" >&6; }
8620
8621 if test "$TESTING" = yes; then
8622 # Extract the first word of "ruby1.9", so it can be a program name with args.
8623 set dummy ruby1.9; ac_word=$2
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8625 $as_echo_n "checking for $ac_word... " >&6; }
8626 if test "${ac_cv_path_RUBY19+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 case $RUBY19 in
8630 [\\/]* | ?:[\\/]*)
8631 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
8632 ;;
8633 *)
8634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635 for as_dir in $PATH
8636 do
8637 IFS=$as_save_IFS
8638 test -z "$as_dir" && as_dir=.
8639 for ac_exec_ext in '' $ac_executable_extensions; do
8640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8641 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
8642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8643 break 2
8644 fi
8645 done
8646 done
8647 IFS=$as_save_IFS
8648
8649 ;;
8650 esac
8651 fi
8652 RUBY19=$ac_cv_path_RUBY19
8653 if test -n "$RUBY19"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8655 $as_echo "$RUBY19" >&6; }
8656 else
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658 $as_echo "no" >&6; }
8659 fi
8660
8661
8662 # Extract the first word of "valgrind", so it can be a program name with args.
8663 set dummy valgrind; ac_word=$2
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665 $as_echo_n "checking for $ac_word... " >&6; }
8666 if test "${ac_cv_path_VALGRIND+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8668 else
8669 case $VALGRIND in
8670 [\\/]* | ?:[\\/]*)
8671 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
8672 ;;
8673 *)
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675 for as_dir in $PATH
8676 do
8677 IFS=$as_save_IFS
8678 test -z "$as_dir" && as_dir=.
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8681 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
8682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8683 break 2
8684 fi
8685 done
8686 done
8687 IFS=$as_save_IFS
8688
8689 ;;
8690 esac
8691 fi
8692 VALGRIND=$ac_cv_path_VALGRIND
8693 if test -n "$VALGRIND"; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8695 $as_echo "$VALGRIND" >&6; }
8696 else
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698 $as_echo "no" >&6; }
8699 fi
8700
8701
8702 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8703 as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5
8704 fi
8705 fi
8706
8707 ################################################################################
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8709 $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8710 # Check whether --enable-valgrind_pool was given.
8711 if test "${enable_valgrind_pool+set}" = set; then :
8712 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8713 else
8714 VALGRIND_POOL=no
8715 fi
8716
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8718 $as_echo "$VALGRIND_POOL" >&6; }
8719
8720 if test "$VALGRIND_POOL" = yes; then
8721 for ac_header in valgrind/memcheck.h
8722 do :
8723 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8724 if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8725 cat >>confdefs.h <<_ACEOF
8726 #define HAVE_VALGRIND_MEMCHECK_H 1
8727 _ACEOF
8728
8729 else
8730 as_fn_error $? "bailing out" "$LINENO" 5
8731 fi
8732
8733 done
8734
8735
8736 $as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8737
8738 fi
8739
8740 ################################################################################
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8742 $as_echo_n "checking whether to use device-mapper... " >&6; }
8743 # Check whether --enable-devmapper was given.
8744 if test "${enable_devmapper+set}" = set; then :
8745 enableval=$enable_devmapper; DEVMAPPER=$enableval
8746 fi
8747
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8749 $as_echo "$DEVMAPPER" >&6; }
8750
8751 if test x$DEVMAPPER = xyes; then
8752
8753 $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8754
8755 fi
8756
8757 ################################################################################
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8759 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8760 # Check whether --enable-udev_sync was given.
8761 if test "${enable_udev_sync+set}" = set; then :
8762 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
8763 else
8764 UDEV_SYNC=no
8765 fi
8766
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8768 $as_echo "$UDEV_SYNC" >&6; }
8769
8770 if test x$UDEV_SYNC = xyes; then
8771 if test x$PKGCONFIG_INIT != x1; then
8772 pkg_config_init
8773 fi
8774
8775 pkg_failed=no
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8777 $as_echo_n "checking for UDEV... " >&6; }
8778
8779 if test -n "$UDEV_CFLAGS"; then
8780 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8781 elif test -n "$PKG_CONFIG"; then
8782 if test -n "$PKG_CONFIG" && \
8783 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8784 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8785 ac_status=$?
8786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8787 test $ac_status = 0; }; then
8788 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
8789 else
8790 pkg_failed=yes
8791 fi
8792 else
8793 pkg_failed=untried
8794 fi
8795 if test -n "$UDEV_LIBS"; then
8796 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8797 elif test -n "$PKG_CONFIG"; then
8798 if test -n "$PKG_CONFIG" && \
8799 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8800 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8801 ac_status=$?
8802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8803 test $ac_status = 0; }; then
8804 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
8805 else
8806 pkg_failed=yes
8807 fi
8808 else
8809 pkg_failed=untried
8810 fi
8811
8812
8813
8814 if test $pkg_failed = yes; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 $as_echo "no" >&6; }
8817
8818 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8819 _pkg_short_errors_supported=yes
8820 else
8821 _pkg_short_errors_supported=no
8822 fi
8823 if test $_pkg_short_errors_supported = yes; then
8824 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8825 else
8826 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8827 fi
8828 # Put the nasty error message in config.log where it belongs
8829 echo "$UDEV_PKG_ERRORS" >&5
8830
8831 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8832
8833 $UDEV_PKG_ERRORS
8834
8835 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8836 installed software in a non-standard prefix.
8837
8838 Alternatively, you may set the environment variables UDEV_CFLAGS
8839 and UDEV_LIBS to avoid the need to call pkg-config.
8840 See the pkg-config man page for more details." "$LINENO" 5
8841
8842 elif test $pkg_failed = untried; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844 $as_echo "no" >&6; }
8845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8847 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8848 is in your PATH or set the PKG_CONFIG environment variable to the full
8849 path to pkg-config.
8850
8851 Alternatively, you may set the environment variables UDEV_CFLAGS
8852 and UDEV_LIBS to avoid the need to call pkg-config.
8853 See the pkg-config man page for more details.
8854
8855 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8856 See \`config.log' for more details" "$LINENO" 5; }
8857
8858 else
8859 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8860 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8862 $as_echo "yes" >&6; }
8863 UDEV_PC="libudev"
8864 fi
8865
8866 $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
8867
8868 fi
8869
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8871 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8872 # Check whether --enable-udev_rules was given.
8873 if test "${enable_udev_rules+set}" = set; then :
8874 enableval=$enable_udev_rules; UDEV_RULES=$enableval
8875 else
8876 UDEV_RULES=$UDEV_SYNC
8877 fi
8878
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8880 $as_echo "$UDEV_RULES" >&6; }
8881
8882 ################################################################################
8883 # Check whether --enable-compat was given.
8884 if test "${enable_compat+set}" = set; then :
8885 enableval=$enable_compat; DM_COMPAT=$enableval
8886 else
8887 DM_COMPAT=no
8888 fi
8889
8890
8891 ################################################################################
8892 # Check whether --enable-units-compat was given.
8893 if test "${enable_units_compat+set}" = set; then :
8894 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
8895 else
8896 UNITS_COMPAT=no
8897 fi
8898
8899
8900 if test x$UNITS_COMPAT = xyes; then
8901
8902 $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8903
8904 fi
8905
8906 ################################################################################
8907 # Check whether --enable-ioctl was given.
8908 if test "${enable_ioctl+set}" = set; then :
8909 enableval=$enable_ioctl; DM_IOCTLS=$enableval
8910 fi
8911
8912
8913 ################################################################################
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8915 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8916 # Check whether --enable-o_direct was given.
8917 if test "${enable_o_direct+set}" = set; then :
8918 enableval=$enable_o_direct; ODIRECT=$enableval
8919 fi
8920
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8922 $as_echo "$ODIRECT" >&6; }
8923
8924 if test x$ODIRECT = xyes; then
8925
8926 $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
8927
8928 fi
8929
8930 ################################################################################
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8932 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8933 # Check whether --enable-applib was given.
8934 if test "${enable_applib+set}" = set; then :
8935 enableval=$enable_applib; APPLIB=$enableval
8936 else
8937 APPLIB=no
8938 fi
8939
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8941 $as_echo "$APPLIB" >&6; }
8942
8943 test x$APPLIB = xyes \
8944 && LVM2APP_LIB=-llvm2app \
8945 || LVM2APP_LIB=
8946
8947 ################################################################################
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8949 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8950 # Check whether --enable-cmdlib was given.
8951 if test "${enable_cmdlib+set}" = set; then :
8952 enableval=$enable_cmdlib; CMDLIB=$enableval
8953 else
8954 CMDLIB=no
8955 fi
8956
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8958 $as_echo "$CMDLIB" >&6; }
8959
8960 test x$CMDLIB = xyes \
8961 && LVM2CMD_LIB=-llvm2cmd \
8962 || LVM2CMD_LIB=
8963
8964 ################################################################################
8965 # Check whether --enable-pkgconfig was given.
8966 if test "${enable_pkgconfig+set}" = set; then :
8967 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
8968 else
8969 PKGCONFIG=no
8970 fi
8971
8972
8973 ################################################################################
8974 # Check whether --enable-write_install was given.
8975 if test "${enable_write_install+set}" = set; then :
8976 enableval=$enable_write_install; WRITE_INSTALL=$enableval
8977 else
8978 WRITE_INSTALL=no
8979 fi
8980
8981
8982 ################################################################################
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8984 $as_echo_n "checking whether to install fsadm... " >&6; }
8985 # Check whether --enable-fsadm was given.
8986 if test "${enable_fsadm+set}" = set; then :
8987 enableval=$enable_fsadm; FSADM=$enableval
8988 fi
8989
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8991 $as_echo "$FSADM" >&6; }
8992
8993 ################################################################################
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8995 $as_echo_n "checking whether to use dmeventd... " >&6; }
8996 # Check whether --enable-dmeventd was given.
8997 if test "${enable_dmeventd+set}" = set; then :
8998 enableval=$enable_dmeventd; DMEVENTD=$enableval
8999 fi
9000
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
9002 $as_echo "$DMEVENTD" >&6; }
9003
9004 BUILD_DMEVENTD=$DMEVENTD
9005
9006 if test x$DMEVENTD = xyes; then
9007 if test x$MIRRORS != xinternal; then
9008 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
9009 " "$LINENO" 5
9010 fi
9011 if test x$CMDLIB = xno; then
9012 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
9013 " "$LINENO" 5
9014 fi
9015 fi
9016
9017 if test x$DMEVENTD = xyes; then
9018
9019 $as_echo "#define DMEVENTD 1" >>confdefs.h
9020
9021 fi
9022
9023 ################################################################################
9024
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
9026 $as_echo_n "checking for getline in -lc... " >&6; }
9027 if test "${ac_cv_lib_c_getline+set}" = set; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 ac_check_lib_save_LIBS=$LIBS
9031 LIBS="-lc $LIBS"
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034
9035 /* Override any GCC internal prototype to avoid an error.
9036 Use char because int might match the return type of a GCC
9037 builtin and then its argument prototype would still apply. */
9038 #ifdef __cplusplus
9039 extern "C"
9040 #endif
9041 char getline ();
9042 int
9043 main ()
9044 {
9045 return getline ();
9046 ;
9047 return 0;
9048 }
9049 _ACEOF
9050 if ac_fn_c_try_link "$LINENO"; then :
9051 ac_cv_lib_c_getline=yes
9052 else
9053 ac_cv_lib_c_getline=no
9054 fi
9055 rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9057 LIBS=$ac_check_lib_save_LIBS
9058 fi
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9060 $as_echo "$ac_cv_lib_c_getline" >&6; }
9061 if test "x$ac_cv_lib_c_getline" = x""yes; then :
9062
9063 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
9064
9065 fi
9066
9067
9068 ################################################################################
9069
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9071 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9072 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 ac_check_lib_save_LIBS=$LIBS
9076 LIBS="-lc $LIBS"
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9079
9080 /* Override any GCC internal prototype to avoid an error.
9081 Use char because int might match the return type of a GCC
9082 builtin and then its argument prototype would still apply. */
9083 #ifdef __cplusplus
9084 extern "C"
9085 #endif
9086 char canonicalize_file_name ();
9087 int
9088 main ()
9089 {
9090 return canonicalize_file_name ();
9091 ;
9092 return 0;
9093 }
9094 _ACEOF
9095 if ac_fn_c_try_link "$LINENO"; then :
9096 ac_cv_lib_c_canonicalize_file_name=yes
9097 else
9098 ac_cv_lib_c_canonicalize_file_name=no
9099 fi
9100 rm -f core conftest.err conftest.$ac_objext \
9101 conftest$ac_exeext conftest.$ac_ext
9102 LIBS=$ac_check_lib_save_LIBS
9103 fi
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9105 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9106 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9107
9108 $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
9109
9110 fi
9111
9112
9113 ################################################################################
9114 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9115 then exec_prefix="";
9116 fi;
9117
9118 ################################################################################
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9120 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 ac_check_lib_save_LIBS=$LIBS
9125 LIBS="-ldl $LIBS"
9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9128
9129 /* Override any GCC internal prototype to avoid an error.
9130 Use char because int might match the return type of a GCC
9131 builtin and then its argument prototype would still apply. */
9132 #ifdef __cplusplus
9133 extern "C"
9134 #endif
9135 char dlopen ();
9136 int
9137 main ()
9138 {
9139 return dlopen ();
9140 ;
9141 return 0;
9142 }
9143 _ACEOF
9144 if ac_fn_c_try_link "$LINENO"; then :
9145 ac_cv_lib_dl_dlopen=yes
9146 else
9147 ac_cv_lib_dl_dlopen=no
9148 fi
9149 rm -f core conftest.err conftest.$ac_objext \
9150 conftest$ac_exeext conftest.$ac_ext
9151 LIBS=$ac_check_lib_save_LIBS
9152 fi
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9154 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9155 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9156
9157
9158 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9159
9160 DL_LIBS="-ldl"
9161 HAVE_LIBDL=yes
9162 else
9163
9164 DL_LIBS=
9165 HAVE_LIBDL=no
9166 fi
9167
9168
9169 ################################################################################
9170 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9171 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9172 \) -a "x$STATIC_LINK" = xyes ];
9173 then as_fn_error $? "Features cannot be 'shared' when building statically
9174 " "$LINENO" 5
9175 fi
9176
9177 ################################################################################
9178 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9180 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9181 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 ac_check_lib_save_LIBS=$LIBS
9185 LIBS="-lpthread $LIBS"
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188
9189 /* Override any GCC internal prototype to avoid an error.
9190 Use char because int might match the return type of a GCC
9191 builtin and then its argument prototype would still apply. */
9192 #ifdef __cplusplus
9193 extern "C"
9194 #endif
9195 char pthread_mutex_lock ();
9196 int
9197 main ()
9198 {
9199 return pthread_mutex_lock ();
9200 ;
9201 return 0;
9202 }
9203 _ACEOF
9204 if ac_fn_c_try_link "$LINENO"; then :
9205 ac_cv_lib_pthread_pthread_mutex_lock=yes
9206 else
9207 ac_cv_lib_pthread_pthread_mutex_lock=no
9208 fi
9209 rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9211 LIBS=$ac_check_lib_save_LIBS
9212 fi
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9214 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9215 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9216 PTHREAD_LIBS="-lpthread"
9217 else
9218 hard_bailout
9219 fi
9220
9221 fi
9222
9223 ################################################################################
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9225 $as_echo_n "checking whether to enable selinux support... " >&6; }
9226 # Check whether --enable-selinux was given.
9227 if test "${enable_selinux+set}" = set; then :
9228 enableval=$enable_selinux; SELINUX=$enableval
9229 fi
9230
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9232 $as_echo "$SELINUX" >&6; }
9233
9234 ################################################################################
9235 if test x$SELINUX = xyes; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9237 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9238 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
9240 else
9241 ac_check_lib_save_LIBS=$LIBS
9242 LIBS="-lsepol $LIBS"
9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9245
9246 /* Override any GCC internal prototype to avoid an error.
9247 Use char because int might match the return type of a GCC
9248 builtin and then its argument prototype would still apply. */
9249 #ifdef __cplusplus
9250 extern "C"
9251 #endif
9252 char sepol_check_context ();
9253 int
9254 main ()
9255 {
9256 return sepol_check_context ();
9257 ;
9258 return 0;
9259 }
9260 _ACEOF
9261 if ac_fn_c_try_link "$LINENO"; then :
9262 ac_cv_lib_sepol_sepol_check_context=yes
9263 else
9264 ac_cv_lib_sepol_sepol_check_context=no
9265 fi
9266 rm -f core conftest.err conftest.$ac_objext \
9267 conftest$ac_exeext conftest.$ac_ext
9268 LIBS=$ac_check_lib_save_LIBS
9269 fi
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9271 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9272 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
9273
9274
9275 $as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9276
9277 SELINUX_LIBS="-lsepol"
9278 fi
9279
9280
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9282 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9283 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
9285 else
9286 ac_check_lib_save_LIBS=$LIBS
9287 LIBS="-lselinux $LIBS"
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290
9291 /* Override any GCC internal prototype to avoid an error.
9292 Use char because int might match the return type of a GCC
9293 builtin and then its argument prototype would still apply. */
9294 #ifdef __cplusplus
9295 extern "C"
9296 #endif
9297 char is_selinux_enabled ();
9298 int
9299 main ()
9300 {
9301 return is_selinux_enabled ();
9302 ;
9303 return 0;
9304 }
9305 _ACEOF
9306 if ac_fn_c_try_link "$LINENO"; then :
9307 ac_cv_lib_selinux_is_selinux_enabled=yes
9308 else
9309 ac_cv_lib_selinux_is_selinux_enabled=no
9310 fi
9311 rm -f core conftest.err conftest.$ac_objext \
9312 conftest$ac_exeext conftest.$ac_ext
9313 LIBS=$ac_check_lib_save_LIBS
9314 fi
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9316 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9317 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
9318
9319 for ac_header in selinux/selinux.h
9320 do :
9321 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9322 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9323 cat >>confdefs.h <<_ACEOF
9324 #define HAVE_SELINUX_SELINUX_H 1
9325 _ACEOF
9326
9327 else
9328 hard_bailout
9329 fi
9330
9331 done
9332
9333 for ac_header in selinux/label.h
9334 do :
9335 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9336 if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9337 cat >>confdefs.h <<_ACEOF
9338 #define HAVE_SELINUX_LABEL_H 1
9339 _ACEOF
9340
9341 fi
9342
9343 done
9344
9345
9346 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
9347
9348 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9349 SELINUX_PC="libselinux"
9350 HAVE_SELINUX=yes
9351 else
9352
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9354 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9355 SELINUX_LIBS=
9356 SELINUX_PC=
9357 HAVE_SELINUX=no
9358 fi
9359
9360 fi
9361
9362 ################################################################################
9363 if test x$REALTIME = xyes; then
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9365 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9366 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
9367 $as_echo_n "(cached) " >&6
9368 else
9369 ac_check_lib_save_LIBS=$LIBS
9370 LIBS="-lrt $LIBS"
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9373
9374 /* Override any GCC internal prototype to avoid an error.
9375 Use char because int might match the return type of a GCC
9376 builtin and then its argument prototype would still apply. */
9377 #ifdef __cplusplus
9378 extern "C"
9379 #endif
9380 char clock_gettime ();
9381 int
9382 main ()
9383 {
9384 return clock_gettime ();
9385 ;
9386 return 0;
9387 }
9388 _ACEOF
9389 if ac_fn_c_try_link "$LINENO"; then :
9390 ac_cv_lib_rt_clock_gettime=yes
9391 else
9392 ac_cv_lib_rt_clock_gettime=no
9393 fi
9394 rm -f core conftest.err conftest.$ac_objext \
9395 conftest$ac_exeext conftest.$ac_ext
9396 LIBS=$ac_check_lib_save_LIBS
9397 fi
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9399 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9400 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9401 HAVE_REALTIME=yes
9402 else
9403 HAVE_REALTIME=no
9404 fi
9405
9406
9407 if test x$HAVE_REALTIME = xyes; then
9408
9409 $as_echo "#define HAVE_REALTIME 1" >>confdefs.h
9410
9411 LIBS="-lrt $LIBS"
9412 else
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9414 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9415 fi
9416 fi
9417
9418 ################################################################################
9419 for ac_header in getopt.h
9420 do :
9421 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9422 if test "x$ac_cv_header_getopt_h" = x""yes; then :
9423 cat >>confdefs.h <<_ACEOF
9424 #define HAVE_GETOPT_H 1
9425 _ACEOF
9426
9427 $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
9428
9429 fi
9430
9431 done
9432
9433
9434 ################################################################################
9435 if test x$READLINE != xno; then
9436 lvm_saved_libs=$LIBS
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9438 $as_echo_n "checking for library containing tgetent... " >&6; }
9439 if test "${ac_cv_search_tgetent+set}" = set; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 ac_func_search_save_LIBS=$LIBS
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9445
9446 /* Override any GCC internal prototype to avoid an error.
9447 Use char because int might match the return type of a GCC
9448 builtin and then its argument prototype would still apply. */
9449 #ifdef __cplusplus
9450 extern "C"
9451 #endif
9452 char tgetent ();
9453 int
9454 main ()
9455 {
9456 return tgetent ();
9457 ;
9458 return 0;
9459 }
9460 _ACEOF
9461 for ac_lib in '' tinfo ncurses curses termcap termlib; do
9462 if test -z "$ac_lib"; then
9463 ac_res="none required"
9464 else
9465 ac_res=-l$ac_lib
9466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9467 fi
9468 if ac_fn_c_try_link "$LINENO"; then :
9469 ac_cv_search_tgetent=$ac_res
9470 fi
9471 rm -f core conftest.err conftest.$ac_objext \
9472 conftest$ac_exeext
9473 if test "${ac_cv_search_tgetent+set}" = set; then :
9474 break
9475 fi
9476 done
9477 if test "${ac_cv_search_tgetent+set}" = set; then :
9478
9479 else
9480 ac_cv_search_tgetent=no
9481 fi
9482 rm conftest.$ac_ext
9483 LIBS=$ac_func_search_save_LIBS
9484 fi
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9486 $as_echo "$ac_cv_search_tgetent" >&6; }
9487 ac_res=$ac_cv_search_tgetent
9488 if test "$ac_res" != no; then :
9489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9490 READLINE_LIBS=$ac_cv_search_tgetent
9491 else
9492
9493 if test "$READLINE" = yes; then
9494 as_fn_error $? "termcap could not be found which is required for the
9495 --enable-readline option (which is enabled by default). Either disable readline
9496 support with --disable-readline or download and install termcap from:
9497 ftp.gnu.org/gnu/termcap
9498 Note: if you are using precompiled packages you will also need the development
9499 package as well (which may be called termcap-devel or something similar).
9500 Note: (n)curses also seems to work as a substitute for termcap. This was
9501 not found either - but you could try installing that as well." "$LINENO" 5
9502 fi
9503 fi
9504
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9506 $as_echo_n "checking for readline in -lreadline... " >&6; }
9507 if test "${ac_cv_lib_readline_readline+set}" = set; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 ac_check_lib_save_LIBS=$LIBS
9511 LIBS="-lreadline $LIBS"
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9514
9515 /* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9518 #ifdef __cplusplus
9519 extern "C"
9520 #endif
9521 char readline ();
9522 int
9523 main ()
9524 {
9525 return readline ();
9526 ;
9527 return 0;
9528 }
9529 _ACEOF
9530 if ac_fn_c_try_link "$LINENO"; then :
9531 ac_cv_lib_readline_readline=yes
9532 else
9533 ac_cv_lib_readline_readline=no
9534 fi
9535 rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 LIBS=$ac_check_lib_save_LIBS
9538 fi
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9540 $as_echo "$ac_cv_lib_readline_readline" >&6; }
9541 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9542
9543
9544 $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9545
9546 LIBS=$lvm_saved_libs
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9548 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9549 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 ac_check_lib_save_LIBS=$LIBS
9553 LIBS="-lreadline $LIBS"
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9560 #ifdef __cplusplus
9561 extern "C"
9562 #endif
9563 char rl_line_buffer ();
9564 int
9565 main ()
9566 {
9567 return rl_line_buffer ();
9568 ;
9569 return 0;
9570 }
9571 _ACEOF
9572 if ac_fn_c_try_link "$LINENO"; then :
9573 ac_cv_lib_readline_rl_line_buffer=yes
9574 else
9575 ac_cv_lib_readline_rl_line_buffer=no
9576 fi
9577 rm -f core conftest.err conftest.$ac_objext \
9578 conftest$ac_exeext conftest.$ac_ext
9579 LIBS=$ac_check_lib_save_LIBS
9580 fi
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9582 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9583 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9584 READLINE_LIBS="-lreadline"
9585 else
9586
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9588 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9589 READLINE_LIBS="-lreadline $READLINE_LIBS"
9590
9591 fi
9592
9593 else
9594
9595 READLINE_LIBS=
9596 if test "$READLINE" = yes; then
9597 as_fn_error $? "GNU Readline could not be found which is required for the
9598 --enable-readline option (which is enabled by default). Either disable readline
9599 support with --disable-readline or download and install readline from:
9600 ftp.gnu.org/gnu/readline
9601 Note: if you are using precompiled packages you will also need the development
9602 package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9603 fi
9604 fi
9605
9606 LIBS="$READLINE_LIBS $lvm_saved_libs"
9607 for ac_func in rl_completion_matches
9608 do :
9609 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9610 if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
9611 cat >>confdefs.h <<_ACEOF
9612 #define HAVE_RL_COMPLETION_MATCHES 1
9613 _ACEOF
9614
9615 fi
9616 done
9617
9618 LIBS=$lvm_saved_libs
9619 fi
9620
9621 ################################################################################
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9623 $as_echo_n "checking whether to enable internationalisation... " >&6; }
9624 # Check whether --enable-nls was given.
9625 if test "${enable_nls+set}" = set; then :
9626 enableval=$enable_nls; INTL=$enableval
9627 else
9628 INTL=no
9629 fi
9630
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9632 $as_echo "$INTL" >&6; }
9633
9634 if test x$INTL = xyes; then
9635 # FIXME - Move this - can be device-mapper too
9636 INTL_PACKAGE="lvm2"
9637 # Extract the first word of "msgfmt", so it can be a program name with args.
9638 set dummy msgfmt; ac_word=$2
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640 $as_echo_n "checking for $ac_word... " >&6; }
9641 if test "${ac_cv_path_MSGFMT+set}" = set; then :
9642 $as_echo_n "(cached) " >&6
9643 else
9644 case $MSGFMT in
9645 [\\/]* | ?:[\\/]*)
9646 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9647 ;;
9648 *)
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650 for as_dir in $PATH
9651 do
9652 IFS=$as_save_IFS
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9658 break 2
9659 fi
9660 done
9661 done
9662 IFS=$as_save_IFS
9663
9664 ;;
9665 esac
9666 fi
9667 MSGFMT=$ac_cv_path_MSGFMT
9668 if test -n "$MSGFMT"; then
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9670 $as_echo "$MSGFMT" >&6; }
9671 else
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673 $as_echo "no" >&6; }
9674 fi
9675
9676
9677 if [ "x$MSGFMT" == x ];
9678 then as_fn_error $? "msgfmt not found in path $PATH
9679 " "$LINENO" 5
9680 fi;
9681
9682
9683 # Check whether --with-localedir was given.
9684 if test "${with_localedir+set}" = set; then :
9685 withval=$with_localedir; LOCALEDIR=$withval
9686 else
9687 LOCALEDIR='${prefix}/share/locale'
9688 fi
9689
9690 fi
9691
9692 ################################################################################
9693
9694 # Check whether --with-confdir was given.
9695 if test "${with_confdir+set}" = set; then :
9696 withval=$with_confdir; CONFDIR=$withval
9697 else
9698 CONFDIR="/etc"
9699 fi
9700
9701
9702
9703 # Check whether --with-staticdir was given.
9704 if test "${with_staticdir+set}" = set; then :
9705 withval=$with_staticdir; STATICDIR=$withval
9706 else
9707 STATICDIR='${exec_prefix}/sbin'
9708 fi
9709
9710
9711
9712 # Check whether --with-usrlibdir was given.
9713 if test "${with_usrlibdir+set}" = set; then :
9714 withval=$with_usrlibdir; usrlibdir=$withval
9715 else
9716 usrlibdir='${prefix}/lib'
9717 fi
9718
9719
9720
9721 # Check whether --with-usrsbindir was given.
9722 if test "${with_usrsbindir+set}" = set; then :
9723 withval=$with_usrsbindir; usrsbindir=$withval
9724 else
9725 usrsbindir='${prefix}/sbin'
9726 fi
9727
9728
9729 ################################################################################
9730
9731 # Check whether --with-udev_prefix was given.
9732 if test "${with_udev_prefix+set}" = set; then :
9733 withval=$with_udev_prefix; udev_prefix=$withval
9734 else
9735 udev_prefix='${exec_prefix}'
9736 fi
9737
9738
9739
9740 # Check whether --with-udevdir was given.
9741 if test "${with_udevdir+set}" = set; then :
9742 withval=$with_udevdir; udevdir=$withval
9743 else
9744 udevdir='${udev_prefix}/lib/udev/rules.d'
9745 fi
9746
9747
9748 ################################################################################
9749 if test x$READLINE = xyes; then
9750 for ac_header in readline/readline.h readline/history.h
9751 do :
9752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9753 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9754 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9755 cat >>confdefs.h <<_ACEOF
9756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9757 _ACEOF
9758
9759 else
9760 as_fn_error $? "bailing out" "$LINENO" 5
9761 fi
9762
9763 done
9764
9765 fi
9766
9767 if test x$CLVMD != xnone; then
9768 for ac_header in mntent.h netdb.h netinet/in.h pthread.h search.h sys/mount.h sys/socket.h sys/uio.h sys/un.h utmpx.h
9769 do :
9770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9771 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9772 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9773 cat >>confdefs.h <<_ACEOF
9774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9775 _ACEOF
9776
9777 else
9778 as_fn_error $? "bailing out" "$LINENO" 5
9779 fi
9780
9781 done
9782
9783 for ac_func in dup2 getmntent memmove select socket
9784 do :
9785 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9786 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9787 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9788 cat >>confdefs.h <<_ACEOF
9789 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9790 _ACEOF
9791
9792 else
9793 as_fn_error $? "bailing out" "$LINENO" 5
9794 fi
9795 done
9796
9797 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9798 # -lseq on Dynix/PTX, -lgen on Unixware.
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9800 $as_echo_n "checking for library containing getmntent... " >&6; }
9801 if test "${ac_cv_search_getmntent+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 ac_func_search_save_LIBS=$LIBS
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9807
9808 /* Override any GCC internal prototype to avoid an error.
9809 Use char because int might match the return type of a GCC
9810 builtin and then its argument prototype would still apply. */
9811 #ifdef __cplusplus
9812 extern "C"
9813 #endif
9814 char getmntent ();
9815 int
9816 main ()
9817 {
9818 return getmntent ();
9819 ;
9820 return 0;
9821 }
9822 _ACEOF
9823 for ac_lib in '' sun seq gen; do
9824 if test -z "$ac_lib"; then
9825 ac_res="none required"
9826 else
9827 ac_res=-l$ac_lib
9828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9829 fi
9830 if ac_fn_c_try_link "$LINENO"; then :
9831 ac_cv_search_getmntent=$ac_res
9832 fi
9833 rm -f core conftest.err conftest.$ac_objext \
9834 conftest$ac_exeext
9835 if test "${ac_cv_search_getmntent+set}" = set; then :
9836 break
9837 fi
9838 done
9839 if test "${ac_cv_search_getmntent+set}" = set; then :
9840
9841 else
9842 ac_cv_search_getmntent=no
9843 fi
9844 rm conftest.$ac_ext
9845 LIBS=$ac_func_search_save_LIBS
9846 fi
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9848 $as_echo "$ac_cv_search_getmntent" >&6; }
9849 ac_res=$ac_cv_search_getmntent
9850 if test "$ac_res" != no; then :
9851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9852 ac_cv_func_getmntent=yes
9853
9854 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
9855
9856 else
9857 ac_cv_func_getmntent=no
9858 fi
9859
9860
9861 for ac_header in sys/select.h sys/socket.h
9862 do :
9863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9864 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9865 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9866 cat >>confdefs.h <<_ACEOF
9867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9868 _ACEOF
9869
9870 fi
9871
9872 done
9873
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9875 $as_echo_n "checking types of arguments for select... " >&6; }
9876 if test "${ac_cv_func_select_args+set}" = set; then :
9877 $as_echo_n "(cached) " >&6
9878 else
9879 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9880 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9881 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883 /* end confdefs.h. */
9884 $ac_includes_default
9885 #ifdef HAVE_SYS_SELECT_H
9886 # include <sys/select.h>
9887 #endif
9888 #ifdef HAVE_SYS_SOCKET_H
9889 # include <sys/socket.h>
9890 #endif
9891
9892 int
9893 main ()
9894 {
9895 extern int select ($ac_arg1,
9896 $ac_arg234, $ac_arg234, $ac_arg234,
9897 $ac_arg5);
9898 ;
9899 return 0;
9900 }
9901 _ACEOF
9902 if ac_fn_c_try_compile "$LINENO"; then :
9903 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9904 fi
9905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9906 done
9907 done
9908 done
9909 # Provide a safe default value.
9910 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
9911
9912 fi
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9914 $as_echo "$ac_cv_func_select_args" >&6; }
9915 ac_save_IFS=$IFS; IFS=','
9916 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9917 IFS=$ac_save_IFS
9918 shift
9919
9920 cat >>confdefs.h <<_ACEOF
9921 #define SELECT_TYPE_ARG1 $1
9922 _ACEOF
9923
9924
9925 cat >>confdefs.h <<_ACEOF
9926 #define SELECT_TYPE_ARG234 ($2)
9927 _ACEOF
9928
9929
9930 cat >>confdefs.h <<_ACEOF
9931 #define SELECT_TYPE_ARG5 ($3)
9932 _ACEOF
9933
9934 rm -f conftest*
9935
9936 fi
9937
9938 if test x$CLUSTER != xnone; then
9939 for ac_header in sys/socket.h sys/un.h
9940 do :
9941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9942 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9943 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9944 cat >>confdefs.h <<_ACEOF
9945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9946 _ACEOF
9947
9948 else
9949 as_fn_error $? "bailing out" "$LINENO" 5
9950 fi
9951
9952 done
9953
9954 for ac_func in socket
9955 do :
9956 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9957 if test "x$ac_cv_func_socket" = x""yes; then :
9958 cat >>confdefs.h <<_ACEOF
9959 #define HAVE_SOCKET 1
9960 _ACEOF
9961
9962 else
9963 as_fn_error $? "bailing out" "$LINENO" 5
9964 fi
9965 done
9966
9967 fi
9968
9969 if test x$DMEVENTD = xyes; then
9970 for ac_header in arpa/inet.h
9971 do :
9972 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9973 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
9974 cat >>confdefs.h <<_ACEOF
9975 #define HAVE_ARPA_INET_H 1
9976 _ACEOF
9977
9978 else
9979 as_fn_error $? "bailing out" "$LINENO" 5
9980 fi
9981
9982 done
9983
9984 fi
9985
9986 if test x$HAVE_LIBDL = xyes; then
9987 for ac_header in dlfcn.h
9988 do :
9989 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9990 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9991 cat >>confdefs.h <<_ACEOF
9992 #define HAVE_DLFCN_H 1
9993 _ACEOF
9994
9995 else
9996 as_fn_error $? "bailing out" "$LINENO" 5
9997 fi
9998
9999 done
10000
10001 fi
10002
10003 if test x$INTL = xyes; then
10004 for ac_header in libintl.h
10005 do :
10006 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10007 if test "x$ac_cv_header_libintl_h" = x""yes; then :
10008 cat >>confdefs.h <<_ACEOF
10009 #define HAVE_LIBINTL_H 1
10010 _ACEOF
10011
10012 else
10013 as_fn_error $? "bailing out" "$LINENO" 5
10014 fi
10015
10016 done
10017
10018 fi
10019
10020 if test x$UDEV_SYNC = xyes; then
10021 for ac_header in sys/ipc.h sys/sem.h
10022 do :
10023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10024 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10025 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10026 cat >>confdefs.h <<_ACEOF
10027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10028 _ACEOF
10029
10030 else
10031 as_fn_error $? "bailing out" "$LINENO" 5
10032 fi
10033
10034 done
10035
10036 fi
10037
10038 ################################################################################
10039 # Extract the first word of "modprobe", so it can be a program name with args.
10040 set dummy modprobe; ac_word=$2
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10042 $as_echo_n "checking for $ac_word... " >&6; }
10043 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
10044 $as_echo_n "(cached) " >&6
10045 else
10046 case $MODPROBE_CMD in
10047 [\\/]* | ?:[\\/]*)
10048 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10049 ;;
10050 *)
10051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052 for as_dir in $PATH
10053 do
10054 IFS=$as_save_IFS
10055 test -z "$as_dir" && as_dir=.
10056 for ac_exec_ext in '' $ac_executable_extensions; do
10057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10058 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
10059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10060 break 2
10061 fi
10062 done
10063 done
10064 IFS=$as_save_IFS
10065
10066 ;;
10067 esac
10068 fi
10069 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
10070 if test -n "$MODPROBE_CMD"; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
10072 $as_echo "$MODPROBE_CMD" >&6; }
10073 else
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075 $as_echo "no" >&6; }
10076 fi
10077
10078
10079
10080 if test x$MODPROBE_CMD != x; then
10081
10082 cat >>confdefs.h <<_ACEOF
10083 #define MODPROBE_CMD "$MODPROBE_CMD"
10084 _ACEOF
10085
10086 fi
10087
10088
10089 lvm_exec_prefix=$exec_prefix
10090 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10091 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
10092
10093 cat >>confdefs.h <<_ACEOF
10094 #define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
10095 _ACEOF
10096
10097
10098 if test "$CLVMD" != none; then
10099 clvmd_prefix=$ac_default_prefix
10100 test "$prefix" != NONE && clvmd_prefix=$prefix
10101
10102 cat >>confdefs.h <<_ACEOF
10103 #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
10104 _ACEOF
10105
10106 fi
10107
10108 ################################################################################
10109 if test "$BUILD_DMEVENTD" = yes; then
10110
10111 # Check whether --with-dmeventd-pidfile was given.
10112 if test "${with_dmeventd_pidfile+set}" = set; then :
10113 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
10114 else
10115 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
10116 fi
10117
10118
10119 cat >>confdefs.h <<_ACEOF
10120 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10121 _ACEOF
10122
10123 fi
10124
10125 if test "$BUILD_DMEVENTD" = yes; then
10126
10127 # Check whether --with-dmeventd-path was given.
10128 if test "${with_dmeventd_path+set}" = set; then :
10129 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
10130 else
10131 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
10132 fi
10133
10134
10135 cat >>confdefs.h <<_ACEOF
10136 #define DMEVENTD_PATH "$DMEVENTD_PATH"
10137 _ACEOF
10138
10139 fi
10140
10141
10142
10143 # Check whether --with-default-run-dir was given.
10144 if test "${with_default_run_dir+set}" = set; then :
10145 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
10146 else
10147 DEFAULT_RUN_DIR="/var/run/lvm"
10148 fi
10149
10150 cat >>confdefs.h <<_ACEOF
10151 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10152 _ACEOF
10153
10154
10155 ################################################################################
10156
10157 # Check whether --with-default-system-dir was given.
10158 if test "${with_default_system_dir+set}" = set; then :
10159 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
10160 else
10161 DEFAULT_SYS_DIR="/etc/lvm"
10162 fi
10163
10164
10165 cat >>confdefs.h <<_ACEOF
10166 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10167 _ACEOF
10168
10169
10170
10171 # Check whether --with-default-archive-subdir was given.
10172 if test "${with_default_archive_subdir+set}" = set; then :
10173 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
10174 else
10175 DEFAULT_ARCHIVE_SUBDIR=archive
10176 fi
10177
10178
10179 cat >>confdefs.h <<_ACEOF
10180 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10181 _ACEOF
10182
10183
10184
10185 # Check whether --with-default-backup-subdir was given.
10186 if test "${with_default_backup_subdir+set}" = set; then :
10187 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
10188 else
10189 DEFAULT_BACKUP_SUBDIR=backup
10190 fi
10191
10192
10193 cat >>confdefs.h <<_ACEOF
10194 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10195 _ACEOF
10196
10197
10198
10199 # Check whether --with-default-cache-subdir was given.
10200 if test "${with_default_cache_subdir+set}" = set; then :
10201 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
10202 else
10203 DEFAULT_CACHE_SUBDIR=cache
10204 fi
10205
10206
10207 cat >>confdefs.h <<_ACEOF
10208 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10209 _ACEOF
10210
10211
10212
10213 # Check whether --with-default-locking-dir was given.
10214 if test "${with_default_locking_dir+set}" = set; then :
10215 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
10216 else
10217 DEFAULT_LOCK_DIR="/var/lock/lvm"
10218 fi
10219
10220
10221 cat >>confdefs.h <<_ACEOF
10222 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10223 _ACEOF
10224
10225
10226 ################################################################################
10227
10228 # Check whether --with-default-data-alignment was given.
10229 if test "${with_default_data_alignment+set}" = set; then :
10230 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10231 else
10232 DEFAULT_DATA_ALIGNMENT=1
10233 fi
10234
10235
10236 cat >>confdefs.h <<_ACEOF
10237 #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10238 _ACEOF
10239
10240
10241 ################################################################################
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
10243 $as_echo_n "checking for kernel interface choice... " >&6; }
10244
10245 # Check whether --with-interface was given.
10246 if test "${with_interface+set}" = set; then :
10247 withval=$with_interface; interface=$withval
10248 else
10249 interface=ioctl
10250 fi
10251
10252 if [ "x$interface" != xioctl ];
10253 then
10254 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
10255 fi
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
10257 $as_echo "$interface" >&6; }
10258
10259 ################################################################################
10260 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
10261
10262 cat >>confdefs.h <<_ACEOF
10263 #define DM_LIB_VERSION $DM_LIB_VERSION
10264 _ACEOF
10265
10266
10267 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
10268
10269 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
10270
10271 VER=`cat "$srcdir"/VERSION`
10272 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
10273 VER=`echo "$VER" | $AWK '{print $1}'`
10274 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10275 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10276 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10277 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
10278 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10279 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
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
10385 ################################################################################
10386 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/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
10387
10388 cat >confcache <<\_ACEOF
10389 # This file is a shell script that caches the results of configure
10390 # tests run on this system so they can be shared between configure
10391 # scripts and configure runs, see configure's option --config-cache.
10392 # It is not useful on other systems. If it contains results you don't
10393 # want to keep, you may remove or edit it.
10394 #
10395 # config.status only pays attention to the cache file if you give it
10396 # the --recheck option to rerun configure.
10397 #
10398 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10399 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10400 # following values.
10401
10402 _ACEOF
10403
10404 # The following way of writing the cache mishandles newlines in values,
10405 # but we know of no workaround that is simple, portable, and efficient.
10406 # So, we kill variables containing newlines.
10407 # Ultrix sh set writes to stderr and can't be redirected directly,
10408 # and sets the high bit in the cache file unless we assign to the vars.
10409 (
10410 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10411 eval ac_val=\$$ac_var
10412 case $ac_val in #(
10413 *${as_nl}*)
10414 case $ac_var in #(
10415 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10416 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10417 esac
10418 case $ac_var in #(
10419 _ | IFS | as_nl) ;; #(
10420 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10421 *) { eval $ac_var=; unset $ac_var;} ;;
10422 esac ;;
10423 esac
10424 done
10425
10426 (set) 2>&1 |
10427 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10428 *${as_nl}ac_space=\ *)
10429 # `set' does not quote correctly, so add quotes: double-quote
10430 # substitution turns \\\\ into \\, and sed turns \\ into \.
10431 sed -n \
10432 "s/'/'\\\\''/g;
10433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10434 ;; #(
10435 *)
10436 # `set' quotes correctly as required by POSIX, so do not add quotes.
10437 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10438 ;;
10439 esac |
10440 sort
10441 ) |
10442 sed '
10443 /^ac_cv_env_/b end
10444 t clear
10445 :clear
10446 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10447 t end
10448 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10449 :end' >>confcache
10450 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10451 if test -w "$cache_file"; then
10452 test "x$cache_file" != "x/dev/null" &&
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10454 $as_echo "$as_me: updating cache $cache_file" >&6;}
10455 cat confcache >$cache_file
10456 else
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10458 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10459 fi
10460 fi
10461 rm -f confcache
10462
10463 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10464 # Let make expand exec_prefix.
10465 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10466
10467 DEFS=-DHAVE_CONFIG_H
10468
10469 ac_libobjs=
10470 ac_ltlibobjs=
10471 U=
10472 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10473 # 1. Remove the extension, and $U if already installed.
10474 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10475 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10476 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10477 # will be set to the directory where LIBOBJS objects are built.
10478 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10479 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10480 done
10481 LIBOBJS=$ac_libobjs
10482
10483 LTLIBOBJS=$ac_ltlibobjs
10484
10485
10486
10487 : ${CONFIG_STATUS=./config.status}
10488 ac_write_fail=0
10489 ac_clean_files_save=$ac_clean_files
10490 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10492 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10493 as_write_fail=0
10494 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10495 #! $SHELL
10496 # Generated by $as_me.
10497 # Run this file to recreate the current configuration.
10498 # Compiler output produced by configure, useful for debugging
10499 # configure, is in config.log if it exists.
10500
10501 debug=false
10502 ac_cs_recheck=false
10503 ac_cs_silent=false
10504
10505 SHELL=\${CONFIG_SHELL-$SHELL}
10506 export SHELL
10507 _ASEOF
10508 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10509 ## -------------------- ##
10510 ## M4sh Initialization. ##
10511 ## -------------------- ##
10512
10513 # Be more Bourne compatible
10514 DUALCASE=1; export DUALCASE # for MKS sh
10515 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10516 emulate sh
10517 NULLCMD=:
10518 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10519 # is contrary to our usage. Disable this feature.
10520 alias -g '${1+"$@"}'='"$@"'
10521 setopt NO_GLOB_SUBST
10522 else
10523 case `(set -o) 2>/dev/null` in #(
10524 *posix*) :
10525 set -o posix ;; #(
10526 *) :
10527 ;;
10528 esac
10529 fi
10530
10531
10532 as_nl='
10533 '
10534 export as_nl
10535 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10536 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10537 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10538 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10539 # Prefer a ksh shell builtin over an external printf program on Solaris,
10540 # but without wasting forks for bash or zsh.
10541 if test -z "$BASH_VERSION$ZSH_VERSION" \
10542 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10543 as_echo='print -r --'
10544 as_echo_n='print -rn --'
10545 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10546 as_echo='printf %s\n'
10547 as_echo_n='printf %s'
10548 else
10549 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10550 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10551 as_echo_n='/usr/ucb/echo -n'
10552 else
10553 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10554 as_echo_n_body='eval
10555 arg=$1;
10556 case $arg in #(
10557 *"$as_nl"*)
10558 expr "X$arg" : "X\\(.*\\)$as_nl";
10559 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10560 esac;
10561 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10562 '
10563 export as_echo_n_body
10564 as_echo_n='sh -c $as_echo_n_body as_echo'
10565 fi
10566 export as_echo_body
10567 as_echo='sh -c $as_echo_body as_echo'
10568 fi
10569
10570 # The user is always right.
10571 if test "${PATH_SEPARATOR+set}" != set; then
10572 PATH_SEPARATOR=:
10573 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10574 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10575 PATH_SEPARATOR=';'
10576 }
10577 fi
10578
10579
10580 # IFS
10581 # We need space, tab and new line, in precisely that order. Quoting is
10582 # there to prevent editors from complaining about space-tab.
10583 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10584 # splitting by setting IFS to empty value.)
10585 IFS=" "" $as_nl"
10586
10587 # Find who we are. Look in the path if we contain no directory separator.
10588 case $0 in #((
10589 *[\\/]* ) as_myself=$0 ;;
10590 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in $PATH
10592 do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10596 done
10597 IFS=$as_save_IFS
10598
10599 ;;
10600 esac
10601 # We did not find ourselves, most probably we were run as `sh COMMAND'
10602 # in which case we are not to be found in the path.
10603 if test "x$as_myself" = x; then
10604 as_myself=$0
10605 fi
10606 if test ! -f "$as_myself"; then
10607 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10608 exit 1
10609 fi
10610
10611 # Unset variables that we do not need and which cause bugs (e.g. in
10612 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10613 # suppresses any "Segmentation fault" message there. '((' could
10614 # trigger a bug in pdksh 5.2.14.
10615 for as_var in BASH_ENV ENV MAIL MAILPATH
10616 do eval test x\${$as_var+set} = xset \
10617 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10618 done
10619 PS1='$ '
10620 PS2='> '
10621 PS4='+ '
10622
10623 # NLS nuisances.
10624 LC_ALL=C
10625 export LC_ALL
10626 LANGUAGE=C
10627 export LANGUAGE
10628
10629 # CDPATH.
10630 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10631
10632
10633 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10634 # ----------------------------------------
10635 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10636 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10637 # script with STATUS, using 1 if that was 0.
10638 as_fn_error ()
10639 {
10640 as_status=$1; test $as_status -eq 0 && as_status=1
10641 if test "$4"; then
10642 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10643 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10644 fi
10645 $as_echo "$as_me: error: $2" >&2
10646 as_fn_exit $as_status
10647 } # as_fn_error
10648
10649
10650 # as_fn_set_status STATUS
10651 # -----------------------
10652 # Set $? to STATUS, without forking.
10653 as_fn_set_status ()
10654 {
10655 return $1
10656 } # as_fn_set_status
10657
10658 # as_fn_exit STATUS
10659 # -----------------
10660 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10661 as_fn_exit ()
10662 {
10663 set +e
10664 as_fn_set_status $1
10665 exit $1
10666 } # as_fn_exit
10667
10668 # as_fn_unset VAR
10669 # ---------------
10670 # Portably unset VAR.
10671 as_fn_unset ()
10672 {
10673 { eval $1=; unset $1;}
10674 }
10675 as_unset=as_fn_unset
10676 # as_fn_append VAR VALUE
10677 # ----------------------
10678 # Append the text in VALUE to the end of the definition contained in VAR. Take
10679 # advantage of any shell optimizations that allow amortized linear growth over
10680 # repeated appends, instead of the typical quadratic growth present in naive
10681 # implementations.
10682 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10683 eval 'as_fn_append ()
10684 {
10685 eval $1+=\$2
10686 }'
10687 else
10688 as_fn_append ()
10689 {
10690 eval $1=\$$1\$2
10691 }
10692 fi # as_fn_append
10693
10694 # as_fn_arith ARG...
10695 # ------------------
10696 # Perform arithmetic evaluation on the ARGs, and store the result in the
10697 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10698 # must be portable across $(()) and expr.
10699 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10700 eval 'as_fn_arith ()
10701 {
10702 as_val=$(( $* ))
10703 }'
10704 else
10705 as_fn_arith ()
10706 {
10707 as_val=`expr "$@" || test $? -eq 1`
10708 }
10709 fi # as_fn_arith
10710
10711
10712 if expr a : '\(a\)' >/dev/null 2>&1 &&
10713 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10714 as_expr=expr
10715 else
10716 as_expr=false
10717 fi
10718
10719 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10720 as_basename=basename
10721 else
10722 as_basename=false
10723 fi
10724
10725 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10726 as_dirname=dirname
10727 else
10728 as_dirname=false
10729 fi
10730
10731 as_me=`$as_basename -- "$0" ||
10732 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10733 X"$0" : 'X\(//\)$' \| \
10734 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10735 $as_echo X/"$0" |
10736 sed '/^.*\/\([^/][^/]*\)\/*$/{
10737 s//\1/
10738 q
10739 }
10740 /^X\/\(\/\/\)$/{
10741 s//\1/
10742 q
10743 }
10744 /^X\/\(\/\).*/{
10745 s//\1/
10746 q
10747 }
10748 s/.*/./; q'`
10749
10750 # Avoid depending upon Character Ranges.
10751 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10752 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10753 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10754 as_cr_digits='0123456789'
10755 as_cr_alnum=$as_cr_Letters$as_cr_digits
10756
10757 ECHO_C= ECHO_N= ECHO_T=
10758 case `echo -n x` in #(((((
10759 -n*)
10760 case `echo 'xy\c'` in
10761 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10762 xy) ECHO_C='\c';;
10763 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10764 ECHO_T=' ';;
10765 esac;;
10766 *)
10767 ECHO_N='-n';;
10768 esac
10769
10770 rm -f conf$$ conf$$.exe conf$$.file
10771 if test -d conf$$.dir; then
10772 rm -f conf$$.dir/conf$$.file
10773 else
10774 rm -f conf$$.dir
10775 mkdir conf$$.dir 2>/dev/null
10776 fi
10777 if (echo >conf$$.file) 2>/dev/null; then
10778 if ln -s conf$$.file conf$$ 2>/dev/null; then
10779 as_ln_s='ln -s'
10780 # ... but there are two gotchas:
10781 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10782 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10783 # In both cases, we have to default to `cp -p'.
10784 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10785 as_ln_s='cp -p'
10786 elif ln conf$$.file conf$$ 2>/dev/null; then
10787 as_ln_s=ln
10788 else
10789 as_ln_s='cp -p'
10790 fi
10791 else
10792 as_ln_s='cp -p'
10793 fi
10794 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10795 rmdir conf$$.dir 2>/dev/null
10796
10797
10798 # as_fn_mkdir_p
10799 # -------------
10800 # Create "$as_dir" as a directory, including parents if necessary.
10801 as_fn_mkdir_p ()
10802 {
10803
10804 case $as_dir in #(
10805 -*) as_dir=./$as_dir;;
10806 esac
10807 test -d "$as_dir" || eval $as_mkdir_p || {
10808 as_dirs=
10809 while :; do
10810 case $as_dir in #(
10811 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10812 *) as_qdir=$as_dir;;
10813 esac
10814 as_dirs="'$as_qdir' $as_dirs"
10815 as_dir=`$as_dirname -- "$as_dir" ||
10816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10817 X"$as_dir" : 'X\(//\)[^/]' \| \
10818 X"$as_dir" : 'X\(//\)$' \| \
10819 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10820 $as_echo X"$as_dir" |
10821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10822 s//\1/
10823 q
10824 }
10825 /^X\(\/\/\)[^/].*/{
10826 s//\1/
10827 q
10828 }
10829 /^X\(\/\/\)$/{
10830 s//\1/
10831 q
10832 }
10833 /^X\(\/\).*/{
10834 s//\1/
10835 q
10836 }
10837 s/.*/./; q'`
10838 test -d "$as_dir" && break
10839 done
10840 test -z "$as_dirs" || eval "mkdir $as_dirs"
10841 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10842
10843
10844 } # as_fn_mkdir_p
10845 if mkdir -p . 2>/dev/null; then
10846 as_mkdir_p='mkdir -p "$as_dir"'
10847 else
10848 test -d ./-p && rmdir ./-p
10849 as_mkdir_p=false
10850 fi
10851
10852 if test -x / >/dev/null 2>&1; then
10853 as_test_x='test -x'
10854 else
10855 if ls -dL / >/dev/null 2>&1; then
10856 as_ls_L_option=L
10857 else
10858 as_ls_L_option=
10859 fi
10860 as_test_x='
10861 eval sh -c '\''
10862 if test -d "$1"; then
10863 test -d "$1/.";
10864 else
10865 case $1 in #(
10866 -*)set "./$1";;
10867 esac;
10868 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10869 ???[sx]*):;;*)false;;esac;fi
10870 '\'' sh
10871 '
10872 fi
10873 as_executable_p=$as_test_x
10874
10875 # Sed expression to map a string onto a valid CPP name.
10876 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10877
10878 # Sed expression to map a string onto a valid variable name.
10879 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10880
10881
10882 exec 6>&1
10883 ## ----------------------------------- ##
10884 ## Main body of $CONFIG_STATUS script. ##
10885 ## ----------------------------------- ##
10886 _ASEOF
10887 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10888
10889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10890 # Save the log message, to keep $0 and so on meaningful, and to
10891 # report actual input values of CONFIG_FILES etc. instead of their
10892 # values after options handling.
10893 ac_log="
10894 This file was extended by $as_me, which was
10895 generated by GNU Autoconf 2.66. Invocation command line was
10896
10897 CONFIG_FILES = $CONFIG_FILES
10898 CONFIG_HEADERS = $CONFIG_HEADERS
10899 CONFIG_LINKS = $CONFIG_LINKS
10900 CONFIG_COMMANDS = $CONFIG_COMMANDS
10901 $ $0 $@
10902
10903 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10904 "
10905
10906 _ACEOF
10907
10908 case $ac_config_files in *"
10909 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10910 esac
10911
10912 case $ac_config_headers in *"
10913 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10914 esac
10915
10916
10917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10918 # Files that config.status was made for.
10919 config_files="$ac_config_files"
10920 config_headers="$ac_config_headers"
10921
10922 _ACEOF
10923
10924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10925 ac_cs_usage="\
10926 \`$as_me' instantiates files and other configuration actions
10927 from templates according to the current configuration. Unless the files
10928 and actions are specified as TAGs, all are instantiated by default.
10929
10930 Usage: $0 [OPTION]... [TAG]...
10931
10932 -h, --help print this help, then exit
10933 -V, --version print version number and configuration settings, then exit
10934 --config print configuration, then exit
10935 -q, --quiet, --silent
10936 do not print progress messages
10937 -d, --debug don't remove temporary files
10938 --recheck update $as_me by reconfiguring in the same conditions
10939 --file=FILE[:TEMPLATE]
10940 instantiate the configuration file FILE
10941 --header=FILE[:TEMPLATE]
10942 instantiate the configuration header FILE
10943
10944 Configuration files:
10945 $config_files
10946
10947 Configuration headers:
10948 $config_headers
10949
10950 Report bugs to the package provider."
10951
10952 _ACEOF
10953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10954 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10955 ac_cs_version="\\
10956 config.status
10957 configured by $0, generated by GNU Autoconf 2.66,
10958 with options \\"\$ac_cs_config\\"
10959
10960 Copyright (C) 2010 Free Software Foundation, Inc.
10961 This config.status script is free software; the Free Software Foundation
10962 gives unlimited permission to copy, distribute and modify it."
10963
10964 ac_pwd='$ac_pwd'
10965 srcdir='$srcdir'
10966 INSTALL='$INSTALL'
10967 MKDIR_P='$MKDIR_P'
10968 AWK='$AWK'
10969 test -n "\$AWK" || AWK=awk
10970 _ACEOF
10971
10972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10973 # The default lists apply if the user does not specify any file.
10974 ac_need_defaults=:
10975 while test $# != 0
10976 do
10977 case $1 in
10978 --*=*)
10979 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10980 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10981 ac_shift=:
10982 ;;
10983 *)
10984 ac_option=$1
10985 ac_optarg=$2
10986 ac_shift=shift
10987 ;;
10988 esac
10989
10990 case $ac_option in
10991 # Handling of the options.
10992 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10993 ac_cs_recheck=: ;;
10994 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10995 $as_echo "$ac_cs_version"; exit ;;
10996 --config | --confi | --conf | --con | --co | --c )
10997 $as_echo "$ac_cs_config"; exit ;;
10998 --debug | --debu | --deb | --de | --d | -d )
10999 debug=: ;;
11000 --file | --fil | --fi | --f )
11001 $ac_shift
11002 case $ac_optarg in
11003 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11004 esac
11005 as_fn_append CONFIG_FILES " '$ac_optarg'"
11006 ac_need_defaults=false;;
11007 --header | --heade | --head | --hea )
11008 $ac_shift
11009 case $ac_optarg in
11010 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11011 esac
11012 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11013 ac_need_defaults=false;;
11014 --he | --h)
11015 # Conflict between --help and --header
11016 as_fn_error $? "ambiguous option: \`$1'
11017 Try \`$0 --help' for more information.";;
11018 --help | --hel | -h )
11019 $as_echo "$ac_cs_usage"; exit ;;
11020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11021 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11022 ac_cs_silent=: ;;
11023
11024 # This is an error.
11025 -*) as_fn_error $? "unrecognized option: \`$1'
11026 Try \`$0 --help' for more information." ;;
11027
11028 *) as_fn_append ac_config_targets " $1"
11029 ac_need_defaults=false ;;
11030
11031 esac
11032 shift
11033 done
11034
11035 ac_configure_extra_args=
11036
11037 if $ac_cs_silent; then
11038 exec 6>/dev/null
11039 ac_configure_extra_args="$ac_configure_extra_args --silent"
11040 fi
11041
11042 _ACEOF
11043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11044 if \$ac_cs_recheck; then
11045 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11046 shift
11047 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11048 CONFIG_SHELL='$SHELL'
11049 export CONFIG_SHELL
11050 exec "\$@"
11051 fi
11052
11053 _ACEOF
11054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11055 exec 5>>config.log
11056 {
11057 echo
11058 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11059 ## Running $as_me. ##
11060 _ASBOX
11061 $as_echo "$ac_log"
11062 } >&5
11063
11064 _ACEOF
11065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11066 _ACEOF
11067
11068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11069
11070 # Handling of arguments.
11071 for ac_config_target in $ac_config_targets
11072 do
11073 case $ac_config_target in
11074 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11075 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11076 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11077 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11078 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
11079 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
11080 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11081 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
11082 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
11083 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
11084 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11085 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
11086 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11087 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
11088 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
11089 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11090 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11091 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11092 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11093 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11094 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
11095 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
11096 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
11097 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
11098 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11099 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
11100 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
11101 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
11102 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11103 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
11104 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
11105 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
11106 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
11107 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11108 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
11109 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
11110 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11111 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
11112 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11113 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
11114 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11115 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
11116 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
11117
11118 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11119 esac
11120 done
11121
11122
11123 # If the user did not use the arguments to specify the items to instantiate,
11124 # then the envvar interface is used. Set only those that are not.
11125 # We use the long form for the default assignment because of an extremely
11126 # bizarre bug on SunOS 4.1.3.
11127 if $ac_need_defaults; then
11128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11130 fi
11131
11132 # Have a temporary directory for convenience. Make it in the build tree
11133 # simply because there is no reason against having it here, and in addition,
11134 # creating and moving files from /tmp can sometimes cause problems.
11135 # Hook for its removal unless debugging.
11136 # Note that there is a small window in which the directory will not be cleaned:
11137 # after its creation but before its name has been assigned to `$tmp'.
11138 $debug ||
11139 {
11140 tmp=
11141 trap 'exit_status=$?
11142 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11143 ' 0
11144 trap 'as_fn_exit 1' 1 2 13 15
11145 }
11146 # Create a (secure) tmp directory for tmp files.
11147
11148 {
11149 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11150 test -n "$tmp" && test -d "$tmp"
11151 } ||
11152 {
11153 tmp=./conf$$-$RANDOM
11154 (umask 077 && mkdir "$tmp")
11155 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11156
11157 # Set up the scripts for CONFIG_FILES section.
11158 # No need to generate them if there are no CONFIG_FILES.
11159 # This happens for instance with `./config.status config.h'.
11160 if test -n "$CONFIG_FILES"; then
11161
11162
11163 ac_cr=`echo X | tr X '\015'`
11164 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11165 # But we know of no other shell where ac_cr would be empty at this
11166 # point, so we can use a bashism as a fallback.
11167 if test "x$ac_cr" = x; then
11168 eval ac_cr=\$\'\\r\'
11169 fi
11170 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11171 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11172 ac_cs_awk_cr='\\r'
11173 else
11174 ac_cs_awk_cr=$ac_cr
11175 fi
11176
11177 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11178 _ACEOF
11179
11180
11181 {
11182 echo "cat >conf$$subs.awk <<_ACEOF" &&
11183 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11184 echo "_ACEOF"
11185 } >conf$$subs.sh ||
11186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11187 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11188 ac_delim='%!_!# '
11189 for ac_last_try in false false false false false :; do
11190 . ./conf$$subs.sh ||
11191 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11192
11193 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11194 if test $ac_delim_n = $ac_delim_num; then
11195 break
11196 elif $ac_last_try; then
11197 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11198 else
11199 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11200 fi
11201 done
11202 rm -f conf$$subs.sh
11203
11204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11205 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11206 _ACEOF
11207 sed -n '
11208 h
11209 s/^/S["/; s/!.*/"]=/
11210 p
11211 g
11212 s/^[^!]*!//
11213 :repl
11214 t repl
11215 s/'"$ac_delim"'$//
11216 t delim
11217 :nl
11218 h
11219 s/\(.\{148\}\)..*/\1/
11220 t more1
11221 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11222 p
11223 n
11224 b repl
11225 :more1
11226 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11227 p
11228 g
11229 s/.\{148\}//
11230 t nl
11231 :delim
11232 h
11233 s/\(.\{148\}\)..*/\1/
11234 t more2
11235 s/["\\]/\\&/g; s/^/"/; s/$/"/
11236 p
11237 b
11238 :more2
11239 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11240 p
11241 g
11242 s/.\{148\}//
11243 t delim
11244 ' <conf$$subs.awk | sed '
11245 /^[^""]/{
11246 N
11247 s/\n//
11248 }
11249 ' >>$CONFIG_STATUS || ac_write_fail=1
11250 rm -f conf$$subs.awk
11251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11252 _ACAWK
11253 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11254 for (key in S) S_is_set[key] = 1
11255 FS = "\a"
11256
11257 }
11258 {
11259 line = $ 0
11260 nfields = split(line, field, "@")
11261 substed = 0
11262 len = length(field[1])
11263 for (i = 2; i < nfields; i++) {
11264 key = field[i]
11265 keylen = length(key)
11266 if (S_is_set[key]) {
11267 value = S[key]
11268 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11269 len += length(value) + length(field[++i])
11270 substed = 1
11271 } else
11272 len += 1 + keylen
11273 }
11274
11275 print line
11276 }
11277
11278 _ACAWK
11279 _ACEOF
11280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11281 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11282 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11283 else
11284 cat
11285 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11286 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11287 _ACEOF
11288
11289 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11290 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11291 # trailing colons and then remove the whole line if VPATH becomes empty
11292 # (actually we leave an empty line to preserve line numbers).
11293 if test "x$srcdir" = x.; then
11294 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11295 h
11296 s///
11297 s/^/:/
11298 s/[ ]*$/:/
11299 s/:\$(srcdir):/:/g
11300 s/:\${srcdir}:/:/g
11301 s/:@srcdir@:/:/g
11302 s/^:*//
11303 s/:*$//
11304 x
11305 s/\(=[ ]*\).*/\1/
11306 G
11307 s/\n//
11308 s/^[^=]*=[ ]*$//
11309 }'
11310 fi
11311
11312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11313 fi # test -n "$CONFIG_FILES"
11314
11315 # Set up the scripts for CONFIG_HEADERS section.
11316 # No need to generate them if there are no CONFIG_HEADERS.
11317 # This happens for instance with `./config.status Makefile'.
11318 if test -n "$CONFIG_HEADERS"; then
11319 cat >"$tmp/defines.awk" <<\_ACAWK ||
11320 BEGIN {
11321 _ACEOF
11322
11323 # Transform confdefs.h into an awk script `defines.awk', embedded as
11324 # here-document in config.status, that substitutes the proper values into
11325 # config.h.in to produce config.h.
11326
11327 # Create a delimiter string that does not exist in confdefs.h, to ease
11328 # handling of long lines.
11329 ac_delim='%!_!# '
11330 for ac_last_try in false false :; do
11331 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11332 if test -z "$ac_t"; then
11333 break
11334 elif $ac_last_try; then
11335 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11336 else
11337 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11338 fi
11339 done
11340
11341 # For the awk script, D is an array of macro values keyed by name,
11342 # likewise P contains macro parameters if any. Preserve backslash
11343 # newline sequences.
11344
11345 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11346 sed -n '
11347 s/.\{148\}/&'"$ac_delim"'/g
11348 t rset
11349 :rset
11350 s/^[ ]*#[ ]*define[ ][ ]*/ /
11351 t def
11352 d
11353 :def
11354 s/\\$//
11355 t bsnl
11356 s/["\\]/\\&/g
11357 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11358 D["\1"]=" \3"/p
11359 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11360 d
11361 :bsnl
11362 s/["\\]/\\&/g
11363 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11364 D["\1"]=" \3\\\\\\n"\\/p
11365 t cont
11366 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11367 t cont
11368 d
11369 :cont
11370 n
11371 s/.\{148\}/&'"$ac_delim"'/g
11372 t clear
11373 :clear
11374 s/\\$//
11375 t bsnlc
11376 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11377 d
11378 :bsnlc
11379 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11380 b cont
11381 ' <confdefs.h | sed '
11382 s/'"$ac_delim"'/"\\\
11383 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11384
11385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11386 for (key in D) D_is_set[key] = 1
11387 FS = "\a"
11388 }
11389 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11390 line = \$ 0
11391 split(line, arg, " ")
11392 if (arg[1] == "#") {
11393 defundef = arg[2]
11394 mac1 = arg[3]
11395 } else {
11396 defundef = substr(arg[1], 2)
11397 mac1 = arg[2]
11398 }
11399 split(mac1, mac2, "(") #)
11400 macro = mac2[1]
11401 prefix = substr(line, 1, index(line, defundef) - 1)
11402 if (D_is_set[macro]) {
11403 # Preserve the white space surrounding the "#".
11404 print prefix "define", macro P[macro] D[macro]
11405 next
11406 } else {
11407 # Replace #undef with comments. This is necessary, for example,
11408 # in the case of _POSIX_SOURCE, which is predefined and required
11409 # on some systems where configure will not decide to define it.
11410 if (defundef == "undef") {
11411 print "/*", prefix defundef, macro, "*/"
11412 next
11413 }
11414 }
11415 }
11416 { print }
11417 _ACAWK
11418 _ACEOF
11419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11420 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11421 fi # test -n "$CONFIG_HEADERS"
11422
11423
11424 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11425 shift
11426 for ac_tag
11427 do
11428 case $ac_tag in
11429 :[FHLC]) ac_mode=$ac_tag; continue;;
11430 esac
11431 case $ac_mode$ac_tag in
11432 :[FHL]*:*);;
11433 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11434 :[FH]-) ac_tag=-:-;;
11435 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11436 esac
11437 ac_save_IFS=$IFS
11438 IFS=:
11439 set x $ac_tag
11440 IFS=$ac_save_IFS
11441 shift
11442 ac_file=$1
11443 shift
11444
11445 case $ac_mode in
11446 :L) ac_source=$1;;
11447 :[FH])
11448 ac_file_inputs=
11449 for ac_f
11450 do
11451 case $ac_f in
11452 -) ac_f="$tmp/stdin";;
11453 *) # Look for the file first in the build tree, then in the source tree
11454 # (if the path is not absolute). The absolute path cannot be DOS-style,
11455 # because $ac_f cannot contain `:'.
11456 test -f "$ac_f" ||
11457 case $ac_f in
11458 [\\/$]*) false;;
11459 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11460 esac ||
11461 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11462 esac
11463 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11464 as_fn_append ac_file_inputs " '$ac_f'"
11465 done
11466
11467 # Let's still pretend it is `configure' which instantiates (i.e., don't
11468 # use $as_me), people would be surprised to read:
11469 # /* config.h. Generated by config.status. */
11470 configure_input='Generated from '`
11471 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11472 `' by configure.'
11473 if test x"$ac_file" != x-; then
11474 configure_input="$ac_file. $configure_input"
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11476 $as_echo "$as_me: creating $ac_file" >&6;}
11477 fi
11478 # Neutralize special characters interpreted by sed in replacement strings.
11479 case $configure_input in #(
11480 *\&* | *\|* | *\\* )
11481 ac_sed_conf_input=`$as_echo "$configure_input" |
11482 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11483 *) ac_sed_conf_input=$configure_input;;
11484 esac
11485
11486 case $ac_tag in
11487 *:-:* | *:-) cat >"$tmp/stdin" \
11488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11489 esac
11490 ;;
11491 esac
11492
11493 ac_dir=`$as_dirname -- "$ac_file" ||
11494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11495 X"$ac_file" : 'X\(//\)[^/]' \| \
11496 X"$ac_file" : 'X\(//\)$' \| \
11497 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11498 $as_echo X"$ac_file" |
11499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11500 s//\1/
11501 q
11502 }
11503 /^X\(\/\/\)[^/].*/{
11504 s//\1/
11505 q
11506 }
11507 /^X\(\/\/\)$/{
11508 s//\1/
11509 q
11510 }
11511 /^X\(\/\).*/{
11512 s//\1/
11513 q
11514 }
11515 s/.*/./; q'`
11516 as_dir="$ac_dir"; as_fn_mkdir_p
11517 ac_builddir=.
11518
11519 case "$ac_dir" in
11520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11521 *)
11522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11523 # A ".." for each directory in $ac_dir_suffix.
11524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11525 case $ac_top_builddir_sub in
11526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11528 esac ;;
11529 esac
11530 ac_abs_top_builddir=$ac_pwd
11531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11532 # for backward compatibility:
11533 ac_top_builddir=$ac_top_build_prefix
11534
11535 case $srcdir in
11536 .) # We are building in place.
11537 ac_srcdir=.
11538 ac_top_srcdir=$ac_top_builddir_sub
11539 ac_abs_top_srcdir=$ac_pwd ;;
11540 [\\/]* | ?:[\\/]* ) # Absolute name.
11541 ac_srcdir=$srcdir$ac_dir_suffix;
11542 ac_top_srcdir=$srcdir
11543 ac_abs_top_srcdir=$srcdir ;;
11544 *) # Relative name.
11545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11546 ac_top_srcdir=$ac_top_build_prefix$srcdir
11547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11548 esac
11549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11550
11551
11552 case $ac_mode in
11553 :F)
11554 #
11555 # CONFIG_FILE
11556 #
11557
11558 case $INSTALL in
11559 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11560 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11561 esac
11562 ac_MKDIR_P=$MKDIR_P
11563 case $MKDIR_P in
11564 [\\/$]* | ?:[\\/]* ) ;;
11565 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11566 esac
11567 _ACEOF
11568
11569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11570 # If the template does not know about datarootdir, expand it.
11571 # FIXME: This hack should be removed a few years after 2.60.
11572 ac_datarootdir_hack=; ac_datarootdir_seen=
11573 ac_sed_dataroot='
11574 /datarootdir/ {
11575 p
11576 q
11577 }
11578 /@datadir@/p
11579 /@docdir@/p
11580 /@infodir@/p
11581 /@localedir@/p
11582 /@mandir@/p'
11583 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11584 *datarootdir*) ac_datarootdir_seen=yes;;
11585 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11587 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11588 _ACEOF
11589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11590 ac_datarootdir_hack='
11591 s&@datadir@&$datadir&g
11592 s&@docdir@&$docdir&g
11593 s&@infodir@&$infodir&g
11594 s&@localedir@&$localedir&g
11595 s&@mandir@&$mandir&g
11596 s&\\\${datarootdir}&$datarootdir&g' ;;
11597 esac
11598 _ACEOF
11599
11600 # Neutralize VPATH when `$srcdir' = `.'.
11601 # Shell code in configure.ac might set extrasub.
11602 # FIXME: do we really want to maintain this feature?
11603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11604 ac_sed_extra="$ac_vpsub
11605 $extrasub
11606 _ACEOF
11607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11608 :t
11609 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11610 s|@configure_input@|$ac_sed_conf_input|;t t
11611 s&@top_builddir@&$ac_top_builddir_sub&;t t
11612 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11613 s&@srcdir@&$ac_srcdir&;t t
11614 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11615 s&@top_srcdir@&$ac_top_srcdir&;t t
11616 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11617 s&@builddir@&$ac_builddir&;t t
11618 s&@abs_builddir@&$ac_abs_builddir&;t t
11619 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11620 s&@INSTALL@&$ac_INSTALL&;t t
11621 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11622 $ac_datarootdir_hack
11623 "
11624 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11625 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11626
11627 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11628 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11629 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11631 which seems to be undefined. Please make sure it is defined" >&5
11632 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11633 which seems to be undefined. Please make sure it is defined" >&2;}
11634
11635 rm -f "$tmp/stdin"
11636 case $ac_file in
11637 -) cat "$tmp/out" && rm -f "$tmp/out";;
11638 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11639 esac \
11640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11641 ;;
11642 :H)
11643 #
11644 # CONFIG_HEADER
11645 #
11646 if test x"$ac_file" != x-; then
11647 {
11648 $as_echo "/* $configure_input */" \
11649 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11650 } >"$tmp/config.h" \
11651 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11652 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11654 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11655 else
11656 rm -f "$ac_file"
11657 mv "$tmp/config.h" "$ac_file" \
11658 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11659 fi
11660 else
11661 $as_echo "/* $configure_input */" \
11662 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11663 || as_fn_error $? "could not create -" "$LINENO" 5
11664 fi
11665 ;;
11666
11667
11668 esac
11669
11670 done # for ac_tag
11671
11672
11673 as_fn_exit 0
11674 _ACEOF
11675 ac_clean_files=$ac_clean_files_save
11676
11677 test $ac_write_fail = 0 ||
11678 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11679
11680
11681 # configure is writing to config.log, and then calls config.status.
11682 # config.status does its own redirection, appending to config.log.
11683 # Unfortunately, on DOS this fails, as config.log is still kept open
11684 # by configure, so config.status won't be able to write to it; its
11685 # output is simply discarded. So we exec the FD to /dev/null,
11686 # effectively closing config.log, so it can be properly (re)opened and
11687 # appended to by config.status. When coming back to configure, we
11688 # need to make the FD available again.
11689 if test "$no_create" != yes; then
11690 ac_cs_success=:
11691 ac_config_status_args=
11692 test "$silent" = yes &&
11693 ac_config_status_args="$ac_config_status_args --quiet"
11694 exec 5>/dev/null
11695 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11696 exec 5>>config.log
11697 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11698 # would make configure fail if this is the last instruction.
11699 $ac_cs_success || as_fn_exit 1
11700 fi
11701 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11703 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11704 fi
11705
11706
11707 if test x$ODIRECT != xyes; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11709 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
11710 fi
This page took 0.635789 seconds and 6 git commands to generate.