]> sourceware.org Git - lvm2.git/blob - configure
Fix --with-clvmd=all to deal with the case where no cluster managers are available.
[lvm2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="lib/device/dev-cache.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_default_prefix=/usr
639 ac_subst_vars='LTLIBOBJS
640 usrsbindir
641 usrlibdir
642 udevdir
643 udev_prefix
644 tmpdir
645 kernelvsn
646 missingkernel
647 kerneldir
648 interface
649 LIB_PTHREAD
650 UDEV_RULES
651 STATIC_LINK
652 STATICDIR
653 SNAPSHOTS
654 POOL
655 PKGCONFIG
656 OWNER
657 MIRRORS
658 LVM_RELEASE_DATE
659 LVM_RELEASE
660 LVM_PATCHLEVEL
661 LVM_MINOR
662 LVM_MAJOR
663 LVM_LIBAPI
664 LVM_VERSION
665 LVM1_FALLBACK
666 LVM1
667 LOCALEDIR
668 LIB_SUFFIX
669 LDDEPS
670 JOBS
671 INTL_PACKAGE
672 INTL
673 HAVE_SELINUX
674 HAVE_REALTIME
675 HAVE_LIBDL
676 GROUP
677 FSADM
678 DM_LIB_PATCHLEVEL
679 DM_LIB_VERSION
680 DM_IOCTLS
681 DM_DEVICE_UID
682 DM_DEVICE_MODE
683 DM_DEVICE_GID
684 DM_COMPAT
685 DMEVENTD
686 DEVMAPPER
687 DEBUG
688 COPTIMISE_FLAG
689 CONFDIR
690 CMDLIB
691 CLVMD
692 CLUSTER
693 CLDWHOLEARCHIVE
694 CLDNOWHOLEARCHIVE
695 CLDFLAGS
696 BUILD_DMEVENTD
697 BUILD_CMIRRORD
698 APPLIB
699 MODPROBE_CMD
700 MSGFMT
701 LVM2CMD_LIB
702 LVM2APP_LIB
703 GENHTML
704 LCOV
705 DLM_LIBS
706 DLM_CFLAGS
707 CPG_LIBS
708 CPG_CFLAGS
709 CONFDB_LIBS
710 CONFDB_CFLAGS
711 SALCK_LIBS
712 SALCK_CFLAGS
713 QUORUM_LIBS
714 QUORUM_CFLAGS
715 COROSYNC_LIBS
716 COROSYNC_CFLAGS
717 CMAN_LIBS
718 CMAN_CFLAGS
719 GULM_LIBS
720 GULM_CFLAGS
721 CCS_LIBS
722 CCS_CFLAGS
723 PKGCONFIGINIT_LIBS
724 PKGCONFIGINIT_CFLAGS
725 PKG_CONFIG
726 POW_LIB
727 LIBOBJS
728 ALLOCA
729 CSCOPE_CMD
730 CFLOW_CMD
731 RANLIB
732 MKDIR_P
733 SET_MAKE
734 LN_S
735 INSTALL_DATA
736 INSTALL_SCRIPT
737 INSTALL_PROGRAM
738 EGREP
739 GREP
740 CPP
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 AWK
749 SED
750 target_os
751 target_vendor
752 target_cpu
753 target
754 host_os
755 host_vendor
756 host_cpu
757 host
758 build_os
759 build_vendor
760 build_cpu
761 build
762 target_alias
763 host_alias
764 build_alias
765 LIBS
766 ECHO_T
767 ECHO_N
768 ECHO_C
769 DEFS
770 mandir
771 localedir
772 libdir
773 psdir
774 pdfdir
775 dvidir
776 htmldir
777 infodir
778 docdir
779 oldincludedir
780 includedir
781 localstatedir
782 sharedstatedir
783 sysconfdir
784 datadir
785 datarootdir
786 libexecdir
787 sbindir
788 bindir
789 program_transform_name
790 prefix
791 exec_prefix
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_static_link
803 with_user
804 with_group
805 with_device_uid
806 with_device_gid
807 with_device_mode
808 enable_lvm1_fallback
809 with_lvm1
810 with_pool
811 with_cluster
812 with_snapshots
813 with_mirrors
814 enable_readline
815 enable_realtime
816 with_clvmd
817 enable_cmirrord
818 with_cmirrord_pidfile
819 enable_debug
820 with_optimisation
821 enable_profiling
822 enable_devmapper
823 enable_udev_sync
824 enable_udev_rules
825 enable_compat
826 enable_ioctl
827 enable_o_direct
828 enable_applib
829 enable_cmdlib
830 enable_pkgconfig
831 enable_fsadm
832 enable_dmeventd
833 enable_selinux
834 enable_nls
835 with_localedir
836 with_confdir
837 with_staticdir
838 with_usrlibdir
839 with_usrsbindir
840 with_udev_prefix
841 with_udevdir
842 with_dmeventd_pidfile
843 with_dmeventd_path
844 with_interface
845 '
846 ac_precious_vars='build_alias
847 host_alias
848 target_alias
849 CC
850 CFLAGS
851 LDFLAGS
852 LIBS
853 CPPFLAGS
854 CPP
855 PKG_CONFIG
856 PKGCONFIGINIT_CFLAGS
857 PKGCONFIGINIT_LIBS
858 CCS_CFLAGS
859 CCS_LIBS
860 GULM_CFLAGS
861 GULM_LIBS
862 CMAN_CFLAGS
863 CMAN_LIBS
864 COROSYNC_CFLAGS
865 COROSYNC_LIBS
866 QUORUM_CFLAGS
867 QUORUM_LIBS
868 SALCK_CFLAGS
869 SALCK_LIBS
870 CONFDB_CFLAGS
871 CONFDB_LIBS
872 CPG_CFLAGS
873 CPG_LIBS
874 DLM_CFLAGS
875 DLM_LIBS'
876
877
878 # Initialize some variables set by options.
879 ac_init_help=
880 ac_init_version=false
881 ac_unrecognized_opts=
882 ac_unrecognized_sep=
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
885 cache_file=/dev/null
886 exec_prefix=NONE
887 no_create=
888 no_recursion=
889 prefix=NONE
890 program_prefix=NONE
891 program_suffix=NONE
892 program_transform_name=s,x,x,
893 silent=
894 site=
895 srcdir=
896 verbose=
897 x_includes=NONE
898 x_libraries=NONE
899
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir='${exec_prefix}/bin'
907 sbindir='${exec_prefix}/sbin'
908 libexecdir='${exec_prefix}/libexec'
909 datarootdir='${prefix}/share'
910 datadir='${datarootdir}'
911 sysconfdir='${prefix}/etc'
912 sharedstatedir='${prefix}/com'
913 localstatedir='${prefix}/var'
914 includedir='${prefix}/include'
915 oldincludedir='/usr/include'
916 docdir='${datarootdir}/doc/${PACKAGE}'
917 infodir='${datarootdir}/info'
918 htmldir='${docdir}'
919 dvidir='${docdir}'
920 pdfdir='${docdir}'
921 psdir='${docdir}'
922 libdir='${exec_prefix}/lib'
923 localedir='${datarootdir}/locale'
924 mandir='${datarootdir}/man'
925
926 ac_prev=
927 ac_dashdash=
928 for ac_option
929 do
930 # If the previous option needs an argument, assign it.
931 if test -n "$ac_prev"; then
932 eval $ac_prev=\$ac_option
933 ac_prev=
934 continue
935 fi
936
937 case $ac_option in
938 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 *) ac_optarg=yes ;;
940 esac
941
942 # Accept the important Cygnus configure options, so we can diagnose typos.
943
944 case $ac_dashdash$ac_option in
945 --)
946 ac_dashdash=yes ;;
947
948 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 ac_prev=bindir ;;
950 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 bindir=$ac_optarg ;;
952
953 -build | --build | --buil | --bui | --bu)
954 ac_prev=build_alias ;;
955 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956 build_alias=$ac_optarg ;;
957
958 -cache-file | --cache-file | --cache-fil | --cache-fi \
959 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960 ac_prev=cache_file ;;
961 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963 cache_file=$ac_optarg ;;
964
965 --config-cache | -C)
966 cache_file=config.cache ;;
967
968 -datadir | --datadir | --datadi | --datad)
969 ac_prev=datadir ;;
970 -datadir=* | --datadir=* | --datadi=* | --datad=*)
971 datadir=$ac_optarg ;;
972
973 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974 | --dataroo | --dataro | --datar)
975 ac_prev=datarootdir ;;
976 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978 datarootdir=$ac_optarg ;;
979
980 -disable-* | --disable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
985 { (exit 1); exit 1; }; }
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990 "enable_$ac_useropt"
991 "*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=no ;;
996
997 -docdir | --docdir | --docdi | --doc | --do)
998 ac_prev=docdir ;;
999 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 docdir=$ac_optarg ;;
1001
1002 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003 ac_prev=dvidir ;;
1004 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005 dvidir=$ac_optarg ;;
1006
1007 -enable-* | --enable-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1012 { (exit 1); exit 1; }; }
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=\$ac_optarg ;;
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1152
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1217 { (exit 1); exit 1; }; }
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=\$ac_optarg ;;
1228
1229 -without-* | --without-*)
1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1234 { (exit 1); exit 1; }; }
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239 "with_$ac_useropt"
1240 "*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=no ;;
1245
1246 --x)
1247 # Obsolete; use --with-x.
1248 with_x=yes ;;
1249
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255 x_includes=$ac_optarg ;;
1256
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262 x_libraries=$ac_optarg ;;
1263
1264 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1265 Try \`$0 --help' for more information." >&2
1266 { (exit 1); exit 1; }; }
1267 ;;
1268
1269 *=*)
1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1273 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1274 { (exit 1); exit 1; }; }
1275 eval $ac_envvar=\$ac_optarg
1276 export $ac_envvar ;;
1277
1278 *)
1279 # FIXME: should be removed in autoconf 3.0.
1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1283 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1284 ;;
1285
1286 esac
1287 done
1288
1289 if test -n "$ac_prev"; then
1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1291 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1292 { (exit 1); exit 1; }; }
1293 fi
1294
1295 if test -n "$ac_unrecognized_opts"; then
1296 case $enable_option_checking in
1297 no) ;;
1298 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1299 { (exit 1); exit 1; }; } ;;
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 esac
1302 fi
1303
1304 # Check all directory arguments for consistency.
1305 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1309 do
1310 eval ac_val=\$$ac_var
1311 # Remove trailing slashes.
1312 case $ac_val in
1313 */ )
1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\$ac_val;;
1316 esac
1317 # Be sure to have absolute directory names.
1318 case $ac_val in
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321 esac
1322 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1323 { (exit 1); exit 1; }; }
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_echo "$as_me: error: working directory cannot be determined" >&2
1354 { (exit 1); exit 1; }; }
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1357 { (exit 1); exit 1; }; }
1358
1359
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362 ac_srcdir_defaulted=yes
1363 # Try the directory containing this script, then the parent directory.
1364 ac_confdir=`$as_dirname -- "$as_myself" ||
1365 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$as_myself" : 'X\(//\)[^/]' \| \
1367 X"$as_myself" : 'X\(//\)$' \| \
1368 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369 $as_echo X"$as_myself" |
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)[^/].*/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\/\)$/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\).*/{
1383 s//\1/
1384 q
1385 }
1386 s/.*/./; q'`
1387 srcdir=$ac_confdir
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 srcdir=..
1390 fi
1391 else
1392 ac_srcdir_defaulted=no
1393 fi
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1397 { (exit 1); exit 1; }; }
1398 fi
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1402 { (exit 1); exit 1; }; }
1403 pwd)`
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 srcdir=.
1407 fi
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1411 case $srcdir in
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 esac
1414 for ac_var in $ac_precious_vars; do
1415 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_env_${ac_var}_value=\$${ac_var}
1417 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419 done
1420
1421 #
1422 # Report the --help message.
1423 #
1424 if test "$ac_init_help" = "long"; then
1425 # Omit some internal or obsolete options to make the list less imposing.
1426 # This message is too long to be a string in the A/UX 3.1 sh.
1427 cat <<_ACEOF
1428 \`configure' configures this package to adapt to many kinds of systems.
1429
1430 Usage: $0 [OPTION]... [VAR=VALUE]...
1431
1432 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433 VAR=VALUE. See below for descriptions of some of the useful variables.
1434
1435 Defaults for the options are specified in brackets.
1436
1437 Configuration:
1438 -h, --help display this help and exit
1439 --help=short display options specific to this package
1440 --help=recursive display the short help of all the included packages
1441 -V, --version display version information and exit
1442 -q, --quiet, --silent do not print \`checking...' messages
1443 --cache-file=FILE cache test results in FILE [disabled]
1444 -C, --config-cache alias for \`--cache-file=config.cache'
1445 -n, --no-create do not create output files
1446 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1447
1448 Installation directories:
1449 --prefix=PREFIX install architecture-independent files in PREFIX
1450 [$ac_default_prefix]
1451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1452 [PREFIX]
1453
1454 By default, \`make install' will install all the files in
1455 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1456 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457 for instance \`--prefix=\$HOME'.
1458
1459 For better control, use the options below.
1460
1461 Fine tuning of the installation directories:
1462 --bindir=DIR user executables [EPREFIX/bin]
1463 --sbindir=DIR system admin executables [EPREFIX/sbin]
1464 --libexecdir=DIR program executables [EPREFIX/libexec]
1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1468 --libdir=DIR object code libraries [EPREFIX/lib]
1469 --includedir=DIR C header files [PREFIX/include]
1470 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473 --infodir=DIR info documentation [DATAROOTDIR/info]
1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475 --mandir=DIR man documentation [DATAROOTDIR/man]
1476 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1477 --htmldir=DIR html documentation [DOCDIR]
1478 --dvidir=DIR dvi documentation [DOCDIR]
1479 --pdfdir=DIR pdf documentation [DOCDIR]
1480 --psdir=DIR ps documentation [DOCDIR]
1481 _ACEOF
1482
1483 cat <<\_ACEOF
1484
1485 System types:
1486 --build=BUILD configure for building on BUILD [guessed]
1487 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1488 --target=TARGET configure for building compilers for TARGET [HOST]
1489 _ACEOF
1490 fi
1491
1492 if test -n "$ac_init_help"; then
1493
1494 cat <<\_ACEOF
1495
1496 Optional Features:
1497 --disable-option-checking ignore unrecognized --enable/--with options
1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1500 --enable-static_link Use this to link the tools to their libraries
1501 statically. Default is dynamic linking
1502 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1503 device-mapper is missing from the kernel
1504 --disable-readline Disable readline support
1505 --disable-realtime Disable realtime clock support
1506 --enable-cmirrord Enable the cluster mirror log daemon
1507 --enable-debug Enable debugging
1508 --enable-profiling Gather gcov profiling data
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 --disable-driver Disable calls to device-mapper in the kernel
1514 --disable-o_direct Disable O_DIRECT
1515 --enable-applib Build application library
1516 --enable-cmdlib Build shared command library
1517 --enable-pkgconfig Install pkgconfig support
1518 --enable-fsadm Enable fsadm
1519 --enable-dmeventd Enable the device-mapper event daemon
1520 --disable-selinux Disable selinux support
1521 --enable-nls Enable Native Language Support
1522
1523 Optional Packages:
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-user=USER Set the owner of installed files [USER=root]
1527 --with-group=GROUP Set the group owner of installed files [GROUP=root]
1528 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1529 --with-device-gid=UID Set the group used for new device nodes [GID=0]
1530 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1531 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1532 TYPE=internal
1533 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1534 TYPE=internal
1535 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1536 TYPE=internal
1537 --with-snapshots=TYPE Snapshot support: internal/shared/none
1538 TYPE=internal
1539 --with-mirrors=TYPE Mirror support: internal/shared/none
1540 TYPE=internal
1541 --with-clvmd=TYPE Build cluster LVM Daemon.
1542 The following cluster manager combinations are valid:
1543 * cman,gulm (RHEL4 or equivalent)
1544 * cman (RHEL5 or equivalent)
1545 * cman,corosync,openais (or selection of them)
1546 * all (autodetect)
1547 * none (disable build)
1548 TYPE=none
1549 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
1550 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1551 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1552 --with-confdir=DIR Configuration files in DIR [/etc]
1553 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
1554 --with-usrlibdir=DIR
1555 --with-usrsbindir=DIR
1556 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
1557 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
1558 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1559 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
1560 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
1561
1562 Some influential environment variables:
1563 CC C compiler command
1564 CFLAGS C compiler flags
1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1566 nonstandard directory <lib dir>
1567 LIBS libraries to pass to the linker, e.g. -l<library>
1568 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1569 you have headers in a nonstandard directory <include dir>
1570 CPP C preprocessor
1571 PKG_CONFIG path to pkg-config utility
1572 PKGCONFIGINIT_CFLAGS
1573 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1574 PKGCONFIGINIT_LIBS
1575 linker flags for PKGCONFIGINIT, overriding pkg-config
1576 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1577 CCS_LIBS linker flags for CCS, overriding pkg-config
1578 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1579 GULM_LIBS linker flags for GULM, overriding pkg-config
1580 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1581 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1582 COROSYNC_CFLAGS
1583 C compiler flags for COROSYNC, overriding pkg-config
1584 COROSYNC_LIBS
1585 linker flags for COROSYNC, overriding pkg-config
1586 QUORUM_CFLAGS
1587 C compiler flags for QUORUM, overriding pkg-config
1588 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1589 SALCK_CFLAGS
1590 C compiler flags for SALCK, overriding pkg-config
1591 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1592 CONFDB_CFLAGS
1593 C compiler flags for CONFDB, overriding pkg-config
1594 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1595 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1596 CPG_LIBS linker flags for CPG, overriding pkg-config
1597 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1598 DLM_LIBS linker flags for DLM, overriding pkg-config
1599
1600 Use these variables to override the choices made by `configure' or to help
1601 it to find libraries and programs with nonstandard names/locations.
1602
1603 _ACEOF
1604 ac_status=$?
1605 fi
1606
1607 if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612 continue
1613 ac_builddir=.
1614
1615 case "$ac_dir" in
1616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *)
1618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 esac ;;
1625 esac
1626 ac_abs_top_builddir=$ac_pwd
1627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628 # for backward compatibility:
1629 ac_top_builddir=$ac_top_build_prefix
1630
1631 case $srcdir in
1632 .) # We are building in place.
1633 ac_srcdir=.
1634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
1637 ac_srcdir=$srcdir$ac_dir_suffix;
1638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1640 *) # Relative name.
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644 esac
1645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646
1647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure" --help=recursive
1655 else
1656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657 fi || ac_status=$?
1658 cd "$ac_pwd" || { ac_status=$?; break; }
1659 done
1660 fi
1661
1662 test -n "$ac_init_help" && exit $ac_status
1663 if $ac_init_version; then
1664 cat <<\_ACEOF
1665 configure
1666 generated by GNU Autoconf 2.63
1667
1668 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1669 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1670 This configure script is free software; the Free Software Foundation
1671 gives unlimited permission to copy, distribute and modify it.
1672 _ACEOF
1673 exit
1674 fi
1675 cat >config.log <<_ACEOF
1676 This file contains any messages produced by compilers while
1677 running configure, to aid debugging if configure makes a mistake.
1678
1679 It was created by $as_me, which was
1680 generated by GNU Autoconf 2.63. Invocation command line was
1681
1682 $ $0 $@
1683
1684 _ACEOF
1685 exec 5>>config.log
1686 {
1687 cat <<_ASUNAME
1688 ## --------- ##
1689 ## Platform. ##
1690 ## --------- ##
1691
1692 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697
1698 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1700
1701 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1702 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1703 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1704 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1705 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1706 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1707 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1708
1709 _ASUNAME
1710
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 $as_echo "PATH: $as_dir"
1717 done
1718 IFS=$as_save_IFS
1719
1720 } >&5
1721
1722 cat >&5 <<_ACEOF
1723
1724
1725 ## ----------- ##
1726 ## Core tests. ##
1727 ## ----------- ##
1728
1729 _ACEOF
1730
1731
1732 # Keep a trace of the command line.
1733 # Strip out --no-create and --no-recursion so they do not pile up.
1734 # Strip out --silent because we don't want to record it for future runs.
1735 # Also quote any args containing shell meta-characters.
1736 # Make two passes to allow for proper duplicate-argument suppression.
1737 ac_configure_args=
1738 ac_configure_args0=
1739 ac_configure_args1=
1740 ac_must_keep_next=false
1741 for ac_pass in 1 2
1742 do
1743 for ac_arg
1744 do
1745 case $ac_arg in
1746 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748 | -silent | --silent | --silen | --sile | --sil)
1749 continue ;;
1750 *\'*)
1751 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1752 esac
1753 case $ac_pass in
1754 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755 2)
1756 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757 if test $ac_must_keep_next = true; then
1758 ac_must_keep_next=false # Got value, back to normal.
1759 else
1760 case $ac_arg in
1761 *=* | --config-cache | -C | -disable-* | --disable-* \
1762 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764 | -with-* | --with-* | -without-* | --without-* | --x)
1765 case "$ac_configure_args0 " in
1766 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1767 esac
1768 ;;
1769 -* ) ac_must_keep_next=true ;;
1770 esac
1771 fi
1772 ac_configure_args="$ac_configure_args '$ac_arg'"
1773 ;;
1774 esac
1775 done
1776 done
1777 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779
1780 # When interrupted or exit'd, cleanup temporary files, and complete
1781 # config.log. We remove comments because anyway the quotes in there
1782 # would cause problems or look ugly.
1783 # WARNING: Use '\'' to represent an apostrophe within the trap.
1784 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1785 trap 'exit_status=$?
1786 # Save into config.log some information that might help in debugging.
1787 {
1788 echo
1789
1790 cat <<\_ASBOX
1791 ## ---------------- ##
1792 ## Cache variables. ##
1793 ## ---------------- ##
1794 _ASBOX
1795 echo
1796 # The following way of writing the cache mishandles newlines in values,
1797 (
1798 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799 eval ac_val=\$$ac_var
1800 case $ac_val in #(
1801 *${as_nl}*)
1802 case $ac_var in #(
1803 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1804 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1805 esac
1806 case $ac_var in #(
1807 _ | IFS | as_nl) ;; #(
1808 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1809 *) $as_unset $ac_var ;;
1810 esac ;;
1811 esac
1812 done
1813 (set) 2>&1 |
1814 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1815 *${as_nl}ac_space=\ *)
1816 sed -n \
1817 "s/'\''/'\''\\\\'\'''\''/g;
1818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1819 ;; #(
1820 *)
1821 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1822 ;;
1823 esac |
1824 sort
1825 )
1826 echo
1827
1828 cat <<\_ASBOX
1829 ## ----------------- ##
1830 ## Output variables. ##
1831 ## ----------------- ##
1832 _ASBOX
1833 echo
1834 for ac_var in $ac_subst_vars
1835 do
1836 eval ac_val=\$$ac_var
1837 case $ac_val in
1838 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1839 esac
1840 $as_echo "$ac_var='\''$ac_val'\''"
1841 done | sort
1842 echo
1843
1844 if test -n "$ac_subst_files"; then
1845 cat <<\_ASBOX
1846 ## ------------------- ##
1847 ## File substitutions. ##
1848 ## ------------------- ##
1849 _ASBOX
1850 echo
1851 for ac_var in $ac_subst_files
1852 do
1853 eval ac_val=\$$ac_var
1854 case $ac_val in
1855 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856 esac
1857 $as_echo "$ac_var='\''$ac_val'\''"
1858 done | sort
1859 echo
1860 fi
1861
1862 if test -s confdefs.h; then
1863 cat <<\_ASBOX
1864 ## ----------- ##
1865 ## confdefs.h. ##
1866 ## ----------- ##
1867 _ASBOX
1868 echo
1869 cat confdefs.h
1870 echo
1871 fi
1872 test "$ac_signal" != 0 &&
1873 $as_echo "$as_me: caught signal $ac_signal"
1874 $as_echo "$as_me: exit $exit_status"
1875 } >&5
1876 rm -f core *.core core.conftest.* &&
1877 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1878 exit $exit_status
1879 ' 0
1880 for ac_signal in 1 2 13 15; do
1881 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1882 done
1883 ac_signal=0
1884
1885 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1886 rm -f -r conftest* confdefs.h
1887
1888 # Predefined preprocessor variables.
1889
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_NAME "$PACKAGE_NAME"
1892 _ACEOF
1893
1894
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1897 _ACEOF
1898
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1902 _ACEOF
1903
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_STRING "$PACKAGE_STRING"
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1912 _ACEOF
1913
1914
1915 # Let the site file select an alternate cache file if it wants to.
1916 # Prefer an explicitly selected file to automatically selected ones.
1917 ac_site_file1=NONE
1918 ac_site_file2=NONE
1919 if test -n "$CONFIG_SITE"; then
1920 ac_site_file1=$CONFIG_SITE
1921 elif test "x$prefix" != xNONE; then
1922 ac_site_file1=$prefix/share/config.site
1923 ac_site_file2=$prefix/etc/config.site
1924 else
1925 ac_site_file1=$ac_default_prefix/share/config.site
1926 ac_site_file2=$ac_default_prefix/etc/config.site
1927 fi
1928 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1929 do
1930 test "x$ac_site_file" = xNONE && continue
1931 if test -r "$ac_site_file"; then
1932 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1933 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1934 sed 's/^/| /' "$ac_site_file" >&5
1935 . "$ac_site_file"
1936 fi
1937 done
1938
1939 if test -r "$cache_file"; then
1940 # Some versions of bash will fail to source /dev/null (special
1941 # files actually), so we avoid doing that.
1942 if test -f "$cache_file"; then
1943 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1944 $as_echo "$as_me: loading cache $cache_file" >&6;}
1945 case $cache_file in
1946 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1947 *) . "./$cache_file";;
1948 esac
1949 fi
1950 else
1951 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1952 $as_echo "$as_me: creating cache $cache_file" >&6;}
1953 >$cache_file
1954 fi
1955
1956 # Check that the precious variables saved in the cache have kept the same
1957 # value.
1958 ac_cache_corrupted=false
1959 for ac_var in $ac_precious_vars; do
1960 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1961 eval ac_new_set=\$ac_env_${ac_var}_set
1962 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1963 eval ac_new_val=\$ac_env_${ac_var}_value
1964 case $ac_old_set,$ac_new_set in
1965 set,)
1966 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1967 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1968 ac_cache_corrupted=: ;;
1969 ,set)
1970 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1971 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1972 ac_cache_corrupted=: ;;
1973 ,);;
1974 *)
1975 if test "x$ac_old_val" != "x$ac_new_val"; then
1976 # differences in whitespace do not lead to failure.
1977 ac_old_val_w=`echo x $ac_old_val`
1978 ac_new_val_w=`echo x $ac_new_val`
1979 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1980 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1981 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1982 ac_cache_corrupted=:
1983 else
1984 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1985 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1986 eval $ac_var=\$ac_old_val
1987 fi
1988 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1989 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1990 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1991 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1992 fi;;
1993 esac
1994 # Pass precious variables to config.status.
1995 if test "$ac_new_set" = set; then
1996 case $ac_new_val in
1997 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1998 *) ac_arg=$ac_var=$ac_new_val ;;
1999 esac
2000 case " $ac_configure_args " in
2001 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2002 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2003 esac
2004 fi
2005 done
2006 if $ac_cache_corrupted; then
2007 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2009 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2010 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2011 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2012 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2013 { (exit 1); exit 1; }; }
2014 fi
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032 ac_ext=c
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037
2038
2039
2040 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2041
2042
2043 ################################################################################
2044 ac_aux_dir=
2045 for ac_dir in autoconf "$srcdir"/autoconf; do
2046 if test -f "$ac_dir/install-sh"; then
2047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/install-sh -c"
2049 break
2050 elif test -f "$ac_dir/install.sh"; then
2051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/install.sh -c"
2053 break
2054 elif test -f "$ac_dir/shtool"; then
2055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/shtool install -c"
2057 break
2058 fi
2059 done
2060 if test -z "$ac_aux_dir"; then
2061 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2062 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2063 { (exit 1); exit 1; }; }
2064 fi
2065
2066 # These three variables are undocumented and unsupported,
2067 # and are intended to be withdrawn in a future Autoconf release.
2068 # They can cause serious problems if a builder's source tree is in a directory
2069 # whose full name contains unusual characters.
2070 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2071 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2072 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2073
2074
2075
2076 ################################################################################
2077 # Make sure we can run config.sub.
2078 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2079 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2080 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2081 { (exit 1); exit 1; }; }
2082
2083 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2084 $as_echo_n "checking build system type... " >&6; }
2085 if test "${ac_cv_build+set}" = set; then
2086 $as_echo_n "(cached) " >&6
2087 else
2088 ac_build_alias=$build_alias
2089 test "x$ac_build_alias" = x &&
2090 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2091 test "x$ac_build_alias" = x &&
2092 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2093 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2094 { (exit 1); exit 1; }; }
2095 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2096 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2097 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2098 { (exit 1); exit 1; }; }
2099
2100 fi
2101 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2102 $as_echo "$ac_cv_build" >&6; }
2103 case $ac_cv_build in
2104 *-*-*) ;;
2105 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2106 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2107 { (exit 1); exit 1; }; };;
2108 esac
2109 build=$ac_cv_build
2110 ac_save_IFS=$IFS; IFS='-'
2111 set x $ac_cv_build
2112 shift
2113 build_cpu=$1
2114 build_vendor=$2
2115 shift; shift
2116 # Remember, the first character of IFS is used to create $*,
2117 # except with old shells:
2118 build_os=$*
2119 IFS=$ac_save_IFS
2120 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2121
2122
2123 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2124 $as_echo_n "checking host system type... " >&6; }
2125 if test "${ac_cv_host+set}" = set; then
2126 $as_echo_n "(cached) " >&6
2127 else
2128 if test "x$host_alias" = x; then
2129 ac_cv_host=$ac_cv_build
2130 else
2131 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2132 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2133 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2134 { (exit 1); exit 1; }; }
2135 fi
2136
2137 fi
2138 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2139 $as_echo "$ac_cv_host" >&6; }
2140 case $ac_cv_host in
2141 *-*-*) ;;
2142 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2143 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2144 { (exit 1); exit 1; }; };;
2145 esac
2146 host=$ac_cv_host
2147 ac_save_IFS=$IFS; IFS='-'
2148 set x $ac_cv_host
2149 shift
2150 host_cpu=$1
2151 host_vendor=$2
2152 shift; shift
2153 # Remember, the first character of IFS is used to create $*,
2154 # except with old shells:
2155 host_os=$*
2156 IFS=$ac_save_IFS
2157 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2158
2159
2160 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2161 $as_echo_n "checking target system type... " >&6; }
2162 if test "${ac_cv_target+set}" = set; then
2163 $as_echo_n "(cached) " >&6
2164 else
2165 if test "x$target_alias" = x; then
2166 ac_cv_target=$ac_cv_host
2167 else
2168 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2169 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2170 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2171 { (exit 1); exit 1; }; }
2172 fi
2173
2174 fi
2175 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2176 $as_echo "$ac_cv_target" >&6; }
2177 case $ac_cv_target in
2178 *-*-*) ;;
2179 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2180 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2181 { (exit 1); exit 1; }; };;
2182 esac
2183 target=$ac_cv_target
2184 ac_save_IFS=$IFS; IFS='-'
2185 set x $ac_cv_target
2186 shift
2187 target_cpu=$1
2188 target_vendor=$2
2189 shift; shift
2190 # Remember, the first character of IFS is used to create $*,
2191 # except with old shells:
2192 target_os=$*
2193 IFS=$ac_save_IFS
2194 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2195
2196
2197 # The aliases save the names the user supplied, while $host etc.
2198 # will get canonicalized.
2199 test -n "$target_alias" &&
2200 test "$program_prefix$program_suffix$program_transform_name" = \
2201 NONENONEs,x,x, &&
2202 program_prefix=${target_alias}-
2203
2204 case "$host_os" in
2205 linux*)
2206 CFLAGS="$CFLAGS"
2207 COPTIMISE_FLAG="-O2"
2208 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2209 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2210 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2211 LDDEPS="$LDDEPS .export.sym"
2212 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2213 LIB_SUFFIX=so
2214 DEVMAPPER=yes
2215 ODIRECT=yes
2216 DM_IOCTLS=yes
2217 SELINUX=yes
2218 REALTIME=yes
2219 CLUSTER=internal
2220 FSADM=yes
2221 ;;
2222 darwin*)
2223 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2224 COPTIMISE_FLAG="-O2"
2225 CLDFLAGS="$CLDFLAGS"
2226 CLDWHOLEARCHIVE="-all_load"
2227 CLDNOWHOLEARCHIVE=
2228 LIB_SUFFIX=dylib
2229 DEVMAPPER=yes
2230 ODIRECT=no
2231 DM_IOCTLS=no
2232 SELINUX=no
2233 REALTIME=no
2234 CLUSTER=none
2235 FSADM=no
2236 ;;
2237 esac
2238
2239 ################################################################################
2240 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2241 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2242 if test "${ac_cv_path_SED+set}" = set; then
2243 $as_echo_n "(cached) " >&6
2244 else
2245 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2246 for ac_i in 1 2 3 4 5 6 7; do
2247 ac_script="$ac_script$as_nl$ac_script"
2248 done
2249 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2250 $as_unset ac_script || ac_script=
2251 if test -z "$SED"; then
2252 ac_path_SED_found=false
2253 # Loop through the user's path and test for each of PROGNAME-LIST
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 for ac_prog in sed gsed; do
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2262 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2263 # Check for GNU ac_path_SED and select it if it is found.
2264 # Check for GNU $ac_path_SED
2265 case `"$ac_path_SED" --version 2>&1` in
2266 *GNU*)
2267 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2268 *)
2269 ac_count=0
2270 $as_echo_n 0123456789 >"conftest.in"
2271 while :
2272 do
2273 cat "conftest.in" "conftest.in" >"conftest.tmp"
2274 mv "conftest.tmp" "conftest.in"
2275 cp "conftest.in" "conftest.nl"
2276 $as_echo '' >> "conftest.nl"
2277 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2279 ac_count=`expr $ac_count + 1`
2280 if test $ac_count -gt ${ac_path_SED_max-0}; then
2281 # Best one so far, save it but keep looking for a better one
2282 ac_cv_path_SED="$ac_path_SED"
2283 ac_path_SED_max=$ac_count
2284 fi
2285 # 10*(2^10) chars as input seems more than enough
2286 test $ac_count -gt 10 && break
2287 done
2288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2289 esac
2290
2291 $ac_path_SED_found && break 3
2292 done
2293 done
2294 done
2295 IFS=$as_save_IFS
2296 if test -z "$ac_cv_path_SED"; then
2297 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2298 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2299 { (exit 1); exit 1; }; }
2300 fi
2301 else
2302 ac_cv_path_SED=$SED
2303 fi
2304
2305 fi
2306 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2307 $as_echo "$ac_cv_path_SED" >&6; }
2308 SED="$ac_cv_path_SED"
2309 rm -f conftest.sed
2310
2311 for ac_prog in gawk mawk nawk awk
2312 do
2313 # Extract the first word of "$ac_prog", so it can be a program name with args.
2314 set dummy $ac_prog; ac_word=$2
2315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 $as_echo_n "checking for $ac_word... " >&6; }
2317 if test "${ac_cv_prog_AWK+set}" = set; then
2318 $as_echo_n "(cached) " >&6
2319 else
2320 if test -n "$AWK"; then
2321 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2322 else
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2325 do
2326 IFS=$as_save_IFS
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2330 ac_cv_prog_AWK="$ac_prog"
2331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 break 2
2333 fi
2334 done
2335 done
2336 IFS=$as_save_IFS
2337
2338 fi
2339 fi
2340 AWK=$ac_cv_prog_AWK
2341 if test -n "$AWK"; then
2342 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2343 $as_echo "$AWK" >&6; }
2344 else
2345 { $as_echo "$as_me:$LINENO: result: no" >&5
2346 $as_echo "no" >&6; }
2347 fi
2348
2349
2350 test -n "$AWK" && break
2351 done
2352
2353 ac_ext=c
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 if test -n "$ac_tool_prefix"; then
2359 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 $as_echo_n "checking for $ac_word... " >&6; }
2363 if test "${ac_cv_prog_CC+set}" = set; then
2364 $as_echo_n "(cached) " >&6
2365 else
2366 if test -n "$CC"; then
2367 ac_cv_prog_CC="$CC" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2379 fi
2380 done
2381 done
2382 IFS=$as_save_IFS
2383
2384 fi
2385 fi
2386 CC=$ac_cv_prog_CC
2387 if test -n "$CC"; then
2388 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2389 $as_echo "$CC" >&6; }
2390 else
2391 { $as_echo "$as_me:$LINENO: result: no" >&5
2392 $as_echo "no" >&6; }
2393 fi
2394
2395
2396 fi
2397 if test -z "$ac_cv_prog_CC"; then
2398 ac_ct_CC=$CC
2399 # Extract the first word of "gcc", so it can be a program name with args.
2400 set dummy gcc; ac_word=$2
2401 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 $as_echo_n "checking for $ac_word... " >&6; }
2403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2404 $as_echo_n "(cached) " >&6
2405 else
2406 if test -n "$ac_ct_CC"; then
2407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2416 ac_cv_prog_ac_ct_CC="gcc"
2417 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 2
2419 fi
2420 done
2421 done
2422 IFS=$as_save_IFS
2423
2424 fi
2425 fi
2426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427 if test -n "$ac_ct_CC"; then
2428 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429 $as_echo "$ac_ct_CC" >&6; }
2430 else
2431 { $as_echo "$as_me:$LINENO: result: no" >&5
2432 $as_echo "no" >&6; }
2433 fi
2434
2435 if test "x$ac_ct_CC" = x; then
2436 CC=""
2437 else
2438 case $cross_compiling:$ac_tool_warned in
2439 yes:)
2440 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2442 ac_tool_warned=yes ;;
2443 esac
2444 CC=$ac_ct_CC
2445 fi
2446 else
2447 CC="$ac_cv_prog_CC"
2448 fi
2449
2450 if test -z "$CC"; then
2451 if test -n "$ac_tool_prefix"; then
2452 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2453 set dummy ${ac_tool_prefix}cc; ac_word=$2
2454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 $as_echo_n "checking for $ac_word... " >&6; }
2456 if test "${ac_cv_prog_CC+set}" = set; then
2457 $as_echo_n "(cached) " >&6
2458 else
2459 if test -n "$CC"; then
2460 ac_cv_prog_CC="$CC" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_CC="${ac_tool_prefix}cc"
2470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 break 2
2472 fi
2473 done
2474 done
2475 IFS=$as_save_IFS
2476
2477 fi
2478 fi
2479 CC=$ac_cv_prog_CC
2480 if test -n "$CC"; then
2481 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2482 $as_echo "$CC" >&6; }
2483 else
2484 { $as_echo "$as_me:$LINENO: result: no" >&5
2485 $as_echo "no" >&6; }
2486 fi
2487
2488
2489 fi
2490 fi
2491 if test -z "$CC"; then
2492 # Extract the first word of "cc", so it can be a program name with args.
2493 set dummy cc; ac_word=$2
2494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if test "${ac_cv_prog_CC+set}" = set; then
2497 $as_echo_n "(cached) " >&6
2498 else
2499 if test -n "$CC"; then
2500 ac_cv_prog_CC="$CC" # Let the user override the test.
2501 else
2502 ac_prog_rejected=no
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 for as_dir in $PATH
2505 do
2506 IFS=$as_save_IFS
2507 test -z "$as_dir" && as_dir=.
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2510 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2511 ac_prog_rejected=yes
2512 continue
2513 fi
2514 ac_cv_prog_CC="cc"
2515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2517 fi
2518 done
2519 done
2520 IFS=$as_save_IFS
2521
2522 if test $ac_prog_rejected = yes; then
2523 # We found a bogon in the path, so make sure we never use it.
2524 set dummy $ac_cv_prog_CC
2525 shift
2526 if test $# != 0; then
2527 # We chose a different compiler from the bogus one.
2528 # However, it has the same basename, so the bogon will be chosen
2529 # first if we set CC to just the basename; use the full file name.
2530 shift
2531 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2532 fi
2533 fi
2534 fi
2535 fi
2536 CC=$ac_cv_prog_CC
2537 if test -n "$CC"; then
2538 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2539 $as_echo "$CC" >&6; }
2540 else
2541 { $as_echo "$as_me:$LINENO: result: no" >&5
2542 $as_echo "no" >&6; }
2543 fi
2544
2545
2546 fi
2547 if test -z "$CC"; then
2548 if test -n "$ac_tool_prefix"; then
2549 for ac_prog in cl.exe
2550 do
2551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 fi
2577 fi
2578 CC=$ac_cv_prog_CC
2579 if test -n "$CC"; then
2580 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2581 $as_echo "$CC" >&6; }
2582 else
2583 { $as_echo "$as_me:$LINENO: result: no" >&5
2584 $as_echo "no" >&6; }
2585 fi
2586
2587
2588 test -n "$CC" && break
2589 done
2590 fi
2591 if test -z "$CC"; then
2592 ac_ct_CC=$CC
2593 for ac_prog in cl.exe
2594 do
2595 # Extract the first word of "$ac_prog", so it can be a program name with args.
2596 set dummy $ac_prog; ac_word=$2
2597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 $as_echo_n "checking for $ac_word... " >&6; }
2599 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2600 $as_echo_n "(cached) " >&6
2601 else
2602 if test -n "$ac_ct_CC"; then
2603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2604 else
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH
2607 do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 ac_cv_prog_ac_ct_CC="$ac_prog"
2613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 break 2
2615 fi
2616 done
2617 done
2618 IFS=$as_save_IFS
2619
2620 fi
2621 fi
2622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2623 if test -n "$ac_ct_CC"; then
2624 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2625 $as_echo "$ac_ct_CC" >&6; }
2626 else
2627 { $as_echo "$as_me:$LINENO: result: no" >&5
2628 $as_echo "no" >&6; }
2629 fi
2630
2631
2632 test -n "$ac_ct_CC" && break
2633 done
2634
2635 if test "x$ac_ct_CC" = x; then
2636 CC=""
2637 else
2638 case $cross_compiling:$ac_tool_warned in
2639 yes:)
2640 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2642 ac_tool_warned=yes ;;
2643 esac
2644 CC=$ac_ct_CC
2645 fi
2646 fi
2647
2648 fi
2649
2650
2651 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2654 See \`config.log' for more details." >&5
2655 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2656 See \`config.log' for more details." >&2;}
2657 { (exit 1); exit 1; }; }; }
2658
2659 # Provide some information about the compiler.
2660 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2661 set X $ac_compile
2662 ac_compiler=$2
2663 { (ac_try="$ac_compiler --version >&5"
2664 case "(($ac_try" in
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2667 esac
2668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2669 $as_echo "$ac_try_echo") >&5
2670 (eval "$ac_compiler --version >&5") 2>&5
2671 ac_status=$?
2672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }
2674 { (ac_try="$ac_compiler -v >&5"
2675 case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678 esac
2679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2680 $as_echo "$ac_try_echo") >&5
2681 (eval "$ac_compiler -v >&5") 2>&5
2682 ac_status=$?
2683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }
2685 { (ac_try="$ac_compiler -V >&5"
2686 case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689 esac
2690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2691 $as_echo "$ac_try_echo") >&5
2692 (eval "$ac_compiler -V >&5") 2>&5
2693 ac_status=$?
2694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }
2696
2697 cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h. */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2703
2704 int
2705 main ()
2706 {
2707
2708 ;
2709 return 0;
2710 }
2711 _ACEOF
2712 ac_clean_files_save=$ac_clean_files
2713 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2714 # Try to create an executable without -o first, disregard a.out.
2715 # It will help us diagnose broken compilers, and finding out an intuition
2716 # of exeext.
2717 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2718 $as_echo_n "checking for C compiler default output file name... " >&6; }
2719 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2720
2721 # The possible output files:
2722 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2723
2724 ac_rmfiles=
2725 for ac_file in $ac_files
2726 do
2727 case $ac_file in
2728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2729 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2730 esac
2731 done
2732 rm -f $ac_rmfiles
2733
2734 if { (ac_try="$ac_link_default"
2735 case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2738 esac
2739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2740 $as_echo "$ac_try_echo") >&5
2741 (eval "$ac_link_default") 2>&5
2742 ac_status=$?
2743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; then
2745 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2746 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2747 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2748 # so that the user can short-circuit this test for compilers unknown to
2749 # Autoconf.
2750 for ac_file in $ac_files ''
2751 do
2752 test -f "$ac_file" || continue
2753 case $ac_file in
2754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2755 ;;
2756 [ab].out )
2757 # We found the default executable, but exeext='' is most
2758 # certainly right.
2759 break;;
2760 *.* )
2761 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2762 then :; else
2763 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2764 fi
2765 # We set ac_cv_exeext here because the later test for it is not
2766 # safe: cross compilers may not add the suffix if given an `-o'
2767 # argument, so we may need to know it at that point already.
2768 # Even if this section looks crufty: it has the advantage of
2769 # actually working.
2770 break;;
2771 * )
2772 break;;
2773 esac
2774 done
2775 test "$ac_cv_exeext" = no && ac_cv_exeext=
2776
2777 else
2778 ac_file=''
2779 fi
2780
2781 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2782 $as_echo "$ac_file" >&6; }
2783 if test -z "$ac_file"; then
2784 $as_echo "$as_me: failed program was:" >&5
2785 sed 's/^/| /' conftest.$ac_ext >&5
2786
2787 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2789 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2790 See \`config.log' for more details." >&5
2791 $as_echo "$as_me: error: C compiler cannot create executables
2792 See \`config.log' for more details." >&2;}
2793 { (exit 77); exit 77; }; }; }
2794 fi
2795
2796 ac_exeext=$ac_cv_exeext
2797
2798 # Check that the compiler produces executables we can run. If not, either
2799 # the compiler is broken, or we cross compile.
2800 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2801 $as_echo_n "checking whether the C compiler works... " >&6; }
2802 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2803 # If not cross compiling, check that we can run a simple program.
2804 if test "$cross_compiling" != yes; then
2805 if { ac_try='./$ac_file'
2806 { (case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809 esac
2810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2811 $as_echo "$ac_try_echo") >&5
2812 (eval "$ac_try") 2>&5
2813 ac_status=$?
2814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2816 cross_compiling=no
2817 else
2818 if test "$cross_compiling" = maybe; then
2819 cross_compiling=yes
2820 else
2821 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2823 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2824 If you meant to cross compile, use \`--host'.
2825 See \`config.log' for more details." >&5
2826 $as_echo "$as_me: error: cannot run C compiled programs.
2827 If you meant to cross compile, use \`--host'.
2828 See \`config.log' for more details." >&2;}
2829 { (exit 1); exit 1; }; }; }
2830 fi
2831 fi
2832 fi
2833 { $as_echo "$as_me:$LINENO: result: yes" >&5
2834 $as_echo "yes" >&6; }
2835
2836 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2837 ac_clean_files=$ac_clean_files_save
2838 # Check that the compiler produces executables we can run. If not, either
2839 # the compiler is broken, or we cross compile.
2840 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2841 $as_echo_n "checking whether we are cross compiling... " >&6; }
2842 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2843 $as_echo "$cross_compiling" >&6; }
2844
2845 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2846 $as_echo_n "checking for suffix of executables... " >&6; }
2847 if { (ac_try="$ac_link"
2848 case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851 esac
2852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2853 $as_echo "$ac_try_echo") >&5
2854 (eval "$ac_link") 2>&5
2855 ac_status=$?
2856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; then
2858 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2859 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2860 # work properly (i.e., refer to `conftest.exe'), while it won't with
2861 # `rm'.
2862 for ac_file in conftest.exe conftest conftest.*; do
2863 test -f "$ac_file" || continue
2864 case $ac_file in
2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2867 break;;
2868 * ) break;;
2869 esac
2870 done
2871 else
2872 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2874 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2875 See \`config.log' for more details." >&5
2876 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2877 See \`config.log' for more details." >&2;}
2878 { (exit 1); exit 1; }; }; }
2879 fi
2880
2881 rm -f conftest$ac_cv_exeext
2882 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2883 $as_echo "$ac_cv_exeext" >&6; }
2884
2885 rm -f conftest.$ac_ext
2886 EXEEXT=$ac_cv_exeext
2887 ac_exeext=$EXEEXT
2888 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2889 $as_echo_n "checking for suffix of object files... " >&6; }
2890 if test "${ac_cv_objext+set}" = set; then
2891 $as_echo_n "(cached) " >&6
2892 else
2893 cat >conftest.$ac_ext <<_ACEOF
2894 /* confdefs.h. */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h. */
2899
2900 int
2901 main ()
2902 {
2903
2904 ;
2905 return 0;
2906 }
2907 _ACEOF
2908 rm -f conftest.o conftest.obj
2909 if { (ac_try="$ac_compile"
2910 case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2913 esac
2914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2915 $as_echo "$ac_try_echo") >&5
2916 (eval "$ac_compile") 2>&5
2917 ac_status=$?
2918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; then
2920 for ac_file in conftest.o conftest.obj conftest.*; do
2921 test -f "$ac_file" || continue;
2922 case $ac_file in
2923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2924 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2925 break;;
2926 esac
2927 done
2928 else
2929 $as_echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2935 See \`config.log' for more details." >&5
2936 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2937 See \`config.log' for more details." >&2;}
2938 { (exit 1); exit 1; }; }; }
2939 fi
2940
2941 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2942 fi
2943 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2944 $as_echo "$ac_cv_objext" >&6; }
2945 OBJEXT=$ac_cv_objext
2946 ac_objext=$OBJEXT
2947 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2948 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2949 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2950 $as_echo_n "(cached) " >&6
2951 else
2952 cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h. */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2958
2959 int
2960 main ()
2961 {
2962 #ifndef __GNUC__
2963 choke me
2964 #endif
2965
2966 ;
2967 return 0;
2968 }
2969 _ACEOF
2970 rm -f conftest.$ac_objext
2971 if { (ac_try="$ac_compile"
2972 case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2977 $as_echo "$ac_try_echo") >&5
2978 (eval "$ac_compile") 2>conftest.er1
2979 ac_status=$?
2980 grep -v '^ *+' conftest.er1 >conftest.err
2981 rm -f conftest.er1
2982 cat conftest.err >&5
2983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } && {
2985 test -z "$ac_c_werror_flag" ||
2986 test ! -s conftest.err
2987 } && test -s conftest.$ac_objext; then
2988 ac_compiler_gnu=yes
2989 else
2990 $as_echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2992
2993 ac_compiler_gnu=no
2994 fi
2995
2996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2997 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2998
2999 fi
3000 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3001 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3002 if test $ac_compiler_gnu = yes; then
3003 GCC=yes
3004 else
3005 GCC=
3006 fi
3007 ac_test_CFLAGS=${CFLAGS+set}
3008 ac_save_CFLAGS=$CFLAGS
3009 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3010 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3011 if test "${ac_cv_prog_cc_g+set}" = set; then
3012 $as_echo_n "(cached) " >&6
3013 else
3014 ac_save_c_werror_flag=$ac_c_werror_flag
3015 ac_c_werror_flag=yes
3016 ac_cv_prog_cc_g=no
3017 CFLAGS="-g"
3018 cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h. */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3024
3025 int
3026 main ()
3027 {
3028
3029 ;
3030 return 0;
3031 }
3032 _ACEOF
3033 rm -f conftest.$ac_objext
3034 if { (ac_try="$ac_compile"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3040 $as_echo "$ac_try_echo") >&5
3041 (eval "$ac_compile") 2>conftest.er1
3042 ac_status=$?
3043 grep -v '^ *+' conftest.er1 >conftest.err
3044 rm -f conftest.er1
3045 cat conftest.err >&5
3046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } && {
3048 test -z "$ac_c_werror_flag" ||
3049 test ! -s conftest.err
3050 } && test -s conftest.$ac_objext; then
3051 ac_cv_prog_cc_g=yes
3052 else
3053 $as_echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 CFLAGS=""
3057 cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h. */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3063
3064 int
3065 main ()
3066 {
3067
3068 ;
3069 return 0;
3070 }
3071 _ACEOF
3072 rm -f conftest.$ac_objext
3073 if { (ac_try="$ac_compile"
3074 case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077 esac
3078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3079 $as_echo "$ac_try_echo") >&5
3080 (eval "$ac_compile") 2>conftest.er1
3081 ac_status=$?
3082 grep -v '^ *+' conftest.er1 >conftest.err
3083 rm -f conftest.er1
3084 cat conftest.err >&5
3085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } && {
3087 test -z "$ac_c_werror_flag" ||
3088 test ! -s conftest.err
3089 } && test -s conftest.$ac_objext; then
3090 :
3091 else
3092 $as_echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095 ac_c_werror_flag=$ac_save_c_werror_flag
3096 CFLAGS="-g"
3097 cat >conftest.$ac_ext <<_ACEOF
3098 /* confdefs.h. */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3103
3104 int
3105 main ()
3106 {
3107
3108 ;
3109 return 0;
3110 }
3111 _ACEOF
3112 rm -f conftest.$ac_objext
3113 if { (ac_try="$ac_compile"
3114 case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117 esac
3118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3119 $as_echo "$ac_try_echo") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3121 ac_status=$?
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
3125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } && {
3127 test -z "$ac_c_werror_flag" ||
3128 test ! -s conftest.err
3129 } && test -s conftest.$ac_objext; then
3130 ac_cv_prog_cc_g=yes
3131 else
3132 $as_echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135
3136 fi
3137
3138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139 fi
3140
3141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 fi
3143
3144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145 ac_c_werror_flag=$ac_save_c_werror_flag
3146 fi
3147 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3148 $as_echo "$ac_cv_prog_cc_g" >&6; }
3149 if test "$ac_test_CFLAGS" = set; then
3150 CFLAGS=$ac_save_CFLAGS
3151 elif test $ac_cv_prog_cc_g = yes; then
3152 if test "$GCC" = yes; then
3153 CFLAGS="-g -O2"
3154 else
3155 CFLAGS="-g"
3156 fi
3157 else
3158 if test "$GCC" = yes; then
3159 CFLAGS="-O2"
3160 else
3161 CFLAGS=
3162 fi
3163 fi
3164 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3165 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3166 if test "${ac_cv_prog_cc_c89+set}" = set; then
3167 $as_echo_n "(cached) " >&6
3168 else
3169 ac_cv_prog_cc_c89=no
3170 ac_save_CC=$CC
3171 cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h. */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3177 #include <stdarg.h>
3178 #include <stdio.h>
3179 #include <sys/types.h>
3180 #include <sys/stat.h>
3181 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3182 struct buf { int x; };
3183 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3184 static char *e (p, i)
3185 char **p;
3186 int i;
3187 {
3188 return p[i];
3189 }
3190 static char *f (char * (*g) (char **, int), char **p, ...)
3191 {
3192 char *s;
3193 va_list v;
3194 va_start (v,p);
3195 s = g (p, va_arg (v,int));
3196 va_end (v);
3197 return s;
3198 }
3199
3200 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3201 function prototypes and stuff, but not '\xHH' hex character constants.
3202 These don't provoke an error unfortunately, instead are silently treated
3203 as 'x'. The following induces an error, until -std is added to get
3204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3205 array size at least. It's necessary to write '\x00'==0 to get something
3206 that's true only with -std. */
3207 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3208
3209 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3210 inside strings and character constants. */
3211 #define FOO(x) 'x'
3212 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3213
3214 int test (int i, double x);
3215 struct s1 {int (*f) (int a);};
3216 struct s2 {int (*f) (double a);};
3217 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3218 int argc;
3219 char **argv;
3220 int
3221 main ()
3222 {
3223 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3224 ;
3225 return 0;
3226 }
3227 _ACEOF
3228 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3229 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3230 do
3231 CC="$ac_save_CC $ac_arg"
3232 rm -f conftest.$ac_objext
3233 if { (ac_try="$ac_compile"
3234 case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3239 $as_echo "$ac_try_echo") >&5
3240 (eval "$ac_compile") 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } && {
3247 test -z "$ac_c_werror_flag" ||
3248 test ! -s conftest.err
3249 } && test -s conftest.$ac_objext; then
3250 ac_cv_prog_cc_c89=$ac_arg
3251 else
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255
3256 fi
3257
3258 rm -f core conftest.err conftest.$ac_objext
3259 test "x$ac_cv_prog_cc_c89" != "xno" && break
3260 done
3261 rm -f conftest.$ac_ext
3262 CC=$ac_save_CC
3263
3264 fi
3265 # AC_CACHE_VAL
3266 case "x$ac_cv_prog_cc_c89" in
3267 x)
3268 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3269 $as_echo "none needed" >&6; } ;;
3270 xno)
3271 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3272 $as_echo "unsupported" >&6; } ;;
3273 *)
3274 CC="$CC $ac_cv_prog_cc_c89"
3275 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3276 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3277 esac
3278
3279
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285
3286
3287
3288 ac_ext=c
3289 ac_cpp='$CPP $CPPFLAGS'
3290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3293 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3294 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3295 # On Suns, sometimes $CPP names a directory.
3296 if test -n "$CPP" && test -d "$CPP"; then
3297 CPP=
3298 fi
3299 if test -z "$CPP"; then
3300 if test "${ac_cv_prog_CPP+set}" = set; then
3301 $as_echo_n "(cached) " >&6
3302 else
3303 # Double quotes because CPP needs to be expanded
3304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3305 do
3306 ac_preproc_ok=false
3307 for ac_c_preproc_warn_flag in '' yes
3308 do
3309 # Use a header file that comes with gcc, so configuring glibc
3310 # with a fresh cross-compiler works.
3311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3312 # <limits.h> exists even on freestanding compilers.
3313 # On the NeXT, cc -E runs the code through the compiler's parser,
3314 # not just through cpp. "Syntax error" is here to catch this case.
3315 cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h. */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3321 #ifdef __STDC__
3322 # include <limits.h>
3323 #else
3324 # include <assert.h>
3325 #endif
3326 Syntax error
3327 _ACEOF
3328 if { (ac_try="$ac_cpp conftest.$ac_ext"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3334 $as_echo "$ac_try_echo") >&5
3335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } >/dev/null && {
3342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3343 test ! -s conftest.err
3344 }; then
3345 :
3346 else
3347 $as_echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350 # Broken: fails on valid input.
3351 continue
3352 fi
3353
3354 rm -f conftest.err conftest.$ac_ext
3355
3356 # OK, works on sane cases. Now check whether nonexistent headers
3357 # can be detected and how.
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3364 #include <ac_nonexistent.h>
3365 _ACEOF
3366 if { (ac_try="$ac_cpp conftest.$ac_ext"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3372 $as_echo "$ac_try_echo") >&5
3373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3374 ac_status=$?
3375 grep -v '^ *+' conftest.er1 >conftest.err
3376 rm -f conftest.er1
3377 cat conftest.err >&5
3378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } >/dev/null && {
3380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3381 test ! -s conftest.err
3382 }; then
3383 # Broken: success on invalid input.
3384 continue
3385 else
3386 $as_echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389 # Passes both tests.
3390 ac_preproc_ok=:
3391 break
3392 fi
3393
3394 rm -f conftest.err conftest.$ac_ext
3395
3396 done
3397 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3398 rm -f conftest.err conftest.$ac_ext
3399 if $ac_preproc_ok; then
3400 break
3401 fi
3402
3403 done
3404 ac_cv_prog_CPP=$CPP
3405
3406 fi
3407 CPP=$ac_cv_prog_CPP
3408 else
3409 ac_cv_prog_CPP=$CPP
3410 fi
3411 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3412 $as_echo "$CPP" >&6; }
3413 ac_preproc_ok=false
3414 for ac_c_preproc_warn_flag in '' yes
3415 do
3416 # Use a header file that comes with gcc, so configuring glibc
3417 # with a fresh cross-compiler works.
3418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3419 # <limits.h> exists even on freestanding compilers.
3420 # On the NeXT, cc -E runs the code through the compiler's parser,
3421 # not just through cpp. "Syntax error" is here to catch this case.
3422 cat >conftest.$ac_ext <<_ACEOF
3423 /* confdefs.h. */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 #ifdef __STDC__
3429 # include <limits.h>
3430 #else
3431 # include <assert.h>
3432 #endif
3433 Syntax error
3434 _ACEOF
3435 if { (ac_try="$ac_cpp conftest.$ac_ext"
3436 case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3441 $as_echo "$ac_try_echo") >&5
3442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } >/dev/null && {
3449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3450 test ! -s conftest.err
3451 }; then
3452 :
3453 else
3454 $as_echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3456
3457 # Broken: fails on valid input.
3458 continue
3459 fi
3460
3461 rm -f conftest.err conftest.$ac_ext
3462
3463 # OK, works on sane cases. Now check whether nonexistent headers
3464 # can be detected and how.
3465 cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h. */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3471 #include <ac_nonexistent.h>
3472 _ACEOF
3473 if { (ac_try="$ac_cpp conftest.$ac_ext"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3479 $as_echo "$ac_try_echo") >&5
3480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } >/dev/null && {
3487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3488 test ! -s conftest.err
3489 }; then
3490 # Broken: success on invalid input.
3491 continue
3492 else
3493 $as_echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3495
3496 # Passes both tests.
3497 ac_preproc_ok=:
3498 break
3499 fi
3500
3501 rm -f conftest.err conftest.$ac_ext
3502
3503 done
3504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3505 rm -f conftest.err conftest.$ac_ext
3506 if $ac_preproc_ok; then
3507 :
3508 else
3509 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3512 See \`config.log' for more details." >&5
3513 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3514 See \`config.log' for more details." >&2;}
3515 { (exit 1); exit 1; }; }; }
3516 fi
3517
3518 ac_ext=c
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523
3524
3525 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3526 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3527 if test "${ac_cv_path_GREP+set}" = set; then
3528 $as_echo_n "(cached) " >&6
3529 else
3530 if test -z "$GREP"; then
3531 ac_path_GREP_found=false
3532 # Loop through the user's path and test for each of PROGNAME-LIST
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3535 do
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
3538 for ac_prog in grep ggrep; do
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3541 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3542 # Check for GNU ac_path_GREP and select it if it is found.
3543 # Check for GNU $ac_path_GREP
3544 case `"$ac_path_GREP" --version 2>&1` in
3545 *GNU*)
3546 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3547 *)
3548 ac_count=0
3549 $as_echo_n 0123456789 >"conftest.in"
3550 while :
3551 do
3552 cat "conftest.in" "conftest.in" >"conftest.tmp"
3553 mv "conftest.tmp" "conftest.in"
3554 cp "conftest.in" "conftest.nl"
3555 $as_echo 'GREP' >> "conftest.nl"
3556 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3558 ac_count=`expr $ac_count + 1`
3559 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3560 # Best one so far, save it but keep looking for a better one
3561 ac_cv_path_GREP="$ac_path_GREP"
3562 ac_path_GREP_max=$ac_count
3563 fi
3564 # 10*(2^10) chars as input seems more than enough
3565 test $ac_count -gt 10 && break
3566 done
3567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3568 esac
3569
3570 $ac_path_GREP_found && break 3
3571 done
3572 done
3573 done
3574 IFS=$as_save_IFS
3575 if test -z "$ac_cv_path_GREP"; then
3576 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3577 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3578 { (exit 1); exit 1; }; }
3579 fi
3580 else
3581 ac_cv_path_GREP=$GREP
3582 fi
3583
3584 fi
3585 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3586 $as_echo "$ac_cv_path_GREP" >&6; }
3587 GREP="$ac_cv_path_GREP"
3588
3589
3590 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3591 $as_echo_n "checking for egrep... " >&6; }
3592 if test "${ac_cv_path_EGREP+set}" = set; then
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3596 then ac_cv_path_EGREP="$GREP -E"
3597 else
3598 if test -z "$EGREP"; then
3599 ac_path_EGREP_found=false
3600 # Loop through the user's path and test for each of PROGNAME-LIST
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3603 do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_prog in egrep; do
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3609 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3610 # Check for GNU ac_path_EGREP and select it if it is found.
3611 # Check for GNU $ac_path_EGREP
3612 case `"$ac_path_EGREP" --version 2>&1` in
3613 *GNU*)
3614 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3615 *)
3616 ac_count=0
3617 $as_echo_n 0123456789 >"conftest.in"
3618 while :
3619 do
3620 cat "conftest.in" "conftest.in" >"conftest.tmp"
3621 mv "conftest.tmp" "conftest.in"
3622 cp "conftest.in" "conftest.nl"
3623 $as_echo 'EGREP' >> "conftest.nl"
3624 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3625 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3626 ac_count=`expr $ac_count + 1`
3627 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3628 # Best one so far, save it but keep looking for a better one
3629 ac_cv_path_EGREP="$ac_path_EGREP"
3630 ac_path_EGREP_max=$ac_count
3631 fi
3632 # 10*(2^10) chars as input seems more than enough
3633 test $ac_count -gt 10 && break
3634 done
3635 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3636 esac
3637
3638 $ac_path_EGREP_found && break 3
3639 done
3640 done
3641 done
3642 IFS=$as_save_IFS
3643 if test -z "$ac_cv_path_EGREP"; then
3644 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3645 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3646 { (exit 1); exit 1; }; }
3647 fi
3648 else
3649 ac_cv_path_EGREP=$EGREP
3650 fi
3651
3652 fi
3653 fi
3654 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3655 $as_echo "$ac_cv_path_EGREP" >&6; }
3656 EGREP="$ac_cv_path_EGREP"
3657
3658
3659 if test $ac_cv_c_compiler_gnu = yes; then
3660 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3661 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3662 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3663 $as_echo_n "(cached) " >&6
3664 else
3665 ac_pattern="Autoconf.*'x'"
3666 cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h. */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3672 #include <sgtty.h>
3673 Autoconf TIOCGETP
3674 _ACEOF
3675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3676 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3677 ac_cv_prog_gcc_traditional=yes
3678 else
3679 ac_cv_prog_gcc_traditional=no
3680 fi
3681 rm -f conftest*
3682
3683
3684 if test $ac_cv_prog_gcc_traditional = no; then
3685 cat >conftest.$ac_ext <<_ACEOF
3686 /* confdefs.h. */
3687 _ACEOF
3688 cat confdefs.h >>conftest.$ac_ext
3689 cat >>conftest.$ac_ext <<_ACEOF
3690 /* end confdefs.h. */
3691 #include <termio.h>
3692 Autoconf TCGETA
3693 _ACEOF
3694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3695 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3696 ac_cv_prog_gcc_traditional=yes
3697 fi
3698 rm -f conftest*
3699
3700 fi
3701 fi
3702 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3703 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3704 if test $ac_cv_prog_gcc_traditional = yes; then
3705 CC="$CC -traditional"
3706 fi
3707 fi
3708
3709 # Find a good install program. We prefer a C program (faster),
3710 # so one script is as good as another. But avoid the broken or
3711 # incompatible versions:
3712 # SysV /etc/install, /usr/sbin/install
3713 # SunOS /usr/etc/install
3714 # IRIX /sbin/install
3715 # AIX /bin/install
3716 # AmigaOS /C/install, which installs bootblocks on floppy discs
3717 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3718 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3719 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3720 # OS/2's system install, which has a completely different semantic
3721 # ./install, which can be erroneously created by make from ./install.sh.
3722 # Reject install programs that cannot install multiple files.
3723 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3724 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3725 if test -z "$INSTALL"; then
3726 if test "${ac_cv_path_install+set}" = set; then
3727 $as_echo_n "(cached) " >&6
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 # Account for people who put trailing slashes in PATH elements.
3735 case $as_dir/ in
3736 ./ | .// | /cC/* | \
3737 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3738 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3739 /usr/ucb/* ) ;;
3740 *)
3741 # OSF1 and SCO ODT 3.0 have their own names for install.
3742 # Don't use installbsd from OSF since it installs stuff as root
3743 # by default.
3744 for ac_prog in ginstall scoinst install; do
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3747 if test $ac_prog = install &&
3748 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3749 # AIX install. It has an incompatible calling convention.
3750 :
3751 elif test $ac_prog = install &&
3752 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3753 # program-specific install script used by HP pwplus--don't use.
3754 :
3755 else
3756 rm -rf conftest.one conftest.two conftest.dir
3757 echo one > conftest.one
3758 echo two > conftest.two
3759 mkdir conftest.dir
3760 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3761 test -s conftest.one && test -s conftest.two &&
3762 test -s conftest.dir/conftest.one &&
3763 test -s conftest.dir/conftest.two
3764 then
3765 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3766 break 3
3767 fi
3768 fi
3769 fi
3770 done
3771 done
3772 ;;
3773 esac
3774
3775 done
3776 IFS=$as_save_IFS
3777
3778 rm -rf conftest.one conftest.two conftest.dir
3779
3780 fi
3781 if test "${ac_cv_path_install+set}" = set; then
3782 INSTALL=$ac_cv_path_install
3783 else
3784 # As a last resort, use the slow shell script. Don't cache a
3785 # value for INSTALL within a source directory, because that will
3786 # break other packages using the cache if that directory is
3787 # removed, or if the value is a relative name.
3788 INSTALL=$ac_install_sh
3789 fi
3790 fi
3791 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3792 $as_echo "$INSTALL" >&6; }
3793
3794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3795 # It thinks the first close brace ends the variable substitution.
3796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3797
3798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3799
3800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3801
3802 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3803 $as_echo_n "checking whether ln -s works... " >&6; }
3804 LN_S=$as_ln_s
3805 if test "$LN_S" = "ln -s"; then
3806 { $as_echo "$as_me:$LINENO: result: yes" >&5
3807 $as_echo "yes" >&6; }
3808 else
3809 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3810 $as_echo "no, using $LN_S" >&6; }
3811 fi
3812
3813 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3814 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3815 set x ${MAKE-make}
3816 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3817 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3818 $as_echo_n "(cached) " >&6
3819 else
3820 cat >conftest.make <<\_ACEOF
3821 SHELL = /bin/sh
3822 all:
3823 @echo '@@@%%%=$(MAKE)=@@@%%%'
3824 _ACEOF
3825 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3826 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3827 *@@@%%%=?*=@@@%%%*)
3828 eval ac_cv_prog_make_${ac_make}_set=yes;;
3829 *)
3830 eval ac_cv_prog_make_${ac_make}_set=no;;
3831 esac
3832 rm -f conftest.make
3833 fi
3834 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3835 { $as_echo "$as_me:$LINENO: result: yes" >&5
3836 $as_echo "yes" >&6; }
3837 SET_MAKE=
3838 else
3839 { $as_echo "$as_me:$LINENO: result: no" >&5
3840 $as_echo "no" >&6; }
3841 SET_MAKE="MAKE=${MAKE-make}"
3842 fi
3843
3844 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3845 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3846 if test -z "$MKDIR_P"; then
3847 if test "${ac_cv_path_mkdir+set}" = set; then
3848 $as_echo_n "(cached) " >&6
3849 else
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3852 do
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for ac_prog in mkdir gmkdir; do
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3858 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3859 'mkdir (GNU coreutils) '* | \
3860 'mkdir (coreutils) '* | \
3861 'mkdir (fileutils) '4.1*)
3862 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3863 break 3;;
3864 esac
3865 done
3866 done
3867 done
3868 IFS=$as_save_IFS
3869
3870 fi
3871
3872 if test "${ac_cv_path_mkdir+set}" = set; then
3873 MKDIR_P="$ac_cv_path_mkdir -p"
3874 else
3875 # As a last resort, use the slow shell script. Don't cache a
3876 # value for MKDIR_P within a source directory, because that will
3877 # break other packages using the cache if that directory is
3878 # removed, or if the value is a relative name.
3879 test -d ./--version && rmdir ./--version
3880 MKDIR_P="$ac_install_sh -d"
3881 fi
3882 fi
3883 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3884 $as_echo "$MKDIR_P" >&6; }
3885
3886 if test -n "$ac_tool_prefix"; then
3887 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3888 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3889 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3890 $as_echo_n "checking for $ac_word... " >&6; }
3891 if test "${ac_cv_prog_RANLIB+set}" = set; then
3892 $as_echo_n "(cached) " >&6
3893 else
3894 if test -n "$RANLIB"; then
3895 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3899 do
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3904 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 break 2
3907 fi
3908 done
3909 done
3910 IFS=$as_save_IFS
3911
3912 fi
3913 fi
3914 RANLIB=$ac_cv_prog_RANLIB
3915 if test -n "$RANLIB"; then
3916 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3917 $as_echo "$RANLIB" >&6; }
3918 else
3919 { $as_echo "$as_me:$LINENO: result: no" >&5
3920 $as_echo "no" >&6; }
3921 fi
3922
3923
3924 fi
3925 if test -z "$ac_cv_prog_RANLIB"; then
3926 ac_ct_RANLIB=$RANLIB
3927 # Extract the first word of "ranlib", so it can be a program name with args.
3928 set dummy ranlib; ac_word=$2
3929 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3930 $as_echo_n "checking for $ac_word... " >&6; }
3931 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3932 $as_echo_n "(cached) " >&6
3933 else
3934 if test -n "$ac_ct_RANLIB"; then
3935 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3939 do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944 ac_cv_prog_ac_ct_RANLIB="ranlib"
3945 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948 done
3949 done
3950 IFS=$as_save_IFS
3951
3952 fi
3953 fi
3954 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3955 if test -n "$ac_ct_RANLIB"; then
3956 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3957 $as_echo "$ac_ct_RANLIB" >&6; }
3958 else
3959 { $as_echo "$as_me:$LINENO: result: no" >&5
3960 $as_echo "no" >&6; }
3961 fi
3962
3963 if test "x$ac_ct_RANLIB" = x; then
3964 RANLIB=":"
3965 else
3966 case $cross_compiling:$ac_tool_warned in
3967 yes:)
3968 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3970 ac_tool_warned=yes ;;
3971 esac
3972 RANLIB=$ac_ct_RANLIB
3973 fi
3974 else
3975 RANLIB="$ac_cv_prog_RANLIB"
3976 fi
3977
3978 # Extract the first word of "cflow", so it can be a program name with args.
3979 set dummy cflow; ac_word=$2
3980 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3983 $as_echo_n "(cached) " >&6
3984 else
3985 case $CFLOW_CMD in
3986 [\\/]* | ?:[\\/]*)
3987 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3988 ;;
3989 *)
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
3998 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4000 fi
4001 done
4002 done
4003 IFS=$as_save_IFS
4004
4005 ;;
4006 esac
4007 fi
4008 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4009 if test -n "$CFLOW_CMD"; then
4010 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4011 $as_echo "$CFLOW_CMD" >&6; }
4012 else
4013 { $as_echo "$as_me:$LINENO: result: no" >&5
4014 $as_echo "no" >&6; }
4015 fi
4016
4017
4018 # Extract the first word of "cscope", so it can be a program name with args.
4019 set dummy cscope; ac_word=$2
4020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 $as_echo_n "checking for $ac_word... " >&6; }
4022 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
4023 $as_echo_n "(cached) " >&6
4024 else
4025 case $CSCOPE_CMD in
4026 [\\/]* | ?:[\\/]*)
4027 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4028 ;;
4029 *)
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4032 do
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4037 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 break 2
4040 fi
4041 done
4042 done
4043 IFS=$as_save_IFS
4044
4045 ;;
4046 esac
4047 fi
4048 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4049 if test -n "$CSCOPE_CMD"; then
4050 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4051 $as_echo "$CSCOPE_CMD" >&6; }
4052 else
4053 { $as_echo "$as_me:$LINENO: result: no" >&5
4054 $as_echo "no" >&6; }
4055 fi
4056
4057
4058
4059 ################################################################################
4060
4061
4062
4063
4064
4065 ac_header_dirent=no
4066 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4067 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4068 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4069 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4071 $as_echo_n "(cached) " >&6
4072 else
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h. */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 #include <sys/types.h>
4080 #include <$ac_hdr>
4081
4082 int
4083 main ()
4084 {
4085 if ((DIR *) 0)
4086 return 0;
4087 ;
4088 return 0;
4089 }
4090 _ACEOF
4091 rm -f conftest.$ac_objext
4092 if { (ac_try="$ac_compile"
4093 case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096 esac
4097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4098 $as_echo "$ac_try_echo") >&5
4099 (eval "$ac_compile") 2>conftest.er1
4100 ac_status=$?
4101 grep -v '^ *+' conftest.er1 >conftest.err
4102 rm -f conftest.er1
4103 cat conftest.err >&5
4104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } && {
4106 test -z "$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4108 } && test -s conftest.$ac_objext; then
4109 eval "$as_ac_Header=yes"
4110 else
4111 $as_echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4113
4114 eval "$as_ac_Header=no"
4115 fi
4116
4117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 fi
4119 ac_res=`eval 'as_val=${'$as_ac_Header'}
4120 $as_echo "$as_val"'`
4121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4122 $as_echo "$ac_res" >&6; }
4123 as_val=`eval 'as_val=${'$as_ac_Header'}
4124 $as_echo "$as_val"'`
4125 if test "x$as_val" = x""yes; then
4126 cat >>confdefs.h <<_ACEOF
4127 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4128 _ACEOF
4129
4130 ac_header_dirent=$ac_hdr; break
4131 fi
4132
4133 done
4134 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4135 if test $ac_header_dirent = dirent.h; then
4136 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4137 $as_echo_n "checking for library containing opendir... " >&6; }
4138 if test "${ac_cv_search_opendir+set}" = set; then
4139 $as_echo_n "(cached) " >&6
4140 else
4141 ac_func_search_save_LIBS=$LIBS
4142 cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h. */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4148
4149 /* Override any GCC internal prototype to avoid an error.
4150 Use char because int might match the return type of a GCC
4151 builtin and then its argument prototype would still apply. */
4152 #ifdef __cplusplus
4153 extern "C"
4154 #endif
4155 char opendir ();
4156 int
4157 main ()
4158 {
4159 return opendir ();
4160 ;
4161 return 0;
4162 }
4163 _ACEOF
4164 for ac_lib in '' dir; do
4165 if test -z "$ac_lib"; then
4166 ac_res="none required"
4167 else
4168 ac_res=-l$ac_lib
4169 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4170 fi
4171 rm -f conftest.$ac_objext conftest$ac_exeext
4172 if { (ac_try="$ac_link"
4173 case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176 esac
4177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4178 $as_echo "$ac_try_echo") >&5
4179 (eval "$ac_link") 2>conftest.er1
4180 ac_status=$?
4181 grep -v '^ *+' conftest.er1 >conftest.err
4182 rm -f conftest.er1
4183 cat conftest.err >&5
4184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } && {
4186 test -z "$ac_c_werror_flag" ||
4187 test ! -s conftest.err
4188 } && test -s conftest$ac_exeext && {
4189 test "$cross_compiling" = yes ||
4190 $as_test_x conftest$ac_exeext
4191 }; then
4192 ac_cv_search_opendir=$ac_res
4193 else
4194 $as_echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197
4198 fi
4199
4200 rm -rf conftest.dSYM
4201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4202 conftest$ac_exeext
4203 if test "${ac_cv_search_opendir+set}" = set; then
4204 break
4205 fi
4206 done
4207 if test "${ac_cv_search_opendir+set}" = set; then
4208 :
4209 else
4210 ac_cv_search_opendir=no
4211 fi
4212 rm conftest.$ac_ext
4213 LIBS=$ac_func_search_save_LIBS
4214 fi
4215 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4216 $as_echo "$ac_cv_search_opendir" >&6; }
4217 ac_res=$ac_cv_search_opendir
4218 if test "$ac_res" != no; then
4219 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4220
4221 fi
4222
4223 else
4224 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4225 $as_echo_n "checking for library containing opendir... " >&6; }
4226 if test "${ac_cv_search_opendir+set}" = set; then
4227 $as_echo_n "(cached) " >&6
4228 else
4229 ac_func_search_save_LIBS=$LIBS
4230 cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h. */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236
4237 /* Override any GCC internal prototype to avoid an error.
4238 Use char because int might match the return type of a GCC
4239 builtin and then its argument prototype would still apply. */
4240 #ifdef __cplusplus
4241 extern "C"
4242 #endif
4243 char opendir ();
4244 int
4245 main ()
4246 {
4247 return opendir ();
4248 ;
4249 return 0;
4250 }
4251 _ACEOF
4252 for ac_lib in '' x; do
4253 if test -z "$ac_lib"; then
4254 ac_res="none required"
4255 else
4256 ac_res=-l$ac_lib
4257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4258 fi
4259 rm -f conftest.$ac_objext conftest$ac_exeext
4260 if { (ac_try="$ac_link"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4266 $as_echo "$ac_try_echo") >&5
4267 (eval "$ac_link") 2>conftest.er1
4268 ac_status=$?
4269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } && {
4274 test -z "$ac_c_werror_flag" ||
4275 test ! -s conftest.err
4276 } && test -s conftest$ac_exeext && {
4277 test "$cross_compiling" = yes ||
4278 $as_test_x conftest$ac_exeext
4279 }; then
4280 ac_cv_search_opendir=$ac_res
4281 else
4282 $as_echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4284
4285
4286 fi
4287
4288 rm -rf conftest.dSYM
4289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4290 conftest$ac_exeext
4291 if test "${ac_cv_search_opendir+set}" = set; then
4292 break
4293 fi
4294 done
4295 if test "${ac_cv_search_opendir+set}" = set; then
4296 :
4297 else
4298 ac_cv_search_opendir=no
4299 fi
4300 rm conftest.$ac_ext
4301 LIBS=$ac_func_search_save_LIBS
4302 fi
4303 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4304 $as_echo "$ac_cv_search_opendir" >&6; }
4305 ac_res=$ac_cv_search_opendir
4306 if test "$ac_res" != no; then
4307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4308
4309 fi
4310
4311 fi
4312
4313 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4314 $as_echo_n "checking for ANSI C header files... " >&6; }
4315 if test "${ac_cv_header_stdc+set}" = set; then
4316 $as_echo_n "(cached) " >&6
4317 else
4318 cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h. */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4324 #include <stdlib.h>
4325 #include <stdarg.h>
4326 #include <string.h>
4327 #include <float.h>
4328
4329 int
4330 main ()
4331 {
4332
4333 ;
4334 return 0;
4335 }
4336 _ACEOF
4337 rm -f conftest.$ac_objext
4338 if { (ac_try="$ac_compile"
4339 case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342 esac
4343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4344 $as_echo "$ac_try_echo") >&5
4345 (eval "$ac_compile") 2>conftest.er1
4346 ac_status=$?
4347 grep -v '^ *+' conftest.er1 >conftest.err
4348 rm -f conftest.er1
4349 cat conftest.err >&5
4350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } && {
4352 test -z "$ac_c_werror_flag" ||
4353 test ! -s conftest.err
4354 } && test -s conftest.$ac_objext; then
4355 ac_cv_header_stdc=yes
4356 else
4357 $as_echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4359
4360 ac_cv_header_stdc=no
4361 fi
4362
4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364
4365 if test $ac_cv_header_stdc = yes; then
4366 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4367 cat >conftest.$ac_ext <<_ACEOF
4368 /* confdefs.h. */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 #include <string.h>
4374
4375 _ACEOF
4376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4377 $EGREP "memchr" >/dev/null 2>&1; then
4378 :
4379 else
4380 ac_cv_header_stdc=no
4381 fi
4382 rm -f conftest*
4383
4384 fi
4385
4386 if test $ac_cv_header_stdc = yes; then
4387 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4388 cat >conftest.$ac_ext <<_ACEOF
4389 /* confdefs.h. */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 #include <stdlib.h>
4395
4396 _ACEOF
4397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4398 $EGREP "free" >/dev/null 2>&1; then
4399 :
4400 else
4401 ac_cv_header_stdc=no
4402 fi
4403 rm -f conftest*
4404
4405 fi
4406
4407 if test $ac_cv_header_stdc = yes; then
4408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4409 if test "$cross_compiling" = yes; then
4410 :
4411 else
4412 cat >conftest.$ac_ext <<_ACEOF
4413 /* confdefs.h. */
4414 _ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 #include <ctype.h>
4419 #include <stdlib.h>
4420 #if ((' ' & 0x0FF) == 0x020)
4421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4423 #else
4424 # define ISLOWER(c) \
4425 (('a' <= (c) && (c) <= 'i') \
4426 || ('j' <= (c) && (c) <= 'r') \
4427 || ('s' <= (c) && (c) <= 'z'))
4428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4429 #endif
4430
4431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4432 int
4433 main ()
4434 {
4435 int i;
4436 for (i = 0; i < 256; i++)
4437 if (XOR (islower (i), ISLOWER (i))
4438 || toupper (i) != TOUPPER (i))
4439 return 2;
4440 return 0;
4441 }
4442 _ACEOF
4443 rm -f conftest$ac_exeext
4444 if { (ac_try="$ac_link"
4445 case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448 esac
4449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4450 $as_echo "$ac_try_echo") >&5
4451 (eval "$ac_link") 2>&5
4452 ac_status=$?
4453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4455 { (case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458 esac
4459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4460 $as_echo "$ac_try_echo") >&5
4461 (eval "$ac_try") 2>&5
4462 ac_status=$?
4463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4465 :
4466 else
4467 $as_echo "$as_me: program exited with status $ac_status" >&5
4468 $as_echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4470
4471 ( exit $ac_status )
4472 ac_cv_header_stdc=no
4473 fi
4474 rm -rf conftest.dSYM
4475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4476 fi
4477
4478
4479 fi
4480 fi
4481 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4482 $as_echo "$ac_cv_header_stdc" >&6; }
4483 if test $ac_cv_header_stdc = yes; then
4484
4485 cat >>confdefs.h <<\_ACEOF
4486 #define STDC_HEADERS 1
4487 _ACEOF
4488
4489 fi
4490
4491 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4492 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4493 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4494 $as_echo_n "(cached) " >&6
4495 else
4496 cat >conftest.$ac_ext <<_ACEOF
4497 /* confdefs.h. */
4498 _ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4502 #include <sys/types.h>
4503 #include <sys/wait.h>
4504 #ifndef WEXITSTATUS
4505 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4506 #endif
4507 #ifndef WIFEXITED
4508 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4509 #endif
4510
4511 int
4512 main ()
4513 {
4514 int s;
4515 wait (&s);
4516 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4517 ;
4518 return 0;
4519 }
4520 _ACEOF
4521 rm -f conftest.$ac_objext
4522 if { (ac_try="$ac_compile"
4523 case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526 esac
4527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4528 $as_echo "$ac_try_echo") >&5
4529 (eval "$ac_compile") 2>conftest.er1
4530 ac_status=$?
4531 grep -v '^ *+' conftest.er1 >conftest.err
4532 rm -f conftest.er1
4533 cat conftest.err >&5
4534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } && {
4536 test -z "$ac_c_werror_flag" ||
4537 test ! -s conftest.err
4538 } && test -s conftest.$ac_objext; then
4539 ac_cv_header_sys_wait_h=yes
4540 else
4541 $as_echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4543
4544 ac_cv_header_sys_wait_h=no
4545 fi
4546
4547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548 fi
4549 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4550 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4551 if test $ac_cv_header_sys_wait_h = yes; then
4552
4553 cat >>confdefs.h <<\_ACEOF
4554 #define HAVE_SYS_WAIT_H 1
4555 _ACEOF
4556
4557 fi
4558
4559 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4560 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4561 if test "${ac_cv_header_time+set}" = set; then
4562 $as_echo_n "(cached) " >&6
4563 else
4564 cat >conftest.$ac_ext <<_ACEOF
4565 /* confdefs.h. */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 #include <sys/types.h>
4571 #include <sys/time.h>
4572 #include <time.h>
4573
4574 int
4575 main ()
4576 {
4577 if ((struct tm *) 0)
4578 return 0;
4579 ;
4580 return 0;
4581 }
4582 _ACEOF
4583 rm -f conftest.$ac_objext
4584 if { (ac_try="$ac_compile"
4585 case "(($ac_try" in
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4588 esac
4589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4590 $as_echo "$ac_try_echo") >&5
4591 (eval "$ac_compile") 2>conftest.er1
4592 ac_status=$?
4593 grep -v '^ *+' conftest.er1 >conftest.err
4594 rm -f conftest.er1
4595 cat conftest.err >&5
4596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } && {
4598 test -z "$ac_c_werror_flag" ||
4599 test ! -s conftest.err
4600 } && test -s conftest.$ac_objext; then
4601 ac_cv_header_time=yes
4602 else
4603 $as_echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606 ac_cv_header_time=no
4607 fi
4608
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 fi
4611 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4612 $as_echo "$ac_cv_header_time" >&6; }
4613 if test $ac_cv_header_time = yes; then
4614
4615 cat >>confdefs.h <<\_ACEOF
4616 #define TIME_WITH_SYS_TIME 1
4617 _ACEOF
4618
4619 fi
4620
4621
4622 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4633 inttypes.h stdint.h unistd.h
4634 do
4635 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 $as_echo_n "checking for $ac_header... " >&6; }
4638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4639 $as_echo_n "(cached) " >&6
4640 else
4641 cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h. */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4647 $ac_includes_default
4648
4649 #include <$ac_header>
4650 _ACEOF
4651 rm -f conftest.$ac_objext
4652 if { (ac_try="$ac_compile"
4653 case "(($ac_try" in
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4656 esac
4657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4658 $as_echo "$ac_try_echo") >&5
4659 (eval "$ac_compile") 2>conftest.er1
4660 ac_status=$?
4661 grep -v '^ *+' conftest.er1 >conftest.err
4662 rm -f conftest.er1
4663 cat conftest.err >&5
4664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } && {
4666 test -z "$ac_c_werror_flag" ||
4667 test ! -s conftest.err
4668 } && test -s conftest.$ac_objext; then
4669 eval "$as_ac_Header=yes"
4670 else
4671 $as_echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4673
4674 eval "$as_ac_Header=no"
4675 fi
4676
4677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 fi
4679 ac_res=`eval 'as_val=${'$as_ac_Header'}
4680 $as_echo "$as_val"'`
4681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4682 $as_echo "$ac_res" >&6; }
4683 as_val=`eval 'as_val=${'$as_ac_Header'}
4684 $as_echo "$as_val"'`
4685 if test "x$as_val" = x""yes; then
4686 cat >>confdefs.h <<_ACEOF
4687 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4688 _ACEOF
4689
4690 fi
4691
4692 done
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4709 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4710 do
4711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4713 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4714 $as_echo_n "checking for $ac_header... " >&6; }
4715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4716 $as_echo_n "(cached) " >&6
4717 fi
4718 ac_res=`eval 'as_val=${'$as_ac_Header'}
4719 $as_echo "$as_val"'`
4720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4721 $as_echo "$ac_res" >&6; }
4722 else
4723 # Is the header compilable?
4724 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4725 $as_echo_n "checking $ac_header usability... " >&6; }
4726 cat >conftest.$ac_ext <<_ACEOF
4727 /* confdefs.h. */
4728 _ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4732 $ac_includes_default
4733 #include <$ac_header>
4734 _ACEOF
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4737 case "(($ac_try" in
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4740 esac
4741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4742 $as_echo "$ac_try_echo") >&5
4743 (eval "$ac_compile") 2>conftest.er1
4744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } && {
4750 test -z "$ac_c_werror_flag" ||
4751 test ! -s conftest.err
4752 } && test -s conftest.$ac_objext; then
4753 ac_header_compiler=yes
4754 else
4755 $as_echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758 ac_header_compiler=no
4759 fi
4760
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4763 $as_echo "$ac_header_compiler" >&6; }
4764
4765 # Is the header present?
4766 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4767 $as_echo_n "checking $ac_header presence... " >&6; }
4768 cat >conftest.$ac_ext <<_ACEOF
4769 /* confdefs.h. */
4770 _ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4774 #include <$ac_header>
4775 _ACEOF
4776 if { (ac_try="$ac_cpp conftest.$ac_ext"
4777 case "(($ac_try" in
4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4780 esac
4781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4782 $as_echo "$ac_try_echo") >&5
4783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } >/dev/null && {
4790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4791 test ! -s conftest.err
4792 }; then
4793 ac_header_preproc=yes
4794 else
4795 $as_echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4797
4798 ac_header_preproc=no
4799 fi
4800
4801 rm -f conftest.err conftest.$ac_ext
4802 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4803 $as_echo "$ac_header_preproc" >&6; }
4804
4805 # So? What about this header?
4806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4807 yes:no: )
4808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4809 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4811 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4812 ac_header_preproc=yes
4813 ;;
4814 no:yes:* )
4815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4816 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4818 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4820 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4822 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4824 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4826 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4827
4828 ;;
4829 esac
4830 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4831 $as_echo_n "checking for $ac_header... " >&6; }
4832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4833 $as_echo_n "(cached) " >&6
4834 else
4835 eval "$as_ac_Header=\$ac_header_preproc"
4836 fi
4837 ac_res=`eval 'as_val=${'$as_ac_Header'}
4838 $as_echo "$as_val"'`
4839 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4840 $as_echo "$ac_res" >&6; }
4841
4842 fi
4843 as_val=`eval 'as_val=${'$as_ac_Header'}
4844 $as_echo "$as_val"'`
4845 if test "x$as_val" = x""yes; then
4846 cat >>confdefs.h <<_ACEOF
4847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4848 _ACEOF
4849
4850 else
4851 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4852 $as_echo "$as_me: error: bailing out" >&2;}
4853 { (exit 1); exit 1; }; }
4854 fi
4855
4856 done
4857
4858
4859 case "$host_os" in
4860 linux*)
4861
4862
4863
4864 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4865 do
4866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4868 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4869 $as_echo_n "checking for $ac_header... " >&6; }
4870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4871 $as_echo_n "(cached) " >&6
4872 fi
4873 ac_res=`eval 'as_val=${'$as_ac_Header'}
4874 $as_echo "$as_val"'`
4875 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4876 $as_echo "$ac_res" >&6; }
4877 else
4878 # Is the header compilable?
4879 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4880 $as_echo_n "checking $ac_header usability... " >&6; }
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h. */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 $ac_includes_default
4888 #include <$ac_header>
4889 _ACEOF
4890 rm -f conftest.$ac_objext
4891 if { (ac_try="$ac_compile"
4892 case "(($ac_try" in
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4895 esac
4896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4897 $as_echo "$ac_try_echo") >&5
4898 (eval "$ac_compile") 2>conftest.er1
4899 ac_status=$?
4900 grep -v '^ *+' conftest.er1 >conftest.err
4901 rm -f conftest.er1
4902 cat conftest.err >&5
4903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } && {
4905 test -z "$ac_c_werror_flag" ||
4906 test ! -s conftest.err
4907 } && test -s conftest.$ac_objext; then
4908 ac_header_compiler=yes
4909 else
4910 $as_echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.$ac_ext >&5
4912
4913 ac_header_compiler=no
4914 fi
4915
4916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4918 $as_echo "$ac_header_compiler" >&6; }
4919
4920 # Is the header present?
4921 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4922 $as_echo_n "checking $ac_header presence... " >&6; }
4923 cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h. */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4929 #include <$ac_header>
4930 _ACEOF
4931 if { (ac_try="$ac_cpp conftest.$ac_ext"
4932 case "(($ac_try" in
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4935 esac
4936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4937 $as_echo "$ac_try_echo") >&5
4938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4939 ac_status=$?
4940 grep -v '^ *+' conftest.er1 >conftest.err
4941 rm -f conftest.er1
4942 cat conftest.err >&5
4943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } >/dev/null && {
4945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4946 test ! -s conftest.err
4947 }; then
4948 ac_header_preproc=yes
4949 else
4950 $as_echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4952
4953 ac_header_preproc=no
4954 fi
4955
4956 rm -f conftest.err conftest.$ac_ext
4957 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4958 $as_echo "$ac_header_preproc" >&6; }
4959
4960 # So? What about this header?
4961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4962 yes:no: )
4963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4964 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4966 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4967 ac_header_preproc=yes
4968 ;;
4969 no:yes:* )
4970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4971 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4973 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4975 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4977 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4979 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4981 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4982
4983 ;;
4984 esac
4985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4986 $as_echo_n "checking for $ac_header... " >&6; }
4987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4988 $as_echo_n "(cached) " >&6
4989 else
4990 eval "$as_ac_Header=\$ac_header_preproc"
4991 fi
4992 ac_res=`eval 'as_val=${'$as_ac_Header'}
4993 $as_echo "$as_val"'`
4994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4995 $as_echo "$ac_res" >&6; }
4996
4997 fi
4998 as_val=`eval 'as_val=${'$as_ac_Header'}
4999 $as_echo "$as_val"'`
5000 if test "x$as_val" = x""yes; then
5001 cat >>confdefs.h <<_ACEOF
5002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5003 _ACEOF
5004
5005 else
5006 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5007 $as_echo "$as_me: error: bailing out" >&2;}
5008 { (exit 1); exit 1; }; }
5009 fi
5010
5011 done
5012 ;;
5013 darwin*)
5014
5015
5016 for ac_header in machine/endian.h sys/disk.h
5017 do
5018 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5020 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5021 $as_echo_n "checking for $ac_header... " >&6; }
5022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5023 $as_echo_n "(cached) " >&6
5024 fi
5025 ac_res=`eval 'as_val=${'$as_ac_Header'}
5026 $as_echo "$as_val"'`
5027 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5028 $as_echo "$ac_res" >&6; }
5029 else
5030 # Is the header compilable?
5031 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5032 $as_echo_n "checking $ac_header usability... " >&6; }
5033 cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h. */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5039 $ac_includes_default
5040 #include <$ac_header>
5041 _ACEOF
5042 rm -f conftest.$ac_objext
5043 if { (ac_try="$ac_compile"
5044 case "(($ac_try" in
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5047 esac
5048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5049 $as_echo "$ac_try_echo") >&5
5050 (eval "$ac_compile") 2>conftest.er1
5051 ac_status=$?
5052 grep -v '^ *+' conftest.er1 >conftest.err
5053 rm -f conftest.er1
5054 cat conftest.err >&5
5055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && {
5057 test -z "$ac_c_werror_flag" ||
5058 test ! -s conftest.err
5059 } && test -s conftest.$ac_objext; then
5060 ac_header_compiler=yes
5061 else
5062 $as_echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 ac_header_compiler=no
5066 fi
5067
5068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5070 $as_echo "$ac_header_compiler" >&6; }
5071
5072 # Is the header present?
5073 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5074 $as_echo_n "checking $ac_header presence... " >&6; }
5075 cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h. */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 #include <$ac_header>
5082 _ACEOF
5083 if { (ac_try="$ac_cpp conftest.$ac_ext"
5084 case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5087 esac
5088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5089 $as_echo "$ac_try_echo") >&5
5090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } >/dev/null && {
5097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5098 test ! -s conftest.err
5099 }; then
5100 ac_header_preproc=yes
5101 else
5102 $as_echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105 ac_header_preproc=no
5106 fi
5107
5108 rm -f conftest.err conftest.$ac_ext
5109 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5110 $as_echo "$ac_header_preproc" >&6; }
5111
5112 # So? What about this header?
5113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5114 yes:no: )
5115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5116 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5118 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5119 ac_header_preproc=yes
5120 ;;
5121 no:yes:* )
5122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5123 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5125 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5127 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5129 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5131 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5133 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5134
5135 ;;
5136 esac
5137 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5138 $as_echo_n "checking for $ac_header... " >&6; }
5139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5140 $as_echo_n "(cached) " >&6
5141 else
5142 eval "$as_ac_Header=\$ac_header_preproc"
5143 fi
5144 ac_res=`eval 'as_val=${'$as_ac_Header'}
5145 $as_echo "$as_val"'`
5146 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5147 $as_echo "$ac_res" >&6; }
5148
5149 fi
5150 as_val=`eval 'as_val=${'$as_ac_Header'}
5151 $as_echo "$as_val"'`
5152 if test "x$as_val" = x""yes; then
5153 cat >>confdefs.h <<_ACEOF
5154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5155 _ACEOF
5156
5157 else
5158 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5159 $as_echo "$as_me: error: bailing out" >&2;}
5160 { (exit 1); exit 1; }; }
5161 fi
5162
5163 done
5164 ;;
5165 esac
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5184 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5185 sys/types.h unistd.h
5186 do
5187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5189 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5190 $as_echo_n "checking for $ac_header... " >&6; }
5191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5192 $as_echo_n "(cached) " >&6
5193 fi
5194 ac_res=`eval 'as_val=${'$as_ac_Header'}
5195 $as_echo "$as_val"'`
5196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5197 $as_echo "$ac_res" >&6; }
5198 else
5199 # Is the header compilable?
5200 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5201 $as_echo_n "checking $ac_header usability... " >&6; }
5202 cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h. */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5208 $ac_includes_default
5209 #include <$ac_header>
5210 _ACEOF
5211 rm -f conftest.$ac_objext
5212 if { (ac_try="$ac_compile"
5213 case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5216 esac
5217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5218 $as_echo "$ac_try_echo") >&5
5219 (eval "$ac_compile") 2>conftest.er1
5220 ac_status=$?
5221 grep -v '^ *+' conftest.er1 >conftest.err
5222 rm -f conftest.er1
5223 cat conftest.err >&5
5224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } && {
5226 test -z "$ac_c_werror_flag" ||
5227 test ! -s conftest.err
5228 } && test -s conftest.$ac_objext; then
5229 ac_header_compiler=yes
5230 else
5231 $as_echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5233
5234 ac_header_compiler=no
5235 fi
5236
5237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5239 $as_echo "$ac_header_compiler" >&6; }
5240
5241 # Is the header present?
5242 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5243 $as_echo_n "checking $ac_header presence... " >&6; }
5244 cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h. */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 #include <$ac_header>
5251 _ACEOF
5252 if { (ac_try="$ac_cpp conftest.$ac_ext"
5253 case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256 esac
5257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5258 $as_echo "$ac_try_echo") >&5
5259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } >/dev/null && {
5266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5267 test ! -s conftest.err
5268 }; then
5269 ac_header_preproc=yes
5270 else
5271 $as_echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5273
5274 ac_header_preproc=no
5275 fi
5276
5277 rm -f conftest.err conftest.$ac_ext
5278 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5279 $as_echo "$ac_header_preproc" >&6; }
5280
5281 # So? What about this header?
5282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5283 yes:no: )
5284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5285 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5287 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5288 ac_header_preproc=yes
5289 ;;
5290 no:yes:* )
5291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5292 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5294 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5296 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5298 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5300 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5302 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5303
5304 ;;
5305 esac
5306 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5307 $as_echo_n "checking for $ac_header... " >&6; }
5308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5309 $as_echo_n "(cached) " >&6
5310 else
5311 eval "$as_ac_Header=\$ac_header_preproc"
5312 fi
5313 ac_res=`eval 'as_val=${'$as_ac_Header'}
5314 $as_echo "$as_val"'`
5315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5316 $as_echo "$ac_res" >&6; }
5317
5318 fi
5319 as_val=`eval 'as_val=${'$as_ac_Header'}
5320 $as_echo "$as_val"'`
5321 if test "x$as_val" = x""yes; then
5322 cat >>confdefs.h <<_ACEOF
5323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5324 _ACEOF
5325
5326 else
5327 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5328 $as_echo "$as_me: error: bailing out" >&2;}
5329 { (exit 1); exit 1; }; }
5330 fi
5331
5332 done
5333
5334
5335
5336 for ac_header in termios.h sys/statvfs.h
5337 do
5338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5340 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5341 $as_echo_n "checking for $ac_header... " >&6; }
5342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5343 $as_echo_n "(cached) " >&6
5344 fi
5345 ac_res=`eval 'as_val=${'$as_ac_Header'}
5346 $as_echo "$as_val"'`
5347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5348 $as_echo "$ac_res" >&6; }
5349 else
5350 # Is the header compilable?
5351 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5352 $as_echo_n "checking $ac_header usability... " >&6; }
5353 cat >conftest.$ac_ext <<_ACEOF
5354 /* confdefs.h. */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 $ac_includes_default
5360 #include <$ac_header>
5361 _ACEOF
5362 rm -f conftest.$ac_objext
5363 if { (ac_try="$ac_compile"
5364 case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367 esac
5368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5369 $as_echo "$ac_try_echo") >&5
5370 (eval "$ac_compile") 2>conftest.er1
5371 ac_status=$?
5372 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1
5374 cat conftest.err >&5
5375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } && {
5377 test -z "$ac_c_werror_flag" ||
5378 test ! -s conftest.err
5379 } && test -s conftest.$ac_objext; then
5380 ac_header_compiler=yes
5381 else
5382 $as_echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5384
5385 ac_header_compiler=no
5386 fi
5387
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5390 $as_echo "$ac_header_compiler" >&6; }
5391
5392 # Is the header present?
5393 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5394 $as_echo_n "checking $ac_header presence... " >&6; }
5395 cat >conftest.$ac_ext <<_ACEOF
5396 /* confdefs.h. */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5401 #include <$ac_header>
5402 _ACEOF
5403 if { (ac_try="$ac_cpp conftest.$ac_ext"
5404 case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5407 esac
5408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5409 $as_echo "$ac_try_echo") >&5
5410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
5415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } >/dev/null && {
5417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5418 test ! -s conftest.err
5419 }; then
5420 ac_header_preproc=yes
5421 else
5422 $as_echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 ac_header_preproc=no
5426 fi
5427
5428 rm -f conftest.err conftest.$ac_ext
5429 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5430 $as_echo "$ac_header_preproc" >&6; }
5431
5432 # So? What about this header?
5433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5434 yes:no: )
5435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5436 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5438 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5439 ac_header_preproc=yes
5440 ;;
5441 no:yes:* )
5442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5443 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5445 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5447 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5449 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5451 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5453 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5454
5455 ;;
5456 esac
5457 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5458 $as_echo_n "checking for $ac_header... " >&6; }
5459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5460 $as_echo_n "(cached) " >&6
5461 else
5462 eval "$as_ac_Header=\$ac_header_preproc"
5463 fi
5464 ac_res=`eval 'as_val=${'$as_ac_Header'}
5465 $as_echo "$as_val"'`
5466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5467 $as_echo "$ac_res" >&6; }
5468
5469 fi
5470 as_val=`eval 'as_val=${'$as_ac_Header'}
5471 $as_echo "$as_val"'`
5472 if test "x$as_val" = x""yes; then
5473 cat >>confdefs.h <<_ACEOF
5474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5475 _ACEOF
5476
5477 fi
5478
5479 done
5480
5481
5482 ################################################################################
5483 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5484 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5485 if test "${ac_cv_c_const+set}" = set; then
5486 $as_echo_n "(cached) " >&6
5487 else
5488 cat >conftest.$ac_ext <<_ACEOF
5489 /* confdefs.h. */
5490 _ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494
5495 int
5496 main ()
5497 {
5498 /* FIXME: Include the comments suggested by Paul. */
5499 #ifndef __cplusplus
5500 /* Ultrix mips cc rejects this. */
5501 typedef int charset[2];
5502 const charset cs;
5503 /* SunOS 4.1.1 cc rejects this. */
5504 char const *const *pcpcc;
5505 char **ppc;
5506 /* NEC SVR4.0.2 mips cc rejects this. */
5507 struct point {int x, y;};
5508 static struct point const zero = {0,0};
5509 /* AIX XL C 1.02.0.0 rejects this.
5510 It does not let you subtract one const X* pointer from another in
5511 an arm of an if-expression whose if-part is not a constant
5512 expression */
5513 const char *g = "string";
5514 pcpcc = &g + (g ? g-g : 0);
5515 /* HPUX 7.0 cc rejects these. */
5516 ++pcpcc;
5517 ppc = (char**) pcpcc;
5518 pcpcc = (char const *const *) ppc;
5519 { /* SCO 3.2v4 cc rejects this. */
5520 char *t;
5521 char const *s = 0 ? (char *) 0 : (char const *) 0;
5522
5523 *t++ = 0;
5524 if (s) return 0;
5525 }
5526 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5527 int x[] = {25, 17};
5528 const int *foo = &x[0];
5529 ++foo;
5530 }
5531 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5532 typedef const int *iptr;
5533 iptr p = 0;
5534 ++p;
5535 }
5536 { /* AIX XL C 1.02.0.0 rejects this saying
5537 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5538 struct s { int j; const int *ap[3]; };
5539 struct s *b; b->j = 5;
5540 }
5541 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5542 const int foo = 10;
5543 if (!foo) return 0;
5544 }
5545 return !cs[0] && !zero.x;
5546 #endif
5547
5548 ;
5549 return 0;
5550 }
5551 _ACEOF
5552 rm -f conftest.$ac_objext
5553 if { (ac_try="$ac_compile"
5554 case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557 esac
5558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5559 $as_echo "$ac_try_echo") >&5
5560 (eval "$ac_compile") 2>conftest.er1
5561 ac_status=$?
5562 grep -v '^ *+' conftest.er1 >conftest.err
5563 rm -f conftest.er1
5564 cat conftest.err >&5
5565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } && {
5567 test -z "$ac_c_werror_flag" ||
5568 test ! -s conftest.err
5569 } && test -s conftest.$ac_objext; then
5570 ac_cv_c_const=yes
5571 else
5572 $as_echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5574
5575 ac_cv_c_const=no
5576 fi
5577
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 fi
5580 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5581 $as_echo "$ac_cv_c_const" >&6; }
5582 if test $ac_cv_c_const = no; then
5583
5584 cat >>confdefs.h <<\_ACEOF
5585 #define const /**/
5586 _ACEOF
5587
5588 fi
5589
5590 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5591 $as_echo_n "checking for inline... " >&6; }
5592 if test "${ac_cv_c_inline+set}" = set; then
5593 $as_echo_n "(cached) " >&6
5594 else
5595 ac_cv_c_inline=no
5596 for ac_kw in inline __inline__ __inline; do
5597 cat >conftest.$ac_ext <<_ACEOF
5598 /* confdefs.h. */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 #ifndef __cplusplus
5604 typedef int foo_t;
5605 static $ac_kw foo_t static_foo () {return 0; }
5606 $ac_kw foo_t foo () {return 0; }
5607 #endif
5608
5609 _ACEOF
5610 rm -f conftest.$ac_objext
5611 if { (ac_try="$ac_compile"
5612 case "(($ac_try" in
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5615 esac
5616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5617 $as_echo "$ac_try_echo") >&5
5618 (eval "$ac_compile") 2>conftest.er1
5619 ac_status=$?
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
5623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && {
5625 test -z "$ac_c_werror_flag" ||
5626 test ! -s conftest.err
5627 } && test -s conftest.$ac_objext; then
5628 ac_cv_c_inline=$ac_kw
5629 else
5630 $as_echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5632
5633
5634 fi
5635
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637 test "$ac_cv_c_inline" != no && break
5638 done
5639
5640 fi
5641 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5642 $as_echo "$ac_cv_c_inline" >&6; }
5643
5644
5645 case $ac_cv_c_inline in
5646 inline | yes) ;;
5647 *)
5648 case $ac_cv_c_inline in
5649 no) ac_val=;;
5650 *) ac_val=$ac_cv_c_inline;;
5651 esac
5652 cat >>confdefs.h <<_ACEOF
5653 #ifndef __cplusplus
5654 #define inline $ac_val
5655 #endif
5656 _ACEOF
5657 ;;
5658 esac
5659
5660 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5661 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
5662 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5663 $as_echo_n "(cached) " >&6
5664 else
5665 cat >conftest.$ac_ext <<_ACEOF
5666 /* confdefs.h. */
5667 _ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5671 $ac_includes_default
5672 int
5673 main ()
5674 {
5675 static struct stat ac_aggr;
5676 if (ac_aggr.st_rdev)
5677 return 0;
5678 ;
5679 return 0;
5680 }
5681 _ACEOF
5682 rm -f conftest.$ac_objext
5683 if { (ac_try="$ac_compile"
5684 case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687 esac
5688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5689 $as_echo "$ac_try_echo") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest.$ac_objext; then
5700 ac_cv_member_struct_stat_st_rdev=yes
5701 else
5702 $as_echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5704
5705 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h. */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 $ac_includes_default
5712 int
5713 main ()
5714 {
5715 static struct stat ac_aggr;
5716 if (sizeof ac_aggr.st_rdev)
5717 return 0;
5718 ;
5719 return 0;
5720 }
5721 _ACEOF
5722 rm -f conftest.$ac_objext
5723 if { (ac_try="$ac_compile"
5724 case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727 esac
5728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5729 $as_echo "$ac_try_echo") >&5
5730 (eval "$ac_compile") 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && {
5737 test -z "$ac_c_werror_flag" ||
5738 test ! -s conftest.err
5739 } && test -s conftest.$ac_objext; then
5740 ac_cv_member_struct_stat_st_rdev=yes
5741 else
5742 $as_echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5744
5745 ac_cv_member_struct_stat_st_rdev=no
5746 fi
5747
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 fi
5750
5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752 fi
5753 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5754 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5755 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5756
5757 cat >>confdefs.h <<_ACEOF
5758 #define HAVE_STRUCT_STAT_ST_RDEV 1
5759 _ACEOF
5760
5761
5762 fi
5763
5764 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5765 $as_echo_n "checking for off_t... " >&6; }
5766 if test "${ac_cv_type_off_t+set}" = set; then
5767 $as_echo_n "(cached) " >&6
5768 else
5769 ac_cv_type_off_t=no
5770 cat >conftest.$ac_ext <<_ACEOF
5771 /* confdefs.h. */
5772 _ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h. */
5776 $ac_includes_default
5777 int
5778 main ()
5779 {
5780 if (sizeof (off_t))
5781 return 0;
5782 ;
5783 return 0;
5784 }
5785 _ACEOF
5786 rm -f conftest.$ac_objext
5787 if { (ac_try="$ac_compile"
5788 case "(($ac_try" in
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5791 esac
5792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5793 $as_echo "$ac_try_echo") >&5
5794 (eval "$ac_compile") 2>conftest.er1
5795 ac_status=$?
5796 grep -v '^ *+' conftest.er1 >conftest.err
5797 rm -f conftest.er1
5798 cat conftest.err >&5
5799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } && {
5801 test -z "$ac_c_werror_flag" ||
5802 test ! -s conftest.err
5803 } && test -s conftest.$ac_objext; then
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 $ac_includes_default
5811 int
5812 main ()
5813 {
5814 if (sizeof ((off_t)))
5815 return 0;
5816 ;
5817 return 0;
5818 }
5819 _ACEOF
5820 rm -f conftest.$ac_objext
5821 if { (ac_try="$ac_compile"
5822 case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825 esac
5826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5827 $as_echo "$ac_try_echo") >&5
5828 (eval "$ac_compile") 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } && {
5835 test -z "$ac_c_werror_flag" ||
5836 test ! -s conftest.err
5837 } && test -s conftest.$ac_objext; then
5838 :
5839 else
5840 $as_echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5842
5843 ac_cv_type_off_t=yes
5844 fi
5845
5846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5847 else
5848 $as_echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5850
5851
5852 fi
5853
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 fi
5856 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5857 $as_echo "$ac_cv_type_off_t" >&6; }
5858 if test "x$ac_cv_type_off_t" = x""yes; then
5859 :
5860 else
5861
5862 cat >>confdefs.h <<_ACEOF
5863 #define off_t long int
5864 _ACEOF
5865
5866 fi
5867
5868 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5869 $as_echo_n "checking for pid_t... " >&6; }
5870 if test "${ac_cv_type_pid_t+set}" = set; then
5871 $as_echo_n "(cached) " >&6
5872 else
5873 ac_cv_type_pid_t=no
5874 cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h. */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5880 $ac_includes_default
5881 int
5882 main ()
5883 {
5884 if (sizeof (pid_t))
5885 return 0;
5886 ;
5887 return 0;
5888 }
5889 _ACEOF
5890 rm -f conftest.$ac_objext
5891 if { (ac_try="$ac_compile"
5892 case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895 esac
5896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5897 $as_echo "$ac_try_echo") >&5
5898 (eval "$ac_compile") 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
5903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && {
5905 test -z "$ac_c_werror_flag" ||
5906 test ! -s conftest.err
5907 } && test -s conftest.$ac_objext; then
5908 cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h. */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 $ac_includes_default
5915 int
5916 main ()
5917 {
5918 if (sizeof ((pid_t)))
5919 return 0;
5920 ;
5921 return 0;
5922 }
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (ac_try="$ac_compile"
5926 case "(($ac_try" in
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5929 esac
5930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5931 $as_echo "$ac_try_echo") >&5
5932 (eval "$ac_compile") 2>conftest.er1
5933 ac_status=$?
5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
5937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } && {
5939 test -z "$ac_c_werror_flag" ||
5940 test ! -s conftest.err
5941 } && test -s conftest.$ac_objext; then
5942 :
5943 else
5944 $as_echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5946
5947 ac_cv_type_pid_t=yes
5948 fi
5949
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 else
5952 $as_echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955
5956 fi
5957
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 fi
5960 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5961 $as_echo "$ac_cv_type_pid_t" >&6; }
5962 if test "x$ac_cv_type_pid_t" = x""yes; then
5963 :
5964 else
5965
5966 cat >>confdefs.h <<_ACEOF
5967 #define pid_t int
5968 _ACEOF
5969
5970 fi
5971
5972 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5973 $as_echo_n "checking return type of signal handlers... " >&6; }
5974 if test "${ac_cv_type_signal+set}" = set; then
5975 $as_echo_n "(cached) " >&6
5976 else
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 #include <sys/types.h>
5984 #include <signal.h>
5985
5986 int
5987 main ()
5988 {
5989 return *(signal (0, 0)) (0) == 1;
5990 ;
5991 return 0;
5992 }
5993 _ACEOF
5994 rm -f conftest.$ac_objext
5995 if { (ac_try="$ac_compile"
5996 case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999 esac
6000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6001 $as_echo "$ac_try_echo") >&5
6002 (eval "$ac_compile") 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } && {
6009 test -z "$ac_c_werror_flag" ||
6010 test ! -s conftest.err
6011 } && test -s conftest.$ac_objext; then
6012 ac_cv_type_signal=int
6013 else
6014 $as_echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 ac_cv_type_signal=void
6018 fi
6019
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021 fi
6022 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6023 $as_echo "$ac_cv_type_signal" >&6; }
6024
6025 cat >>confdefs.h <<_ACEOF
6026 #define RETSIGTYPE $ac_cv_type_signal
6027 _ACEOF
6028
6029
6030 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6031 $as_echo_n "checking for size_t... " >&6; }
6032 if test "${ac_cv_type_size_t+set}" = set; then
6033 $as_echo_n "(cached) " >&6
6034 else
6035 ac_cv_type_size_t=no
6036 cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h. */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 $ac_includes_default
6043 int
6044 main ()
6045 {
6046 if (sizeof (size_t))
6047 return 0;
6048 ;
6049 return 0;
6050 }
6051 _ACEOF
6052 rm -f conftest.$ac_objext
6053 if { (ac_try="$ac_compile"
6054 case "(($ac_try" in
6055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056 *) ac_try_echo=$ac_try;;
6057 esac
6058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6059 $as_echo "$ac_try_echo") >&5
6060 (eval "$ac_compile") 2>conftest.er1
6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } && {
6067 test -z "$ac_c_werror_flag" ||
6068 test ! -s conftest.err
6069 } && test -s conftest.$ac_objext; then
6070 cat >conftest.$ac_ext <<_ACEOF
6071 /* confdefs.h. */
6072 _ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h. */
6076 $ac_includes_default
6077 int
6078 main ()
6079 {
6080 if (sizeof ((size_t)))
6081 return 0;
6082 ;
6083 return 0;
6084 }
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (ac_try="$ac_compile"
6088 case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091 esac
6092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6093 $as_echo "$ac_try_echo") >&5
6094 (eval "$ac_compile") 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
6099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } && {
6101 test -z "$ac_c_werror_flag" ||
6102 test ! -s conftest.err
6103 } && test -s conftest.$ac_objext; then
6104 :
6105 else
6106 $as_echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6108
6109 ac_cv_type_size_t=yes
6110 fi
6111
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113 else
6114 $as_echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6116
6117
6118 fi
6119
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121 fi
6122 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6123 $as_echo "$ac_cv_type_size_t" >&6; }
6124 if test "x$ac_cv_type_size_t" = x""yes; then
6125 :
6126 else
6127
6128 cat >>confdefs.h <<_ACEOF
6129 #define size_t unsigned int
6130 _ACEOF
6131
6132 fi
6133
6134 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6135 $as_echo_n "checking for mode_t... " >&6; }
6136 if test "${ac_cv_type_mode_t+set}" = set; then
6137 $as_echo_n "(cached) " >&6
6138 else
6139 ac_cv_type_mode_t=no
6140 cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h. */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6146 $ac_includes_default
6147 int
6148 main ()
6149 {
6150 if (sizeof (mode_t))
6151 return 0;
6152 ;
6153 return 0;
6154 }
6155 _ACEOF
6156 rm -f conftest.$ac_objext
6157 if { (ac_try="$ac_compile"
6158 case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161 esac
6162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6163 $as_echo "$ac_try_echo") >&5
6164 (eval "$ac_compile") 2>conftest.er1
6165 ac_status=$?
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
6169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } && {
6171 test -z "$ac_c_werror_flag" ||
6172 test ! -s conftest.err
6173 } && test -s conftest.$ac_objext; then
6174 cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h. */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 $ac_includes_default
6181 int
6182 main ()
6183 {
6184 if (sizeof ((mode_t)))
6185 return 0;
6186 ;
6187 return 0;
6188 }
6189 _ACEOF
6190 rm -f conftest.$ac_objext
6191 if { (ac_try="$ac_compile"
6192 case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6195 esac
6196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6197 $as_echo "$ac_try_echo") >&5
6198 (eval "$ac_compile") 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } && {
6205 test -z "$ac_c_werror_flag" ||
6206 test ! -s conftest.err
6207 } && test -s conftest.$ac_objext; then
6208 :
6209 else
6210 $as_echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6212
6213 ac_cv_type_mode_t=yes
6214 fi
6215
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 else
6218 $as_echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6220
6221
6222 fi
6223
6224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225 fi
6226 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6227 $as_echo "$ac_cv_type_mode_t" >&6; }
6228 if test "x$ac_cv_type_mode_t" = x""yes; then
6229 :
6230 else
6231
6232 cat >>confdefs.h <<_ACEOF
6233 #define mode_t int
6234 _ACEOF
6235
6236 fi
6237
6238 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6239 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6240 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6241 $as_echo_n "(cached) " >&6
6242 else
6243 cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h. */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 $ac_includes_default
6250 int
6251 main ()
6252 {
6253 static struct stat ac_aggr;
6254 if (ac_aggr.st_rdev)
6255 return 0;
6256 ;
6257 return 0;
6258 }
6259 _ACEOF
6260 rm -f conftest.$ac_objext
6261 if { (ac_try="$ac_compile"
6262 case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6265 esac
6266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6267 $as_echo "$ac_try_echo") >&5
6268 (eval "$ac_compile") 2>conftest.er1
6269 ac_status=$?
6270 grep -v '^ *+' conftest.er1 >conftest.err
6271 rm -f conftest.er1
6272 cat conftest.err >&5
6273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } && {
6275 test -z "$ac_c_werror_flag" ||
6276 test ! -s conftest.err
6277 } && test -s conftest.$ac_objext; then
6278 ac_cv_member_struct_stat_st_rdev=yes
6279 else
6280 $as_echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6282
6283 cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h. */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289 $ac_includes_default
6290 int
6291 main ()
6292 {
6293 static struct stat ac_aggr;
6294 if (sizeof ac_aggr.st_rdev)
6295 return 0;
6296 ;
6297 return 0;
6298 }
6299 _ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (ac_try="$ac_compile"
6302 case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6305 esac
6306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6307 $as_echo "$ac_try_echo") >&5
6308 (eval "$ac_compile") 2>conftest.er1
6309 ac_status=$?
6310 grep -v '^ *+' conftest.er1 >conftest.err
6311 rm -f conftest.er1
6312 cat conftest.err >&5
6313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } && {
6315 test -z "$ac_c_werror_flag" ||
6316 test ! -s conftest.err
6317 } && test -s conftest.$ac_objext; then
6318 ac_cv_member_struct_stat_st_rdev=yes
6319 else
6320 $as_echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6322
6323 ac_cv_member_struct_stat_st_rdev=no
6324 fi
6325
6326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327 fi
6328
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 fi
6331 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6332 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6333 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6334
6335 cat >>confdefs.h <<_ACEOF
6336 #define HAVE_STRUCT_STAT_ST_RDEV 1
6337 _ACEOF
6338
6339
6340 fi
6341
6342 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6343 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6344 if test "${ac_cv_struct_tm+set}" = set; then
6345 $as_echo_n "(cached) " >&6
6346 else
6347 cat >conftest.$ac_ext <<_ACEOF
6348 /* confdefs.h. */
6349 _ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6353 #include <sys/types.h>
6354 #include <time.h>
6355
6356 int
6357 main ()
6358 {
6359 struct tm tm;
6360 int *p = &tm.tm_sec;
6361 return !p;
6362 ;
6363 return 0;
6364 }
6365 _ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (ac_try="$ac_compile"
6368 case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6371 esac
6372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6373 $as_echo "$ac_try_echo") >&5
6374 (eval "$ac_compile") 2>conftest.er1
6375 ac_status=$?
6376 grep -v '^ *+' conftest.er1 >conftest.err
6377 rm -f conftest.er1
6378 cat conftest.err >&5
6379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } && {
6381 test -z "$ac_c_werror_flag" ||
6382 test ! -s conftest.err
6383 } && test -s conftest.$ac_objext; then
6384 ac_cv_struct_tm=time.h
6385 else
6386 $as_echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6388
6389 ac_cv_struct_tm=sys/time.h
6390 fi
6391
6392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393 fi
6394 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6395 $as_echo "$ac_cv_struct_tm" >&6; }
6396 if test $ac_cv_struct_tm = sys/time.h; then
6397
6398 cat >>confdefs.h <<\_ACEOF
6399 #define TM_IN_SYS_TIME 1
6400 _ACEOF
6401
6402 fi
6403
6404
6405 ################################################################################
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6424 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6425 uname
6426 do
6427 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6428 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6429 $as_echo_n "checking for $ac_func... " >&6; }
6430 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6431 $as_echo_n "(cached) " >&6
6432 else
6433 cat >conftest.$ac_ext <<_ACEOF
6434 /* confdefs.h. */
6435 _ACEOF
6436 cat confdefs.h >>conftest.$ac_ext
6437 cat >>conftest.$ac_ext <<_ACEOF
6438 /* end confdefs.h. */
6439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6441 #define $ac_func innocuous_$ac_func
6442
6443 /* System header to define __stub macros and hopefully few prototypes,
6444 which can conflict with char $ac_func (); below.
6445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6446 <limits.h> exists even on freestanding compilers. */
6447
6448 #ifdef __STDC__
6449 # include <limits.h>
6450 #else
6451 # include <assert.h>
6452 #endif
6453
6454 #undef $ac_func
6455
6456 /* Override any GCC internal prototype to avoid an error.
6457 Use char because int might match the return type of a GCC
6458 builtin and then its argument prototype would still apply. */
6459 #ifdef __cplusplus
6460 extern "C"
6461 #endif
6462 char $ac_func ();
6463 /* The GNU C library defines this for functions which it implements
6464 to always fail with ENOSYS. Some functions are actually named
6465 something starting with __ and the normal name is an alias. */
6466 #if defined __stub_$ac_func || defined __stub___$ac_func
6467 choke me
6468 #endif
6469
6470 int
6471 main ()
6472 {
6473 return $ac_func ();
6474 ;
6475 return 0;
6476 }
6477 _ACEOF
6478 rm -f conftest.$ac_objext conftest$ac_exeext
6479 if { (ac_try="$ac_link"
6480 case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6483 esac
6484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6485 $as_echo "$ac_try_echo") >&5
6486 (eval "$ac_link") 2>conftest.er1
6487 ac_status=$?
6488 grep -v '^ *+' conftest.er1 >conftest.err
6489 rm -f conftest.er1
6490 cat conftest.err >&5
6491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } && {
6493 test -z "$ac_c_werror_flag" ||
6494 test ! -s conftest.err
6495 } && test -s conftest$ac_exeext && {
6496 test "$cross_compiling" = yes ||
6497 $as_test_x conftest$ac_exeext
6498 }; then
6499 eval "$as_ac_var=yes"
6500 else
6501 $as_echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6503
6504 eval "$as_ac_var=no"
6505 fi
6506
6507 rm -rf conftest.dSYM
6508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6509 conftest$ac_exeext conftest.$ac_ext
6510 fi
6511 ac_res=`eval 'as_val=${'$as_ac_var'}
6512 $as_echo "$as_val"'`
6513 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6514 $as_echo "$ac_res" >&6; }
6515 as_val=`eval 'as_val=${'$as_ac_var'}
6516 $as_echo "$as_val"'`
6517 if test "x$as_val" = x""yes; then
6518 cat >>confdefs.h <<_ACEOF
6519 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6520 _ACEOF
6521
6522 else
6523 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6524 $as_echo "$as_me: error: bailing out" >&2;}
6525 { (exit 1); exit 1; }; }
6526 fi
6527 done
6528
6529 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6530 # for constant arguments. Useless!
6531 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6532 $as_echo_n "checking for working alloca.h... " >&6; }
6533 if test "${ac_cv_working_alloca_h+set}" = set; then
6534 $as_echo_n "(cached) " >&6
6535 else
6536 cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h. */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 #include <alloca.h>
6543 int
6544 main ()
6545 {
6546 char *p = (char *) alloca (2 * sizeof (int));
6547 if (p) return 0;
6548 ;
6549 return 0;
6550 }
6551 _ACEOF
6552 rm -f conftest.$ac_objext conftest$ac_exeext
6553 if { (ac_try="$ac_link"
6554 case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557 esac
6558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6559 $as_echo "$ac_try_echo") >&5
6560 (eval "$ac_link") 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } && {
6567 test -z "$ac_c_werror_flag" ||
6568 test ! -s conftest.err
6569 } && test -s conftest$ac_exeext && {
6570 test "$cross_compiling" = yes ||
6571 $as_test_x conftest$ac_exeext
6572 }; then
6573 ac_cv_working_alloca_h=yes
6574 else
6575 $as_echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6577
6578 ac_cv_working_alloca_h=no
6579 fi
6580
6581 rm -rf conftest.dSYM
6582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6583 conftest$ac_exeext conftest.$ac_ext
6584 fi
6585 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6586 $as_echo "$ac_cv_working_alloca_h" >&6; }
6587 if test $ac_cv_working_alloca_h = yes; then
6588
6589 cat >>confdefs.h <<\_ACEOF
6590 #define HAVE_ALLOCA_H 1
6591 _ACEOF
6592
6593 fi
6594
6595 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6596 $as_echo_n "checking for alloca... " >&6; }
6597 if test "${ac_cv_func_alloca_works+set}" = set; then
6598 $as_echo_n "(cached) " >&6
6599 else
6600 cat >conftest.$ac_ext <<_ACEOF
6601 /* confdefs.h. */
6602 _ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 #ifdef __GNUC__
6607 # define alloca __builtin_alloca
6608 #else
6609 # ifdef _MSC_VER
6610 # include <malloc.h>
6611 # define alloca _alloca
6612 # else
6613 # ifdef HAVE_ALLOCA_H
6614 # include <alloca.h>
6615 # else
6616 # ifdef _AIX
6617 #pragma alloca
6618 # else
6619 # ifndef alloca /* predefined by HP cc +Olibcalls */
6620 char *alloca ();
6621 # endif
6622 # endif
6623 # endif
6624 # endif
6625 #endif
6626
6627 int
6628 main ()
6629 {
6630 char *p = (char *) alloca (1);
6631 if (p) return 0;
6632 ;
6633 return 0;
6634 }
6635 _ACEOF
6636 rm -f conftest.$ac_objext conftest$ac_exeext
6637 if { (ac_try="$ac_link"
6638 case "(($ac_try" in
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6641 esac
6642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6643 $as_echo "$ac_try_echo") >&5
6644 (eval "$ac_link") 2>conftest.er1
6645 ac_status=$?
6646 grep -v '^ *+' conftest.er1 >conftest.err
6647 rm -f conftest.er1
6648 cat conftest.err >&5
6649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } && {
6651 test -z "$ac_c_werror_flag" ||
6652 test ! -s conftest.err
6653 } && test -s conftest$ac_exeext && {
6654 test "$cross_compiling" = yes ||
6655 $as_test_x conftest$ac_exeext
6656 }; then
6657 ac_cv_func_alloca_works=yes
6658 else
6659 $as_echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6661
6662 ac_cv_func_alloca_works=no
6663 fi
6664
6665 rm -rf conftest.dSYM
6666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6667 conftest$ac_exeext conftest.$ac_ext
6668 fi
6669 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6670 $as_echo "$ac_cv_func_alloca_works" >&6; }
6671
6672 if test $ac_cv_func_alloca_works = yes; then
6673
6674 cat >>confdefs.h <<\_ACEOF
6675 #define HAVE_ALLOCA 1
6676 _ACEOF
6677
6678 else
6679 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6680 # that cause trouble. Some versions do not even contain alloca or
6681 # contain a buggy version. If you still want to use their alloca,
6682 # use ar to extract alloca.o from them instead of compiling alloca.c.
6683
6684 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6685
6686 cat >>confdefs.h <<\_ACEOF
6687 #define C_ALLOCA 1
6688 _ACEOF
6689
6690
6691 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6692 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6693 if test "${ac_cv_os_cray+set}" = set; then
6694 $as_echo_n "(cached) " >&6
6695 else
6696 cat >conftest.$ac_ext <<_ACEOF
6697 /* confdefs.h. */
6698 _ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 #if defined CRAY && ! defined CRAY2
6703 webecray
6704 #else
6705 wenotbecray
6706 #endif
6707
6708 _ACEOF
6709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6710 $EGREP "webecray" >/dev/null 2>&1; then
6711 ac_cv_os_cray=yes
6712 else
6713 ac_cv_os_cray=no
6714 fi
6715 rm -f conftest*
6716
6717 fi
6718 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6719 $as_echo "$ac_cv_os_cray" >&6; }
6720 if test $ac_cv_os_cray = yes; then
6721 for ac_func in _getb67 GETB67 getb67; do
6722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6723 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6724 $as_echo_n "checking for $ac_func... " >&6; }
6725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6726 $as_echo_n "(cached) " >&6
6727 else
6728 cat >conftest.$ac_ext <<_ACEOF
6729 /* confdefs.h. */
6730 _ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6736 #define $ac_func innocuous_$ac_func
6737
6738 /* System header to define __stub macros and hopefully few prototypes,
6739 which can conflict with char $ac_func (); below.
6740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6741 <limits.h> exists even on freestanding compilers. */
6742
6743 #ifdef __STDC__
6744 # include <limits.h>
6745 #else
6746 # include <assert.h>
6747 #endif
6748
6749 #undef $ac_func
6750
6751 /* Override any GCC internal prototype to avoid an error.
6752 Use char because int might match the return type of a GCC
6753 builtin and then its argument prototype would still apply. */
6754 #ifdef __cplusplus
6755 extern "C"
6756 #endif
6757 char $ac_func ();
6758 /* The GNU C library defines this for functions which it implements
6759 to always fail with ENOSYS. Some functions are actually named
6760 something starting with __ and the normal name is an alias. */
6761 #if defined __stub_$ac_func || defined __stub___$ac_func
6762 choke me
6763 #endif
6764
6765 int
6766 main ()
6767 {
6768 return $ac_func ();
6769 ;
6770 return 0;
6771 }
6772 _ACEOF
6773 rm -f conftest.$ac_objext conftest$ac_exeext
6774 if { (ac_try="$ac_link"
6775 case "(($ac_try" in
6776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6777 *) ac_try_echo=$ac_try;;
6778 esac
6779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6780 $as_echo "$ac_try_echo") >&5
6781 (eval "$ac_link") 2>conftest.er1
6782 ac_status=$?
6783 grep -v '^ *+' conftest.er1 >conftest.err
6784 rm -f conftest.er1
6785 cat conftest.err >&5
6786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } && {
6788 test -z "$ac_c_werror_flag" ||
6789 test ! -s conftest.err
6790 } && test -s conftest$ac_exeext && {
6791 test "$cross_compiling" = yes ||
6792 $as_test_x conftest$ac_exeext
6793 }; then
6794 eval "$as_ac_var=yes"
6795 else
6796 $as_echo "$as_me: failed program was:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6798
6799 eval "$as_ac_var=no"
6800 fi
6801
6802 rm -rf conftest.dSYM
6803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6804 conftest$ac_exeext conftest.$ac_ext
6805 fi
6806 ac_res=`eval 'as_val=${'$as_ac_var'}
6807 $as_echo "$as_val"'`
6808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6809 $as_echo "$ac_res" >&6; }
6810 as_val=`eval 'as_val=${'$as_ac_var'}
6811 $as_echo "$as_val"'`
6812 if test "x$as_val" = x""yes; then
6813
6814 cat >>confdefs.h <<_ACEOF
6815 #define CRAY_STACKSEG_END $ac_func
6816 _ACEOF
6817
6818 break
6819 fi
6820
6821 done
6822 fi
6823
6824 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6825 $as_echo_n "checking stack direction for C alloca... " >&6; }
6826 if test "${ac_cv_c_stack_direction+set}" = set; then
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if test "$cross_compiling" = yes; then
6830 ac_cv_c_stack_direction=0
6831 else
6832 cat >conftest.$ac_ext <<_ACEOF
6833 /* confdefs.h. */
6834 _ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h. */
6838 $ac_includes_default
6839 int
6840 find_stack_direction ()
6841 {
6842 static char *addr = 0;
6843 auto char dummy;
6844 if (addr == 0)
6845 {
6846 addr = &dummy;
6847 return find_stack_direction ();
6848 }
6849 else
6850 return (&dummy > addr) ? 1 : -1;
6851 }
6852
6853 int
6854 main ()
6855 {
6856 return find_stack_direction () < 0;
6857 }
6858 _ACEOF
6859 rm -f conftest$ac_exeext
6860 if { (ac_try="$ac_link"
6861 case "(($ac_try" in
6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6864 esac
6865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6866 $as_echo "$ac_try_echo") >&5
6867 (eval "$ac_link") 2>&5
6868 ac_status=$?
6869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6871 { (case "(($ac_try" in
6872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873 *) ac_try_echo=$ac_try;;
6874 esac
6875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6876 $as_echo "$ac_try_echo") >&5
6877 (eval "$ac_try") 2>&5
6878 ac_status=$?
6879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6881 ac_cv_c_stack_direction=1
6882 else
6883 $as_echo "$as_me: program exited with status $ac_status" >&5
6884 $as_echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6886
6887 ( exit $ac_status )
6888 ac_cv_c_stack_direction=-1
6889 fi
6890 rm -rf conftest.dSYM
6891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6892 fi
6893
6894
6895 fi
6896 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6897 $as_echo "$ac_cv_c_stack_direction" >&6; }
6898
6899 cat >>confdefs.h <<_ACEOF
6900 #define STACK_DIRECTION $ac_cv_c_stack_direction
6901 _ACEOF
6902
6903
6904 fi
6905
6906 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6907 $as_echo_n "checking whether closedir returns void... " >&6; }
6908 if test "${ac_cv_func_closedir_void+set}" = set; then
6909 $as_echo_n "(cached) " >&6
6910 else
6911 if test "$cross_compiling" = yes; then
6912 ac_cv_func_closedir_void=yes
6913 else
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 $ac_includes_default
6921 #include <$ac_header_dirent>
6922 #ifndef __cplusplus
6923 int closedir ();
6924 #endif
6925
6926 int
6927 main ()
6928 {
6929 return closedir (opendir (".")) != 0;
6930 ;
6931 return 0;
6932 }
6933 _ACEOF
6934 rm -f conftest$ac_exeext
6935 if { (ac_try="$ac_link"
6936 case "(($ac_try" in
6937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6939 esac
6940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6941 $as_echo "$ac_try_echo") >&5
6942 (eval "$ac_link") 2>&5
6943 ac_status=$?
6944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6946 { (case "(($ac_try" in
6947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6949 esac
6950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6951 $as_echo "$ac_try_echo") >&5
6952 (eval "$ac_try") 2>&5
6953 ac_status=$?
6954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
6956 ac_cv_func_closedir_void=no
6957 else
6958 $as_echo "$as_me: program exited with status $ac_status" >&5
6959 $as_echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6961
6962 ( exit $ac_status )
6963 ac_cv_func_closedir_void=yes
6964 fi
6965 rm -rf conftest.dSYM
6966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6967 fi
6968
6969
6970 fi
6971 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6972 $as_echo "$ac_cv_func_closedir_void" >&6; }
6973 if test $ac_cv_func_closedir_void = yes; then
6974
6975 cat >>confdefs.h <<\_ACEOF
6976 #define CLOSEDIR_VOID 1
6977 _ACEOF
6978
6979 fi
6980
6981
6982 for ac_header in vfork.h
6983 do
6984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6986 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6987 $as_echo_n "checking for $ac_header... " >&6; }
6988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6989 $as_echo_n "(cached) " >&6
6990 fi
6991 ac_res=`eval 'as_val=${'$as_ac_Header'}
6992 $as_echo "$as_val"'`
6993 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6994 $as_echo "$ac_res" >&6; }
6995 else
6996 # Is the header compilable?
6997 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6998 $as_echo_n "checking $ac_header usability... " >&6; }
6999 cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h. */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7005 $ac_includes_default
7006 #include <$ac_header>
7007 _ACEOF
7008 rm -f conftest.$ac_objext
7009 if { (ac_try="$ac_compile"
7010 case "(($ac_try" in
7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7013 esac
7014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7015 $as_echo "$ac_try_echo") >&5
7016 (eval "$ac_compile") 2>conftest.er1
7017 ac_status=$?
7018 grep -v '^ *+' conftest.er1 >conftest.err
7019 rm -f conftest.er1
7020 cat conftest.err >&5
7021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } && {
7023 test -z "$ac_c_werror_flag" ||
7024 test ! -s conftest.err
7025 } && test -s conftest.$ac_objext; then
7026 ac_header_compiler=yes
7027 else
7028 $as_echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7030
7031 ac_header_compiler=no
7032 fi
7033
7034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7036 $as_echo "$ac_header_compiler" >&6; }
7037
7038 # Is the header present?
7039 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7040 $as_echo_n "checking $ac_header presence... " >&6; }
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h. */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 #include <$ac_header>
7048 _ACEOF
7049 if { (ac_try="$ac_cpp conftest.$ac_ext"
7050 case "(($ac_try" in
7051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052 *) ac_try_echo=$ac_try;;
7053 esac
7054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7055 $as_echo "$ac_try_echo") >&5
7056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } >/dev/null && {
7063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7064 test ! -s conftest.err
7065 }; then
7066 ac_header_preproc=yes
7067 else
7068 $as_echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7070
7071 ac_header_preproc=no
7072 fi
7073
7074 rm -f conftest.err conftest.$ac_ext
7075 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7076 $as_echo "$ac_header_preproc" >&6; }
7077
7078 # So? What about this header?
7079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7080 yes:no: )
7081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7082 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7084 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7085 ac_header_preproc=yes
7086 ;;
7087 no:yes:* )
7088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7089 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7091 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7093 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7095 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7097 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7099 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7100
7101 ;;
7102 esac
7103 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7104 $as_echo_n "checking for $ac_header... " >&6; }
7105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7106 $as_echo_n "(cached) " >&6
7107 else
7108 eval "$as_ac_Header=\$ac_header_preproc"
7109 fi
7110 ac_res=`eval 'as_val=${'$as_ac_Header'}
7111 $as_echo "$as_val"'`
7112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7113 $as_echo "$ac_res" >&6; }
7114
7115 fi
7116 as_val=`eval 'as_val=${'$as_ac_Header'}
7117 $as_echo "$as_val"'`
7118 if test "x$as_val" = x""yes; then
7119 cat >>confdefs.h <<_ACEOF
7120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7121 _ACEOF
7122
7123 fi
7124
7125 done
7126
7127
7128
7129 for ac_func in fork vfork
7130 do
7131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7132 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7133 $as_echo_n "checking for $ac_func... " >&6; }
7134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7135 $as_echo_n "(cached) " >&6
7136 else
7137 cat >conftest.$ac_ext <<_ACEOF
7138 /* confdefs.h. */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7145 #define $ac_func innocuous_$ac_func
7146
7147 /* System header to define __stub macros and hopefully few prototypes,
7148 which can conflict with char $ac_func (); below.
7149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7150 <limits.h> exists even on freestanding compilers. */
7151
7152 #ifdef __STDC__
7153 # include <limits.h>
7154 #else
7155 # include <assert.h>
7156 #endif
7157
7158 #undef $ac_func
7159
7160 /* Override any GCC internal prototype to avoid an error.
7161 Use char because int might match the return type of a GCC
7162 builtin and then its argument prototype would still apply. */
7163 #ifdef __cplusplus
7164 extern "C"
7165 #endif
7166 char $ac_func ();
7167 /* The GNU C library defines this for functions which it implements
7168 to always fail with ENOSYS. Some functions are actually named
7169 something starting with __ and the normal name is an alias. */
7170 #if defined __stub_$ac_func || defined __stub___$ac_func
7171 choke me
7172 #endif
7173
7174 int
7175 main ()
7176 {
7177 return $ac_func ();
7178 ;
7179 return 0;
7180 }
7181 _ACEOF
7182 rm -f conftest.$ac_objext conftest$ac_exeext
7183 if { (ac_try="$ac_link"
7184 case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187 esac
7188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7189 $as_echo "$ac_try_echo") >&5
7190 (eval "$ac_link") 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } && {
7197 test -z "$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 } && test -s conftest$ac_exeext && {
7200 test "$cross_compiling" = yes ||
7201 $as_test_x conftest$ac_exeext
7202 }; then
7203 eval "$as_ac_var=yes"
7204 else
7205 $as_echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7207
7208 eval "$as_ac_var=no"
7209 fi
7210
7211 rm -rf conftest.dSYM
7212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7213 conftest$ac_exeext conftest.$ac_ext
7214 fi
7215 ac_res=`eval 'as_val=${'$as_ac_var'}
7216 $as_echo "$as_val"'`
7217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7218 $as_echo "$ac_res" >&6; }
7219 as_val=`eval 'as_val=${'$as_ac_var'}
7220 $as_echo "$as_val"'`
7221 if test "x$as_val" = x""yes; then
7222 cat >>confdefs.h <<_ACEOF
7223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7224 _ACEOF
7225
7226 fi
7227 done
7228
7229 if test "x$ac_cv_func_fork" = xyes; then
7230 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7231 $as_echo_n "checking for working fork... " >&6; }
7232 if test "${ac_cv_func_fork_works+set}" = set; then
7233 $as_echo_n "(cached) " >&6
7234 else
7235 if test "$cross_compiling" = yes; then
7236 ac_cv_func_fork_works=cross
7237 else
7238 cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h. */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 $ac_includes_default
7245 int
7246 main ()
7247 {
7248
7249 /* By Ruediger Kuhlmann. */
7250 return fork () < 0;
7251
7252 ;
7253 return 0;
7254 }
7255 _ACEOF
7256 rm -f conftest$ac_exeext
7257 if { (ac_try="$ac_link"
7258 case "(($ac_try" in
7259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260 *) ac_try_echo=$ac_try;;
7261 esac
7262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7263 $as_echo "$ac_try_echo") >&5
7264 (eval "$ac_link") 2>&5
7265 ac_status=$?
7266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7268 { (case "(($ac_try" in
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7271 esac
7272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7273 $as_echo "$ac_try_echo") >&5
7274 (eval "$ac_try") 2>&5
7275 ac_status=$?
7276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; }; then
7278 ac_cv_func_fork_works=yes
7279 else
7280 $as_echo "$as_me: program exited with status $ac_status" >&5
7281 $as_echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7283
7284 ( exit $ac_status )
7285 ac_cv_func_fork_works=no
7286 fi
7287 rm -rf conftest.dSYM
7288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7289 fi
7290
7291
7292 fi
7293 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7294 $as_echo "$ac_cv_func_fork_works" >&6; }
7295
7296 else
7297 ac_cv_func_fork_works=$ac_cv_func_fork
7298 fi
7299 if test "x$ac_cv_func_fork_works" = xcross; then
7300 case $host in
7301 *-*-amigaos* | *-*-msdosdjgpp*)
7302 # Override, as these systems have only a dummy fork() stub
7303 ac_cv_func_fork_works=no
7304 ;;
7305 *)
7306 ac_cv_func_fork_works=yes
7307 ;;
7308 esac
7309 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7310 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7311 fi
7312 ac_cv_func_vfork_works=$ac_cv_func_vfork
7313 if test "x$ac_cv_func_vfork" = xyes; then
7314 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7315 $as_echo_n "checking for working vfork... " >&6; }
7316 if test "${ac_cv_func_vfork_works+set}" = set; then
7317 $as_echo_n "(cached) " >&6
7318 else
7319 if test "$cross_compiling" = yes; then
7320 ac_cv_func_vfork_works=cross
7321 else
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h. */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 /* Thanks to Paul Eggert for this test. */
7329 $ac_includes_default
7330 #include <sys/wait.h>
7331 #ifdef HAVE_VFORK_H
7332 # include <vfork.h>
7333 #endif
7334 /* On some sparc systems, changes by the child to local and incoming
7335 argument registers are propagated back to the parent. The compiler
7336 is told about this with #include <vfork.h>, but some compilers
7337 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7338 static variable whose address is put into a register that is
7339 clobbered by the vfork. */
7340 static void
7341 #ifdef __cplusplus
7342 sparc_address_test (int arg)
7343 # else
7344 sparc_address_test (arg) int arg;
7345 #endif
7346 {
7347 static pid_t child;
7348 if (!child) {
7349 child = vfork ();
7350 if (child < 0) {
7351 perror ("vfork");
7352 _exit(2);
7353 }
7354 if (!child) {
7355 arg = getpid();
7356 write(-1, "", 0);
7357 _exit (arg);
7358 }
7359 }
7360 }
7361
7362 int
7363 main ()
7364 {
7365 pid_t parent = getpid ();
7366 pid_t child;
7367
7368 sparc_address_test (0);
7369
7370 child = vfork ();
7371
7372 if (child == 0) {
7373 /* Here is another test for sparc vfork register problems. This
7374 test uses lots of local variables, at least as many local
7375 variables as main has allocated so far including compiler
7376 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7377 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7378 reuse the register of parent for one of the local variables,
7379 since it will think that parent can't possibly be used any more
7380 in this routine. Assigning to the local variable will thus
7381 munge parent in the parent process. */
7382 pid_t
7383 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7384 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7385 /* Convince the compiler that p..p7 are live; otherwise, it might
7386 use the same hardware register for all 8 local variables. */
7387 if (p != p1 || p != p2 || p != p3 || p != p4
7388 || p != p5 || p != p6 || p != p7)
7389 _exit(1);
7390
7391 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7392 from child file descriptors. If the child closes a descriptor
7393 before it execs or exits, this munges the parent's descriptor
7394 as well. Test for this by closing stdout in the child. */
7395 _exit(close(fileno(stdout)) != 0);
7396 } else {
7397 int status;
7398 struct stat st;
7399
7400 while (wait(&status) != child)
7401 ;
7402 return (
7403 /* Was there some problem with vforking? */
7404 child < 0
7405
7406 /* Did the child fail? (This shouldn't happen.) */
7407 || status
7408
7409 /* Did the vfork/compiler bug occur? */
7410 || parent != getpid()
7411
7412 /* Did the file descriptor bug occur? */
7413 || fstat(fileno(stdout), &st) != 0
7414 );
7415 }
7416 }
7417 _ACEOF
7418 rm -f conftest$ac_exeext
7419 if { (ac_try="$ac_link"
7420 case "(($ac_try" in
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7423 esac
7424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7425 $as_echo "$ac_try_echo") >&5
7426 (eval "$ac_link") 2>&5
7427 ac_status=$?
7428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7430 { (case "(($ac_try" in
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7433 esac
7434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7435 $as_echo "$ac_try_echo") >&5
7436 (eval "$ac_try") 2>&5
7437 ac_status=$?
7438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; }; then
7440 ac_cv_func_vfork_works=yes
7441 else
7442 $as_echo "$as_me: program exited with status $ac_status" >&5
7443 $as_echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7445
7446 ( exit $ac_status )
7447 ac_cv_func_vfork_works=no
7448 fi
7449 rm -rf conftest.dSYM
7450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7451 fi
7452
7453
7454 fi
7455 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7456 $as_echo "$ac_cv_func_vfork_works" >&6; }
7457
7458 fi;
7459 if test "x$ac_cv_func_fork_works" = xcross; then
7460 ac_cv_func_vfork_works=$ac_cv_func_vfork
7461 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7462 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7463 fi
7464
7465 if test "x$ac_cv_func_vfork_works" = xyes; then
7466
7467 cat >>confdefs.h <<\_ACEOF
7468 #define HAVE_WORKING_VFORK 1
7469 _ACEOF
7470
7471 else
7472
7473 cat >>confdefs.h <<\_ACEOF
7474 #define vfork fork
7475 _ACEOF
7476
7477 fi
7478 if test "x$ac_cv_func_fork_works" = xyes; then
7479
7480 cat >>confdefs.h <<\_ACEOF
7481 #define HAVE_WORKING_FORK 1
7482 _ACEOF
7483
7484 fi
7485
7486 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7487 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
7488 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7489 $as_echo_n "(cached) " >&6
7490 else
7491 rm -f conftest.sym conftest.file
7492 echo >conftest.file
7493 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7494 if test "$cross_compiling" = yes; then
7495 ac_cv_func_lstat_dereferences_slashed_symlink=no
7496 else
7497 cat >conftest.$ac_ext <<_ACEOF
7498 /* confdefs.h. */
7499 _ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h. */
7503 $ac_includes_default
7504 int
7505 main ()
7506 {
7507 struct stat sbuf;
7508 /* Linux will dereference the symlink and fail.
7509 That is better in the sense that it means we will not
7510 have to compile and use the lstat wrapper. */
7511 return lstat ("conftest.sym/", &sbuf) == 0;
7512 ;
7513 return 0;
7514 }
7515 _ACEOF
7516 rm -f conftest$ac_exeext
7517 if { (ac_try="$ac_link"
7518 case "(($ac_try" in
7519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7520 *) ac_try_echo=$ac_try;;
7521 esac
7522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7523 $as_echo "$ac_try_echo") >&5
7524 (eval "$ac_link") 2>&5
7525 ac_status=$?
7526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7528 { (case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7531 esac
7532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7533 $as_echo "$ac_try_echo") >&5
7534 (eval "$ac_try") 2>&5
7535 ac_status=$?
7536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; }; then
7538 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7539 else
7540 $as_echo "$as_me: program exited with status $ac_status" >&5
7541 $as_echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7543
7544 ( exit $ac_status )
7545 ac_cv_func_lstat_dereferences_slashed_symlink=no
7546 fi
7547 rm -rf conftest.dSYM
7548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7549 fi
7550
7551
7552 else
7553 # If the `ln -s' command failed, then we probably don't even
7554 # have an lstat function.
7555 ac_cv_func_lstat_dereferences_slashed_symlink=no
7556 fi
7557 rm -f conftest.sym conftest.file
7558
7559 fi
7560 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7561 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7562
7563 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7564
7565 cat >>confdefs.h <<_ACEOF
7566 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7567 _ACEOF
7568
7569
7570 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7571 case " $LIBOBJS " in
7572 *" lstat.$ac_objext "* ) ;;
7573 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7574 ;;
7575 esac
7576
7577 fi
7578
7579 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7580 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7581 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7582 $as_echo_n "(cached) " >&6
7583 else
7584 if test "$cross_compiling" = yes; then
7585 ac_cv_func_lstat_empty_string_bug=yes
7586 else
7587 cat >conftest.$ac_ext <<_ACEOF
7588 /* confdefs.h. */
7589 _ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7593 $ac_includes_default
7594 int
7595 main ()
7596 {
7597 struct stat sbuf;
7598 return lstat ("", &sbuf) == 0;
7599 ;
7600 return 0;
7601 }
7602 _ACEOF
7603 rm -f conftest$ac_exeext
7604 if { (ac_try="$ac_link"
7605 case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608 esac
7609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7610 $as_echo "$ac_try_echo") >&5
7611 (eval "$ac_link") 2>&5
7612 ac_status=$?
7613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7615 { (case "(($ac_try" in
7616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617 *) ac_try_echo=$ac_try;;
7618 esac
7619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7620 $as_echo "$ac_try_echo") >&5
7621 (eval "$ac_try") 2>&5
7622 ac_status=$?
7623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 ac_cv_func_lstat_empty_string_bug=no
7626 else
7627 $as_echo "$as_me: program exited with status $ac_status" >&5
7628 $as_echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7630
7631 ( exit $ac_status )
7632 ac_cv_func_lstat_empty_string_bug=yes
7633 fi
7634 rm -rf conftest.dSYM
7635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7636 fi
7637
7638
7639 fi
7640 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7641 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7642 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7643 case " $LIBOBJS " in
7644 *" lstat.$ac_objext "* ) ;;
7645 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7646 ;;
7647 esac
7648
7649
7650 cat >>confdefs.h <<_ACEOF
7651 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7652 _ACEOF
7653
7654 fi
7655
7656
7657 for ac_header in stdlib.h
7658 do
7659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7661 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7662 $as_echo_n "checking for $ac_header... " >&6; }
7663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7664 $as_echo_n "(cached) " >&6
7665 fi
7666 ac_res=`eval 'as_val=${'$as_ac_Header'}
7667 $as_echo "$as_val"'`
7668 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7669 $as_echo "$ac_res" >&6; }
7670 else
7671 # Is the header compilable?
7672 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7673 $as_echo_n "checking $ac_header usability... " >&6; }
7674 cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h. */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7680 $ac_includes_default
7681 #include <$ac_header>
7682 _ACEOF
7683 rm -f conftest.$ac_objext
7684 if { (ac_try="$ac_compile"
7685 case "(($ac_try" in
7686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7687 *) ac_try_echo=$ac_try;;
7688 esac
7689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7690 $as_echo "$ac_try_echo") >&5
7691 (eval "$ac_compile") 2>conftest.er1
7692 ac_status=$?
7693 grep -v '^ *+' conftest.er1 >conftest.err
7694 rm -f conftest.er1
7695 cat conftest.err >&5
7696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } && {
7698 test -z "$ac_c_werror_flag" ||
7699 test ! -s conftest.err
7700 } && test -s conftest.$ac_objext; then
7701 ac_header_compiler=yes
7702 else
7703 $as_echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7705
7706 ac_header_compiler=no
7707 fi
7708
7709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7711 $as_echo "$ac_header_compiler" >&6; }
7712
7713 # Is the header present?
7714 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7715 $as_echo_n "checking $ac_header presence... " >&6; }
7716 cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h. */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7722 #include <$ac_header>
7723 _ACEOF
7724 if { (ac_try="$ac_cpp conftest.$ac_ext"
7725 case "(($ac_try" in
7726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7727 *) ac_try_echo=$ac_try;;
7728 esac
7729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7730 $as_echo "$ac_try_echo") >&5
7731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7732 ac_status=$?
7733 grep -v '^ *+' conftest.er1 >conftest.err
7734 rm -f conftest.er1
7735 cat conftest.err >&5
7736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } >/dev/null && {
7738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7739 test ! -s conftest.err
7740 }; then
7741 ac_header_preproc=yes
7742 else
7743 $as_echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7745
7746 ac_header_preproc=no
7747 fi
7748
7749 rm -f conftest.err conftest.$ac_ext
7750 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7751 $as_echo "$ac_header_preproc" >&6; }
7752
7753 # So? What about this header?
7754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7755 yes:no: )
7756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7757 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7759 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7760 ac_header_preproc=yes
7761 ;;
7762 no:yes:* )
7763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7764 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7766 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7768 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7770 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7772 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7774 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7775
7776 ;;
7777 esac
7778 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7779 $as_echo_n "checking for $ac_header... " >&6; }
7780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7781 $as_echo_n "(cached) " >&6
7782 else
7783 eval "$as_ac_Header=\$ac_header_preproc"
7784 fi
7785 ac_res=`eval 'as_val=${'$as_ac_Header'}
7786 $as_echo "$as_val"'`
7787 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7788 $as_echo "$ac_res" >&6; }
7789
7790 fi
7791 as_val=`eval 'as_val=${'$as_ac_Header'}
7792 $as_echo "$as_val"'`
7793 if test "x$as_val" = x""yes; then
7794 cat >>confdefs.h <<_ACEOF
7795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7796 _ACEOF
7797
7798 fi
7799
7800 done
7801
7802 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7803 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7804 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7805 $as_echo_n "(cached) " >&6
7806 else
7807 if test "$cross_compiling" = yes; then
7808 ac_cv_func_malloc_0_nonnull=no
7809 else
7810 cat >conftest.$ac_ext <<_ACEOF
7811 /* confdefs.h. */
7812 _ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h. */
7816 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7817 # include <stdlib.h>
7818 #else
7819 char *malloc ();
7820 #endif
7821
7822 int
7823 main ()
7824 {
7825 return ! malloc (0);
7826 ;
7827 return 0;
7828 }
7829 _ACEOF
7830 rm -f conftest$ac_exeext
7831 if { (ac_try="$ac_link"
7832 case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835 esac
7836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7837 $as_echo "$ac_try_echo") >&5
7838 (eval "$ac_link") 2>&5
7839 ac_status=$?
7840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7842 { (case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845 esac
7846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7847 $as_echo "$ac_try_echo") >&5
7848 (eval "$ac_try") 2>&5
7849 ac_status=$?
7850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 ac_cv_func_malloc_0_nonnull=yes
7853 else
7854 $as_echo "$as_me: program exited with status $ac_status" >&5
7855 $as_echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7857
7858 ( exit $ac_status )
7859 ac_cv_func_malloc_0_nonnull=no
7860 fi
7861 rm -rf conftest.dSYM
7862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7863 fi
7864
7865
7866 fi
7867 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7868 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7869 if test $ac_cv_func_malloc_0_nonnull = yes; then
7870
7871 cat >>confdefs.h <<\_ACEOF
7872 #define HAVE_MALLOC 1
7873 _ACEOF
7874
7875 else
7876 cat >>confdefs.h <<\_ACEOF
7877 #define HAVE_MALLOC 0
7878 _ACEOF
7879
7880 case " $LIBOBJS " in
7881 *" malloc.$ac_objext "* ) ;;
7882 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7883 ;;
7884 esac
7885
7886
7887 cat >>confdefs.h <<\_ACEOF
7888 #define malloc rpl_malloc
7889 _ACEOF
7890
7891 fi
7892
7893
7894
7895 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7896 $as_echo_n "checking for working memcmp... " >&6; }
7897 if test "${ac_cv_func_memcmp_working+set}" = set; then
7898 $as_echo_n "(cached) " >&6
7899 else
7900 if test "$cross_compiling" = yes; then
7901 ac_cv_func_memcmp_working=no
7902 else
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h. */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7909 $ac_includes_default
7910 int
7911 main ()
7912 {
7913
7914 /* Some versions of memcmp are not 8-bit clean. */
7915 char c0 = '\100', c1 = '\200', c2 = '\201';
7916 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7917 return 1;
7918
7919 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7920 or more and with at least one buffer not starting on a 4-byte boundary.
7921 William Lewis provided this test program. */
7922 {
7923 char foo[21];
7924 char bar[21];
7925 int i;
7926 for (i = 0; i < 4; i++)
7927 {
7928 char *a = foo + i;
7929 char *b = bar + i;
7930 strcpy (a, "--------01111111");
7931 strcpy (b, "--------10000000");
7932 if (memcmp (a, b, 16) >= 0)
7933 return 1;
7934 }
7935 return 0;
7936 }
7937
7938 ;
7939 return 0;
7940 }
7941 _ACEOF
7942 rm -f conftest$ac_exeext
7943 if { (ac_try="$ac_link"
7944 case "(($ac_try" in
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7947 esac
7948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7949 $as_echo "$ac_try_echo") >&5
7950 (eval "$ac_link") 2>&5
7951 ac_status=$?
7952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7954 { (case "(($ac_try" in
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7957 esac
7958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7959 $as_echo "$ac_try_echo") >&5
7960 (eval "$ac_try") 2>&5
7961 ac_status=$?
7962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7964 ac_cv_func_memcmp_working=yes
7965 else
7966 $as_echo "$as_me: program exited with status $ac_status" >&5
7967 $as_echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7969
7970 ( exit $ac_status )
7971 ac_cv_func_memcmp_working=no
7972 fi
7973 rm -rf conftest.dSYM
7974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7975 fi
7976
7977
7978 fi
7979 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7980 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7981 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7982 *" memcmp.$ac_objext "* ) ;;
7983 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7984 ;;
7985 esac
7986
7987
7988
7989
7990 for ac_header in stdlib.h unistd.h
7991 do
7992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7994 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7995 $as_echo_n "checking for $ac_header... " >&6; }
7996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7997 $as_echo_n "(cached) " >&6
7998 fi
7999 ac_res=`eval 'as_val=${'$as_ac_Header'}
8000 $as_echo "$as_val"'`
8001 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8002 $as_echo "$ac_res" >&6; }
8003 else
8004 # Is the header compilable?
8005 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8006 $as_echo_n "checking $ac_header usability... " >&6; }
8007 cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h. */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 $ac_includes_default
8014 #include <$ac_header>
8015 _ACEOF
8016 rm -f conftest.$ac_objext
8017 if { (ac_try="$ac_compile"
8018 case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8021 esac
8022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8023 $as_echo "$ac_try_echo") >&5
8024 (eval "$ac_compile") 2>conftest.er1
8025 ac_status=$?
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
8029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } && {
8031 test -z "$ac_c_werror_flag" ||
8032 test ! -s conftest.err
8033 } && test -s conftest.$ac_objext; then
8034 ac_header_compiler=yes
8035 else
8036 $as_echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8038
8039 ac_header_compiler=no
8040 fi
8041
8042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8043 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8044 $as_echo "$ac_header_compiler" >&6; }
8045
8046 # Is the header present?
8047 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8048 $as_echo_n "checking $ac_header presence... " >&6; }
8049 cat >conftest.$ac_ext <<_ACEOF
8050 /* confdefs.h. */
8051 _ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h. */
8055 #include <$ac_header>
8056 _ACEOF
8057 if { (ac_try="$ac_cpp conftest.$ac_ext"
8058 case "(($ac_try" in
8059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060 *) ac_try_echo=$ac_try;;
8061 esac
8062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8063 $as_echo "$ac_try_echo") >&5
8064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8065 ac_status=$?
8066 grep -v '^ *+' conftest.er1 >conftest.err
8067 rm -f conftest.er1
8068 cat conftest.err >&5
8069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } >/dev/null && {
8071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8072 test ! -s conftest.err
8073 }; then
8074 ac_header_preproc=yes
8075 else
8076 $as_echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8078
8079 ac_header_preproc=no
8080 fi
8081
8082 rm -f conftest.err conftest.$ac_ext
8083 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8084 $as_echo "$ac_header_preproc" >&6; }
8085
8086 # So? What about this header?
8087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8088 yes:no: )
8089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8090 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8092 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8093 ac_header_preproc=yes
8094 ;;
8095 no:yes:* )
8096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8097 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8099 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8101 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8103 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8105 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8107 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8108
8109 ;;
8110 esac
8111 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8112 $as_echo_n "checking for $ac_header... " >&6; }
8113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8114 $as_echo_n "(cached) " >&6
8115 else
8116 eval "$as_ac_Header=\$ac_header_preproc"
8117 fi
8118 ac_res=`eval 'as_val=${'$as_ac_Header'}
8119 $as_echo "$as_val"'`
8120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8121 $as_echo "$ac_res" >&6; }
8122
8123 fi
8124 as_val=`eval 'as_val=${'$as_ac_Header'}
8125 $as_echo "$as_val"'`
8126 if test "x$as_val" = x""yes; then
8127 cat >>confdefs.h <<_ACEOF
8128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8129 _ACEOF
8130
8131 fi
8132
8133 done
8134
8135
8136 for ac_func in getpagesize
8137 do
8138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8139 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8140 $as_echo_n "checking for $ac_func... " >&6; }
8141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8142 $as_echo_n "(cached) " >&6
8143 else
8144 cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h. */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8152 #define $ac_func innocuous_$ac_func
8153
8154 /* System header to define __stub macros and hopefully few prototypes,
8155 which can conflict with char $ac_func (); below.
8156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8157 <limits.h> exists even on freestanding compilers. */
8158
8159 #ifdef __STDC__
8160 # include <limits.h>
8161 #else
8162 # include <assert.h>
8163 #endif
8164
8165 #undef $ac_func
8166
8167 /* Override any GCC internal prototype to avoid an error.
8168 Use char because int might match the return type of a GCC
8169 builtin and then its argument prototype would still apply. */
8170 #ifdef __cplusplus
8171 extern "C"
8172 #endif
8173 char $ac_func ();
8174 /* The GNU C library defines this for functions which it implements
8175 to always fail with ENOSYS. Some functions are actually named
8176 something starting with __ and the normal name is an alias. */
8177 #if defined __stub_$ac_func || defined __stub___$ac_func
8178 choke me
8179 #endif
8180
8181 int
8182 main ()
8183 {
8184 return $ac_func ();
8185 ;
8186 return 0;
8187 }
8188 _ACEOF
8189 rm -f conftest.$ac_objext conftest$ac_exeext
8190 if { (ac_try="$ac_link"
8191 case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194 esac
8195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8196 $as_echo "$ac_try_echo") >&5
8197 (eval "$ac_link") 2>conftest.er1
8198 ac_status=$?
8199 grep -v '^ *+' conftest.er1 >conftest.err
8200 rm -f conftest.er1
8201 cat conftest.err >&5
8202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } && {
8204 test -z "$ac_c_werror_flag" ||
8205 test ! -s conftest.err
8206 } && test -s conftest$ac_exeext && {
8207 test "$cross_compiling" = yes ||
8208 $as_test_x conftest$ac_exeext
8209 }; then
8210 eval "$as_ac_var=yes"
8211 else
8212 $as_echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8214
8215 eval "$as_ac_var=no"
8216 fi
8217
8218 rm -rf conftest.dSYM
8219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8220 conftest$ac_exeext conftest.$ac_ext
8221 fi
8222 ac_res=`eval 'as_val=${'$as_ac_var'}
8223 $as_echo "$as_val"'`
8224 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8225 $as_echo "$ac_res" >&6; }
8226 as_val=`eval 'as_val=${'$as_ac_var'}
8227 $as_echo "$as_val"'`
8228 if test "x$as_val" = x""yes; then
8229 cat >>confdefs.h <<_ACEOF
8230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8231 _ACEOF
8232
8233 fi
8234 done
8235
8236 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8237 $as_echo_n "checking for working mmap... " >&6; }
8238 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8239 $as_echo_n "(cached) " >&6
8240 else
8241 if test "$cross_compiling" = yes; then
8242 ac_cv_func_mmap_fixed_mapped=no
8243 else
8244 cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h. */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250 $ac_includes_default
8251 /* malloc might have been renamed as rpl_malloc. */
8252 #undef malloc
8253
8254 /* Thanks to Mike Haertel and Jim Avera for this test.
8255 Here is a matrix of mmap possibilities:
8256 mmap private not fixed
8257 mmap private fixed at somewhere currently unmapped
8258 mmap private fixed at somewhere already mapped
8259 mmap shared not fixed
8260 mmap shared fixed at somewhere currently unmapped
8261 mmap shared fixed at somewhere already mapped
8262 For private mappings, we should verify that changes cannot be read()
8263 back from the file, nor mmap's back from the file at a different
8264 address. (There have been systems where private was not correctly
8265 implemented like the infamous i386 svr4.0, and systems where the
8266 VM page cache was not coherent with the file system buffer cache
8267 like early versions of FreeBSD and possibly contemporary NetBSD.)
8268 For shared mappings, we should conversely verify that changes get
8269 propagated back to all the places they're supposed to be.
8270
8271 Grep wants private fixed already mapped.
8272 The main things grep needs to know about mmap are:
8273 * does it exist and is it safe to write into the mmap'd area
8274 * how to use it (BSD variants) */
8275
8276 #include <fcntl.h>
8277 #include <sys/mman.h>
8278
8279 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8280 char *malloc ();
8281 #endif
8282
8283 /* This mess was copied from the GNU getpagesize.h. */
8284 #ifndef HAVE_GETPAGESIZE
8285 /* Assume that all systems that can run configure have sys/param.h. */
8286 # ifndef HAVE_SYS_PARAM_H
8287 # define HAVE_SYS_PARAM_H 1
8288 # endif
8289
8290 # ifdef _SC_PAGESIZE
8291 # define getpagesize() sysconf(_SC_PAGESIZE)
8292 # else /* no _SC_PAGESIZE */
8293 # ifdef HAVE_SYS_PARAM_H
8294 # include <sys/param.h>
8295 # ifdef EXEC_PAGESIZE
8296 # define getpagesize() EXEC_PAGESIZE
8297 # else /* no EXEC_PAGESIZE */
8298 # ifdef NBPG
8299 # define getpagesize() NBPG * CLSIZE
8300 # ifndef CLSIZE
8301 # define CLSIZE 1
8302 # endif /* no CLSIZE */
8303 # else /* no NBPG */
8304 # ifdef NBPC
8305 # define getpagesize() NBPC
8306 # else /* no NBPC */
8307 # ifdef PAGESIZE
8308 # define getpagesize() PAGESIZE
8309 # endif /* PAGESIZE */
8310 # endif /* no NBPC */
8311 # endif /* no NBPG */
8312 # endif /* no EXEC_PAGESIZE */
8313 # else /* no HAVE_SYS_PARAM_H */
8314 # define getpagesize() 8192 /* punt totally */
8315 # endif /* no HAVE_SYS_PARAM_H */
8316 # endif /* no _SC_PAGESIZE */
8317
8318 #endif /* no HAVE_GETPAGESIZE */
8319
8320 int
8321 main ()
8322 {
8323 char *data, *data2, *data3;
8324 int i, pagesize;
8325 int fd;
8326
8327 pagesize = getpagesize ();
8328
8329 /* First, make a file with some known garbage in it. */
8330 data = (char *) malloc (pagesize);
8331 if (!data)
8332 return 1;
8333 for (i = 0; i < pagesize; ++i)
8334 *(data + i) = rand ();
8335 umask (0);
8336 fd = creat ("conftest.mmap", 0600);
8337 if (fd < 0)
8338 return 1;
8339 if (write (fd, data, pagesize) != pagesize)
8340 return 1;
8341 close (fd);
8342
8343 /* Next, try to mmap the file at a fixed address which already has
8344 something else allocated at it. If we can, also make sure that
8345 we see the same garbage. */
8346 fd = open ("conftest.mmap", O_RDWR);
8347 if (fd < 0)
8348 return 1;
8349 data2 = (char *) malloc (2 * pagesize);
8350 if (!data2)
8351 return 1;
8352 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8353 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8354 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8355 return 1;
8356 for (i = 0; i < pagesize; ++i)
8357 if (*(data + i) != *(data2 + i))
8358 return 1;
8359
8360 /* Finally, make sure that changes to the mapped area do not
8361 percolate back to the file as seen by read(). (This is a bug on
8362 some variants of i386 svr4.0.) */
8363 for (i = 0; i < pagesize; ++i)
8364 *(data2 + i) = *(data2 + i) + 1;
8365 data3 = (char *) malloc (pagesize);
8366 if (!data3)
8367 return 1;
8368 if (read (fd, data3, pagesize) != pagesize)
8369 return 1;
8370 for (i = 0; i < pagesize; ++i)
8371 if (*(data + i) != *(data3 + i))
8372 return 1;
8373 close (fd);
8374 return 0;
8375 }
8376 _ACEOF
8377 rm -f conftest$ac_exeext
8378 if { (ac_try="$ac_link"
8379 case "(($ac_try" in
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8382 esac
8383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8384 $as_echo "$ac_try_echo") >&5
8385 (eval "$ac_link") 2>&5
8386 ac_status=$?
8387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8389 { (case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8392 esac
8393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8394 $as_echo "$ac_try_echo") >&5
8395 (eval "$ac_try") 2>&5
8396 ac_status=$?
8397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
8399 ac_cv_func_mmap_fixed_mapped=yes
8400 else
8401 $as_echo "$as_me: program exited with status $ac_status" >&5
8402 $as_echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8404
8405 ( exit $ac_status )
8406 ac_cv_func_mmap_fixed_mapped=no
8407 fi
8408 rm -rf conftest.dSYM
8409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8410 fi
8411
8412
8413 fi
8414 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8415 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8416 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8417
8418 cat >>confdefs.h <<\_ACEOF
8419 #define HAVE_MMAP 1
8420 _ACEOF
8421
8422 fi
8423 rm -f conftest.mmap
8424
8425 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8426 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
8427 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8428 $as_echo_n "(cached) " >&6
8429 else
8430 if test "$cross_compiling" = yes; then
8431 ac_cv_func_stat_empty_string_bug=yes
8432 else
8433 cat >conftest.$ac_ext <<_ACEOF
8434 /* confdefs.h. */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8439 $ac_includes_default
8440 int
8441 main ()
8442 {
8443 struct stat sbuf;
8444 return stat ("", &sbuf) == 0;
8445 ;
8446 return 0;
8447 }
8448 _ACEOF
8449 rm -f conftest$ac_exeext
8450 if { (ac_try="$ac_link"
8451 case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454 esac
8455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8456 $as_echo "$ac_try_echo") >&5
8457 (eval "$ac_link") 2>&5
8458 ac_status=$?
8459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8461 { (case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464 esac
8465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8466 $as_echo "$ac_try_echo") >&5
8467 (eval "$ac_try") 2>&5
8468 ac_status=$?
8469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8471 ac_cv_func_stat_empty_string_bug=no
8472 else
8473 $as_echo "$as_me: program exited with status $ac_status" >&5
8474 $as_echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8476
8477 ( exit $ac_status )
8478 ac_cv_func_stat_empty_string_bug=yes
8479 fi
8480 rm -rf conftest.dSYM
8481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8482 fi
8483
8484
8485 fi
8486 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8487 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8488 if test $ac_cv_func_stat_empty_string_bug = yes; then
8489 case " $LIBOBJS " in
8490 *" stat.$ac_objext "* ) ;;
8491 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8492 ;;
8493 esac
8494
8495
8496 cat >>confdefs.h <<_ACEOF
8497 #define HAVE_STAT_EMPTY_STRING_BUG 1
8498 _ACEOF
8499
8500 fi
8501
8502 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8503 $as_echo_n "checking for working strtod... " >&6; }
8504 if test "${ac_cv_func_strtod+set}" = set; then
8505 $as_echo_n "(cached) " >&6
8506 else
8507 if test "$cross_compiling" = yes; then
8508 ac_cv_func_strtod=no
8509 else
8510 cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h. */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516
8517 $ac_includes_default
8518 #ifndef strtod
8519 double strtod ();
8520 #endif
8521 int
8522 main()
8523 {
8524 {
8525 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8526 char *string = " +69";
8527 char *term;
8528 double value;
8529 value = strtod (string, &term);
8530 if (value != 69 || term != (string + 4))
8531 return 1;
8532 }
8533
8534 {
8535 /* Under Solaris 2.4, strtod returns the wrong value for the
8536 terminating character under some conditions. */
8537 char *string = "NaN";
8538 char *term;
8539 strtod (string, &term);
8540 if (term != string && *(term - 1) == 0)
8541 return 1;
8542 }
8543 return 0;
8544 }
8545
8546 _ACEOF
8547 rm -f conftest$ac_exeext
8548 if { (ac_try="$ac_link"
8549 case "(($ac_try" in
8550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551 *) ac_try_echo=$ac_try;;
8552 esac
8553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8554 $as_echo "$ac_try_echo") >&5
8555 (eval "$ac_link") 2>&5
8556 ac_status=$?
8557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8559 { (case "(($ac_try" in
8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8562 esac
8563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8564 $as_echo "$ac_try_echo") >&5
8565 (eval "$ac_try") 2>&5
8566 ac_status=$?
8567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 ac_cv_func_strtod=yes
8570 else
8571 $as_echo "$as_me: program exited with status $ac_status" >&5
8572 $as_echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8574
8575 ( exit $ac_status )
8576 ac_cv_func_strtod=no
8577 fi
8578 rm -rf conftest.dSYM
8579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8580 fi
8581
8582
8583 fi
8584 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8585 $as_echo "$ac_cv_func_strtod" >&6; }
8586 if test $ac_cv_func_strtod = no; then
8587 case " $LIBOBJS " in
8588 *" strtod.$ac_objext "* ) ;;
8589 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8590 ;;
8591 esac
8592
8593 { $as_echo "$as_me:$LINENO: checking for pow" >&5
8594 $as_echo_n "checking for pow... " >&6; }
8595 if test "${ac_cv_func_pow+set}" = set; then
8596 $as_echo_n "(cached) " >&6
8597 else
8598 cat >conftest.$ac_ext <<_ACEOF
8599 /* confdefs.h. */
8600 _ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8604 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8606 #define pow innocuous_pow
8607
8608 /* System header to define __stub macros and hopefully few prototypes,
8609 which can conflict with char pow (); below.
8610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8611 <limits.h> exists even on freestanding compilers. */
8612
8613 #ifdef __STDC__
8614 # include <limits.h>
8615 #else
8616 # include <assert.h>
8617 #endif
8618
8619 #undef pow
8620
8621 /* Override any GCC internal prototype to avoid an error.
8622 Use char because int might match the return type of a GCC
8623 builtin and then its argument prototype would still apply. */
8624 #ifdef __cplusplus
8625 extern "C"
8626 #endif
8627 char pow ();
8628 /* The GNU C library defines this for functions which it implements
8629 to always fail with ENOSYS. Some functions are actually named
8630 something starting with __ and the normal name is an alias. */
8631 #if defined __stub_pow || defined __stub___pow
8632 choke me
8633 #endif
8634
8635 int
8636 main ()
8637 {
8638 return pow ();
8639 ;
8640 return 0;
8641 }
8642 _ACEOF
8643 rm -f conftest.$ac_objext conftest$ac_exeext
8644 if { (ac_try="$ac_link"
8645 case "(($ac_try" in
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8648 esac
8649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8650 $as_echo "$ac_try_echo") >&5
8651 (eval "$ac_link") 2>conftest.er1
8652 ac_status=$?
8653 grep -v '^ *+' conftest.er1 >conftest.err
8654 rm -f conftest.er1
8655 cat conftest.err >&5
8656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && {
8658 test -z "$ac_c_werror_flag" ||
8659 test ! -s conftest.err
8660 } && test -s conftest$ac_exeext && {
8661 test "$cross_compiling" = yes ||
8662 $as_test_x conftest$ac_exeext
8663 }; then
8664 ac_cv_func_pow=yes
8665 else
8666 $as_echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8668
8669 ac_cv_func_pow=no
8670 fi
8671
8672 rm -rf conftest.dSYM
8673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8674 conftest$ac_exeext conftest.$ac_ext
8675 fi
8676 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8677 $as_echo "$ac_cv_func_pow" >&6; }
8678
8679 if test $ac_cv_func_pow = no; then
8680 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8681 $as_echo_n "checking for pow in -lm... " >&6; }
8682 if test "${ac_cv_lib_m_pow+set}" = set; then
8683 $as_echo_n "(cached) " >&6
8684 else
8685 ac_check_lib_save_LIBS=$LIBS
8686 LIBS="-lm $LIBS"
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h. */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8693
8694 /* Override any GCC internal prototype to avoid an error.
8695 Use char because int might match the return type of a GCC
8696 builtin and then its argument prototype would still apply. */
8697 #ifdef __cplusplus
8698 extern "C"
8699 #endif
8700 char pow ();
8701 int
8702 main ()
8703 {
8704 return pow ();
8705 ;
8706 return 0;
8707 }
8708 _ACEOF
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (ac_try="$ac_link"
8711 case "(($ac_try" in
8712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713 *) ac_try_echo=$ac_try;;
8714 esac
8715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8716 $as_echo "$ac_try_echo") >&5
8717 (eval "$ac_link") 2>conftest.er1
8718 ac_status=$?
8719 grep -v '^ *+' conftest.er1 >conftest.err
8720 rm -f conftest.er1
8721 cat conftest.err >&5
8722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } && {
8724 test -z "$ac_c_werror_flag" ||
8725 test ! -s conftest.err
8726 } && test -s conftest$ac_exeext && {
8727 test "$cross_compiling" = yes ||
8728 $as_test_x conftest$ac_exeext
8729 }; then
8730 ac_cv_lib_m_pow=yes
8731 else
8732 $as_echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8734
8735 ac_cv_lib_m_pow=no
8736 fi
8737
8738 rm -rf conftest.dSYM
8739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8740 conftest$ac_exeext conftest.$ac_ext
8741 LIBS=$ac_check_lib_save_LIBS
8742 fi
8743 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8744 $as_echo "$ac_cv_lib_m_pow" >&6; }
8745 if test "x$ac_cv_lib_m_pow" = x""yes; then
8746 POW_LIB=-lm
8747 else
8748 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8749 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8750 fi
8751
8752 fi
8753
8754 fi
8755
8756
8757 for ac_func in vprintf
8758 do
8759 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8760 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8761 $as_echo_n "checking for $ac_func... " >&6; }
8762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8763 $as_echo_n "(cached) " >&6
8764 else
8765 cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h. */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8773 #define $ac_func innocuous_$ac_func
8774
8775 /* System header to define __stub macros and hopefully few prototypes,
8776 which can conflict with char $ac_func (); below.
8777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8778 <limits.h> exists even on freestanding compilers. */
8779
8780 #ifdef __STDC__
8781 # include <limits.h>
8782 #else
8783 # include <assert.h>
8784 #endif
8785
8786 #undef $ac_func
8787
8788 /* Override any GCC internal prototype to avoid an error.
8789 Use char because int might match the return type of a GCC
8790 builtin and then its argument prototype would still apply. */
8791 #ifdef __cplusplus
8792 extern "C"
8793 #endif
8794 char $ac_func ();
8795 /* The GNU C library defines this for functions which it implements
8796 to always fail with ENOSYS. Some functions are actually named
8797 something starting with __ and the normal name is an alias. */
8798 #if defined __stub_$ac_func || defined __stub___$ac_func
8799 choke me
8800 #endif
8801
8802 int
8803 main ()
8804 {
8805 return $ac_func ();
8806 ;
8807 return 0;
8808 }
8809 _ACEOF
8810 rm -f conftest.$ac_objext conftest$ac_exeext
8811 if { (ac_try="$ac_link"
8812 case "(($ac_try" in
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8815 esac
8816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8817 $as_echo "$ac_try_echo") >&5
8818 (eval "$ac_link") 2>conftest.er1
8819 ac_status=$?
8820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
8822 cat conftest.err >&5
8823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } && {
8825 test -z "$ac_c_werror_flag" ||
8826 test ! -s conftest.err
8827 } && test -s conftest$ac_exeext && {
8828 test "$cross_compiling" = yes ||
8829 $as_test_x conftest$ac_exeext
8830 }; then
8831 eval "$as_ac_var=yes"
8832 else
8833 $as_echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8835
8836 eval "$as_ac_var=no"
8837 fi
8838
8839 rm -rf conftest.dSYM
8840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8841 conftest$ac_exeext conftest.$ac_ext
8842 fi
8843 ac_res=`eval 'as_val=${'$as_ac_var'}
8844 $as_echo "$as_val"'`
8845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8846 $as_echo "$ac_res" >&6; }
8847 as_val=`eval 'as_val=${'$as_ac_var'}
8848 $as_echo "$as_val"'`
8849 if test "x$as_val" = x""yes; then
8850 cat >>confdefs.h <<_ACEOF
8851 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8852 _ACEOF
8853
8854 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8855 $as_echo_n "checking for _doprnt... " >&6; }
8856 if test "${ac_cv_func__doprnt+set}" = set; then
8857 $as_echo_n "(cached) " >&6
8858 else
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8867 #define _doprnt innocuous__doprnt
8868
8869 /* System header to define __stub macros and hopefully few prototypes,
8870 which can conflict with char _doprnt (); below.
8871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8872 <limits.h> exists even on freestanding compilers. */
8873
8874 #ifdef __STDC__
8875 # include <limits.h>
8876 #else
8877 # include <assert.h>
8878 #endif
8879
8880 #undef _doprnt
8881
8882 /* Override any GCC internal prototype to avoid an error.
8883 Use char because int might match the return type of a GCC
8884 builtin and then its argument prototype would still apply. */
8885 #ifdef __cplusplus
8886 extern "C"
8887 #endif
8888 char _doprnt ();
8889 /* The GNU C library defines this for functions which it implements
8890 to always fail with ENOSYS. Some functions are actually named
8891 something starting with __ and the normal name is an alias. */
8892 #if defined __stub__doprnt || defined __stub____doprnt
8893 choke me
8894 #endif
8895
8896 int
8897 main ()
8898 {
8899 return _doprnt ();
8900 ;
8901 return 0;
8902 }
8903 _ACEOF
8904 rm -f conftest.$ac_objext conftest$ac_exeext
8905 if { (ac_try="$ac_link"
8906 case "(($ac_try" in
8907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908 *) ac_try_echo=$ac_try;;
8909 esac
8910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8911 $as_echo "$ac_try_echo") >&5
8912 (eval "$ac_link") 2>conftest.er1
8913 ac_status=$?
8914 grep -v '^ *+' conftest.er1 >conftest.err
8915 rm -f conftest.er1
8916 cat conftest.err >&5
8917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } && {
8919 test -z "$ac_c_werror_flag" ||
8920 test ! -s conftest.err
8921 } && test -s conftest$ac_exeext && {
8922 test "$cross_compiling" = yes ||
8923 $as_test_x conftest$ac_exeext
8924 }; then
8925 ac_cv_func__doprnt=yes
8926 else
8927 $as_echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.$ac_ext >&5
8929
8930 ac_cv_func__doprnt=no
8931 fi
8932
8933 rm -rf conftest.dSYM
8934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8935 conftest$ac_exeext conftest.$ac_ext
8936 fi
8937 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8938 $as_echo "$ac_cv_func__doprnt" >&6; }
8939 if test "x$ac_cv_func__doprnt" = x""yes; then
8940
8941 cat >>confdefs.h <<\_ACEOF
8942 #define HAVE_DOPRNT 1
8943 _ACEOF
8944
8945 fi
8946
8947 fi
8948 done
8949
8950
8951
8952 ################################################################################
8953 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8954 $as_echo_n "checking whether to use static linking... " >&6; }
8955 # Check whether --enable-static_link was given.
8956 if test "${enable_static_link+set}" = set; then
8957 enableval=$enable_static_link; STATIC_LINK=$enableval
8958 else
8959 STATIC_LINK=no
8960 fi
8961
8962 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8963 $as_echo "$STATIC_LINK" >&6; }
8964
8965 ################################################################################
8966
8967
8968 ################################################################################
8969 { $as_echo "$as_me:$LINENO: checking file owner" >&5
8970 $as_echo_n "checking file owner... " >&6; }
8971 OWNER="root"
8972
8973
8974 # Check whether --with-user was given.
8975 if test "${with_user+set}" = set; then
8976 withval=$with_user; OWNER="$withval"
8977 fi
8978
8979 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8980 $as_echo "$OWNER" >&6; }
8981
8982 if test x$OWNER != x; then
8983 OWNER="-o $OWNER"
8984 fi
8985
8986 ################################################################################
8987 { $as_echo "$as_me:$LINENO: checking group owner" >&5
8988 $as_echo_n "checking group owner... " >&6; }
8989 GROUP="root"
8990
8991 # Check whether --with-group was given.
8992 if test "${with_group+set}" = set; then
8993 withval=$with_group; GROUP="$withval"
8994 fi
8995
8996 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8997 $as_echo "$GROUP" >&6; }
8998
8999 if test x$GROUP != x; then
9000 GROUP="-g $GROUP"
9001 fi
9002
9003 ################################################################################
9004 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
9005 $as_echo_n "checking device node uid... " >&6; }
9006
9007
9008 # Check whether --with-device-uid was given.
9009 if test "${with_device_uid+set}" = set; then
9010 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9011 else
9012 DM_DEVICE_UID="0"
9013 fi
9014
9015 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9016 $as_echo "$DM_DEVICE_UID" >&6; }
9017
9018 ################################################################################
9019 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
9020 $as_echo_n "checking device node gid... " >&6; }
9021
9022
9023 # Check whether --with-device-gid was given.
9024 if test "${with_device_gid+set}" = set; then
9025 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9026 else
9027 DM_DEVICE_GID="0"
9028 fi
9029
9030 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9031 $as_echo "$DM_DEVICE_GID" >&6; }
9032
9033 ################################################################################
9034 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
9035 $as_echo_n "checking device node mode... " >&6; }
9036
9037
9038 # Check whether --with-device-mode was given.
9039 if test "${with_device_mode+set}" = set; then
9040 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9041 else
9042 DM_DEVICE_MODE="0600"
9043 fi
9044
9045 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9046 $as_echo "$DM_DEVICE_MODE" >&6; }
9047
9048 ################################################################################
9049 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9050 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
9051 # Check whether --enable-lvm1_fallback was given.
9052 if test "${enable_lvm1_fallback+set}" = set; then
9053 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9054 else
9055 LVM1_FALLBACK=no
9056 fi
9057
9058 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9059 $as_echo "$LVM1_FALLBACK" >&6; }
9060
9061 if test x$LVM1_FALLBACK = xyes; then
9062
9063 cat >>confdefs.h <<\_ACEOF
9064 #define LVM1_FALLBACK 1
9065 _ACEOF
9066
9067 fi
9068
9069 ################################################################################
9070 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9071 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
9072
9073 # Check whether --with-lvm1 was given.
9074 if test "${with_lvm1+set}" = set; then
9075 withval=$with_lvm1; LVM1="$withval"
9076 else
9077 LVM1="internal"
9078 fi
9079
9080 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9081 $as_echo "$LVM1" >&6; }
9082
9083 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
9084 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
9085 " >&5
9086 $as_echo "$as_me: error: --with-lvm1 parameter invalid
9087 " >&2;}
9088 { (exit 1); exit 1; }; }
9089 fi;
9090
9091 if test x$LVM1 = xinternal; then
9092
9093 cat >>confdefs.h <<\_ACEOF
9094 #define LVM1_INTERNAL 1
9095 _ACEOF
9096
9097 fi
9098
9099 ################################################################################
9100 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9101 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
9102
9103 # Check whether --with-pool was given.
9104 if test "${with_pool+set}" = set; then
9105 withval=$with_pool; POOL="$withval"
9106 else
9107 POOL="internal"
9108 fi
9109
9110 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
9111 $as_echo "$POOL" >&6; }
9112
9113 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
9114 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
9115 " >&5
9116 $as_echo "$as_me: error: --with-pool parameter invalid
9117 " >&2;}
9118 { (exit 1); exit 1; }; }
9119 fi;
9120
9121 if test x$POOL = xinternal; then
9122
9123 cat >>confdefs.h <<\_ACEOF
9124 #define POOL_INTERNAL 1
9125 _ACEOF
9126
9127 fi
9128
9129 ################################################################################
9130 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9131 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
9132
9133 # Check whether --with-cluster was given.
9134 if test "${with_cluster+set}" = set; then
9135 withval=$with_cluster; CLUSTER="$withval"
9136 fi
9137
9138 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9139 $as_echo "$CLUSTER" >&6; }
9140
9141 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
9142 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
9143 " >&5
9144 $as_echo "$as_me: error: --with-cluster parameter invalid
9145 " >&2;}
9146 { (exit 1); exit 1; }; }
9147 fi;
9148
9149 if test x$CLUSTER = xinternal; then
9150
9151 cat >>confdefs.h <<\_ACEOF
9152 #define CLUSTER_LOCKING_INTERNAL 1
9153 _ACEOF
9154
9155 fi
9156
9157 ################################################################################
9158 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9159 $as_echo_n "checking whether to include snapshots... " >&6; }
9160
9161 # Check whether --with-snapshots was given.
9162 if test "${with_snapshots+set}" = set; then
9163 withval=$with_snapshots; SNAPSHOTS="$withval"
9164 else
9165 SNAPSHOTS="internal"
9166 fi
9167
9168 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9169 $as_echo "$SNAPSHOTS" >&6; }
9170
9171 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
9172 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
9173 " >&5
9174 $as_echo "$as_me: error: --with-snapshots parameter invalid
9175 " >&2;}
9176 { (exit 1); exit 1; }; }
9177 fi;
9178
9179 if test x$SNAPSHOTS = xinternal; then
9180
9181 cat >>confdefs.h <<\_ACEOF
9182 #define SNAPSHOT_INTERNAL 1
9183 _ACEOF
9184
9185 fi
9186
9187 ################################################################################
9188 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9189 $as_echo_n "checking whether to include mirrors... " >&6; }
9190
9191 # Check whether --with-mirrors was given.
9192 if test "${with_mirrors+set}" = set; then
9193 withval=$with_mirrors; MIRRORS="$withval"
9194 else
9195 MIRRORS="internal"
9196 fi
9197
9198 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9199 $as_echo "$MIRRORS" >&6; }
9200
9201 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
9202 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
9203 " >&5
9204 $as_echo "$as_me: error: --with-mirrors parameter invalid
9205 " >&2;}
9206 { (exit 1); exit 1; }; }
9207 fi;
9208
9209 if test x$MIRRORS = xinternal; then
9210
9211 cat >>confdefs.h <<\_ACEOF
9212 #define MIRRORED_INTERNAL 1
9213 _ACEOF
9214
9215 fi
9216
9217 ################################################################################
9218 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9219 $as_echo_n "checking whether to enable readline... " >&6; }
9220 # Check whether --enable-readline was given.
9221 if test "${enable_readline+set}" = set; then
9222 enableval=$enable_readline; READLINE=$enableval
9223 else
9224 READLINE=maybe
9225 fi
9226
9227 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9228 $as_echo "$READLINE" >&6; }
9229
9230 ################################################################################
9231 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9232 $as_echo_n "checking whether to enable realtime support... " >&6; }
9233 # Check whether --enable-realtime was given.
9234 if test "${enable_realtime+set}" = set; then
9235 enableval=$enable_realtime; REALTIME=$enableval
9236 fi
9237
9238 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9239 $as_echo "$REALTIME" >&6; }
9240
9241 ################################################################################
9242 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9243 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9244
9245 # Check whether --with-clvmd was given.
9246 if test "${with_clvmd+set}" = set; then
9247 withval=$with_clvmd; CLVMD="$withval"
9248 else
9249 CLVMD="none"
9250 fi
9251
9252 if test x$CLVMD = xyes; then
9253 CLVMD=all
9254 fi
9255 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9256 $as_echo "$CLVMD" >&6; }
9257
9258 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9259 CLUSTER=internal
9260 fi
9261
9262 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9263 BUILDGULM=yes
9264 fi
9265 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9266 BUILDCOROSYNC=yes
9267 fi
9268 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9269 BUILDOPENAIS=yes
9270 fi
9271 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9272 BUILDCMAN=yes
9273 fi
9274
9275 if test x$BUILDGULM = xyes; then
9276 if test x$BUILDCOROSYNC = xyes || \
9277 test x$BUILDOPENAIS = xyes; then
9278 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9279 $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9280 { (exit 1); exit 1; }; }
9281 fi
9282 fi
9283
9284 if test x$CLVMD != xnone; then
9285
9286
9287 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9288 if test -n "$ac_tool_prefix"; then
9289 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9290 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9292 $as_echo_n "checking for $ac_word... " >&6; }
9293 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9294 $as_echo_n "(cached) " >&6
9295 else
9296 case $PKG_CONFIG in
9297 [\\/]* | ?:[\\/]*)
9298 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9299 ;;
9300 *)
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302 for as_dir in $PATH
9303 do
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9308 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9309 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9310 break 2
9311 fi
9312 done
9313 done
9314 IFS=$as_save_IFS
9315
9316 ;;
9317 esac
9318 fi
9319 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9320 if test -n "$PKG_CONFIG"; then
9321 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9322 $as_echo "$PKG_CONFIG" >&6; }
9323 else
9324 { $as_echo "$as_me:$LINENO: result: no" >&5
9325 $as_echo "no" >&6; }
9326 fi
9327
9328
9329 fi
9330 if test -z "$ac_cv_path_PKG_CONFIG"; then
9331 ac_pt_PKG_CONFIG=$PKG_CONFIG
9332 # Extract the first word of "pkg-config", so it can be a program name with args.
9333 set dummy pkg-config; ac_word=$2
9334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9335 $as_echo_n "checking for $ac_word... " >&6; }
9336 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9337 $as_echo_n "(cached) " >&6
9338 else
9339 case $ac_pt_PKG_CONFIG in
9340 [\\/]* | ?:[\\/]*)
9341 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9342 ;;
9343 *)
9344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345 for as_dir in $PATH
9346 do
9347 IFS=$as_save_IFS
9348 test -z "$as_dir" && as_dir=.
9349 for ac_exec_ext in '' $ac_executable_extensions; do
9350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9351 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9352 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9353 break 2
9354 fi
9355 done
9356 done
9357 IFS=$as_save_IFS
9358
9359 ;;
9360 esac
9361 fi
9362 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9363 if test -n "$ac_pt_PKG_CONFIG"; then
9364 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9365 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9366 else
9367 { $as_echo "$as_me:$LINENO: result: no" >&5
9368 $as_echo "no" >&6; }
9369 fi
9370
9371 if test "x$ac_pt_PKG_CONFIG" = x; then
9372 PKG_CONFIG=""
9373 else
9374 case $cross_compiling:$ac_tool_warned in
9375 yes:)
9376 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9378 ac_tool_warned=yes ;;
9379 esac
9380 PKG_CONFIG=$ac_pt_PKG_CONFIG
9381 fi
9382 else
9383 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9384 fi
9385
9386 fi
9387 if test -n "$PKG_CONFIG"; then
9388 _pkg_min_version=0.9.0
9389 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9390 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9391 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9392 { $as_echo "$as_me:$LINENO: result: yes" >&5
9393 $as_echo "yes" >&6; }
9394 else
9395 { $as_echo "$as_me:$LINENO: result: no" >&5
9396 $as_echo "no" >&6; }
9397 PKG_CONFIG=""
9398 fi
9399
9400 fi
9401
9402 pkg_failed=no
9403 { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9404 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
9405
9406 if test -n "$PKGCONFIGINIT_CFLAGS"; then
9407 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
9408 elif test -n "$PKG_CONFIG"; then
9409 if test -n "$PKG_CONFIG" && \
9410 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9411 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9412 ac_status=$?
9413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; then
9415 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
9416 else
9417 pkg_failed=yes
9418 fi
9419 else
9420 pkg_failed=untried
9421 fi
9422 if test -n "$PKGCONFIGINIT_LIBS"; then
9423 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
9424 elif test -n "$PKG_CONFIG"; then
9425 if test -n "$PKG_CONFIG" && \
9426 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9427 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9428 ac_status=$?
9429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; then
9431 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
9432 else
9433 pkg_failed=yes
9434 fi
9435 else
9436 pkg_failed=untried
9437 fi
9438
9439
9440
9441 if test $pkg_failed = yes; then
9442
9443 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9444 _pkg_short_errors_supported=yes
9445 else
9446 _pkg_short_errors_supported=no
9447 fi
9448 if test $_pkg_short_errors_supported = yes; then
9449 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
9450 else
9451 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
9452 fi
9453 # Put the nasty error message in config.log where it belongs
9454 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
9455
9456 { $as_echo "$as_me:$LINENO: result: no" >&5
9457 $as_echo "no" >&6; }
9458 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9459 $as_echo "pkg-config initialized" >&6; }
9460 elif test $pkg_failed = untried; then
9461 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9462 $as_echo "pkg-config initialized" >&6; }
9463 else
9464 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9465 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
9466 { $as_echo "$as_me:$LINENO: result: yes" >&5
9467 $as_echo "yes" >&6; }
9468 :
9469 fi
9470 fi
9471
9472 soft_bailout() {
9473 NOTFOUND=1
9474 }
9475
9476 hard_bailout() {
9477 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9478 $as_echo "$as_me: error: bailing out" >&2;}
9479 { (exit 1); exit 1; }; }
9480 }
9481
9482 if test x$CLVMD = xall; then
9483 bailout=soft_bailout
9484 BUILDGULM=yes
9485 BUILDCMAN=yes
9486 BUILDCOROSYNC=yes
9487 BUILDOPENAIS=yes
9488 else
9489 bailout=hard_bailout
9490 fi
9491
9492 check_lib_no_libs() {
9493 lib_no_libs_arg1=$1
9494 shift
9495 lib_no_libs_arg2=$1
9496 shift
9497 lib_no_libs_args=$@
9498
9499 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9500 { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9501 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9502 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9503 $as_echo_n "(cached) " >&6
9504 else
9505 ac_check_lib_save_LIBS=$LIBS
9506 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9507 cat >conftest.$ac_ext <<_ACEOF
9508 /* confdefs.h. */
9509 _ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h. */
9513
9514 /* Override any GCC internal prototype to avoid an error.
9515 Use char because int might match the return type of a GCC
9516 builtin and then its argument prototype would still apply. */
9517 #ifdef __cplusplus
9518 extern "C"
9519 #endif
9520 char $lib_no_libs_arg2 ();
9521 int
9522 main ()
9523 {
9524 return $lib_no_libs_arg2 ();
9525 ;
9526 return 0;
9527 }
9528 _ACEOF
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (ac_try="$ac_link"
9531 case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534 esac
9535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9536 $as_echo "$ac_try_echo") >&5
9537 (eval "$ac_link") 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest$ac_exeext && {
9547 test "$cross_compiling" = yes ||
9548 $as_test_x conftest$ac_exeext
9549 }; then
9550 eval "$as_ac_Lib=yes"
9551 else
9552 $as_echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9554
9555 eval "$as_ac_Lib=no"
9556 fi
9557
9558 rm -rf conftest.dSYM
9559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9560 conftest$ac_exeext conftest.$ac_ext
9561 LIBS=$ac_check_lib_save_LIBS
9562 fi
9563 ac_res=`eval 'as_val=${'$as_ac_Lib'}
9564 $as_echo "$as_val"'`
9565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9566 $as_echo "$ac_res" >&6; }
9567 as_val=`eval 'as_val=${'$as_ac_Lib'}
9568 $as_echo "$as_val"'`
9569 if test "x$as_val" = x""yes; then
9570 cat >>confdefs.h <<_ACEOF
9571 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9572 _ACEOF
9573
9574 LIBS="-l$lib_no_libs_arg1 $LIBS"
9575
9576 else
9577 $bailout
9578 fi
9579
9580 LIBS=$ac_check_lib_save_LIBS
9581 }
9582
9583 if test x$BUILDGULM = xyes; then
9584
9585 pkg_failed=no
9586 { $as_echo "$as_me:$LINENO: checking for CCS" >&5
9587 $as_echo_n "checking for CCS... " >&6; }
9588
9589 if test -n "$CCS_CFLAGS"; then
9590 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
9591 elif test -n "$PKG_CONFIG"; then
9592 if test -n "$PKG_CONFIG" && \
9593 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9594 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9595 ac_status=$?
9596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; then
9598 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
9599 else
9600 pkg_failed=yes
9601 fi
9602 else
9603 pkg_failed=untried
9604 fi
9605 if test -n "$CCS_LIBS"; then
9606 pkg_cv_CCS_LIBS="$CCS_LIBS"
9607 elif test -n "$PKG_CONFIG"; then
9608 if test -n "$PKG_CONFIG" && \
9609 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9610 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9611 ac_status=$?
9612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; then
9614 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
9615 else
9616 pkg_failed=yes
9617 fi
9618 else
9619 pkg_failed=untried
9620 fi
9621
9622
9623
9624 if test $pkg_failed = yes; then
9625
9626 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9627 _pkg_short_errors_supported=yes
9628 else
9629 _pkg_short_errors_supported=no
9630 fi
9631 if test $_pkg_short_errors_supported = yes; then
9632 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
9633 else
9634 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
9635 fi
9636 # Put the nasty error message in config.log where it belongs
9637 echo "$CCS_PKG_ERRORS" >&5
9638
9639 { $as_echo "$as_me:$LINENO: result: no" >&5
9640 $as_echo "no" >&6; }
9641 NOTFOUND=0
9642
9643 for ac_header in ccs.h
9644 do
9645 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9648 $as_echo_n "checking for $ac_header... " >&6; }
9649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9650 $as_echo_n "(cached) " >&6
9651 fi
9652 ac_res=`eval 'as_val=${'$as_ac_Header'}
9653 $as_echo "$as_val"'`
9654 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9655 $as_echo "$ac_res" >&6; }
9656 else
9657 # Is the header compilable?
9658 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9659 $as_echo_n "checking $ac_header usability... " >&6; }
9660 cat >conftest.$ac_ext <<_ACEOF
9661 /* confdefs.h. */
9662 _ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9666 $ac_includes_default
9667 #include <$ac_header>
9668 _ACEOF
9669 rm -f conftest.$ac_objext
9670 if { (ac_try="$ac_compile"
9671 case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9674 esac
9675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9676 $as_echo "$ac_try_echo") >&5
9677 (eval "$ac_compile") 2>conftest.er1
9678 ac_status=$?
9679 grep -v '^ *+' conftest.er1 >conftest.err
9680 rm -f conftest.er1
9681 cat conftest.err >&5
9682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } && {
9684 test -z "$ac_c_werror_flag" ||
9685 test ! -s conftest.err
9686 } && test -s conftest.$ac_objext; then
9687 ac_header_compiler=yes
9688 else
9689 $as_echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692 ac_header_compiler=no
9693 fi
9694
9695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9696 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9697 $as_echo "$ac_header_compiler" >&6; }
9698
9699 # Is the header present?
9700 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9701 $as_echo_n "checking $ac_header presence... " >&6; }
9702 cat >conftest.$ac_ext <<_ACEOF
9703 /* confdefs.h. */
9704 _ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9708 #include <$ac_header>
9709 _ACEOF
9710 if { (ac_try="$ac_cpp conftest.$ac_ext"
9711 case "(($ac_try" in
9712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713 *) ac_try_echo=$ac_try;;
9714 esac
9715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9716 $as_echo "$ac_try_echo") >&5
9717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } >/dev/null && {
9724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 }; then
9727 ac_header_preproc=yes
9728 else
9729 $as_echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9731
9732 ac_header_preproc=no
9733 fi
9734
9735 rm -f conftest.err conftest.$ac_ext
9736 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9737 $as_echo "$ac_header_preproc" >&6; }
9738
9739 # So? What about this header?
9740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9741 yes:no: )
9742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9743 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9745 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9746 ac_header_preproc=yes
9747 ;;
9748 no:yes:* )
9749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9750 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9752 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9754 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9756 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9758 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9760 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9761
9762 ;;
9763 esac
9764 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9765 $as_echo_n "checking for $ac_header... " >&6; }
9766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9767 $as_echo_n "(cached) " >&6
9768 else
9769 eval "$as_ac_Header=\$ac_header_preproc"
9770 fi
9771 ac_res=`eval 'as_val=${'$as_ac_Header'}
9772 $as_echo "$as_val"'`
9773 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9774 $as_echo "$ac_res" >&6; }
9775
9776 fi
9777 as_val=`eval 'as_val=${'$as_ac_Header'}
9778 $as_echo "$as_val"'`
9779 if test "x$as_val" = x""yes; then
9780 cat >>confdefs.h <<_ACEOF
9781 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9782 _ACEOF
9783
9784 else
9785 $bailout
9786 fi
9787
9788 done
9789
9790 check_lib_no_libs ccs ccs_connect
9791 if test $NOTFOUND = 0; then
9792 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9793 $as_echo "no pkg for libccs, using -lccs" >&6; }
9794 CCS_LIBS="-lccs"
9795 HAVE_CCS=yes
9796 fi
9797 elif test $pkg_failed = untried; then
9798 NOTFOUND=0
9799
9800 for ac_header in ccs.h
9801 do
9802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9804 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9805 $as_echo_n "checking for $ac_header... " >&6; }
9806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9807 $as_echo_n "(cached) " >&6
9808 fi
9809 ac_res=`eval 'as_val=${'$as_ac_Header'}
9810 $as_echo "$as_val"'`
9811 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9812 $as_echo "$ac_res" >&6; }
9813 else
9814 # Is the header compilable?
9815 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9816 $as_echo_n "checking $ac_header usability... " >&6; }
9817 cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h. */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 $ac_includes_default
9824 #include <$ac_header>
9825 _ACEOF
9826 rm -f conftest.$ac_objext
9827 if { (ac_try="$ac_compile"
9828 case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831 esac
9832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9833 $as_echo "$ac_try_echo") >&5
9834 (eval "$ac_compile") 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } && {
9841 test -z "$ac_c_werror_flag" ||
9842 test ! -s conftest.err
9843 } && test -s conftest.$ac_objext; then
9844 ac_header_compiler=yes
9845 else
9846 $as_echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9848
9849 ac_header_compiler=no
9850 fi
9851
9852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9853 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9854 $as_echo "$ac_header_compiler" >&6; }
9855
9856 # Is the header present?
9857 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9858 $as_echo_n "checking $ac_header presence... " >&6; }
9859 cat >conftest.$ac_ext <<_ACEOF
9860 /* confdefs.h. */
9861 _ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h. */
9865 #include <$ac_header>
9866 _ACEOF
9867 if { (ac_try="$ac_cpp conftest.$ac_ext"
9868 case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9871 esac
9872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9873 $as_echo "$ac_try_echo") >&5
9874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9875 ac_status=$?
9876 grep -v '^ *+' conftest.er1 >conftest.err
9877 rm -f conftest.er1
9878 cat conftest.err >&5
9879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } >/dev/null && {
9881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9882 test ! -s conftest.err
9883 }; then
9884 ac_header_preproc=yes
9885 else
9886 $as_echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9888
9889 ac_header_preproc=no
9890 fi
9891
9892 rm -f conftest.err conftest.$ac_ext
9893 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9894 $as_echo "$ac_header_preproc" >&6; }
9895
9896 # So? What about this header?
9897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9898 yes:no: )
9899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9900 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9902 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9903 ac_header_preproc=yes
9904 ;;
9905 no:yes:* )
9906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9907 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9909 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9911 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9913 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9915 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9917 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9918
9919 ;;
9920 esac
9921 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9922 $as_echo_n "checking for $ac_header... " >&6; }
9923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9924 $as_echo_n "(cached) " >&6
9925 else
9926 eval "$as_ac_Header=\$ac_header_preproc"
9927 fi
9928 ac_res=`eval 'as_val=${'$as_ac_Header'}
9929 $as_echo "$as_val"'`
9930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9931 $as_echo "$ac_res" >&6; }
9932
9933 fi
9934 as_val=`eval 'as_val=${'$as_ac_Header'}
9935 $as_echo "$as_val"'`
9936 if test "x$as_val" = x""yes; then
9937 cat >>confdefs.h <<_ACEOF
9938 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9939 _ACEOF
9940
9941 else
9942 $bailout
9943 fi
9944
9945 done
9946
9947 check_lib_no_libs ccs ccs_connect
9948 if test $NOTFOUND = 0; then
9949 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9950 $as_echo "no pkg for libccs, using -lccs" >&6; }
9951 CCS_LIBS="-lccs"
9952 HAVE_CCS=yes
9953 fi
9954 else
9955 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
9956 CCS_LIBS=$pkg_cv_CCS_LIBS
9957 { $as_echo "$as_me:$LINENO: result: yes" >&5
9958 $as_echo "yes" >&6; }
9959 HAVE_CCS=yes
9960 fi
9961
9962 pkg_failed=no
9963 { $as_echo "$as_me:$LINENO: checking for GULM" >&5
9964 $as_echo_n "checking for GULM... " >&6; }
9965
9966 if test -n "$GULM_CFLAGS"; then
9967 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
9968 elif test -n "$PKG_CONFIG"; then
9969 if test -n "$PKG_CONFIG" && \
9970 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
9971 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
9972 ac_status=$?
9973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; then
9975 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
9976 else
9977 pkg_failed=yes
9978 fi
9979 else
9980 pkg_failed=untried
9981 fi
9982 if test -n "$GULM_LIBS"; then
9983 pkg_cv_GULM_LIBS="$GULM_LIBS"
9984 elif test -n "$PKG_CONFIG"; then
9985 if test -n "$PKG_CONFIG" && \
9986 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
9987 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
9988 ac_status=$?
9989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; then
9991 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
9992 else
9993 pkg_failed=yes
9994 fi
9995 else
9996 pkg_failed=untried
9997 fi
9998
9999
10000
10001 if test $pkg_failed = yes; then
10002
10003 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10004 _pkg_short_errors_supported=yes
10005 else
10006 _pkg_short_errors_supported=no
10007 fi
10008 if test $_pkg_short_errors_supported = yes; then
10009 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10010 else
10011 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10012 fi
10013 # Put the nasty error message in config.log where it belongs
10014 echo "$GULM_PKG_ERRORS" >&5
10015
10016 { $as_echo "$as_me:$LINENO: result: no" >&5
10017 $as_echo "no" >&6; }
10018 NOTFOUND=0
10019
10020 for ac_header in libgulm.h
10021 do
10022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10024 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10025 $as_echo_n "checking for $ac_header... " >&6; }
10026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10027 $as_echo_n "(cached) " >&6
10028 fi
10029 ac_res=`eval 'as_val=${'$as_ac_Header'}
10030 $as_echo "$as_val"'`
10031 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10032 $as_echo "$ac_res" >&6; }
10033 else
10034 # Is the header compilable?
10035 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10036 $as_echo_n "checking $ac_header usability... " >&6; }
10037 cat >conftest.$ac_ext <<_ACEOF
10038 /* confdefs.h. */
10039 _ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10043 $ac_includes_default
10044 #include <$ac_header>
10045 _ACEOF
10046 rm -f conftest.$ac_objext
10047 if { (ac_try="$ac_compile"
10048 case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10051 esac
10052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10053 $as_echo "$ac_try_echo") >&5
10054 (eval "$ac_compile") 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && {
10061 test -z "$ac_c_werror_flag" ||
10062 test ! -s conftest.err
10063 } && test -s conftest.$ac_objext; then
10064 ac_header_compiler=yes
10065 else
10066 $as_echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069 ac_header_compiler=no
10070 fi
10071
10072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10074 $as_echo "$ac_header_compiler" >&6; }
10075
10076 # Is the header present?
10077 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10078 $as_echo_n "checking $ac_header presence... " >&6; }
10079 cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 #include <$ac_header>
10086 _ACEOF
10087 if { (ac_try="$ac_cpp conftest.$ac_ext"
10088 case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10091 esac
10092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10093 $as_echo "$ac_try_echo") >&5
10094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10095 ac_status=$?
10096 grep -v '^ *+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } >/dev/null && {
10101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10102 test ! -s conftest.err
10103 }; then
10104 ac_header_preproc=yes
10105 else
10106 $as_echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10108
10109 ac_header_preproc=no
10110 fi
10111
10112 rm -f conftest.err conftest.$ac_ext
10113 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10114 $as_echo "$ac_header_preproc" >&6; }
10115
10116 # So? What about this header?
10117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10118 yes:no: )
10119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10120 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10122 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10123 ac_header_preproc=yes
10124 ;;
10125 no:yes:* )
10126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10127 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10129 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10131 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10133 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10135 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10137 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10138
10139 ;;
10140 esac
10141 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10142 $as_echo_n "checking for $ac_header... " >&6; }
10143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10144 $as_echo_n "(cached) " >&6
10145 else
10146 eval "$as_ac_Header=\$ac_header_preproc"
10147 fi
10148 ac_res=`eval 'as_val=${'$as_ac_Header'}
10149 $as_echo "$as_val"'`
10150 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10151 $as_echo "$ac_res" >&6; }
10152
10153 fi
10154 as_val=`eval 'as_val=${'$as_ac_Header'}
10155 $as_echo "$as_val"'`
10156 if test "x$as_val" = x""yes; then
10157 cat >>confdefs.h <<_ACEOF
10158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10159 _ACEOF
10160
10161 else
10162 $bailout
10163 fi
10164
10165 done
10166
10167 check_lib_no_libs gulm lg_core_login
10168 if test $NOTFOUND = 0; then
10169 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10170 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10171 GULM_LIBS="-lgulm"
10172 HAVE_GULM=yes
10173 fi
10174 elif test $pkg_failed = untried; then
10175 NOTFOUND=0
10176
10177 for ac_header in libgulm.h
10178 do
10179 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10181 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10182 $as_echo_n "checking for $ac_header... " >&6; }
10183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10184 $as_echo_n "(cached) " >&6
10185 fi
10186 ac_res=`eval 'as_val=${'$as_ac_Header'}
10187 $as_echo "$as_val"'`
10188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10189 $as_echo "$ac_res" >&6; }
10190 else
10191 # Is the header compilable?
10192 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10193 $as_echo_n "checking $ac_header usability... " >&6; }
10194 cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h. */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10200 $ac_includes_default
10201 #include <$ac_header>
10202 _ACEOF
10203 rm -f conftest.$ac_objext
10204 if { (ac_try="$ac_compile"
10205 case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10208 esac
10209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10210 $as_echo "$ac_try_echo") >&5
10211 (eval "$ac_compile") 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && {
10218 test -z "$ac_c_werror_flag" ||
10219 test ! -s conftest.err
10220 } && test -s conftest.$ac_objext; then
10221 ac_header_compiler=yes
10222 else
10223 $as_echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226 ac_header_compiler=no
10227 fi
10228
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10231 $as_echo "$ac_header_compiler" >&6; }
10232
10233 # Is the header present?
10234 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10235 $as_echo_n "checking $ac_header presence... " >&6; }
10236 cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h. */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242 #include <$ac_header>
10243 _ACEOF
10244 if { (ac_try="$ac_cpp conftest.$ac_ext"
10245 case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248 esac
10249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10250 $as_echo "$ac_try_echo") >&5
10251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10252 ac_status=$?
10253 grep -v '^ *+' conftest.er1 >conftest.err
10254 rm -f conftest.er1
10255 cat conftest.err >&5
10256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } >/dev/null && {
10258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10259 test ! -s conftest.err
10260 }; then
10261 ac_header_preproc=yes
10262 else
10263 $as_echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 ac_header_preproc=no
10267 fi
10268
10269 rm -f conftest.err conftest.$ac_ext
10270 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10271 $as_echo "$ac_header_preproc" >&6; }
10272
10273 # So? What about this header?
10274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10275 yes:no: )
10276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10277 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10279 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10280 ac_header_preproc=yes
10281 ;;
10282 no:yes:* )
10283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10284 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10286 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10288 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10290 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10294 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10295
10296 ;;
10297 esac
10298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10299 $as_echo_n "checking for $ac_header... " >&6; }
10300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10301 $as_echo_n "(cached) " >&6
10302 else
10303 eval "$as_ac_Header=\$ac_header_preproc"
10304 fi
10305 ac_res=`eval 'as_val=${'$as_ac_Header'}
10306 $as_echo "$as_val"'`
10307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10308 $as_echo "$ac_res" >&6; }
10309
10310 fi
10311 as_val=`eval 'as_val=${'$as_ac_Header'}
10312 $as_echo "$as_val"'`
10313 if test "x$as_val" = x""yes; then
10314 cat >>confdefs.h <<_ACEOF
10315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10316 _ACEOF
10317
10318 else
10319 $bailout
10320 fi
10321
10322 done
10323
10324 check_lib_no_libs gulm lg_core_login
10325 if test $NOTFOUND = 0; then
10326 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10327 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10328 GULM_LIBS="-lgulm"
10329 HAVE_GULM=yes
10330 fi
10331 else
10332 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10333 GULM_LIBS=$pkg_cv_GULM_LIBS
10334 { $as_echo "$as_me:$LINENO: result: yes" >&5
10335 $as_echo "yes" >&6; }
10336 HAVE_GULM=yes
10337 fi
10338 fi
10339
10340 if test x$BUILDCMAN = xyes; then
10341
10342 pkg_failed=no
10343 { $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10344 $as_echo_n "checking for CMAN... " >&6; }
10345
10346 if test -n "$CMAN_CFLAGS"; then
10347 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10348 elif test -n "$PKG_CONFIG"; then
10349 if test -n "$PKG_CONFIG" && \
10350 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10351 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10352 ac_status=$?
10353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; then
10355 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10356 else
10357 pkg_failed=yes
10358 fi
10359 else
10360 pkg_failed=untried
10361 fi
10362 if test -n "$CMAN_LIBS"; then
10363 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10364 elif test -n "$PKG_CONFIG"; then
10365 if test -n "$PKG_CONFIG" && \
10366 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10367 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10368 ac_status=$?
10369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; then
10371 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10372 else
10373 pkg_failed=yes
10374 fi
10375 else
10376 pkg_failed=untried
10377 fi
10378
10379
10380
10381 if test $pkg_failed = yes; then
10382
10383 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10384 _pkg_short_errors_supported=yes
10385 else
10386 _pkg_short_errors_supported=no
10387 fi
10388 if test $_pkg_short_errors_supported = yes; then
10389 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10390 else
10391 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10392 fi
10393 # Put the nasty error message in config.log where it belongs
10394 echo "$CMAN_PKG_ERRORS" >&5
10395
10396 { $as_echo "$as_me:$LINENO: result: no" >&5
10397 $as_echo "no" >&6; }
10398 NOTFOUND=0
10399
10400 for ac_header in libcman.h
10401 do
10402 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10404 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10405 $as_echo_n "checking for $ac_header... " >&6; }
10406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10407 $as_echo_n "(cached) " >&6
10408 fi
10409 ac_res=`eval 'as_val=${'$as_ac_Header'}
10410 $as_echo "$as_val"'`
10411 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10412 $as_echo "$ac_res" >&6; }
10413 else
10414 # Is the header compilable?
10415 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10416 $as_echo_n "checking $ac_header usability... " >&6; }
10417 cat >conftest.$ac_ext <<_ACEOF
10418 /* confdefs.h. */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10423 $ac_includes_default
10424 #include <$ac_header>
10425 _ACEOF
10426 rm -f conftest.$ac_objext
10427 if { (ac_try="$ac_compile"
10428 case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10431 esac
10432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10433 $as_echo "$ac_try_echo") >&5
10434 (eval "$ac_compile") 2>conftest.er1
10435 ac_status=$?
10436 grep -v '^ *+' conftest.er1 >conftest.err
10437 rm -f conftest.er1
10438 cat conftest.err >&5
10439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } && {
10441 test -z "$ac_c_werror_flag" ||
10442 test ! -s conftest.err
10443 } && test -s conftest.$ac_objext; then
10444 ac_header_compiler=yes
10445 else
10446 $as_echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10448
10449 ac_header_compiler=no
10450 fi
10451
10452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10453 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10454 $as_echo "$ac_header_compiler" >&6; }
10455
10456 # Is the header present?
10457 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10458 $as_echo_n "checking $ac_header presence... " >&6; }
10459 cat >conftest.$ac_ext <<_ACEOF
10460 /* confdefs.h. */
10461 _ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
10465 #include <$ac_header>
10466 _ACEOF
10467 if { (ac_try="$ac_cpp conftest.$ac_ext"
10468 case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10471 esac
10472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10473 $as_echo "$ac_try_echo") >&5
10474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } >/dev/null && {
10481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 }; then
10484 ac_header_preproc=yes
10485 else
10486 $as_echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489 ac_header_preproc=no
10490 fi
10491
10492 rm -f conftest.err conftest.$ac_ext
10493 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10494 $as_echo "$ac_header_preproc" >&6; }
10495
10496 # So? What about this header?
10497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10498 yes:no: )
10499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10500 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10502 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10503 ac_header_preproc=yes
10504 ;;
10505 no:yes:* )
10506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10507 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10509 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10511 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10513 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10515 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10517 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10518
10519 ;;
10520 esac
10521 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10522 $as_echo_n "checking for $ac_header... " >&6; }
10523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10524 $as_echo_n "(cached) " >&6
10525 else
10526 eval "$as_ac_Header=\$ac_header_preproc"
10527 fi
10528 ac_res=`eval 'as_val=${'$as_ac_Header'}
10529 $as_echo "$as_val"'`
10530 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10531 $as_echo "$ac_res" >&6; }
10532
10533 fi
10534 as_val=`eval 'as_val=${'$as_ac_Header'}
10535 $as_echo "$as_val"'`
10536 if test "x$as_val" = x""yes; then
10537 cat >>confdefs.h <<_ACEOF
10538 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10539 _ACEOF
10540
10541 else
10542 $bailout
10543 fi
10544
10545 done
10546
10547 check_lib_no_libs cman cman_init
10548 if test $NOTFOUND = 0; then
10549 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10550 $as_echo "no pkg for libcman, using -lcman" >&6; }
10551 CMAN_LIBS="-lcman"
10552 HAVE_CMAN=yes
10553 fi
10554 elif test $pkg_failed = untried; then
10555 NOTFOUND=0
10556
10557 for ac_header in libcman.h
10558 do
10559 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10562 $as_echo_n "checking for $ac_header... " >&6; }
10563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10564 $as_echo_n "(cached) " >&6
10565 fi
10566 ac_res=`eval 'as_val=${'$as_ac_Header'}
10567 $as_echo "$as_val"'`
10568 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10569 $as_echo "$ac_res" >&6; }
10570 else
10571 # Is the header compilable?
10572 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10573 $as_echo_n "checking $ac_header usability... " >&6; }
10574 cat >conftest.$ac_ext <<_ACEOF
10575 /* confdefs.h. */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10580 $ac_includes_default
10581 #include <$ac_header>
10582 _ACEOF
10583 rm -f conftest.$ac_objext
10584 if { (ac_try="$ac_compile"
10585 case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10588 esac
10589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10590 $as_echo "$ac_try_echo") >&5
10591 (eval "$ac_compile") 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } && {
10598 test -z "$ac_c_werror_flag" ||
10599 test ! -s conftest.err
10600 } && test -s conftest.$ac_objext; then
10601 ac_header_compiler=yes
10602 else
10603 $as_echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10605
10606 ac_header_compiler=no
10607 fi
10608
10609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10610 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10611 $as_echo "$ac_header_compiler" >&6; }
10612
10613 # Is the header present?
10614 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10615 $as_echo_n "checking $ac_header presence... " >&6; }
10616 cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h. */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 #include <$ac_header>
10623 _ACEOF
10624 if { (ac_try="$ac_cpp conftest.$ac_ext"
10625 case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10628 esac
10629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10630 $as_echo "$ac_try_echo") >&5
10631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } >/dev/null && {
10638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10639 test ! -s conftest.err
10640 }; then
10641 ac_header_preproc=yes
10642 else
10643 $as_echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10645
10646 ac_header_preproc=no
10647 fi
10648
10649 rm -f conftest.err conftest.$ac_ext
10650 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10651 $as_echo "$ac_header_preproc" >&6; }
10652
10653 # So? What about this header?
10654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10655 yes:no: )
10656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10657 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10659 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10660 ac_header_preproc=yes
10661 ;;
10662 no:yes:* )
10663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10664 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10666 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10668 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10670 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10672 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10674 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10675
10676 ;;
10677 esac
10678 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10679 $as_echo_n "checking for $ac_header... " >&6; }
10680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10681 $as_echo_n "(cached) " >&6
10682 else
10683 eval "$as_ac_Header=\$ac_header_preproc"
10684 fi
10685 ac_res=`eval 'as_val=${'$as_ac_Header'}
10686 $as_echo "$as_val"'`
10687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10688 $as_echo "$ac_res" >&6; }
10689
10690 fi
10691 as_val=`eval 'as_val=${'$as_ac_Header'}
10692 $as_echo "$as_val"'`
10693 if test "x$as_val" = x""yes; then
10694 cat >>confdefs.h <<_ACEOF
10695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10696 _ACEOF
10697
10698 else
10699 $bailout
10700 fi
10701
10702 done
10703
10704 check_lib_no_libs cman cman_init
10705 if test $NOTFOUND = 0; then
10706 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10707 $as_echo "no pkg for libcman, using -lcman" >&6; }
10708 CMAN_LIBS="-lcman"
10709 HAVE_CMAN=yes
10710 fi
10711 else
10712 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10713 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10714 { $as_echo "$as_me:$LINENO: result: yes" >&5
10715 $as_echo "yes" >&6; }
10716 HAVE_CMAN=yes
10717 fi
10718 CHECKCONFDB=yes
10719 CHECKDLM=yes
10720 fi
10721
10722 if test x$BUILDCOROSYNC = xyes || \
10723 test x$BUILDOPENAIS = xyes; then
10724
10725 pkg_failed=no
10726 { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10727 $as_echo_n "checking for COROSYNC... " >&6; }
10728
10729 if test -n "$COROSYNC_CFLAGS"; then
10730 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10731 elif test -n "$PKG_CONFIG"; then
10732 if test -n "$PKG_CONFIG" && \
10733 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10734 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10735 ac_status=$?
10736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; then
10738 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10739 else
10740 pkg_failed=yes
10741 fi
10742 else
10743 pkg_failed=untried
10744 fi
10745 if test -n "$COROSYNC_LIBS"; then
10746 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10747 elif test -n "$PKG_CONFIG"; then
10748 if test -n "$PKG_CONFIG" && \
10749 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10750 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10751 ac_status=$?
10752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; then
10754 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10755 else
10756 pkg_failed=yes
10757 fi
10758 else
10759 pkg_failed=untried
10760 fi
10761
10762
10763
10764 if test $pkg_failed = yes; then
10765
10766 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10767 _pkg_short_errors_supported=yes
10768 else
10769 _pkg_short_errors_supported=no
10770 fi
10771 if test $_pkg_short_errors_supported = yes; then
10772 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10773 else
10774 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10775 fi
10776 # Put the nasty error message in config.log where it belongs
10777 echo "$COROSYNC_PKG_ERRORS" >&5
10778
10779 { $as_echo "$as_me:$LINENO: result: no" >&5
10780 $as_echo "no" >&6; }
10781 $bailout
10782 elif test $pkg_failed = untried; then
10783 $bailout
10784 else
10785 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10786 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10787 { $as_echo "$as_me:$LINENO: result: yes" >&5
10788 $as_echo "yes" >&6; }
10789 HAVE_COROSYNC=yes
10790 fi
10791 CHECKCONFDB=yes
10792 fi
10793
10794 if test x$BUILDCOROSYNC = xyes; then
10795
10796 pkg_failed=no
10797 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10798 $as_echo_n "checking for QUORUM... " >&6; }
10799
10800 if test -n "$QUORUM_CFLAGS"; then
10801 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10802 elif test -n "$PKG_CONFIG"; then
10803 if test -n "$PKG_CONFIG" && \
10804 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10805 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10806 ac_status=$?
10807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; then
10809 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10810 else
10811 pkg_failed=yes
10812 fi
10813 else
10814 pkg_failed=untried
10815 fi
10816 if test -n "$QUORUM_LIBS"; then
10817 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10818 elif test -n "$PKG_CONFIG"; then
10819 if test -n "$PKG_CONFIG" && \
10820 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10821 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10822 ac_status=$?
10823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; then
10825 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10826 else
10827 pkg_failed=yes
10828 fi
10829 else
10830 pkg_failed=untried
10831 fi
10832
10833
10834
10835 if test $pkg_failed = yes; then
10836
10837 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10838 _pkg_short_errors_supported=yes
10839 else
10840 _pkg_short_errors_supported=no
10841 fi
10842 if test $_pkg_short_errors_supported = yes; then
10843 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10844 else
10845 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10846 fi
10847 # Put the nasty error message in config.log where it belongs
10848 echo "$QUORUM_PKG_ERRORS" >&5
10849
10850 { $as_echo "$as_me:$LINENO: result: no" >&5
10851 $as_echo "no" >&6; }
10852 $bailout
10853 elif test $pkg_failed = untried; then
10854 $bailout
10855 else
10856 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10857 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10858 { $as_echo "$as_me:$LINENO: result: yes" >&5
10859 $as_echo "yes" >&6; }
10860 HAVE_QUORUM=yes
10861 fi
10862 CHECKCPG=yes
10863 CHECKDLM=yes
10864 fi
10865
10866 if test x$BUILDOPENAIS = xyes; then
10867
10868 pkg_failed=no
10869 { $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10870 $as_echo_n "checking for SALCK... " >&6; }
10871
10872 if test -n "$SALCK_CFLAGS"; then
10873 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10874 elif test -n "$PKG_CONFIG"; then
10875 if test -n "$PKG_CONFIG" && \
10876 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10877 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10878 ac_status=$?
10879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; then
10881 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
10882 else
10883 pkg_failed=yes
10884 fi
10885 else
10886 pkg_failed=untried
10887 fi
10888 if test -n "$SALCK_LIBS"; then
10889 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
10890 elif test -n "$PKG_CONFIG"; then
10891 if test -n "$PKG_CONFIG" && \
10892 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10893 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10894 ac_status=$?
10895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; then
10897 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
10898 else
10899 pkg_failed=yes
10900 fi
10901 else
10902 pkg_failed=untried
10903 fi
10904
10905
10906
10907 if test $pkg_failed = yes; then
10908
10909 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10910 _pkg_short_errors_supported=yes
10911 else
10912 _pkg_short_errors_supported=no
10913 fi
10914 if test $_pkg_short_errors_supported = yes; then
10915 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
10916 else
10917 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
10918 fi
10919 # Put the nasty error message in config.log where it belongs
10920 echo "$SALCK_PKG_ERRORS" >&5
10921
10922 { $as_echo "$as_me:$LINENO: result: no" >&5
10923 $as_echo "no" >&6; }
10924 $bailout
10925 elif test $pkg_failed = untried; then
10926 $bailout
10927 else
10928 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
10929 SALCK_LIBS=$pkg_cv_SALCK_LIBS
10930 { $as_echo "$as_me:$LINENO: result: yes" >&5
10931 $as_echo "yes" >&6; }
10932 HAVE_SALCK=yes
10933 fi
10934 CHECKCPG=yes
10935 fi
10936
10937
10938
10939 if test x$CHECKCONFDB = xyes; then
10940
10941 pkg_failed=no
10942 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
10943 $as_echo_n "checking for CONFDB... " >&6; }
10944
10945 if test -n "$CONFDB_CFLAGS"; then
10946 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
10947 elif test -n "$PKG_CONFIG"; then
10948 if test -n "$PKG_CONFIG" && \
10949 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
10950 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
10951 ac_status=$?
10952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; then
10954 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
10955 else
10956 pkg_failed=yes
10957 fi
10958 else
10959 pkg_failed=untried
10960 fi
10961 if test -n "$CONFDB_LIBS"; then
10962 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
10963 elif test -n "$PKG_CONFIG"; then
10964 if test -n "$PKG_CONFIG" && \
10965 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
10966 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
10967 ac_status=$?
10968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; then
10970 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
10971 else
10972 pkg_failed=yes
10973 fi
10974 else
10975 pkg_failed=untried
10976 fi
10977
10978
10979
10980 if test $pkg_failed = yes; then
10981
10982 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10983 _pkg_short_errors_supported=yes
10984 else
10985 _pkg_short_errors_supported=no
10986 fi
10987 if test $_pkg_short_errors_supported = yes; then
10988 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
10989 else
10990 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
10991 fi
10992 # Put the nasty error message in config.log where it belongs
10993 echo "$CONFDB_PKG_ERRORS" >&5
10994
10995 { $as_echo "$as_me:$LINENO: result: no" >&5
10996 $as_echo "no" >&6; }
10997 HAVE_CONFDB=no
10998 elif test $pkg_failed = untried; then
10999 HAVE_CONFDB=no
11000 else
11001 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11002 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11003 { $as_echo "$as_me:$LINENO: result: yes" >&5
11004 $as_echo "yes" >&6; }
11005 HAVE_CONFDB=yes
11006 fi
11007
11008
11009 for ac_header in corosync/confdb.h
11010 do
11011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11013 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11014 $as_echo_n "checking for $ac_header... " >&6; }
11015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11016 $as_echo_n "(cached) " >&6
11017 fi
11018 ac_res=`eval 'as_val=${'$as_ac_Header'}
11019 $as_echo "$as_val"'`
11020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11021 $as_echo "$ac_res" >&6; }
11022 else
11023 # Is the header compilable?
11024 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11025 $as_echo_n "checking $ac_header usability... " >&6; }
11026 cat >conftest.$ac_ext <<_ACEOF
11027 /* confdefs.h. */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11032 $ac_includes_default
11033 #include <$ac_header>
11034 _ACEOF
11035 rm -f conftest.$ac_objext
11036 if { (ac_try="$ac_compile"
11037 case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11040 esac
11041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11042 $as_echo "$ac_try_echo") >&5
11043 (eval "$ac_compile") 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } && {
11050 test -z "$ac_c_werror_flag" ||
11051 test ! -s conftest.err
11052 } && test -s conftest.$ac_objext; then
11053 ac_header_compiler=yes
11054 else
11055 $as_echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11057
11058 ac_header_compiler=no
11059 fi
11060
11061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11062 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11063 $as_echo "$ac_header_compiler" >&6; }
11064
11065 # Is the header present?
11066 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11067 $as_echo_n "checking $ac_header presence... " >&6; }
11068 cat >conftest.$ac_ext <<_ACEOF
11069 /* confdefs.h. */
11070 _ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h. */
11074 #include <$ac_header>
11075 _ACEOF
11076 if { (ac_try="$ac_cpp conftest.$ac_ext"
11077 case "(($ac_try" in
11078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11079 *) ac_try_echo=$ac_try;;
11080 esac
11081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11082 $as_echo "$ac_try_echo") >&5
11083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11084 ac_status=$?
11085 grep -v '^ *+' conftest.er1 >conftest.err
11086 rm -f conftest.er1
11087 cat conftest.err >&5
11088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } >/dev/null && {
11090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11091 test ! -s conftest.err
11092 }; then
11093 ac_header_preproc=yes
11094 else
11095 $as_echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11097
11098 ac_header_preproc=no
11099 fi
11100
11101 rm -f conftest.err conftest.$ac_ext
11102 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11103 $as_echo "$ac_header_preproc" >&6; }
11104
11105 # So? What about this header?
11106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11107 yes:no: )
11108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11109 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11112 ac_header_preproc=yes
11113 ;;
11114 no:yes:* )
11115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11116 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11118 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11120 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11122 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11124 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11126 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11127
11128 ;;
11129 esac
11130 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11131 $as_echo_n "checking for $ac_header... " >&6; }
11132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11133 $as_echo_n "(cached) " >&6
11134 else
11135 eval "$as_ac_Header=\$ac_header_preproc"
11136 fi
11137 ac_res=`eval 'as_val=${'$as_ac_Header'}
11138 $as_echo "$as_val"'`
11139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11140 $as_echo "$ac_res" >&6; }
11141
11142 fi
11143 as_val=`eval 'as_val=${'$as_ac_Header'}
11144 $as_echo "$as_val"'`
11145 if test "x$as_val" = x""yes; then
11146 cat >>confdefs.h <<_ACEOF
11147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11148 _ACEOF
11149 HAVE_CONFDB_H=yes
11150 else
11151 HAVE_CONFDB_H=no
11152 fi
11153
11154 done
11155
11156
11157 if test x$HAVE_CONFDB != xyes && \
11158 test x$HAVE_CONFDB_H = xyes; then
11159 check_lib_no_libs confdb confdb_initialize
11160 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11161 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
11162 CONFDB_LIBS="-lconfdb"
11163 HAVE_CONFDB=yes
11164 fi
11165
11166 if test x$BUILDCOROSYNC = xyes && \
11167 test x$HAVE_CONFDB != xyes &&
11168 test x$CLVMD != xall; then
11169 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11170 $as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11171 { (exit 1); exit 1; }; }
11172 fi
11173 fi
11174
11175 if test x$CHECKCPG = xyes; then
11176
11177 pkg_failed=no
11178 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11179 $as_echo_n "checking for CPG... " >&6; }
11180
11181 if test -n "$CPG_CFLAGS"; then
11182 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11183 elif test -n "$PKG_CONFIG"; then
11184 if test -n "$PKG_CONFIG" && \
11185 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11186 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11187 ac_status=$?
11188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; then
11190 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11191 else
11192 pkg_failed=yes
11193 fi
11194 else
11195 pkg_failed=untried
11196 fi
11197 if test -n "$CPG_LIBS"; then
11198 pkg_cv_CPG_LIBS="$CPG_LIBS"
11199 elif test -n "$PKG_CONFIG"; then
11200 if test -n "$PKG_CONFIG" && \
11201 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11202 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11203 ac_status=$?
11204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; then
11206 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11207 else
11208 pkg_failed=yes
11209 fi
11210 else
11211 pkg_failed=untried
11212 fi
11213
11214
11215
11216 if test $pkg_failed = yes; then
11217
11218 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11219 _pkg_short_errors_supported=yes
11220 else
11221 _pkg_short_errors_supported=no
11222 fi
11223 if test $_pkg_short_errors_supported = yes; then
11224 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11225 else
11226 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11227 fi
11228 # Put the nasty error message in config.log where it belongs
11229 echo "$CPG_PKG_ERRORS" >&5
11230
11231 { $as_echo "$as_me:$LINENO: result: no" >&5
11232 $as_echo "no" >&6; }
11233 $bailout
11234 elif test $pkg_failed = untried; then
11235 $bailout
11236 else
11237 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11238 CPG_LIBS=$pkg_cv_CPG_LIBS
11239 { $as_echo "$as_me:$LINENO: result: yes" >&5
11240 $as_echo "yes" >&6; }
11241 HAVE_CPG=yes
11242 fi
11243 fi
11244
11245 if test x$CHECKDLM = xyes; then
11246
11247 pkg_failed=no
11248 { $as_echo "$as_me:$LINENO: checking for DLM" >&5
11249 $as_echo_n "checking for DLM... " >&6; }
11250
11251 if test -n "$DLM_CFLAGS"; then
11252 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11253 elif test -n "$PKG_CONFIG"; then
11254 if test -n "$PKG_CONFIG" && \
11255 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11256 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11257 ac_status=$?
11258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; then
11260 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11261 else
11262 pkg_failed=yes
11263 fi
11264 else
11265 pkg_failed=untried
11266 fi
11267 if test -n "$DLM_LIBS"; then
11268 pkg_cv_DLM_LIBS="$DLM_LIBS"
11269 elif test -n "$PKG_CONFIG"; then
11270 if test -n "$PKG_CONFIG" && \
11271 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11272 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11273 ac_status=$?
11274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; then
11276 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11277 else
11278 pkg_failed=yes
11279 fi
11280 else
11281 pkg_failed=untried
11282 fi
11283
11284
11285
11286 if test $pkg_failed = yes; then
11287
11288 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11289 _pkg_short_errors_supported=yes
11290 else
11291 _pkg_short_errors_supported=no
11292 fi
11293 if test $_pkg_short_errors_supported = yes; then
11294 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11295 else
11296 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11297 fi
11298 # Put the nasty error message in config.log where it belongs
11299 echo "$DLM_PKG_ERRORS" >&5
11300
11301 { $as_echo "$as_me:$LINENO: result: no" >&5
11302 $as_echo "no" >&6; }
11303 NOTFOUND=0
11304
11305 for ac_header in libdlm.h
11306 do
11307 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11310 $as_echo_n "checking for $ac_header... " >&6; }
11311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11312 $as_echo_n "(cached) " >&6
11313 fi
11314 ac_res=`eval 'as_val=${'$as_ac_Header'}
11315 $as_echo "$as_val"'`
11316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11317 $as_echo "$ac_res" >&6; }
11318 else
11319 # Is the header compilable?
11320 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11321 $as_echo_n "checking $ac_header usability... " >&6; }
11322 cat >conftest.$ac_ext <<_ACEOF
11323 /* confdefs.h. */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 $ac_includes_default
11329 #include <$ac_header>
11330 _ACEOF
11331 rm -f conftest.$ac_objext
11332 if { (ac_try="$ac_compile"
11333 case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 *) ac_try_echo=$ac_try;;
11336 esac
11337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11338 $as_echo "$ac_try_echo") >&5
11339 (eval "$ac_compile") 2>conftest.er1
11340 ac_status=$?
11341 grep -v '^ *+' conftest.er1 >conftest.err
11342 rm -f conftest.er1
11343 cat conftest.err >&5
11344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } && {
11346 test -z "$ac_c_werror_flag" ||
11347 test ! -s conftest.err
11348 } && test -s conftest.$ac_objext; then
11349 ac_header_compiler=yes
11350 else
11351 $as_echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11353
11354 ac_header_compiler=no
11355 fi
11356
11357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11359 $as_echo "$ac_header_compiler" >&6; }
11360
11361 # Is the header present?
11362 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11363 $as_echo_n "checking $ac_header presence... " >&6; }
11364 cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h. */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11370 #include <$ac_header>
11371 _ACEOF
11372 if { (ac_try="$ac_cpp conftest.$ac_ext"
11373 case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11376 esac
11377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11378 $as_echo "$ac_try_echo") >&5
11379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11380 ac_status=$?
11381 grep -v '^ *+' conftest.er1 >conftest.err
11382 rm -f conftest.er1
11383 cat conftest.err >&5
11384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } >/dev/null && {
11386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11387 test ! -s conftest.err
11388 }; then
11389 ac_header_preproc=yes
11390 else
11391 $as_echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11393
11394 ac_header_preproc=no
11395 fi
11396
11397 rm -f conftest.err conftest.$ac_ext
11398 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11399 $as_echo "$ac_header_preproc" >&6; }
11400
11401 # So? What about this header?
11402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11403 yes:no: )
11404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11405 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11407 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11408 ac_header_preproc=yes
11409 ;;
11410 no:yes:* )
11411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11412 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11414 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11416 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11418 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11420 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11422 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11423
11424 ;;
11425 esac
11426 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11427 $as_echo_n "checking for $ac_header... " >&6; }
11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 $as_echo_n "(cached) " >&6
11430 else
11431 eval "$as_ac_Header=\$ac_header_preproc"
11432 fi
11433 ac_res=`eval 'as_val=${'$as_ac_Header'}
11434 $as_echo "$as_val"'`
11435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11436 $as_echo "$ac_res" >&6; }
11437
11438 fi
11439 as_val=`eval 'as_val=${'$as_ac_Header'}
11440 $as_echo "$as_val"'`
11441 if test "x$as_val" = x""yes; then
11442 cat >>confdefs.h <<_ACEOF
11443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11444 _ACEOF
11445
11446 else
11447 $bailout
11448 fi
11449
11450 done
11451
11452 check_lib_no_libs dlm dlm_lock -lpthread
11453 if test $NOTFOUND = 0; then
11454 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11455 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11456 DLM_LIBS="-ldlm -lpthread"
11457 HAVE_DLM=yes
11458 fi
11459 elif test $pkg_failed = untried; then
11460 NOTFOUND=0
11461
11462 for ac_header in libdlm.h
11463 do
11464 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11467 $as_echo_n "checking for $ac_header... " >&6; }
11468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11469 $as_echo_n "(cached) " >&6
11470 fi
11471 ac_res=`eval 'as_val=${'$as_ac_Header'}
11472 $as_echo "$as_val"'`
11473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11474 $as_echo "$ac_res" >&6; }
11475 else
11476 # Is the header compilable?
11477 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11478 $as_echo_n "checking $ac_header usability... " >&6; }
11479 cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h. */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 $ac_includes_default
11486 #include <$ac_header>
11487 _ACEOF
11488 rm -f conftest.$ac_objext
11489 if { (ac_try="$ac_compile"
11490 case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11493 esac
11494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11495 $as_echo "$ac_try_echo") >&5
11496 (eval "$ac_compile") 2>conftest.er1
11497 ac_status=$?
11498 grep -v '^ *+' conftest.er1 >conftest.err
11499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } && {
11503 test -z "$ac_c_werror_flag" ||
11504 test ! -s conftest.err
11505 } && test -s conftest.$ac_objext; then
11506 ac_header_compiler=yes
11507 else
11508 $as_echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11510
11511 ac_header_compiler=no
11512 fi
11513
11514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11515 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11516 $as_echo "$ac_header_compiler" >&6; }
11517
11518 # Is the header present?
11519 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11520 $as_echo_n "checking $ac_header presence... " >&6; }
11521 cat >conftest.$ac_ext <<_ACEOF
11522 /* confdefs.h. */
11523 _ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11527 #include <$ac_header>
11528 _ACEOF
11529 if { (ac_try="$ac_cpp conftest.$ac_ext"
11530 case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11533 esac
11534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11535 $as_echo "$ac_try_echo") >&5
11536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11537 ac_status=$?
11538 grep -v '^ *+' conftest.er1 >conftest.err
11539 rm -f conftest.er1
11540 cat conftest.err >&5
11541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } >/dev/null && {
11543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11544 test ! -s conftest.err
11545 }; then
11546 ac_header_preproc=yes
11547 else
11548 $as_echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11550
11551 ac_header_preproc=no
11552 fi
11553
11554 rm -f conftest.err conftest.$ac_ext
11555 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11556 $as_echo "$ac_header_preproc" >&6; }
11557
11558 # So? What about this header?
11559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11560 yes:no: )
11561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11562 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11564 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11565 ac_header_preproc=yes
11566 ;;
11567 no:yes:* )
11568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11569 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11571 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11573 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11575 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11577 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11579 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11580
11581 ;;
11582 esac
11583 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11584 $as_echo_n "checking for $ac_header... " >&6; }
11585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586 $as_echo_n "(cached) " >&6
11587 else
11588 eval "$as_ac_Header=\$ac_header_preproc"
11589 fi
11590 ac_res=`eval 'as_val=${'$as_ac_Header'}
11591 $as_echo "$as_val"'`
11592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11593 $as_echo "$ac_res" >&6; }
11594
11595 fi
11596 as_val=`eval 'as_val=${'$as_ac_Header'}
11597 $as_echo "$as_val"'`
11598 if test "x$as_val" = x""yes; then
11599 cat >>confdefs.h <<_ACEOF
11600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11601 _ACEOF
11602
11603 else
11604 $bailout
11605 fi
11606
11607 done
11608
11609 check_lib_no_libs dlm dlm_lock -lpthread
11610 if test $NOTFOUND = 0; then
11611 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11612 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11613 DLM_LIBS="-ldlm -lpthread"
11614 HAVE_DLM=yes
11615 fi
11616 else
11617 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11618 DLM_LIBS=$pkg_cv_DLM_LIBS
11619 { $as_echo "$as_me:$LINENO: result: yes" >&5
11620 $as_echo "yes" >&6; }
11621 HAVE_DLM=yes
11622 fi
11623 fi
11624
11625 if test x$CLVMD = xall; then
11626 CLVMD=none
11627 if test x$HAVE_CCS = xyes && \
11628 test x$HAVE_GULM = xyes; then
11629 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11630 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
11631 CLVMD="$CLVMD,gulm"
11632 fi
11633 if test x$HAVE_CMAN = xyes && \
11634 test x$HAVE_DLM = xyes; then
11635 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11636 $as_echo "Enabling clvmd cman cluster manager" >&6; }
11637 CLVMD="$CLVMD,cman"
11638 fi
11639 if test x$HAVE_COROSYNC = xyes && \
11640 test x$HAVE_QUORUM = xyes && \
11641 test x$HAVE_CPG = xyes && \
11642 test x$HAVE_DLM = xyes && \
11643 test x$HAVE_CONFDB = xyes; then
11644 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11645 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
11646 CLVMD="$CLVMD,corosync"
11647 fi
11648 if test x$HAVE_COROSYNC = xyes && \
11649 test x$HAVE_CPG = xyes && \
11650 test x$HAVE_SALCK = xyes; then
11651 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11652 $as_echo "Enabling clvmd openais cluster manager" >&6; }
11653 CLVMD="$CLVMD,openais"
11654 fi
11655 if test x$CLVMD = xnone; then
11656 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11657 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
11658 fi
11659 fi
11660
11661 ################################################################################
11662 { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11663 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11664 # Check whether --enable-cmirrord was given.
11665 if test "${enable_cmirrord+set}" = set; then
11666 enableval=$enable_cmirrord; CMIRRORD=$enableval
11667 else
11668 CMIRRORD=no
11669 fi
11670
11671 { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11672 $as_echo "$CMIRRORD" >&6; }
11673
11674 BUILD_CMIRRORD=$CMIRRORD
11675
11676 ################################################################################
11677
11678
11679 if test "x$BUILD_CMIRRORD" = xyes; then
11680
11681 # Check whether --with-cmirrord-pidfile was given.
11682 if test "${with_cmirrord_pidfile+set}" = set; then
11683 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11684 #define CMIRRORD_PIDFILE "$withval"
11685 _ACEOF
11686
11687 else
11688 cat >>confdefs.h <<_ACEOF
11689 #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11690 _ACEOF
11691
11692 fi
11693
11694 fi
11695
11696 ################################################################################
11697 if [ "x$BUILD_CMIRRORD" = xyes ]; then
11698 #
11699 # FIXME: ALSO NEED TO CHECK FOR CHECKPOINT MODULE
11700 # FIXME: Merge this with the new clvmd logic
11701 #
11702
11703 pkg_failed=no
11704 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11705 $as_echo_n "checking for CPG... " >&6; }
11706
11707 if test -n "$CPG_CFLAGS"; then
11708 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11709 elif test -n "$PKG_CONFIG"; then
11710 if test -n "$PKG_CONFIG" && \
11711 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11712 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11713 ac_status=$?
11714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; then
11716 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11717 else
11718 pkg_failed=yes
11719 fi
11720 else
11721 pkg_failed=untried
11722 fi
11723 if test -n "$CPG_LIBS"; then
11724 pkg_cv_CPG_LIBS="$CPG_LIBS"
11725 elif test -n "$PKG_CONFIG"; then
11726 if test -n "$PKG_CONFIG" && \
11727 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11728 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11729 ac_status=$?
11730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; then
11732 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11733 else
11734 pkg_failed=yes
11735 fi
11736 else
11737 pkg_failed=untried
11738 fi
11739
11740
11741
11742 if test $pkg_failed = yes; then
11743
11744 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11745 _pkg_short_errors_supported=yes
11746 else
11747 _pkg_short_errors_supported=no
11748 fi
11749 if test $_pkg_short_errors_supported = yes; then
11750 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11751 else
11752 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11753 fi
11754 # Put the nasty error message in config.log where it belongs
11755 echo "$CPG_PKG_ERRORS" >&5
11756
11757 { $as_echo "$as_me:$LINENO: result: no" >&5
11758 $as_echo "no" >&6; }
11759 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
11760 $as_echo "no pkg for libcpg library, using -lcpg" >&6; };
11761 CPG_LIBS="-lcpg"
11762 elif test $pkg_failed = untried; then
11763 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
11764 $as_echo "no pkg for libcpg library, using -lcpg" >&6; };
11765 CPG_LIBS="-lcpg"
11766 else
11767 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11768 CPG_LIBS=$pkg_cv_CPG_LIBS
11769 { $as_echo "$as_me:$LINENO: result: yes" >&5
11770 $as_echo "yes" >&6; }
11771 :
11772 fi
11773 fi
11774
11775 ################################################################################
11776 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
11777 $as_echo_n "checking whether to enable debugging... " >&6; }
11778 # Check whether --enable-debug was given.
11779 if test "${enable_debug+set}" = set; then
11780 enableval=$enable_debug; DEBUG=$enableval
11781 else
11782 DEBUG=no
11783 fi
11784
11785 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
11786 $as_echo "$DEBUG" >&6; }
11787
11788 if test x$DEBUG = xyes; then
11789 COPTIMISE_FLAG=
11790 else
11791 CSCOPE_CMD=
11792 fi
11793
11794 ################################################################################
11795 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
11796 $as_echo_n "checking for C optimisation flag... " >&6; }
11797
11798 # Check whether --with-optimisation was given.
11799 if test "${with_optimisation+set}" = set; then
11800 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
11801 fi
11802
11803 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
11804 $as_echo "$COPTIMISE_FLAG" >&6; }
11805
11806 ################################################################################
11807 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
11808 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
11809 # Check whether --enable-profiling was given.
11810 if test "${enable_profiling+set}" = set; then
11811 enableval=$enable_profiling; PROFILING=$enableval
11812 else
11813 PROFILING=no
11814 fi
11815
11816 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
11817 $as_echo "$PROFILING" >&6; }
11818
11819 if test "x$PROFILING" = xyes; then
11820 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
11821 # Extract the first word of "lcov", so it can be a program name with args.
11822 set dummy lcov; ac_word=$2
11823 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11824 $as_echo_n "checking for $ac_word... " >&6; }
11825 if test "${ac_cv_path_LCOV+set}" = set; then
11826 $as_echo_n "(cached) " >&6
11827 else
11828 case $LCOV in
11829 [\\/]* | ?:[\\/]*)
11830 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
11831 ;;
11832 *)
11833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834 for as_dir in $PATH
11835 do
11836 IFS=$as_save_IFS
11837 test -z "$as_dir" && as_dir=.
11838 for ac_exec_ext in '' $ac_executable_extensions; do
11839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11840 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
11841 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11842 break 2
11843 fi
11844 done
11845 done
11846 IFS=$as_save_IFS
11847
11848 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
11849 ;;
11850 esac
11851 fi
11852 LCOV=$ac_cv_path_LCOV
11853 if test -n "$LCOV"; then
11854 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
11855 $as_echo "$LCOV" >&6; }
11856 else
11857 { $as_echo "$as_me:$LINENO: result: no" >&5
11858 $as_echo "no" >&6; }
11859 fi
11860
11861
11862 # Extract the first word of "genhtml", so it can be a program name with args.
11863 set dummy genhtml; ac_word=$2
11864 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11865 $as_echo_n "checking for $ac_word... " >&6; }
11866 if test "${ac_cv_path_GENHTML+set}" = set; then
11867 $as_echo_n "(cached) " >&6
11868 else
11869 case $GENHTML in
11870 [\\/]* | ?:[\\/]*)
11871 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
11872 ;;
11873 *)
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11876 do
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11881 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
11882 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11883 break 2
11884 fi
11885 done
11886 done
11887 IFS=$as_save_IFS
11888
11889 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
11890 ;;
11891 esac
11892 fi
11893 GENHTML=$ac_cv_path_GENHTML
11894 if test -n "$GENHTML"; then
11895 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
11896 $as_echo "$GENHTML" >&6; }
11897 else
11898 { $as_echo "$as_me:$LINENO: result: no" >&5
11899 $as_echo "no" >&6; }
11900 fi
11901
11902
11903 if test "$LCOV" = no -o "$GENHTML" = no ; then
11904 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
11905 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
11906 { (exit 1); exit 1; }; }
11907 fi
11908 fi
11909
11910 ################################################################################
11911 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
11912 $as_echo_n "checking whether to use device-mapper... " >&6; }
11913 # Check whether --enable-devmapper was given.
11914 if test "${enable_devmapper+set}" = set; then
11915 enableval=$enable_devmapper; DEVMAPPER=$enableval
11916 fi
11917
11918 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
11919 $as_echo "$DEVMAPPER" >&6; }
11920
11921 if test x$DEVMAPPER = xyes; then
11922
11923 cat >>confdefs.h <<\_ACEOF
11924 #define DEVMAPPER_SUPPORT 1
11925 _ACEOF
11926
11927 fi
11928
11929 ################################################################################
11930 { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
11931 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
11932 # Check whether --enable-udev_sync was given.
11933 if test "${enable_udev_sync+set}" = set; then
11934 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
11935 else
11936 UDEV_SYNC=no
11937 fi
11938
11939 { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
11940 $as_echo "$UDEV_SYNC" >&6; }
11941
11942 if test x$UDEV_SYNC = xyes; then
11943
11944 cat >>confdefs.h <<\_ACEOF
11945 #define UDEV_SYNC_SUPPORT 1
11946 _ACEOF
11947
11948 fi
11949
11950 { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
11951 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
11952 # Check whether --enable-udev_rules was given.
11953 if test "${enable_udev_rules+set}" = set; then
11954 enableval=$enable_udev_rules; UDEV_RULES=$enableval
11955 else
11956 UDEV_RULES=$UDEV_SYNC
11957 fi
11958
11959 { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
11960 $as_echo "$UDEV_RULES" >&6; }
11961
11962 ################################################################################
11963 # Check whether --enable-compat was given.
11964 if test "${enable_compat+set}" = set; then
11965 enableval=$enable_compat; DM_COMPAT=$enableval
11966 else
11967 DM_COMPAT=no
11968 fi
11969
11970
11971 ################################################################################
11972 # Check whether --enable-ioctl was given.
11973 if test "${enable_ioctl+set}" = set; then
11974 enableval=$enable_ioctl; DM_IOCTLS=$enableval
11975 fi
11976
11977
11978 ################################################################################
11979 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
11980 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
11981 # Check whether --enable-o_direct was given.
11982 if test "${enable_o_direct+set}" = set; then
11983 enableval=$enable_o_direct; ODIRECT=$enableval
11984 fi
11985
11986 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
11987 $as_echo "$ODIRECT" >&6; }
11988
11989 if test x$ODIRECT = xyes; then
11990
11991 cat >>confdefs.h <<\_ACEOF
11992 #define O_DIRECT_SUPPORT 1
11993 _ACEOF
11994
11995 fi
11996
11997 ################################################################################
11998 { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
11999 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12000 # Check whether --enable-applib was given.
12001 if test "${enable_applib+set}" = set; then
12002 enableval=$enable_applib; APPLIB=$enableval
12003 else
12004 APPLIB=no
12005 fi
12006
12007 { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12008 $as_echo "$APPLIB" >&6; }
12009
12010 test x$APPLIB = xyes \
12011 && LVM2APP_LIB=-llvm2app \
12012 || LVM2APP_LIB=
12013
12014 ################################################################################
12015 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12016 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
12017 # Check whether --enable-cmdlib was given.
12018 if test "${enable_cmdlib+set}" = set; then
12019 enableval=$enable_cmdlib; CMDLIB=$enableval
12020 else
12021 CMDLIB=no
12022 fi
12023
12024 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12025 $as_echo "$CMDLIB" >&6; }
12026
12027 test x$CMDLIB = xyes \
12028 && LVM2CMD_LIB=-llvm2cmd \
12029 || LVM2CMD_LIB=
12030
12031 ################################################################################
12032 # Check whether --enable-pkgconfig was given.
12033 if test "${enable_pkgconfig+set}" = set; then
12034 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12035 else
12036 PKGCONFIG=no
12037 fi
12038
12039
12040 ################################################################################
12041 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12042 $as_echo_n "checking whether to install fsadm... " >&6; }
12043 # Check whether --enable-fsadm was given.
12044 if test "${enable_fsadm+set}" = set; then
12045 enableval=$enable_fsadm; FSADM=$enableval
12046 fi
12047
12048 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12049 $as_echo "$FSADM" >&6; }
12050
12051 ################################################################################
12052 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12053 $as_echo_n "checking whether to use dmeventd... " >&6; }
12054 # Check whether --enable-dmeventd was given.
12055 if test "${enable_dmeventd+set}" = set; then
12056 enableval=$enable_dmeventd; DMEVENTD=$enableval
12057 fi
12058
12059 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12060 $as_echo "$DMEVENTD" >&6; }
12061
12062 BUILD_DMEVENTD=$DMEVENTD
12063
12064 if test x$DMEVENTD = xyes; then
12065 if test x$MIRRORS != xinternal; then
12066 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
12067 " >&5
12068 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
12069 " >&2;}
12070 { (exit 1); exit 1; }; }
12071 fi
12072 if test x$CMDLIB = xno; then
12073 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12074 " >&5
12075 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12076 " >&2;}
12077 { (exit 1); exit 1; }; }
12078 fi
12079 fi
12080
12081 if test x$DMEVENTD = xyes; then
12082
12083 cat >>confdefs.h <<\_ACEOF
12084 #define DMEVENTD 1
12085 _ACEOF
12086
12087 fi
12088
12089 ################################################################################
12090
12091 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12092 $as_echo_n "checking for getline in -lc... " >&6; }
12093 if test "${ac_cv_lib_c_getline+set}" = set; then
12094 $as_echo_n "(cached) " >&6
12095 else
12096 ac_check_lib_save_LIBS=$LIBS
12097 LIBS="-lc $LIBS"
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h. */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104
12105 /* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12108 #ifdef __cplusplus
12109 extern "C"
12110 #endif
12111 char getline ();
12112 int
12113 main ()
12114 {
12115 return getline ();
12116 ;
12117 return 0;
12118 }
12119 _ACEOF
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (ac_try="$ac_link"
12122 case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12125 esac
12126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12127 $as_echo "$ac_try_echo") >&5
12128 (eval "$ac_link") 2>conftest.er1
12129 ac_status=$?
12130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
12133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } && {
12135 test -z "$ac_c_werror_flag" ||
12136 test ! -s conftest.err
12137 } && test -s conftest$ac_exeext && {
12138 test "$cross_compiling" = yes ||
12139 $as_test_x conftest$ac_exeext
12140 }; then
12141 ac_cv_lib_c_getline=yes
12142 else
12143 $as_echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12145
12146 ac_cv_lib_c_getline=no
12147 fi
12148
12149 rm -rf conftest.dSYM
12150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12151 conftest$ac_exeext conftest.$ac_ext
12152 LIBS=$ac_check_lib_save_LIBS
12153 fi
12154 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12155 $as_echo "$ac_cv_lib_c_getline" >&6; }
12156 if test "x$ac_cv_lib_c_getline" = x""yes; then
12157
12158 cat >>confdefs.h <<\_ACEOF
12159 #define HAVE_GETLINE 1
12160 _ACEOF
12161
12162 fi
12163
12164
12165 ################################################################################
12166
12167 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12168 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
12169 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
12170 $as_echo_n "(cached) " >&6
12171 else
12172 ac_check_lib_save_LIBS=$LIBS
12173 LIBS="-lc $LIBS"
12174 cat >conftest.$ac_ext <<_ACEOF
12175 /* confdefs.h. */
12176 _ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12180
12181 /* Override any GCC internal prototype to avoid an error.
12182 Use char because int might match the return type of a GCC
12183 builtin and then its argument prototype would still apply. */
12184 #ifdef __cplusplus
12185 extern "C"
12186 #endif
12187 char canonicalize_file_name ();
12188 int
12189 main ()
12190 {
12191 return canonicalize_file_name ();
12192 ;
12193 return 0;
12194 }
12195 _ACEOF
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (ac_try="$ac_link"
12198 case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201 esac
12202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12203 $as_echo "$ac_try_echo") >&5
12204 (eval "$ac_link") 2>conftest.er1
12205 ac_status=$?
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
12209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } && {
12211 test -z "$ac_c_werror_flag" ||
12212 test ! -s conftest.err
12213 } && test -s conftest$ac_exeext && {
12214 test "$cross_compiling" = yes ||
12215 $as_test_x conftest$ac_exeext
12216 }; then
12217 ac_cv_lib_c_canonicalize_file_name=yes
12218 else
12219 $as_echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12221
12222 ac_cv_lib_c_canonicalize_file_name=no
12223 fi
12224
12225 rm -rf conftest.dSYM
12226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12227 conftest$ac_exeext conftest.$ac_ext
12228 LIBS=$ac_check_lib_save_LIBS
12229 fi
12230 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12231 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12232 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
12233
12234 cat >>confdefs.h <<\_ACEOF
12235 #define HAVE_CANONICALIZE_FILE_NAME 1
12236 _ACEOF
12237
12238 fi
12239
12240
12241 ################################################################################
12242 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12243 then exec_prefix="";
12244 fi;
12245
12246 ################################################################################
12247 if test x$READLINE != xno; then
12248 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12249 $as_echo_n "checking for library containing tgetent... " >&6; }
12250 if test "${ac_cv_search_tgetent+set}" = set; then
12251 $as_echo_n "(cached) " >&6
12252 else
12253 ac_func_search_save_LIBS=$LIBS
12254 cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h. */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12260
12261 /* Override any GCC internal prototype to avoid an error.
12262 Use char because int might match the return type of a GCC
12263 builtin and then its argument prototype would still apply. */
12264 #ifdef __cplusplus
12265 extern "C"
12266 #endif
12267 char tgetent ();
12268 int
12269 main ()
12270 {
12271 return tgetent ();
12272 ;
12273 return 0;
12274 }
12275 _ACEOF
12276 for ac_lib in '' tinfo ncurses curses termcap termlib; do
12277 if test -z "$ac_lib"; then
12278 ac_res="none required"
12279 else
12280 ac_res=-l$ac_lib
12281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12282 fi
12283 rm -f conftest.$ac_objext conftest$ac_exeext
12284 if { (ac_try="$ac_link"
12285 case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12288 esac
12289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12290 $as_echo "$ac_try_echo") >&5
12291 (eval "$ac_link") 2>conftest.er1
12292 ac_status=$?
12293 grep -v '^ *+' conftest.er1 >conftest.err
12294 rm -f conftest.er1
12295 cat conftest.err >&5
12296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } && {
12298 test -z "$ac_c_werror_flag" ||
12299 test ! -s conftest.err
12300 } && test -s conftest$ac_exeext && {
12301 test "$cross_compiling" = yes ||
12302 $as_test_x conftest$ac_exeext
12303 }; then
12304 ac_cv_search_tgetent=$ac_res
12305 else
12306 $as_echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12308
12309
12310 fi
12311
12312 rm -rf conftest.dSYM
12313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12314 conftest$ac_exeext
12315 if test "${ac_cv_search_tgetent+set}" = set; then
12316 break
12317 fi
12318 done
12319 if test "${ac_cv_search_tgetent+set}" = set; then
12320 :
12321 else
12322 ac_cv_search_tgetent=no
12323 fi
12324 rm conftest.$ac_ext
12325 LIBS=$ac_func_search_save_LIBS
12326 fi
12327 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
12328 $as_echo "$ac_cv_search_tgetent" >&6; }
12329 ac_res=$ac_cv_search_tgetent
12330 if test "$ac_res" != no; then
12331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12332 tg_found=yes
12333 else
12334 tg_found=no
12335 fi
12336
12337 test x$READLINE:$tg_found = xyes:no &&
12338 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
12339 --enable-readline option (which is enabled by default). Either disable readline
12340 support with --disable-readline or download and install termcap from:
12341 ftp.gnu.org/gnu/termcap
12342 Note: if you are using precompiled packages you will also need the development
12343 package as well (which may be called termcap-devel or something similar).
12344 Note: (n)curses also seems to work as a substitute for termcap. This was
12345 not found either - but you could try installing that as well.
12346 " >&5
12347 $as_echo "$as_me: error: termcap could not be found which is required for the
12348 --enable-readline option (which is enabled by default). Either disable readline
12349 support with --disable-readline or download and install termcap from:
12350 ftp.gnu.org/gnu/termcap
12351 Note: if you are using precompiled packages you will also need the development
12352 package as well (which may be called termcap-devel or something similar).
12353 Note: (n)curses also seems to work as a substitute for termcap. This was
12354 not found either - but you could try installing that as well.
12355 " >&2;}
12356 { (exit 1); exit 1; }; }
12357 fi
12358
12359 ################################################################################
12360 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12361 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12362 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12363 $as_echo_n "(cached) " >&6
12364 else
12365 ac_check_lib_save_LIBS=$LIBS
12366 LIBS="-ldl $LIBS"
12367 cat >conftest.$ac_ext <<_ACEOF
12368 /* confdefs.h. */
12369 _ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373
12374 /* Override any GCC internal prototype to avoid an error.
12375 Use char because int might match the return type of a GCC
12376 builtin and then its argument prototype would still apply. */
12377 #ifdef __cplusplus
12378 extern "C"
12379 #endif
12380 char dlopen ();
12381 int
12382 main ()
12383 {
12384 return dlopen ();
12385 ;
12386 return 0;
12387 }
12388 _ACEOF
12389 rm -f conftest.$ac_objext conftest$ac_exeext
12390 if { (ac_try="$ac_link"
12391 case "(($ac_try" in
12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12394 esac
12395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12396 $as_echo "$ac_try_echo") >&5
12397 (eval "$ac_link") 2>conftest.er1
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } && {
12404 test -z "$ac_c_werror_flag" ||
12405 test ! -s conftest.err
12406 } && test -s conftest$ac_exeext && {
12407 test "$cross_compiling" = yes ||
12408 $as_test_x conftest$ac_exeext
12409 }; then
12410 ac_cv_lib_dl_dlopen=yes
12411 else
12412 $as_echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415 ac_cv_lib_dl_dlopen=no
12416 fi
12417
12418 rm -rf conftest.dSYM
12419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12420 conftest$ac_exeext conftest.$ac_ext
12421 LIBS=$ac_check_lib_save_LIBS
12422 fi
12423 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12424 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12425 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12426 HAVE_LIBDL=yes
12427 else
12428 HAVE_LIBDL=no
12429 fi
12430
12431
12432 if [ "x$HAVE_LIBDL" = xyes ]; then
12433
12434 cat >>confdefs.h <<\_ACEOF
12435 #define HAVE_LIBDL 1
12436 _ACEOF
12437
12438 LIBS="-ldl $LIBS"
12439 else
12440 HAVE_LIBDL=no
12441 fi
12442
12443 ################################################################################
12444 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12445 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12446 \) -a "x$STATIC_LINK" = xyes ];
12447 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
12448 " >&5
12449 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
12450 " >&2;}
12451 { (exit 1); exit 1; }; }
12452 fi
12453
12454 ################################################################################
12455 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12456 $as_echo_n "checking whether to enable selinux support... " >&6; }
12457 # Check whether --enable-selinux was given.
12458 if test "${enable_selinux+set}" = set; then
12459 enableval=$enable_selinux; SELINUX=$enableval
12460 fi
12461
12462 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12463 $as_echo "$SELINUX" >&6; }
12464
12465 ################################################################################
12466 if test x$SELINUX = xyes; then
12467 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12468 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
12469 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
12470 $as_echo_n "(cached) " >&6
12471 else
12472 ac_check_lib_save_LIBS=$LIBS
12473 LIBS="-lsepol $LIBS"
12474 cat >conftest.$ac_ext <<_ACEOF
12475 /* confdefs.h. */
12476 _ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480
12481 /* Override any GCC internal prototype to avoid an error.
12482 Use char because int might match the return type of a GCC
12483 builtin and then its argument prototype would still apply. */
12484 #ifdef __cplusplus
12485 extern "C"
12486 #endif
12487 char sepol_check_context ();
12488 int
12489 main ()
12490 {
12491 return sepol_check_context ();
12492 ;
12493 return 0;
12494 }
12495 _ACEOF
12496 rm -f conftest.$ac_objext conftest$ac_exeext
12497 if { (ac_try="$ac_link"
12498 case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12501 esac
12502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12503 $as_echo "$ac_try_echo") >&5
12504 (eval "$ac_link") 2>conftest.er1
12505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
12509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
12513 } && test -s conftest$ac_exeext && {
12514 test "$cross_compiling" = yes ||
12515 $as_test_x conftest$ac_exeext
12516 }; then
12517 ac_cv_lib_sepol_sepol_check_context=yes
12518 else
12519 $as_echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12521
12522 ac_cv_lib_sepol_sepol_check_context=no
12523 fi
12524
12525 rm -rf conftest.dSYM
12526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12527 conftest$ac_exeext conftest.$ac_ext
12528 LIBS=$ac_check_lib_save_LIBS
12529 fi
12530 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12531 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12532 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
12533 HAVE_SEPOL=yes
12534 else
12535 HAVE_SEPOL=no
12536 fi
12537
12538
12539 if test x$HAVE_SEPOL = xyes; then
12540
12541 cat >>confdefs.h <<\_ACEOF
12542 #define HAVE_SEPOL 1
12543 _ACEOF
12544
12545 LIBS="-lsepol $LIBS"
12546 fi
12547
12548 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12549 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
12550 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
12551 $as_echo_n "(cached) " >&6
12552 else
12553 ac_check_lib_save_LIBS=$LIBS
12554 LIBS="-lselinux $LIBS"
12555 cat >conftest.$ac_ext <<_ACEOF
12556 /* confdefs.h. */
12557 _ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12561
12562 /* Override any GCC internal prototype to avoid an error.
12563 Use char because int might match the return type of a GCC
12564 builtin and then its argument prototype would still apply. */
12565 #ifdef __cplusplus
12566 extern "C"
12567 #endif
12568 char is_selinux_enabled ();
12569 int
12570 main ()
12571 {
12572 return is_selinux_enabled ();
12573 ;
12574 return 0;
12575 }
12576 _ACEOF
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (ac_try="$ac_link"
12579 case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582 esac
12583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12584 $as_echo "$ac_try_echo") >&5
12585 (eval "$ac_link") 2>conftest.er1
12586 ac_status=$?
12587 grep -v '^ *+' conftest.er1 >conftest.err
12588 rm -f conftest.er1
12589 cat conftest.err >&5
12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } && {
12592 test -z "$ac_c_werror_flag" ||
12593 test ! -s conftest.err
12594 } && test -s conftest$ac_exeext && {
12595 test "$cross_compiling" = yes ||
12596 $as_test_x conftest$ac_exeext
12597 }; then
12598 ac_cv_lib_selinux_is_selinux_enabled=yes
12599 else
12600 $as_echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12602
12603 ac_cv_lib_selinux_is_selinux_enabled=no
12604 fi
12605
12606 rm -rf conftest.dSYM
12607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12608 conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12610 fi
12611 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12612 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12613 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
12614 HAVE_SELINUX=yes
12615 else
12616 HAVE_SELINUX=no
12617 fi
12618
12619
12620 if test x$HAVE_SELINUX = xyes; then
12621
12622 cat >>confdefs.h <<\_ACEOF
12623 #define HAVE_SELINUX 1
12624 _ACEOF
12625
12626 LIBS="-lselinux $LIBS"
12627 else
12628 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
12629 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
12630 fi
12631
12632 # With --enable-static_link and selinux enabled, linking
12633 # fails on at least Debian unstable due to unsatisfied references
12634 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
12635 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
12636 lvm_saved_libs=$LIBS
12637 LIBS="$LIBS -static"
12638 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12639 $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
12640 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12641 $as_echo_n "(cached) " >&6
12642 else
12643 ac_func_search_save_LIBS=$LIBS
12644 cat >conftest.$ac_ext <<_ACEOF
12645 /* confdefs.h. */
12646 _ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h. */
12650
12651 /* Override any GCC internal prototype to avoid an error.
12652 Use char because int might match the return type of a GCC
12653 builtin and then its argument prototype would still apply. */
12654 #ifdef __cplusplus
12655 extern "C"
12656 #endif
12657 char pthread_mutex_lock ();
12658 int
12659 main ()
12660 {
12661 return pthread_mutex_lock ();
12662 ;
12663 return 0;
12664 }
12665 _ACEOF
12666 for ac_lib in '' pthread; do
12667 if test -z "$ac_lib"; then
12668 ac_res="none required"
12669 else
12670 ac_res=-l$ac_lib
12671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12672 fi
12673 rm -f conftest.$ac_objext conftest$ac_exeext
12674 if { (ac_try="$ac_link"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678 esac
12679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12680 $as_echo "$ac_try_echo") >&5
12681 (eval "$ac_link") 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } && {
12688 test -z "$ac_c_werror_flag" ||
12689 test ! -s conftest.err
12690 } && test -s conftest$ac_exeext && {
12691 test "$cross_compiling" = yes ||
12692 $as_test_x conftest$ac_exeext
12693 }; then
12694 ac_cv_search_pthread_mutex_lock=$ac_res
12695 else
12696 $as_echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12698
12699
12700 fi
12701
12702 rm -rf conftest.dSYM
12703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12704 conftest$ac_exeext
12705 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12706 break
12707 fi
12708 done
12709 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12710 :
12711 else
12712 ac_cv_search_pthread_mutex_lock=no
12713 fi
12714 rm conftest.$ac_ext
12715 LIBS=$ac_func_search_save_LIBS
12716 fi
12717 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12718 $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
12719 ac_res=$ac_cv_search_pthread_mutex_lock
12720 if test "$ac_res" != no; then
12721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12722 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
12723 LIB_PTHREAD=-lpthread
12724 fi
12725
12726 LIBS=$lvm_saved_libs
12727 fi
12728 fi
12729
12730 ################################################################################
12731 if test x$REALTIME = xyes; then
12732 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12733 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12734 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12735 $as_echo_n "(cached) " >&6
12736 else
12737 ac_check_lib_save_LIBS=$LIBS
12738 LIBS="-lrt $LIBS"
12739 cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h. */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h. */
12745
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12749 #ifdef __cplusplus
12750 extern "C"
12751 #endif
12752 char clock_gettime ();
12753 int
12754 main ()
12755 {
12756 return clock_gettime ();
12757 ;
12758 return 0;
12759 }
12760 _ACEOF
12761 rm -f conftest.$ac_objext conftest$ac_exeext
12762 if { (ac_try="$ac_link"
12763 case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12766 esac
12767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12768 $as_echo "$ac_try_echo") >&5
12769 (eval "$ac_link") 2>conftest.er1
12770 ac_status=$?
12771 grep -v '^ *+' conftest.er1 >conftest.err
12772 rm -f conftest.er1
12773 cat conftest.err >&5
12774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } && {
12776 test -z "$ac_c_werror_flag" ||
12777 test ! -s conftest.err
12778 } && test -s conftest$ac_exeext && {
12779 test "$cross_compiling" = yes ||
12780 $as_test_x conftest$ac_exeext
12781 }; then
12782 ac_cv_lib_rt_clock_gettime=yes
12783 else
12784 $as_echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12786
12787 ac_cv_lib_rt_clock_gettime=no
12788 fi
12789
12790 rm -rf conftest.dSYM
12791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12792 conftest$ac_exeext conftest.$ac_ext
12793 LIBS=$ac_check_lib_save_LIBS
12794 fi
12795 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12796 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12797 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
12798 HAVE_REALTIME=yes
12799 else
12800 HAVE_REALTIME=no
12801 fi
12802
12803
12804 if test x$HAVE_REALTIME = xyes; then
12805
12806 cat >>confdefs.h <<\_ACEOF
12807 #define HAVE_REALTIME 1
12808 _ACEOF
12809
12810 LIBS="-lrt $LIBS"
12811 else
12812 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
12813 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
12814 fi
12815 fi
12816
12817 ################################################################################
12818
12819 for ac_header in getopt.h
12820 do
12821 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12823 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12824 $as_echo_n "checking for $ac_header... " >&6; }
12825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12826 $as_echo_n "(cached) " >&6
12827 fi
12828 ac_res=`eval 'as_val=${'$as_ac_Header'}
12829 $as_echo "$as_val"'`
12830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12831 $as_echo "$ac_res" >&6; }
12832 else
12833 # Is the header compilable?
12834 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12835 $as_echo_n "checking $ac_header usability... " >&6; }
12836 cat >conftest.$ac_ext <<_ACEOF
12837 /* confdefs.h. */
12838 _ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12842 $ac_includes_default
12843 #include <$ac_header>
12844 _ACEOF
12845 rm -f conftest.$ac_objext
12846 if { (ac_try="$ac_compile"
12847 case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12850 esac
12851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12852 $as_echo "$ac_try_echo") >&5
12853 (eval "$ac_compile") 2>conftest.er1
12854 ac_status=$?
12855 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1
12857 cat conftest.err >&5
12858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } && {
12860 test -z "$ac_c_werror_flag" ||
12861 test ! -s conftest.err
12862 } && test -s conftest.$ac_objext; then
12863 ac_header_compiler=yes
12864 else
12865 $as_echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12867
12868 ac_header_compiler=no
12869 fi
12870
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12873 $as_echo "$ac_header_compiler" >&6; }
12874
12875 # Is the header present?
12876 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12877 $as_echo_n "checking $ac_header presence... " >&6; }
12878 cat >conftest.$ac_ext <<_ACEOF
12879 /* confdefs.h. */
12880 _ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 #include <$ac_header>
12885 _ACEOF
12886 if { (ac_try="$ac_cpp conftest.$ac_ext"
12887 case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12890 esac
12891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12892 $as_echo "$ac_try_echo") >&5
12893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12894 ac_status=$?
12895 grep -v '^ *+' conftest.er1 >conftest.err
12896 rm -f conftest.er1
12897 cat conftest.err >&5
12898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } >/dev/null && {
12900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12901 test ! -s conftest.err
12902 }; then
12903 ac_header_preproc=yes
12904 else
12905 $as_echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12907
12908 ac_header_preproc=no
12909 fi
12910
12911 rm -f conftest.err conftest.$ac_ext
12912 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12913 $as_echo "$ac_header_preproc" >&6; }
12914
12915 # So? What about this header?
12916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12917 yes:no: )
12918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12919 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12921 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12922 ac_header_preproc=yes
12923 ;;
12924 no:yes:* )
12925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12926 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12928 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12930 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12932 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12934 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12936 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12937
12938 ;;
12939 esac
12940 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12941 $as_echo_n "checking for $ac_header... " >&6; }
12942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12943 $as_echo_n "(cached) " >&6
12944 else
12945 eval "$as_ac_Header=\$ac_header_preproc"
12946 fi
12947 ac_res=`eval 'as_val=${'$as_ac_Header'}
12948 $as_echo "$as_val"'`
12949 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12950 $as_echo "$ac_res" >&6; }
12951
12952 fi
12953 as_val=`eval 'as_val=${'$as_ac_Header'}
12954 $as_echo "$as_val"'`
12955 if test "x$as_val" = x""yes; then
12956 cat >>confdefs.h <<_ACEOF
12957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12958 _ACEOF
12959
12960 cat >>confdefs.h <<\_ACEOF
12961 #define HAVE_GETOPTLONG 1
12962 _ACEOF
12963
12964 fi
12965
12966 done
12967
12968
12969 ################################################################################
12970 if test x$READLINE != xno; then
12971 rl_found=yes
12972
12973 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
12974 $as_echo_n "checking for readline in -lreadline... " >&6; }
12975 if test "${ac_cv_lib_readline_readline+set}" = set; then
12976 $as_echo_n "(cached) " >&6
12977 else
12978 ac_check_lib_save_LIBS=$LIBS
12979 LIBS="-lreadline $LIBS"
12980 cat >conftest.$ac_ext <<_ACEOF
12981 /* confdefs.h. */
12982 _ACEOF
12983 cat confdefs.h >>conftest.$ac_ext
12984 cat >>conftest.$ac_ext <<_ACEOF
12985 /* end confdefs.h. */
12986
12987 /* Override any GCC internal prototype to avoid an error.
12988 Use char because int might match the return type of a GCC
12989 builtin and then its argument prototype would still apply. */
12990 #ifdef __cplusplus
12991 extern "C"
12992 #endif
12993 char readline ();
12994 int
12995 main ()
12996 {
12997 return readline ();
12998 ;
12999 return 0;
13000 }
13001 _ACEOF
13002 rm -f conftest.$ac_objext conftest$ac_exeext
13003 if { (ac_try="$ac_link"
13004 case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13007 esac
13008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13009 $as_echo "$ac_try_echo") >&5
13010 (eval "$ac_link") 2>conftest.er1
13011 ac_status=$?
13012 grep -v '^ *+' conftest.er1 >conftest.err
13013 rm -f conftest.er1
13014 cat conftest.err >&5
13015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } && {
13017 test -z "$ac_c_werror_flag" ||
13018 test ! -s conftest.err
13019 } && test -s conftest$ac_exeext && {
13020 test "$cross_compiling" = yes ||
13021 $as_test_x conftest$ac_exeext
13022 }; then
13023 ac_cv_lib_readline_readline=yes
13024 else
13025 $as_echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13027
13028 ac_cv_lib_readline_readline=no
13029 fi
13030
13031 rm -rf conftest.dSYM
13032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13033 conftest$ac_exeext conftest.$ac_ext
13034 LIBS=$ac_check_lib_save_LIBS
13035 fi
13036 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13037 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13038 if test "x$ac_cv_lib_readline_readline" = x""yes; then
13039 cat >>confdefs.h <<_ACEOF
13040 #define HAVE_LIBREADLINE 1
13041 _ACEOF
13042
13043 LIBS="-lreadline $LIBS"
13044
13045 else
13046 rl_found=no
13047 fi
13048
13049 test x$READLINE:$rl_found = xyes:no &&
13050 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
13051 --enable-readline option (which is enabled by default). Either disable readline
13052 support with --disable-readline or download and install readline from:
13053 ftp.gnu.org/gnu/readline
13054 Note: if you are using precompiled packages you will also need the development
13055 package as well (which may be called readline-devel or something similar).
13056 " >&5
13057 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
13058 --enable-readline option (which is enabled by default). Either disable readline
13059 support with --disable-readline or download and install readline from:
13060 ftp.gnu.org/gnu/readline
13061 Note: if you are using precompiled packages you will also need the development
13062 package as well (which may be called readline-devel or something similar).
13063 " >&2;}
13064 { (exit 1); exit 1; }; }
13065 if test $rl_found = yes; then
13066
13067 for ac_func in rl_completion_matches
13068 do
13069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13070 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13071 $as_echo_n "checking for $ac_func... " >&6; }
13072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13073 $as_echo_n "(cached) " >&6
13074 else
13075 cat >conftest.$ac_ext <<_ACEOF
13076 /* confdefs.h. */
13077 _ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13083 #define $ac_func innocuous_$ac_func
13084
13085 /* System header to define __stub macros and hopefully few prototypes,
13086 which can conflict with char $ac_func (); below.
13087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13088 <limits.h> exists even on freestanding compilers. */
13089
13090 #ifdef __STDC__
13091 # include <limits.h>
13092 #else
13093 # include <assert.h>
13094 #endif
13095
13096 #undef $ac_func
13097
13098 /* Override any GCC internal prototype to avoid an error.
13099 Use char because int might match the return type of a GCC
13100 builtin and then its argument prototype would still apply. */
13101 #ifdef __cplusplus
13102 extern "C"
13103 #endif
13104 char $ac_func ();
13105 /* The GNU C library defines this for functions which it implements
13106 to always fail with ENOSYS. Some functions are actually named
13107 something starting with __ and the normal name is an alias. */
13108 #if defined __stub_$ac_func || defined __stub___$ac_func
13109 choke me
13110 #endif
13111
13112 int
13113 main ()
13114 {
13115 return $ac_func ();
13116 ;
13117 return 0;
13118 }
13119 _ACEOF
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (ac_try="$ac_link"
13122 case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13125 esac
13126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13127 $as_echo "$ac_try_echo") >&5
13128 (eval "$ac_link") 2>conftest.er1
13129 ac_status=$?
13130 grep -v '^ *+' conftest.er1 >conftest.err
13131 rm -f conftest.er1
13132 cat conftest.err >&5
13133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } && {
13135 test -z "$ac_c_werror_flag" ||
13136 test ! -s conftest.err
13137 } && test -s conftest$ac_exeext && {
13138 test "$cross_compiling" = yes ||
13139 $as_test_x conftest$ac_exeext
13140 }; then
13141 eval "$as_ac_var=yes"
13142 else
13143 $as_echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13145
13146 eval "$as_ac_var=no"
13147 fi
13148
13149 rm -rf conftest.dSYM
13150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13151 conftest$ac_exeext conftest.$ac_ext
13152 fi
13153 ac_res=`eval 'as_val=${'$as_ac_var'}
13154 $as_echo "$as_val"'`
13155 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13156 $as_echo "$ac_res" >&6; }
13157 as_val=`eval 'as_val=${'$as_ac_var'}
13158 $as_echo "$as_val"'`
13159 if test "x$as_val" = x""yes; then
13160 cat >>confdefs.h <<_ACEOF
13161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13162 _ACEOF
13163
13164 fi
13165 done
13166
13167
13168 cat >>confdefs.h <<\_ACEOF
13169 #define READLINE_SUPPORT 1
13170 _ACEOF
13171
13172 fi
13173 fi
13174
13175 ################################################################################
13176 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13177 $as_echo_n "checking whether to enable internationalisation... " >&6; }
13178 # Check whether --enable-nls was given.
13179 if test "${enable_nls+set}" = set; then
13180 enableval=$enable_nls; INTL=$enableval
13181 else
13182 INTL=no
13183 fi
13184
13185 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
13186 $as_echo "$INTL" >&6; }
13187
13188 if test x$INTL = xyes; then
13189 # FIXME - Move this - can be device-mapper too
13190 INTL_PACKAGE="lvm2"
13191 # Extract the first word of "msgfmt", so it can be a program name with args.
13192 set dummy msgfmt; ac_word=$2
13193 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13194 $as_echo_n "checking for $ac_word... " >&6; }
13195 if test "${ac_cv_path_MSGFMT+set}" = set; then
13196 $as_echo_n "(cached) " >&6
13197 else
13198 case $MSGFMT in
13199 [\\/]* | ?:[\\/]*)
13200 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13201 ;;
13202 *)
13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204 for as_dir in $PATH
13205 do
13206 IFS=$as_save_IFS
13207 test -z "$as_dir" && as_dir=.
13208 for ac_exec_ext in '' $ac_executable_extensions; do
13209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13210 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
13211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13212 break 2
13213 fi
13214 done
13215 done
13216 IFS=$as_save_IFS
13217
13218 ;;
13219 esac
13220 fi
13221 MSGFMT=$ac_cv_path_MSGFMT
13222 if test -n "$MSGFMT"; then
13223 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13224 $as_echo "$MSGFMT" >&6; }
13225 else
13226 { $as_echo "$as_me:$LINENO: result: no" >&5
13227 $as_echo "no" >&6; }
13228 fi
13229
13230
13231 if [ "x$MSGFMT" == x ];
13232 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
13233 " >&5
13234 $as_echo "$as_me: error: msgfmt not found in path $PATH
13235 " >&2;}
13236 { (exit 1); exit 1; }; }
13237 fi;
13238
13239
13240 # Check whether --with-localedir was given.
13241 if test "${with_localedir+set}" = set; then
13242 withval=$with_localedir; LOCALEDIR="$withval"
13243 else
13244 LOCALEDIR='${prefix}/share/locale'
13245 fi
13246
13247 fi
13248
13249 ################################################################################
13250
13251 # Check whether --with-confdir was given.
13252 if test "${with_confdir+set}" = set; then
13253 withval=$with_confdir; CONFDIR="$withval"
13254 else
13255 CONFDIR='/etc'
13256 fi
13257
13258
13259
13260 # Check whether --with-staticdir was given.
13261 if test "${with_staticdir+set}" = set; then
13262 withval=$with_staticdir; STATICDIR="$withval"
13263 else
13264 STATICDIR='${exec_prefix}/sbin'
13265 fi
13266
13267
13268
13269 # Check whether --with-usrlibdir was given.
13270 if test "${with_usrlibdir+set}" = set; then
13271 withval=$with_usrlibdir; usrlibdir="$withval"
13272 else
13273 usrlibdir='${prefix}/lib'
13274 fi
13275
13276
13277
13278 # Check whether --with-usrsbindir was given.
13279 if test "${with_usrsbindir+set}" = set; then
13280 withval=$with_usrsbindir; usrsbindir="$withval"
13281 else
13282 usrsbindir='${prefix}/sbin'
13283 fi
13284
13285
13286 ################################################################################
13287
13288 # Check whether --with-udev_prefix was given.
13289 if test "${with_udev_prefix+set}" = set; then
13290 withval=$with_udev_prefix; udev_prefix="$withval"
13291 else
13292 udev_prefix='${exec_prefix}'
13293 fi
13294
13295
13296
13297 # Check whether --with-udevdir was given.
13298 if test "${with_udevdir+set}" = set; then
13299 withval=$with_udevdir; udevdir="$withval"
13300 else
13301 udevdir='${udev_prefix}/lib/udev/rules.d'
13302 fi
13303
13304
13305 ################################################################################
13306 if test x$READLINE = xyes; then
13307
13308
13309 for ac_header in readline/readline.h readline/history.h
13310 do
13311 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13313 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13314 $as_echo_n "checking for $ac_header... " >&6; }
13315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13316 $as_echo_n "(cached) " >&6
13317 fi
13318 ac_res=`eval 'as_val=${'$as_ac_Header'}
13319 $as_echo "$as_val"'`
13320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13321 $as_echo "$ac_res" >&6; }
13322 else
13323 # Is the header compilable?
13324 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13325 $as_echo_n "checking $ac_header usability... " >&6; }
13326 cat >conftest.$ac_ext <<_ACEOF
13327 /* confdefs.h. */
13328 _ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h. */
13332 $ac_includes_default
13333 #include <$ac_header>
13334 _ACEOF
13335 rm -f conftest.$ac_objext
13336 if { (ac_try="$ac_compile"
13337 case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13340 esac
13341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13342 $as_echo "$ac_try_echo") >&5
13343 (eval "$ac_compile") 2>conftest.er1
13344 ac_status=$?
13345 grep -v '^ *+' conftest.er1 >conftest.err
13346 rm -f conftest.er1
13347 cat conftest.err >&5
13348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } && {
13350 test -z "$ac_c_werror_flag" ||
13351 test ! -s conftest.err
13352 } && test -s conftest.$ac_objext; then
13353 ac_header_compiler=yes
13354 else
13355 $as_echo "$as_me: failed program was:" >&5
13356 sed 's/^/| /' conftest.$ac_ext >&5
13357
13358 ac_header_compiler=no
13359 fi
13360
13361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13362 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13363 $as_echo "$ac_header_compiler" >&6; }
13364
13365 # Is the header present?
13366 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13367 $as_echo_n "checking $ac_header presence... " >&6; }
13368 cat >conftest.$ac_ext <<_ACEOF
13369 /* confdefs.h. */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 #include <$ac_header>
13375 _ACEOF
13376 if { (ac_try="$ac_cpp conftest.$ac_ext"
13377 case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13380 esac
13381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13382 $as_echo "$ac_try_echo") >&5
13383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13384 ac_status=$?
13385 grep -v '^ *+' conftest.er1 >conftest.err
13386 rm -f conftest.er1
13387 cat conftest.err >&5
13388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } >/dev/null && {
13390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13391 test ! -s conftest.err
13392 }; then
13393 ac_header_preproc=yes
13394 else
13395 $as_echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13397
13398 ac_header_preproc=no
13399 fi
13400
13401 rm -f conftest.err conftest.$ac_ext
13402 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13403 $as_echo "$ac_header_preproc" >&6; }
13404
13405 # So? What about this header?
13406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13407 yes:no: )
13408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13409 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13411 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13412 ac_header_preproc=yes
13413 ;;
13414 no:yes:* )
13415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13416 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13418 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13420 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13422 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13424 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13426 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13427
13428 ;;
13429 esac
13430 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13431 $as_echo_n "checking for $ac_header... " >&6; }
13432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13433 $as_echo_n "(cached) " >&6
13434 else
13435 eval "$as_ac_Header=\$ac_header_preproc"
13436 fi
13437 ac_res=`eval 'as_val=${'$as_ac_Header'}
13438 $as_echo "$as_val"'`
13439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13440 $as_echo "$ac_res" >&6; }
13441
13442 fi
13443 as_val=`eval 'as_val=${'$as_ac_Header'}
13444 $as_echo "$as_val"'`
13445 if test "x$as_val" = x""yes; then
13446 cat >>confdefs.h <<_ACEOF
13447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13448 _ACEOF
13449
13450 else
13451 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13452 $as_echo "$as_me: error: bailing out" >&2;}
13453 { (exit 1); exit 1; }; }
13454 fi
13455
13456 done
13457
13458 fi
13459
13460 if test x$CLVMD != xnone; then
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471 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
13472 do
13473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13475 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13476 $as_echo_n "checking for $ac_header... " >&6; }
13477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13478 $as_echo_n "(cached) " >&6
13479 fi
13480 ac_res=`eval 'as_val=${'$as_ac_Header'}
13481 $as_echo "$as_val"'`
13482 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13483 $as_echo "$ac_res" >&6; }
13484 else
13485 # Is the header compilable?
13486 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13487 $as_echo_n "checking $ac_header usability... " >&6; }
13488 cat >conftest.$ac_ext <<_ACEOF
13489 /* confdefs.h. */
13490 _ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13494 $ac_includes_default
13495 #include <$ac_header>
13496 _ACEOF
13497 rm -f conftest.$ac_objext
13498 if { (ac_try="$ac_compile"
13499 case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13502 esac
13503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13504 $as_echo "$ac_try_echo") >&5
13505 (eval "$ac_compile") 2>conftest.er1
13506 ac_status=$?
13507 grep -v '^ *+' conftest.er1 >conftest.err
13508 rm -f conftest.er1
13509 cat conftest.err >&5
13510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } && {
13512 test -z "$ac_c_werror_flag" ||
13513 test ! -s conftest.err
13514 } && test -s conftest.$ac_objext; then
13515 ac_header_compiler=yes
13516 else
13517 $as_echo "$as_me: failed program was:" >&5
13518 sed 's/^/| /' conftest.$ac_ext >&5
13519
13520 ac_header_compiler=no
13521 fi
13522
13523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13524 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13525 $as_echo "$ac_header_compiler" >&6; }
13526
13527 # Is the header present?
13528 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13529 $as_echo_n "checking $ac_header presence... " >&6; }
13530 cat >conftest.$ac_ext <<_ACEOF
13531 /* confdefs.h. */
13532 _ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h. */
13536 #include <$ac_header>
13537 _ACEOF
13538 if { (ac_try="$ac_cpp conftest.$ac_ext"
13539 case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13542 esac
13543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13544 $as_echo "$ac_try_echo") >&5
13545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13546 ac_status=$?
13547 grep -v '^ *+' conftest.er1 >conftest.err
13548 rm -f conftest.er1
13549 cat conftest.err >&5
13550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } >/dev/null && {
13552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13553 test ! -s conftest.err
13554 }; then
13555 ac_header_preproc=yes
13556 else
13557 $as_echo "$as_me: failed program was:" >&5
13558 sed 's/^/| /' conftest.$ac_ext >&5
13559
13560 ac_header_preproc=no
13561 fi
13562
13563 rm -f conftest.err conftest.$ac_ext
13564 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13565 $as_echo "$ac_header_preproc" >&6; }
13566
13567 # So? What about this header?
13568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13569 yes:no: )
13570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13571 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13573 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13574 ac_header_preproc=yes
13575 ;;
13576 no:yes:* )
13577 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13578 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13579 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13580 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13581 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13582 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13584 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13586 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13588 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13589
13590 ;;
13591 esac
13592 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13593 $as_echo_n "checking for $ac_header... " >&6; }
13594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13595 $as_echo_n "(cached) " >&6
13596 else
13597 eval "$as_ac_Header=\$ac_header_preproc"
13598 fi
13599 ac_res=`eval 'as_val=${'$as_ac_Header'}
13600 $as_echo "$as_val"'`
13601 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13602 $as_echo "$ac_res" >&6; }
13603
13604 fi
13605 as_val=`eval 'as_val=${'$as_ac_Header'}
13606 $as_echo "$as_val"'`
13607 if test "x$as_val" = x""yes; then
13608 cat >>confdefs.h <<_ACEOF
13609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13610 _ACEOF
13611
13612 else
13613 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13614 $as_echo "$as_me: error: bailing out" >&2;}
13615 { (exit 1); exit 1; }; }
13616 fi
13617
13618 done
13619
13620
13621
13622
13623
13624
13625 for ac_func in dup2 getmntent memmove select socket
13626 do
13627 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13628 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13629 $as_echo_n "checking for $ac_func... " >&6; }
13630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13631 $as_echo_n "(cached) " >&6
13632 else
13633 cat >conftest.$ac_ext <<_ACEOF
13634 /* confdefs.h. */
13635 _ACEOF
13636 cat confdefs.h >>conftest.$ac_ext
13637 cat >>conftest.$ac_ext <<_ACEOF
13638 /* end confdefs.h. */
13639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13641 #define $ac_func innocuous_$ac_func
13642
13643 /* System header to define __stub macros and hopefully few prototypes,
13644 which can conflict with char $ac_func (); below.
13645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13646 <limits.h> exists even on freestanding compilers. */
13647
13648 #ifdef __STDC__
13649 # include <limits.h>
13650 #else
13651 # include <assert.h>
13652 #endif
13653
13654 #undef $ac_func
13655
13656 /* Override any GCC internal prototype to avoid an error.
13657 Use char because int might match the return type of a GCC
13658 builtin and then its argument prototype would still apply. */
13659 #ifdef __cplusplus
13660 extern "C"
13661 #endif
13662 char $ac_func ();
13663 /* The GNU C library defines this for functions which it implements
13664 to always fail with ENOSYS. Some functions are actually named
13665 something starting with __ and the normal name is an alias. */
13666 #if defined __stub_$ac_func || defined __stub___$ac_func
13667 choke me
13668 #endif
13669
13670 int
13671 main ()
13672 {
13673 return $ac_func ();
13674 ;
13675 return 0;
13676 }
13677 _ACEOF
13678 rm -f conftest.$ac_objext conftest$ac_exeext
13679 if { (ac_try="$ac_link"
13680 case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13683 esac
13684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13685 $as_echo "$ac_try_echo") >&5
13686 (eval "$ac_link") 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } && {
13693 test -z "$ac_c_werror_flag" ||
13694 test ! -s conftest.err
13695 } && test -s conftest$ac_exeext && {
13696 test "$cross_compiling" = yes ||
13697 $as_test_x conftest$ac_exeext
13698 }; then
13699 eval "$as_ac_var=yes"
13700 else
13701 $as_echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13703
13704 eval "$as_ac_var=no"
13705 fi
13706
13707 rm -rf conftest.dSYM
13708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13709 conftest$ac_exeext conftest.$ac_ext
13710 fi
13711 ac_res=`eval 'as_val=${'$as_ac_var'}
13712 $as_echo "$as_val"'`
13713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13714 $as_echo "$ac_res" >&6; }
13715 as_val=`eval 'as_val=${'$as_ac_var'}
13716 $as_echo "$as_val"'`
13717 if test "x$as_val" = x""yes; then
13718 cat >>confdefs.h <<_ACEOF
13719 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13720 _ACEOF
13721
13722 else
13723 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13724 $as_echo "$as_me: error: bailing out" >&2;}
13725 { (exit 1); exit 1; }; }
13726 fi
13727 done
13728
13729 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
13730 # -lseq on Dynix/PTX, -lgen on Unixware.
13731 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
13732 $as_echo_n "checking for library containing getmntent... " >&6; }
13733 if test "${ac_cv_search_getmntent+set}" = set; then
13734 $as_echo_n "(cached) " >&6
13735 else
13736 ac_func_search_save_LIBS=$LIBS
13737 cat >conftest.$ac_ext <<_ACEOF
13738 /* confdefs.h. */
13739 _ACEOF
13740 cat confdefs.h >>conftest.$ac_ext
13741 cat >>conftest.$ac_ext <<_ACEOF
13742 /* end confdefs.h. */
13743
13744 /* Override any GCC internal prototype to avoid an error.
13745 Use char because int might match the return type of a GCC
13746 builtin and then its argument prototype would still apply. */
13747 #ifdef __cplusplus
13748 extern "C"
13749 #endif
13750 char getmntent ();
13751 int
13752 main ()
13753 {
13754 return getmntent ();
13755 ;
13756 return 0;
13757 }
13758 _ACEOF
13759 for ac_lib in '' sun seq gen; do
13760 if test -z "$ac_lib"; then
13761 ac_res="none required"
13762 else
13763 ac_res=-l$ac_lib
13764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13765 fi
13766 rm -f conftest.$ac_objext conftest$ac_exeext
13767 if { (ac_try="$ac_link"
13768 case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13771 esac
13772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13773 $as_echo "$ac_try_echo") >&5
13774 (eval "$ac_link") 2>conftest.er1
13775 ac_status=$?
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
13779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } && {
13781 test -z "$ac_c_werror_flag" ||
13782 test ! -s conftest.err
13783 } && test -s conftest$ac_exeext && {
13784 test "$cross_compiling" = yes ||
13785 $as_test_x conftest$ac_exeext
13786 }; then
13787 ac_cv_search_getmntent=$ac_res
13788 else
13789 $as_echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13791
13792
13793 fi
13794
13795 rm -rf conftest.dSYM
13796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13797 conftest$ac_exeext
13798 if test "${ac_cv_search_getmntent+set}" = set; then
13799 break
13800 fi
13801 done
13802 if test "${ac_cv_search_getmntent+set}" = set; then
13803 :
13804 else
13805 ac_cv_search_getmntent=no
13806 fi
13807 rm conftest.$ac_ext
13808 LIBS=$ac_func_search_save_LIBS
13809 fi
13810 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
13811 $as_echo "$ac_cv_search_getmntent" >&6; }
13812 ac_res=$ac_cv_search_getmntent
13813 if test "$ac_res" != no; then
13814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13815 ac_cv_func_getmntent=yes
13816
13817 cat >>confdefs.h <<\_ACEOF
13818 #define HAVE_GETMNTENT 1
13819 _ACEOF
13820
13821 else
13822 ac_cv_func_getmntent=no
13823 fi
13824
13825
13826 # AC_FUNC_REALLOC
13827
13828
13829 for ac_header in sys/select.h sys/socket.h
13830 do
13831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13833 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13834 $as_echo_n "checking for $ac_header... " >&6; }
13835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13836 $as_echo_n "(cached) " >&6
13837 fi
13838 ac_res=`eval 'as_val=${'$as_ac_Header'}
13839 $as_echo "$as_val"'`
13840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13841 $as_echo "$ac_res" >&6; }
13842 else
13843 # Is the header compilable?
13844 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13845 $as_echo_n "checking $ac_header usability... " >&6; }
13846 cat >conftest.$ac_ext <<_ACEOF
13847 /* confdefs.h. */
13848 _ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13852 $ac_includes_default
13853 #include <$ac_header>
13854 _ACEOF
13855 rm -f conftest.$ac_objext
13856 if { (ac_try="$ac_compile"
13857 case "(($ac_try" in
13858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859 *) ac_try_echo=$ac_try;;
13860 esac
13861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13862 $as_echo "$ac_try_echo") >&5
13863 (eval "$ac_compile") 2>conftest.er1
13864 ac_status=$?
13865 grep -v '^ *+' conftest.er1 >conftest.err
13866 rm -f conftest.er1
13867 cat conftest.err >&5
13868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } && {
13870 test -z "$ac_c_werror_flag" ||
13871 test ! -s conftest.err
13872 } && test -s conftest.$ac_objext; then
13873 ac_header_compiler=yes
13874 else
13875 $as_echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13877
13878 ac_header_compiler=no
13879 fi
13880
13881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13882 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13883 $as_echo "$ac_header_compiler" >&6; }
13884
13885 # Is the header present?
13886 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13887 $as_echo_n "checking $ac_header presence... " >&6; }
13888 cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h. */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13894 #include <$ac_header>
13895 _ACEOF
13896 if { (ac_try="$ac_cpp conftest.$ac_ext"
13897 case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13900 esac
13901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13902 $as_echo "$ac_try_echo") >&5
13903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13904 ac_status=$?
13905 grep -v '^ *+' conftest.er1 >conftest.err
13906 rm -f conftest.er1
13907 cat conftest.err >&5
13908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } >/dev/null && {
13910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13911 test ! -s conftest.err
13912 }; then
13913 ac_header_preproc=yes
13914 else
13915 $as_echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13917
13918 ac_header_preproc=no
13919 fi
13920
13921 rm -f conftest.err conftest.$ac_ext
13922 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13923 $as_echo "$ac_header_preproc" >&6; }
13924
13925 # So? What about this header?
13926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13927 yes:no: )
13928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13929 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13931 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13932 ac_header_preproc=yes
13933 ;;
13934 no:yes:* )
13935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13936 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13938 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13940 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13942 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13944 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13946 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13947
13948 ;;
13949 esac
13950 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13951 $as_echo_n "checking for $ac_header... " >&6; }
13952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13953 $as_echo_n "(cached) " >&6
13954 else
13955 eval "$as_ac_Header=\$ac_header_preproc"
13956 fi
13957 ac_res=`eval 'as_val=${'$as_ac_Header'}
13958 $as_echo "$as_val"'`
13959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13960 $as_echo "$ac_res" >&6; }
13961
13962 fi
13963 as_val=`eval 'as_val=${'$as_ac_Header'}
13964 $as_echo "$as_val"'`
13965 if test "x$as_val" = x""yes; then
13966 cat >>confdefs.h <<_ACEOF
13967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13968 _ACEOF
13969
13970 fi
13971
13972 done
13973
13974 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
13975 $as_echo_n "checking types of arguments for select... " >&6; }
13976 if test "${ac_cv_func_select_args+set}" = set; then
13977 $as_echo_n "(cached) " >&6
13978 else
13979 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13980 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13981 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13982 cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h. */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 $ac_includes_default
13989 #ifdef HAVE_SYS_SELECT_H
13990 # include <sys/select.h>
13991 #endif
13992 #ifdef HAVE_SYS_SOCKET_H
13993 # include <sys/socket.h>
13994 #endif
13995
13996 int
13997 main ()
13998 {
13999 extern int select ($ac_arg1,
14000 $ac_arg234, $ac_arg234, $ac_arg234,
14001 $ac_arg5);
14002 ;
14003 return 0;
14004 }
14005 _ACEOF
14006 rm -f conftest.$ac_objext
14007 if { (ac_try="$ac_compile"
14008 case "(($ac_try" in
14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010 *) ac_try_echo=$ac_try;;
14011 esac
14012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14013 $as_echo "$ac_try_echo") >&5
14014 (eval "$ac_compile") 2>conftest.er1
14015 ac_status=$?
14016 grep -v '^ *+' conftest.er1 >conftest.err
14017 rm -f conftest.er1
14018 cat conftest.err >&5
14019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } && {
14021 test -z "$ac_c_werror_flag" ||
14022 test ! -s conftest.err
14023 } && test -s conftest.$ac_objext; then
14024 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14025 else
14026 $as_echo "$as_me: failed program was:" >&5
14027 sed 's/^/| /' conftest.$ac_ext >&5
14028
14029
14030 fi
14031
14032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14033 done
14034 done
14035 done
14036 # Provide a safe default value.
14037 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14038
14039 fi
14040 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14041 $as_echo "$ac_cv_func_select_args" >&6; }
14042 ac_save_IFS=$IFS; IFS=','
14043 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14044 IFS=$ac_save_IFS
14045 shift
14046
14047 cat >>confdefs.h <<_ACEOF
14048 #define SELECT_TYPE_ARG1 $1
14049 _ACEOF
14050
14051
14052 cat >>confdefs.h <<_ACEOF
14053 #define SELECT_TYPE_ARG234 ($2)
14054 _ACEOF
14055
14056
14057 cat >>confdefs.h <<_ACEOF
14058 #define SELECT_TYPE_ARG5 ($3)
14059 _ACEOF
14060
14061 rm -f conftest*
14062
14063 fi
14064
14065 if test x$CLUSTER != xnone; then
14066
14067
14068 for ac_header in sys/socket.h sys/un.h
14069 do
14070 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14072 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14073 $as_echo_n "checking for $ac_header... " >&6; }
14074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14075 $as_echo_n "(cached) " >&6
14076 fi
14077 ac_res=`eval 'as_val=${'$as_ac_Header'}
14078 $as_echo "$as_val"'`
14079 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14080 $as_echo "$ac_res" >&6; }
14081 else
14082 # Is the header compilable?
14083 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14084 $as_echo_n "checking $ac_header usability... " >&6; }
14085 cat >conftest.$ac_ext <<_ACEOF
14086 /* confdefs.h. */
14087 _ACEOF
14088 cat confdefs.h >>conftest.$ac_ext
14089 cat >>conftest.$ac_ext <<_ACEOF
14090 /* end confdefs.h. */
14091 $ac_includes_default
14092 #include <$ac_header>
14093 _ACEOF
14094 rm -f conftest.$ac_objext
14095 if { (ac_try="$ac_compile"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099 esac
14100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14101 $as_echo "$ac_try_echo") >&5
14102 (eval "$ac_compile") 2>conftest.er1
14103 ac_status=$?
14104 grep -v '^ *+' conftest.er1 >conftest.err
14105 rm -f conftest.er1
14106 cat conftest.err >&5
14107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } && {
14109 test -z "$ac_c_werror_flag" ||
14110 test ! -s conftest.err
14111 } && test -s conftest.$ac_objext; then
14112 ac_header_compiler=yes
14113 else
14114 $as_echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14116
14117 ac_header_compiler=no
14118 fi
14119
14120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14121 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14122 $as_echo "$ac_header_compiler" >&6; }
14123
14124 # Is the header present?
14125 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14126 $as_echo_n "checking $ac_header presence... " >&6; }
14127 cat >conftest.$ac_ext <<_ACEOF
14128 /* confdefs.h. */
14129 _ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14133 #include <$ac_header>
14134 _ACEOF
14135 if { (ac_try="$ac_cpp conftest.$ac_ext"
14136 case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14139 esac
14140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14141 $as_echo "$ac_try_echo") >&5
14142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14143 ac_status=$?
14144 grep -v '^ *+' conftest.er1 >conftest.err
14145 rm -f conftest.er1
14146 cat conftest.err >&5
14147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } >/dev/null && {
14149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14150 test ! -s conftest.err
14151 }; then
14152 ac_header_preproc=yes
14153 else
14154 $as_echo "$as_me: failed program was:" >&5
14155 sed 's/^/| /' conftest.$ac_ext >&5
14156
14157 ac_header_preproc=no
14158 fi
14159
14160 rm -f conftest.err conftest.$ac_ext
14161 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14162 $as_echo "$ac_header_preproc" >&6; }
14163
14164 # So? What about this header?
14165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14166 yes:no: )
14167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14168 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14170 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14171 ac_header_preproc=yes
14172 ;;
14173 no:yes:* )
14174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14175 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14177 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14179 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14181 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14183 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14185 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14186
14187 ;;
14188 esac
14189 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14190 $as_echo_n "checking for $ac_header... " >&6; }
14191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14192 $as_echo_n "(cached) " >&6
14193 else
14194 eval "$as_ac_Header=\$ac_header_preproc"
14195 fi
14196 ac_res=`eval 'as_val=${'$as_ac_Header'}
14197 $as_echo "$as_val"'`
14198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14199 $as_echo "$ac_res" >&6; }
14200
14201 fi
14202 as_val=`eval 'as_val=${'$as_ac_Header'}
14203 $as_echo "$as_val"'`
14204 if test "x$as_val" = x""yes; then
14205 cat >>confdefs.h <<_ACEOF
14206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14207 _ACEOF
14208
14209 else
14210 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14211 $as_echo "$as_me: error: bailing out" >&2;}
14212 { (exit 1); exit 1; }; }
14213 fi
14214
14215 done
14216
14217
14218 for ac_func in socket
14219 do
14220 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14221 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14222 $as_echo_n "checking for $ac_func... " >&6; }
14223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14224 $as_echo_n "(cached) " >&6
14225 else
14226 cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h. */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14234 #define $ac_func innocuous_$ac_func
14235
14236 /* System header to define __stub macros and hopefully few prototypes,
14237 which can conflict with char $ac_func (); below.
14238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14239 <limits.h> exists even on freestanding compilers. */
14240
14241 #ifdef __STDC__
14242 # include <limits.h>
14243 #else
14244 # include <assert.h>
14245 #endif
14246
14247 #undef $ac_func
14248
14249 /* Override any GCC internal prototype to avoid an error.
14250 Use char because int might match the return type of a GCC
14251 builtin and then its argument prototype would still apply. */
14252 #ifdef __cplusplus
14253 extern "C"
14254 #endif
14255 char $ac_func ();
14256 /* The GNU C library defines this for functions which it implements
14257 to always fail with ENOSYS. Some functions are actually named
14258 something starting with __ and the normal name is an alias. */
14259 #if defined __stub_$ac_func || defined __stub___$ac_func
14260 choke me
14261 #endif
14262
14263 int
14264 main ()
14265 {
14266 return $ac_func ();
14267 ;
14268 return 0;
14269 }
14270 _ACEOF
14271 rm -f conftest.$ac_objext conftest$ac_exeext
14272 if { (ac_try="$ac_link"
14273 case "(($ac_try" in
14274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14275 *) ac_try_echo=$ac_try;;
14276 esac
14277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14278 $as_echo "$ac_try_echo") >&5
14279 (eval "$ac_link") 2>conftest.er1
14280 ac_status=$?
14281 grep -v '^ *+' conftest.er1 >conftest.err
14282 rm -f conftest.er1
14283 cat conftest.err >&5
14284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } && {
14286 test -z "$ac_c_werror_flag" ||
14287 test ! -s conftest.err
14288 } && test -s conftest$ac_exeext && {
14289 test "$cross_compiling" = yes ||
14290 $as_test_x conftest$ac_exeext
14291 }; then
14292 eval "$as_ac_var=yes"
14293 else
14294 $as_echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14296
14297 eval "$as_ac_var=no"
14298 fi
14299
14300 rm -rf conftest.dSYM
14301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14302 conftest$ac_exeext conftest.$ac_ext
14303 fi
14304 ac_res=`eval 'as_val=${'$as_ac_var'}
14305 $as_echo "$as_val"'`
14306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14307 $as_echo "$ac_res" >&6; }
14308 as_val=`eval 'as_val=${'$as_ac_var'}
14309 $as_echo "$as_val"'`
14310 if test "x$as_val" = x""yes; then
14311 cat >>confdefs.h <<_ACEOF
14312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14313 _ACEOF
14314
14315 else
14316 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14317 $as_echo "$as_me: error: bailing out" >&2;}
14318 { (exit 1); exit 1; }; }
14319 fi
14320 done
14321
14322 fi
14323
14324 if test x$HAVE_LIBDL = xyes; then
14325
14326 for ac_header in dlfcn.h
14327 do
14328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14330 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14331 $as_echo_n "checking for $ac_header... " >&6; }
14332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14333 $as_echo_n "(cached) " >&6
14334 fi
14335 ac_res=`eval 'as_val=${'$as_ac_Header'}
14336 $as_echo "$as_val"'`
14337 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14338 $as_echo "$ac_res" >&6; }
14339 else
14340 # Is the header compilable?
14341 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14342 $as_echo_n "checking $ac_header usability... " >&6; }
14343 cat >conftest.$ac_ext <<_ACEOF
14344 /* confdefs.h. */
14345 _ACEOF
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h. */
14349 $ac_includes_default
14350 #include <$ac_header>
14351 _ACEOF
14352 rm -f conftest.$ac_objext
14353 if { (ac_try="$ac_compile"
14354 case "(($ac_try" in
14355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356 *) ac_try_echo=$ac_try;;
14357 esac
14358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14359 $as_echo "$ac_try_echo") >&5
14360 (eval "$ac_compile") 2>conftest.er1
14361 ac_status=$?
14362 grep -v '^ *+' conftest.er1 >conftest.err
14363 rm -f conftest.er1
14364 cat conftest.err >&5
14365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } && {
14367 test -z "$ac_c_werror_flag" ||
14368 test ! -s conftest.err
14369 } && test -s conftest.$ac_objext; then
14370 ac_header_compiler=yes
14371 else
14372 $as_echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14374
14375 ac_header_compiler=no
14376 fi
14377
14378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14379 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14380 $as_echo "$ac_header_compiler" >&6; }
14381
14382 # Is the header present?
14383 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14384 $as_echo_n "checking $ac_header presence... " >&6; }
14385 cat >conftest.$ac_ext <<_ACEOF
14386 /* confdefs.h. */
14387 _ACEOF
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h. */
14391 #include <$ac_header>
14392 _ACEOF
14393 if { (ac_try="$ac_cpp conftest.$ac_ext"
14394 case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14397 esac
14398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14399 $as_echo "$ac_try_echo") >&5
14400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14401 ac_status=$?
14402 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -f conftest.er1
14404 cat conftest.err >&5
14405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } >/dev/null && {
14407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14408 test ! -s conftest.err
14409 }; then
14410 ac_header_preproc=yes
14411 else
14412 $as_echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14414
14415 ac_header_preproc=no
14416 fi
14417
14418 rm -f conftest.err conftest.$ac_ext
14419 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14420 $as_echo "$ac_header_preproc" >&6; }
14421
14422 # So? What about this header?
14423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14424 yes:no: )
14425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14426 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14428 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14429 ac_header_preproc=yes
14430 ;;
14431 no:yes:* )
14432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14433 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14435 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14437 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14439 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14441 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14443 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14444
14445 ;;
14446 esac
14447 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14448 $as_echo_n "checking for $ac_header... " >&6; }
14449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14450 $as_echo_n "(cached) " >&6
14451 else
14452 eval "$as_ac_Header=\$ac_header_preproc"
14453 fi
14454 ac_res=`eval 'as_val=${'$as_ac_Header'}
14455 $as_echo "$as_val"'`
14456 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14457 $as_echo "$ac_res" >&6; }
14458
14459 fi
14460 as_val=`eval 'as_val=${'$as_ac_Header'}
14461 $as_echo "$as_val"'`
14462 if test "x$as_val" = x""yes; then
14463 cat >>confdefs.h <<_ACEOF
14464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14465 _ACEOF
14466
14467 else
14468 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14469 $as_echo "$as_me: error: bailing out" >&2;}
14470 { (exit 1); exit 1; }; }
14471 fi
14472
14473 done
14474
14475 fi
14476
14477 if test x$INTL = xyes; then
14478
14479 for ac_header in libintl.h
14480 do
14481 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14483 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14484 $as_echo_n "checking for $ac_header... " >&6; }
14485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14486 $as_echo_n "(cached) " >&6
14487 fi
14488 ac_res=`eval 'as_val=${'$as_ac_Header'}
14489 $as_echo "$as_val"'`
14490 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14491 $as_echo "$ac_res" >&6; }
14492 else
14493 # Is the header compilable?
14494 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14495 $as_echo_n "checking $ac_header usability... " >&6; }
14496 cat >conftest.$ac_ext <<_ACEOF
14497 /* confdefs.h. */
14498 _ACEOF
14499 cat confdefs.h >>conftest.$ac_ext
14500 cat >>conftest.$ac_ext <<_ACEOF
14501 /* end confdefs.h. */
14502 $ac_includes_default
14503 #include <$ac_header>
14504 _ACEOF
14505 rm -f conftest.$ac_objext
14506 if { (ac_try="$ac_compile"
14507 case "(($ac_try" in
14508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14510 esac
14511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14512 $as_echo "$ac_try_echo") >&5
14513 (eval "$ac_compile") 2>conftest.er1
14514 ac_status=$?
14515 grep -v '^ *+' conftest.er1 >conftest.err
14516 rm -f conftest.er1
14517 cat conftest.err >&5
14518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } && {
14520 test -z "$ac_c_werror_flag" ||
14521 test ! -s conftest.err
14522 } && test -s conftest.$ac_objext; then
14523 ac_header_compiler=yes
14524 else
14525 $as_echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14527
14528 ac_header_compiler=no
14529 fi
14530
14531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14533 $as_echo "$ac_header_compiler" >&6; }
14534
14535 # Is the header present?
14536 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14537 $as_echo_n "checking $ac_header presence... " >&6; }
14538 cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h. */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 #include <$ac_header>
14545 _ACEOF
14546 if { (ac_try="$ac_cpp conftest.$ac_ext"
14547 case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14550 esac
14551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14552 $as_echo "$ac_try_echo") >&5
14553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14554 ac_status=$?
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
14558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } >/dev/null && {
14560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14561 test ! -s conftest.err
14562 }; then
14563 ac_header_preproc=yes
14564 else
14565 $as_echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14567
14568 ac_header_preproc=no
14569 fi
14570
14571 rm -f conftest.err conftest.$ac_ext
14572 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14573 $as_echo "$ac_header_preproc" >&6; }
14574
14575 # So? What about this header?
14576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14577 yes:no: )
14578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14579 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14581 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14582 ac_header_preproc=yes
14583 ;;
14584 no:yes:* )
14585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14586 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14588 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14590 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14592 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14594 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14596 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14597
14598 ;;
14599 esac
14600 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14601 $as_echo_n "checking for $ac_header... " >&6; }
14602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14603 $as_echo_n "(cached) " >&6
14604 else
14605 eval "$as_ac_Header=\$ac_header_preproc"
14606 fi
14607 ac_res=`eval 'as_val=${'$as_ac_Header'}
14608 $as_echo "$as_val"'`
14609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14610 $as_echo "$ac_res" >&6; }
14611
14612 fi
14613 as_val=`eval 'as_val=${'$as_ac_Header'}
14614 $as_echo "$as_val"'`
14615 if test "x$as_val" = x""yes; then
14616 cat >>confdefs.h <<_ACEOF
14617 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14618 _ACEOF
14619
14620 else
14621 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14622 $as_echo "$as_me: error: bailing out" >&2;}
14623 { (exit 1); exit 1; }; }
14624 fi
14625
14626 done
14627
14628 fi
14629
14630 if test x$HAVE_SELINUX = xyes; then
14631
14632 for ac_header in selinux/selinux.h
14633 do
14634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14636 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14637 $as_echo_n "checking for $ac_header... " >&6; }
14638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14639 $as_echo_n "(cached) " >&6
14640 fi
14641 ac_res=`eval 'as_val=${'$as_ac_Header'}
14642 $as_echo "$as_val"'`
14643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14644 $as_echo "$ac_res" >&6; }
14645 else
14646 # Is the header compilable?
14647 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14648 $as_echo_n "checking $ac_header usability... " >&6; }
14649 cat >conftest.$ac_ext <<_ACEOF
14650 /* confdefs.h. */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 $ac_includes_default
14656 #include <$ac_header>
14657 _ACEOF
14658 rm -f conftest.$ac_objext
14659 if { (ac_try="$ac_compile"
14660 case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14663 esac
14664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14665 $as_echo "$ac_try_echo") >&5
14666 (eval "$ac_compile") 2>conftest.er1
14667 ac_status=$?
14668 grep -v '^ *+' conftest.er1 >conftest.err
14669 rm -f conftest.er1
14670 cat conftest.err >&5
14671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } && {
14673 test -z "$ac_c_werror_flag" ||
14674 test ! -s conftest.err
14675 } && test -s conftest.$ac_objext; then
14676 ac_header_compiler=yes
14677 else
14678 $as_echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14680
14681 ac_header_compiler=no
14682 fi
14683
14684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14685 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14686 $as_echo "$ac_header_compiler" >&6; }
14687
14688 # Is the header present?
14689 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14690 $as_echo_n "checking $ac_header presence... " >&6; }
14691 cat >conftest.$ac_ext <<_ACEOF
14692 /* confdefs.h. */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 #include <$ac_header>
14698 _ACEOF
14699 if { (ac_try="$ac_cpp conftest.$ac_ext"
14700 case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14703 esac
14704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14705 $as_echo "$ac_try_echo") >&5
14706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14707 ac_status=$?
14708 grep -v '^ *+' conftest.er1 >conftest.err
14709 rm -f conftest.er1
14710 cat conftest.err >&5
14711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } >/dev/null && {
14713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14714 test ! -s conftest.err
14715 }; then
14716 ac_header_preproc=yes
14717 else
14718 $as_echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14720
14721 ac_header_preproc=no
14722 fi
14723
14724 rm -f conftest.err conftest.$ac_ext
14725 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14726 $as_echo "$ac_header_preproc" >&6; }
14727
14728 # So? What about this header?
14729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14730 yes:no: )
14731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14732 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14734 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14735 ac_header_preproc=yes
14736 ;;
14737 no:yes:* )
14738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14739 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14741 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14743 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14745 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14749 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14750
14751 ;;
14752 esac
14753 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14754 $as_echo_n "checking for $ac_header... " >&6; }
14755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14756 $as_echo_n "(cached) " >&6
14757 else
14758 eval "$as_ac_Header=\$ac_header_preproc"
14759 fi
14760 ac_res=`eval 'as_val=${'$as_ac_Header'}
14761 $as_echo "$as_val"'`
14762 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14763 $as_echo "$ac_res" >&6; }
14764
14765 fi
14766 as_val=`eval 'as_val=${'$as_ac_Header'}
14767 $as_echo "$as_val"'`
14768 if test "x$as_val" = x""yes; then
14769 cat >>confdefs.h <<_ACEOF
14770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14771 _ACEOF
14772
14773 else
14774 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14775 $as_echo "$as_me: error: bailing out" >&2;}
14776 { (exit 1); exit 1; }; }
14777 fi
14778
14779 done
14780
14781 fi
14782
14783 if test x$UDEV_SYNC = xyes; then
14784
14785
14786 for ac_header in sys/ipc.h sys/sem.h
14787 do
14788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14790 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14791 $as_echo_n "checking for $ac_header... " >&6; }
14792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14793 $as_echo_n "(cached) " >&6
14794 fi
14795 ac_res=`eval 'as_val=${'$as_ac_Header'}
14796 $as_echo "$as_val"'`
14797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14798 $as_echo "$ac_res" >&6; }
14799 else
14800 # Is the header compilable?
14801 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14802 $as_echo_n "checking $ac_header usability... " >&6; }
14803 cat >conftest.$ac_ext <<_ACEOF
14804 /* confdefs.h. */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 $ac_includes_default
14810 #include <$ac_header>
14811 _ACEOF
14812 rm -f conftest.$ac_objext
14813 if { (ac_try="$ac_compile"
14814 case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14817 esac
14818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14819 $as_echo "$ac_try_echo") >&5
14820 (eval "$ac_compile") 2>conftest.er1
14821 ac_status=$?
14822 grep -v '^ *+' conftest.er1 >conftest.err
14823 rm -f conftest.er1
14824 cat conftest.err >&5
14825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } && {
14827 test -z "$ac_c_werror_flag" ||
14828 test ! -s conftest.err
14829 } && test -s conftest.$ac_objext; then
14830 ac_header_compiler=yes
14831 else
14832 $as_echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14834
14835 ac_header_compiler=no
14836 fi
14837
14838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14840 $as_echo "$ac_header_compiler" >&6; }
14841
14842 # Is the header present?
14843 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14844 $as_echo_n "checking $ac_header presence... " >&6; }
14845 cat >conftest.$ac_ext <<_ACEOF
14846 /* confdefs.h. */
14847 _ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14851 #include <$ac_header>
14852 _ACEOF
14853 if { (ac_try="$ac_cpp conftest.$ac_ext"
14854 case "(($ac_try" in
14855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856 *) ac_try_echo=$ac_try;;
14857 esac
14858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14859 $as_echo "$ac_try_echo") >&5
14860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14861 ac_status=$?
14862 grep -v '^ *+' conftest.er1 >conftest.err
14863 rm -f conftest.er1
14864 cat conftest.err >&5
14865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } >/dev/null && {
14867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14868 test ! -s conftest.err
14869 }; then
14870 ac_header_preproc=yes
14871 else
14872 $as_echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14874
14875 ac_header_preproc=no
14876 fi
14877
14878 rm -f conftest.err conftest.$ac_ext
14879 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14880 $as_echo "$ac_header_preproc" >&6; }
14881
14882 # So? What about this header?
14883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14884 yes:no: )
14885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14886 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14888 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14889 ac_header_preproc=yes
14890 ;;
14891 no:yes:* )
14892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14893 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14895 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14897 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14899 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14901 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14903 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14904
14905 ;;
14906 esac
14907 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14908 $as_echo_n "checking for $ac_header... " >&6; }
14909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14910 $as_echo_n "(cached) " >&6
14911 else
14912 eval "$as_ac_Header=\$ac_header_preproc"
14913 fi
14914 ac_res=`eval 'as_val=${'$as_ac_Header'}
14915 $as_echo "$as_val"'`
14916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14917 $as_echo "$ac_res" >&6; }
14918
14919 fi
14920 as_val=`eval 'as_val=${'$as_ac_Header'}
14921 $as_echo "$as_val"'`
14922 if test "x$as_val" = x""yes; then
14923 cat >>confdefs.h <<_ACEOF
14924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14925 _ACEOF
14926
14927 else
14928 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14929 $as_echo "$as_me: error: bailing out" >&2;}
14930 { (exit 1); exit 1; }; }
14931 fi
14932
14933 done
14934
14935 fi
14936
14937 ################################################################################
14938 # Extract the first word of "modprobe", so it can be a program name with args.
14939 set dummy modprobe; ac_word=$2
14940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14941 $as_echo_n "checking for $ac_word... " >&6; }
14942 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
14943 $as_echo_n "(cached) " >&6
14944 else
14945 case $MODPROBE_CMD in
14946 [\\/]* | ?:[\\/]*)
14947 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
14948 ;;
14949 *)
14950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14951 for as_dir in $PATH
14952 do
14953 IFS=$as_save_IFS
14954 test -z "$as_dir" && as_dir=.
14955 for ac_exec_ext in '' $ac_executable_extensions; do
14956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14957 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
14958 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14959 break 2
14960 fi
14961 done
14962 done
14963 IFS=$as_save_IFS
14964
14965 ;;
14966 esac
14967 fi
14968 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
14969 if test -n "$MODPROBE_CMD"; then
14970 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
14971 $as_echo "$MODPROBE_CMD" >&6; }
14972 else
14973 { $as_echo "$as_me:$LINENO: result: no" >&5
14974 $as_echo "no" >&6; }
14975 fi
14976
14977
14978
14979 if test x$MODPROBE_CMD != x; then
14980
14981 cat >>confdefs.h <<_ACEOF
14982 #define MODPROBE_CMD "$MODPROBE_CMD"
14983 _ACEOF
14984
14985 fi
14986
14987 ################################################################################
14988
14989
14990 if test "$BUILD_DMEVENTD" = yes; then
14991
14992 # Check whether --with-dmeventd-pidfile was given.
14993 if test "${with_dmeventd_pidfile+set}" = set; then
14994 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
14995 #define DMEVENTD_PIDFILE "$withval"
14996 _ACEOF
14997
14998 else
14999 cat >>confdefs.h <<_ACEOF
15000 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15001 _ACEOF
15002
15003 fi
15004
15005 fi
15006
15007
15008
15009 if test "$BUILD_DMEVENTD" = yes; then
15010 dmeventd_prefix="$exec_prefix"
15011 if test "x$dmeventd_prefix" = "xNONE"; then
15012 dmeventd_prefix="$prefix"
15013 fi
15014 if test "x$dmeventd_prefix" = "xNONE"; then
15015 dmeventd_prefix=""
15016 fi
15017
15018 # Check whether --with-dmeventd-path was given.
15019 if test "${with_dmeventd_path+set}" = set; then
15020 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15021 #define DMEVENTD_PATH "$withval"
15022 _ACEOF
15023
15024 else
15025 cat >>confdefs.h <<_ACEOF
15026 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15027 _ACEOF
15028
15029 fi
15030
15031 fi
15032
15033 ################################################################################
15034 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15035 $as_echo_n "checking for kernel interface choice... " >&6; }
15036
15037 # Check whether --with-interface was given.
15038 if test "${with_interface+set}" = set; then
15039 withval=$with_interface; interface="$withval"
15040 else
15041 interface=ioctl
15042 fi
15043
15044 if [ "x$interface" != xioctl ];
15045 then
15046 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15047 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
15048 { (exit 1); exit 1; }; }
15049 fi
15050 { $as_echo "$as_me:$LINENO: result: $interface" >&5
15051 $as_echo "$interface" >&6; }
15052
15053 ################################################################################
15054 DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
15055
15056 cat >>confdefs.h <<_ACEOF
15057 #define DM_LIB_VERSION $DM_LIB_VERSION
15058 _ACEOF
15059
15060
15061 DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
15062
15063 LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
15064
15065 VER=`cat VERSION`
15066 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
15067 VER=`echo "$VER" | $AWK '{print $1}'`
15068 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15069 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15070 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15071 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
15072 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15073 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
15074
15075 ################################################################################
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157 ################################################################################
15158 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/clogd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/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/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
15159
15160 cat >confcache <<\_ACEOF
15161 # This file is a shell script that caches the results of configure
15162 # tests run on this system so they can be shared between configure
15163 # scripts and configure runs, see configure's option --config-cache.
15164 # It is not useful on other systems. If it contains results you don't
15165 # want to keep, you may remove or edit it.
15166 #
15167 # config.status only pays attention to the cache file if you give it
15168 # the --recheck option to rerun configure.
15169 #
15170 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15171 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15172 # following values.
15173
15174 _ACEOF
15175
15176 # The following way of writing the cache mishandles newlines in values,
15177 # but we know of no workaround that is simple, portable, and efficient.
15178 # So, we kill variables containing newlines.
15179 # Ultrix sh set writes to stderr and can't be redirected directly,
15180 # and sets the high bit in the cache file unless we assign to the vars.
15181 (
15182 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15183 eval ac_val=\$$ac_var
15184 case $ac_val in #(
15185 *${as_nl}*)
15186 case $ac_var in #(
15187 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15188 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15189 esac
15190 case $ac_var in #(
15191 _ | IFS | as_nl) ;; #(
15192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15193 *) $as_unset $ac_var ;;
15194 esac ;;
15195 esac
15196 done
15197
15198 (set) 2>&1 |
15199 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15200 *${as_nl}ac_space=\ *)
15201 # `set' does not quote correctly, so add quotes (double-quote
15202 # substitution turns \\\\ into \\, and sed turns \\ into \).
15203 sed -n \
15204 "s/'/'\\\\''/g;
15205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15206 ;; #(
15207 *)
15208 # `set' quotes correctly as required by POSIX, so do not add quotes.
15209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15210 ;;
15211 esac |
15212 sort
15213 ) |
15214 sed '
15215 /^ac_cv_env_/b end
15216 t clear
15217 :clear
15218 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15219 t end
15220 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15221 :end' >>confcache
15222 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15223 if test -w "$cache_file"; then
15224 test "x$cache_file" != "x/dev/null" &&
15225 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15226 $as_echo "$as_me: updating cache $cache_file" >&6;}
15227 cat confcache >$cache_file
15228 else
15229 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15230 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15231 fi
15232 fi
15233 rm -f confcache
15234
15235 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15236 # Let make expand exec_prefix.
15237 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15238
15239 DEFS=-DHAVE_CONFIG_H
15240
15241 ac_libobjs=
15242 ac_ltlibobjs=
15243 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15244 # 1. Remove the extension, and $U if already installed.
15245 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15246 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15247 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15248 # will be set to the directory where LIBOBJS objects are built.
15249 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15250 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15251 done
15252 LIBOBJS=$ac_libobjs
15253
15254 LTLIBOBJS=$ac_ltlibobjs
15255
15256
15257
15258 : ${CONFIG_STATUS=./config.status}
15259 ac_write_fail=0
15260 ac_clean_files_save=$ac_clean_files
15261 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15262 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15263 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15264 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15265 #! $SHELL
15266 # Generated by $as_me.
15267 # Run this file to recreate the current configuration.
15268 # Compiler output produced by configure, useful for debugging
15269 # configure, is in config.log if it exists.
15270
15271 debug=false
15272 ac_cs_recheck=false
15273 ac_cs_silent=false
15274 SHELL=\${CONFIG_SHELL-$SHELL}
15275 _ACEOF
15276
15277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15278 ## --------------------- ##
15279 ## M4sh Initialization. ##
15280 ## --------------------- ##
15281
15282 # Be more Bourne compatible
15283 DUALCASE=1; export DUALCASE # for MKS sh
15284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15285 emulate sh
15286 NULLCMD=:
15287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15288 # is contrary to our usage. Disable this feature.
15289 alias -g '${1+"$@"}'='"$@"'
15290 setopt NO_GLOB_SUBST
15291 else
15292 case `(set -o) 2>/dev/null` in
15293 *posix*) set -o posix ;;
15294 esac
15295
15296 fi
15297
15298
15299
15300
15301 # PATH needs CR
15302 # Avoid depending upon Character Ranges.
15303 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15304 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15305 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15306 as_cr_digits='0123456789'
15307 as_cr_alnum=$as_cr_Letters$as_cr_digits
15308
15309 as_nl='
15310 '
15311 export as_nl
15312 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15313 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15314 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15315 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15316 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15317 as_echo='printf %s\n'
15318 as_echo_n='printf %s'
15319 else
15320 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15321 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15322 as_echo_n='/usr/ucb/echo -n'
15323 else
15324 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15325 as_echo_n_body='eval
15326 arg=$1;
15327 case $arg in
15328 *"$as_nl"*)
15329 expr "X$arg" : "X\\(.*\\)$as_nl";
15330 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15331 esac;
15332 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15333 '
15334 export as_echo_n_body
15335 as_echo_n='sh -c $as_echo_n_body as_echo'
15336 fi
15337 export as_echo_body
15338 as_echo='sh -c $as_echo_body as_echo'
15339 fi
15340
15341 # The user is always right.
15342 if test "${PATH_SEPARATOR+set}" != set; then
15343 PATH_SEPARATOR=:
15344 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15345 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15346 PATH_SEPARATOR=';'
15347 }
15348 fi
15349
15350 # Support unset when possible.
15351 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15352 as_unset=unset
15353 else
15354 as_unset=false
15355 fi
15356
15357
15358 # IFS
15359 # We need space, tab and new line, in precisely that order. Quoting is
15360 # there to prevent editors from complaining about space-tab.
15361 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15362 # splitting by setting IFS to empty value.)
15363 IFS=" "" $as_nl"
15364
15365 # Find who we are. Look in the path if we contain no directory separator.
15366 case $0 in
15367 *[\\/]* ) as_myself=$0 ;;
15368 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15369 for as_dir in $PATH
15370 do
15371 IFS=$as_save_IFS
15372 test -z "$as_dir" && as_dir=.
15373 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15374 done
15375 IFS=$as_save_IFS
15376
15377 ;;
15378 esac
15379 # We did not find ourselves, most probably we were run as `sh COMMAND'
15380 # in which case we are not to be found in the path.
15381 if test "x$as_myself" = x; then
15382 as_myself=$0
15383 fi
15384 if test ! -f "$as_myself"; then
15385 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15386 { (exit 1); exit 1; }
15387 fi
15388
15389 # Work around bugs in pre-3.0 UWIN ksh.
15390 for as_var in ENV MAIL MAILPATH
15391 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15392 done
15393 PS1='$ '
15394 PS2='> '
15395 PS4='+ '
15396
15397 # NLS nuisances.
15398 LC_ALL=C
15399 export LC_ALL
15400 LANGUAGE=C
15401 export LANGUAGE
15402
15403 # Required to use basename.
15404 if expr a : '\(a\)' >/dev/null 2>&1 &&
15405 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15406 as_expr=expr
15407 else
15408 as_expr=false
15409 fi
15410
15411 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15412 as_basename=basename
15413 else
15414 as_basename=false
15415 fi
15416
15417
15418 # Name of the executable.
15419 as_me=`$as_basename -- "$0" ||
15420 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15421 X"$0" : 'X\(//\)$' \| \
15422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15423 $as_echo X/"$0" |
15424 sed '/^.*\/\([^/][^/]*\)\/*$/{
15425 s//\1/
15426 q
15427 }
15428 /^X\/\(\/\/\)$/{
15429 s//\1/
15430 q
15431 }
15432 /^X\/\(\/\).*/{
15433 s//\1/
15434 q
15435 }
15436 s/.*/./; q'`
15437
15438 # CDPATH.
15439 $as_unset CDPATH
15440
15441
15442
15443 as_lineno_1=$LINENO
15444 as_lineno_2=$LINENO
15445 test "x$as_lineno_1" != "x$as_lineno_2" &&
15446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15447
15448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15449 # uniformly replaced by the line number. The first 'sed' inserts a
15450 # line-number line after each line using $LINENO; the second 'sed'
15451 # does the real work. The second script uses 'N' to pair each
15452 # line-number line with the line containing $LINENO, and appends
15453 # trailing '-' during substitution so that $LINENO is not a special
15454 # case at line end.
15455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15456 # scripts with optimization help from Paolo Bonzini. Blame Lee
15457 # E. McMahon (1931-1989) for sed's syntax. :-)
15458 sed -n '
15459 p
15460 /[$]LINENO/=
15461 ' <$as_myself |
15462 sed '
15463 s/[$]LINENO.*/&-/
15464 t lineno
15465 b
15466 :lineno
15467 N
15468 :loop
15469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15470 t loop
15471 s/-\n.*//
15472 ' >$as_me.lineno &&
15473 chmod +x "$as_me.lineno" ||
15474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15475 { (exit 1); exit 1; }; }
15476
15477 # Don't try to exec as it changes $[0], causing all sort of problems
15478 # (the dirname of $[0] is not the place where we might find the
15479 # original and so on. Autoconf is especially sensitive to this).
15480 . "./$as_me.lineno"
15481 # Exit status is that of the last command.
15482 exit
15483 }
15484
15485
15486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15487 as_dirname=dirname
15488 else
15489 as_dirname=false
15490 fi
15491
15492 ECHO_C= ECHO_N= ECHO_T=
15493 case `echo -n x` in
15494 -n*)
15495 case `echo 'x\c'` in
15496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15497 *) ECHO_C='\c';;
15498 esac;;
15499 *)
15500 ECHO_N='-n';;
15501 esac
15502 if expr a : '\(a\)' >/dev/null 2>&1 &&
15503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15504 as_expr=expr
15505 else
15506 as_expr=false
15507 fi
15508
15509 rm -f conf$$ conf$$.exe conf$$.file
15510 if test -d conf$$.dir; then
15511 rm -f conf$$.dir/conf$$.file
15512 else
15513 rm -f conf$$.dir
15514 mkdir conf$$.dir 2>/dev/null
15515 fi
15516 if (echo >conf$$.file) 2>/dev/null; then
15517 if ln -s conf$$.file conf$$ 2>/dev/null; then
15518 as_ln_s='ln -s'
15519 # ... but there are two gotchas:
15520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15522 # In both cases, we have to default to `cp -p'.
15523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15524 as_ln_s='cp -p'
15525 elif ln conf$$.file conf$$ 2>/dev/null; then
15526 as_ln_s=ln
15527 else
15528 as_ln_s='cp -p'
15529 fi
15530 else
15531 as_ln_s='cp -p'
15532 fi
15533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15534 rmdir conf$$.dir 2>/dev/null
15535
15536 if mkdir -p . 2>/dev/null; then
15537 as_mkdir_p=:
15538 else
15539 test -d ./-p && rmdir ./-p
15540 as_mkdir_p=false
15541 fi
15542
15543 if test -x / >/dev/null 2>&1; then
15544 as_test_x='test -x'
15545 else
15546 if ls -dL / >/dev/null 2>&1; then
15547 as_ls_L_option=L
15548 else
15549 as_ls_L_option=
15550 fi
15551 as_test_x='
15552 eval sh -c '\''
15553 if test -d "$1"; then
15554 test -d "$1/.";
15555 else
15556 case $1 in
15557 -*)set "./$1";;
15558 esac;
15559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15560 ???[sx]*):;;*)false;;esac;fi
15561 '\'' sh
15562 '
15563 fi
15564 as_executable_p=$as_test_x
15565
15566 # Sed expression to map a string onto a valid CPP name.
15567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15568
15569 # Sed expression to map a string onto a valid variable name.
15570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15571
15572
15573 exec 6>&1
15574
15575 # Save the log message, to keep $[0] and so on meaningful, and to
15576 # report actual input values of CONFIG_FILES etc. instead of their
15577 # values after options handling.
15578 ac_log="
15579 This file was extended by $as_me, which was
15580 generated by GNU Autoconf 2.63. Invocation command line was
15581
15582 CONFIG_FILES = $CONFIG_FILES
15583 CONFIG_HEADERS = $CONFIG_HEADERS
15584 CONFIG_LINKS = $CONFIG_LINKS
15585 CONFIG_COMMANDS = $CONFIG_COMMANDS
15586 $ $0 $@
15587
15588 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15589 "
15590
15591 _ACEOF
15592
15593 case $ac_config_files in *"
15594 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15595 esac
15596
15597 case $ac_config_headers in *"
15598 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15599 esac
15600
15601
15602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15603 # Files that config.status was made for.
15604 config_files="$ac_config_files"
15605 config_headers="$ac_config_headers"
15606
15607 _ACEOF
15608
15609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15610 ac_cs_usage="\
15611 \`$as_me' instantiates files from templates according to the
15612 current configuration.
15613
15614 Usage: $0 [OPTION]... [FILE]...
15615
15616 -h, --help print this help, then exit
15617 -V, --version print version number and configuration settings, then exit
15618 -q, --quiet, --silent
15619 do not print progress messages
15620 -d, --debug don't remove temporary files
15621 --recheck update $as_me by reconfiguring in the same conditions
15622 --file=FILE[:TEMPLATE]
15623 instantiate the configuration file FILE
15624 --header=FILE[:TEMPLATE]
15625 instantiate the configuration header FILE
15626
15627 Configuration files:
15628 $config_files
15629
15630 Configuration headers:
15631 $config_headers
15632
15633 Report bugs to <bug-autoconf@gnu.org>."
15634
15635 _ACEOF
15636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15637 ac_cs_version="\\
15638 config.status
15639 configured by $0, generated by GNU Autoconf 2.63,
15640 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15641
15642 Copyright (C) 2008 Free Software Foundation, Inc.
15643 This config.status script is free software; the Free Software Foundation
15644 gives unlimited permission to copy, distribute and modify it."
15645
15646 ac_pwd='$ac_pwd'
15647 srcdir='$srcdir'
15648 INSTALL='$INSTALL'
15649 MKDIR_P='$MKDIR_P'
15650 AWK='$AWK'
15651 test -n "\$AWK" || AWK=awk
15652 _ACEOF
15653
15654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15655 # The default lists apply if the user does not specify any file.
15656 ac_need_defaults=:
15657 while test $# != 0
15658 do
15659 case $1 in
15660 --*=*)
15661 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15662 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15663 ac_shift=:
15664 ;;
15665 *)
15666 ac_option=$1
15667 ac_optarg=$2
15668 ac_shift=shift
15669 ;;
15670 esac
15671
15672 case $ac_option in
15673 # Handling of the options.
15674 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15675 ac_cs_recheck=: ;;
15676 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15677 $as_echo "$ac_cs_version"; exit ;;
15678 --debug | --debu | --deb | --de | --d | -d )
15679 debug=: ;;
15680 --file | --fil | --fi | --f )
15681 $ac_shift
15682 case $ac_optarg in
15683 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15684 esac
15685 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15686 ac_need_defaults=false;;
15687 --header | --heade | --head | --hea )
15688 $ac_shift
15689 case $ac_optarg in
15690 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15691 esac
15692 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15693 ac_need_defaults=false;;
15694 --he | --h)
15695 # Conflict between --help and --header
15696 { $as_echo "$as_me: error: ambiguous option: $1
15697 Try \`$0 --help' for more information." >&2
15698 { (exit 1); exit 1; }; };;
15699 --help | --hel | -h )
15700 $as_echo "$ac_cs_usage"; exit ;;
15701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15702 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15703 ac_cs_silent=: ;;
15704
15705 # This is an error.
15706 -*) { $as_echo "$as_me: error: unrecognized option: $1
15707 Try \`$0 --help' for more information." >&2
15708 { (exit 1); exit 1; }; } ;;
15709
15710 *) ac_config_targets="$ac_config_targets $1"
15711 ac_need_defaults=false ;;
15712
15713 esac
15714 shift
15715 done
15716
15717 ac_configure_extra_args=
15718
15719 if $ac_cs_silent; then
15720 exec 6>/dev/null
15721 ac_configure_extra_args="$ac_configure_extra_args --silent"
15722 fi
15723
15724 _ACEOF
15725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15726 if \$ac_cs_recheck; then
15727 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15728 shift
15729 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15730 CONFIG_SHELL='$SHELL'
15731 export CONFIG_SHELL
15732 exec "\$@"
15733 fi
15734
15735 _ACEOF
15736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15737 exec 5>>config.log
15738 {
15739 echo
15740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15741 ## Running $as_me. ##
15742 _ASBOX
15743 $as_echo "$ac_log"
15744 } >&5
15745
15746 _ACEOF
15747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15748 _ACEOF
15749
15750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15751
15752 # Handling of arguments.
15753 for ac_config_target in $ac_config_targets
15754 do
15755 case $ac_config_target in
15756 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
15757 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15758 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
15759 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
15760 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
15761 "daemons/clogd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clogd/Makefile" ;;
15762 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
15763 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
15764 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
15765 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
15766 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
15767 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15768 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15769 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15770 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
15771 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
15772 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
15773 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
15774 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
15775 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
15776 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
15777 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
15778 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
15779 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
15780 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15781 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
15782 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
15783 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
15784 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15785 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
15786 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15787 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
15788
15789 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15790 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15791 { (exit 1); exit 1; }; };;
15792 esac
15793 done
15794
15795
15796 # If the user did not use the arguments to specify the items to instantiate,
15797 # then the envvar interface is used. Set only those that are not.
15798 # We use the long form for the default assignment because of an extremely
15799 # bizarre bug on SunOS 4.1.3.
15800 if $ac_need_defaults; then
15801 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15802 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15803 fi
15804
15805 # Have a temporary directory for convenience. Make it in the build tree
15806 # simply because there is no reason against having it here, and in addition,
15807 # creating and moving files from /tmp can sometimes cause problems.
15808 # Hook for its removal unless debugging.
15809 # Note that there is a small window in which the directory will not be cleaned:
15810 # after its creation but before its name has been assigned to `$tmp'.
15811 $debug ||
15812 {
15813 tmp=
15814 trap 'exit_status=$?
15815 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15816 ' 0
15817 trap '{ (exit 1); exit 1; }' 1 2 13 15
15818 }
15819 # Create a (secure) tmp directory for tmp files.
15820
15821 {
15822 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15823 test -n "$tmp" && test -d "$tmp"
15824 } ||
15825 {
15826 tmp=./conf$$-$RANDOM
15827 (umask 077 && mkdir "$tmp")
15828 } ||
15829 {
15830 $as_echo "$as_me: cannot create a temporary directory in ." >&2
15831 { (exit 1); exit 1; }
15832 }
15833
15834 # Set up the scripts for CONFIG_FILES section.
15835 # No need to generate them if there are no CONFIG_FILES.
15836 # This happens for instance with `./config.status config.h'.
15837 if test -n "$CONFIG_FILES"; then
15838
15839
15840 ac_cr=' '
15841 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15842 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15843 ac_cs_awk_cr='\\r'
15844 else
15845 ac_cs_awk_cr=$ac_cr
15846 fi
15847
15848 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15849 _ACEOF
15850
15851
15852 {
15853 echo "cat >conf$$subs.awk <<_ACEOF" &&
15854 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15855 echo "_ACEOF"
15856 } >conf$$subs.sh ||
15857 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15858 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15859 { (exit 1); exit 1; }; }
15860 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15861 ac_delim='%!_!# '
15862 for ac_last_try in false false false false false :; do
15863 . ./conf$$subs.sh ||
15864 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15865 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15866 { (exit 1); exit 1; }; }
15867
15868 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15869 if test $ac_delim_n = $ac_delim_num; then
15870 break
15871 elif $ac_last_try; then
15872 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15873 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15874 { (exit 1); exit 1; }; }
15875 else
15876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15877 fi
15878 done
15879 rm -f conf$$subs.sh
15880
15881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15882 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15883 _ACEOF
15884 sed -n '
15885 h
15886 s/^/S["/; s/!.*/"]=/
15887 p
15888 g
15889 s/^[^!]*!//
15890 :repl
15891 t repl
15892 s/'"$ac_delim"'$//
15893 t delim
15894 :nl
15895 h
15896 s/\(.\{148\}\).*/\1/
15897 t more1
15898 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15899 p
15900 n
15901 b repl
15902 :more1
15903 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15904 p
15905 g
15906 s/.\{148\}//
15907 t nl
15908 :delim
15909 h
15910 s/\(.\{148\}\).*/\1/
15911 t more2
15912 s/["\\]/\\&/g; s/^/"/; s/$/"/
15913 p
15914 b
15915 :more2
15916 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15917 p
15918 g
15919 s/.\{148\}//
15920 t delim
15921 ' <conf$$subs.awk | sed '
15922 /^[^""]/{
15923 N
15924 s/\n//
15925 }
15926 ' >>$CONFIG_STATUS || ac_write_fail=1
15927 rm -f conf$$subs.awk
15928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15929 _ACAWK
15930 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15931 for (key in S) S_is_set[key] = 1
15932 FS = "\a"
15933
15934 }
15935 {
15936 line = $ 0
15937 nfields = split(line, field, "@")
15938 substed = 0
15939 len = length(field[1])
15940 for (i = 2; i < nfields; i++) {
15941 key = field[i]
15942 keylen = length(key)
15943 if (S_is_set[key]) {
15944 value = S[key]
15945 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15946 len += length(value) + length(field[++i])
15947 substed = 1
15948 } else
15949 len += 1 + keylen
15950 }
15951
15952 print line
15953 }
15954
15955 _ACAWK
15956 _ACEOF
15957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15958 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15959 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15960 else
15961 cat
15962 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15963 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15964 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15965 { (exit 1); exit 1; }; }
15966 _ACEOF
15967
15968 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15969 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15970 # trailing colons and then remove the whole line if VPATH becomes empty
15971 # (actually we leave an empty line to preserve line numbers).
15972 if test "x$srcdir" = x.; then
15973 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15974 s/:*\$(srcdir):*/:/
15975 s/:*\${srcdir}:*/:/
15976 s/:*@srcdir@:*/:/
15977 s/^\([^=]*=[ ]*\):*/\1/
15978 s/:*$//
15979 s/^[^=]*=[ ]*$//
15980 }'
15981 fi
15982
15983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15984 fi # test -n "$CONFIG_FILES"
15985
15986 # Set up the scripts for CONFIG_HEADERS section.
15987 # No need to generate them if there are no CONFIG_HEADERS.
15988 # This happens for instance with `./config.status Makefile'.
15989 if test -n "$CONFIG_HEADERS"; then
15990 cat >"$tmp/defines.awk" <<\_ACAWK ||
15991 BEGIN {
15992 _ACEOF
15993
15994 # Transform confdefs.h into an awk script `defines.awk', embedded as
15995 # here-document in config.status, that substitutes the proper values into
15996 # config.h.in to produce config.h.
15997
15998 # Create a delimiter string that does not exist in confdefs.h, to ease
15999 # handling of long lines.
16000 ac_delim='%!_!# '
16001 for ac_last_try in false false :; do
16002 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16003 if test -z "$ac_t"; then
16004 break
16005 elif $ac_last_try; then
16006 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16007 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16008 { (exit 1); exit 1; }; }
16009 else
16010 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16011 fi
16012 done
16013
16014 # For the awk script, D is an array of macro values keyed by name,
16015 # likewise P contains macro parameters if any. Preserve backslash
16016 # newline sequences.
16017
16018 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16019 sed -n '
16020 s/.\{148\}/&'"$ac_delim"'/g
16021 t rset
16022 :rset
16023 s/^[ ]*#[ ]*define[ ][ ]*/ /
16024 t def
16025 d
16026 :def
16027 s/\\$//
16028 t bsnl
16029 s/["\\]/\\&/g
16030 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16031 D["\1"]=" \3"/p
16032 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16033 d
16034 :bsnl
16035 s/["\\]/\\&/g
16036 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16037 D["\1"]=" \3\\\\\\n"\\/p
16038 t cont
16039 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16040 t cont
16041 d
16042 :cont
16043 n
16044 s/.\{148\}/&'"$ac_delim"'/g
16045 t clear
16046 :clear
16047 s/\\$//
16048 t bsnlc
16049 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16050 d
16051 :bsnlc
16052 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16053 b cont
16054 ' <confdefs.h | sed '
16055 s/'"$ac_delim"'/"\\\
16056 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16057
16058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16059 for (key in D) D_is_set[key] = 1
16060 FS = "\a"
16061 }
16062 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16063 line = \$ 0
16064 split(line, arg, " ")
16065 if (arg[1] == "#") {
16066 defundef = arg[2]
16067 mac1 = arg[3]
16068 } else {
16069 defundef = substr(arg[1], 2)
16070 mac1 = arg[2]
16071 }
16072 split(mac1, mac2, "(") #)
16073 macro = mac2[1]
16074 prefix = substr(line, 1, index(line, defundef) - 1)
16075 if (D_is_set[macro]) {
16076 # Preserve the white space surrounding the "#".
16077 print prefix "define", macro P[macro] D[macro]
16078 next
16079 } else {
16080 # Replace #undef with comments. This is necessary, for example,
16081 # in the case of _POSIX_SOURCE, which is predefined and required
16082 # on some systems where configure will not decide to define it.
16083 if (defundef == "undef") {
16084 print "/*", prefix defundef, macro, "*/"
16085 next
16086 }
16087 }
16088 }
16089 { print }
16090 _ACAWK
16091 _ACEOF
16092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16093 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16094 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16095 { (exit 1); exit 1; }; }
16096 fi # test -n "$CONFIG_HEADERS"
16097
16098
16099 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16100 shift
16101 for ac_tag
16102 do
16103 case $ac_tag in
16104 :[FHLC]) ac_mode=$ac_tag; continue;;
16105 esac
16106 case $ac_mode$ac_tag in
16107 :[FHL]*:*);;
16108 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16109 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16110 { (exit 1); exit 1; }; };;
16111 :[FH]-) ac_tag=-:-;;
16112 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16113 esac
16114 ac_save_IFS=$IFS
16115 IFS=:
16116 set x $ac_tag
16117 IFS=$ac_save_IFS
16118 shift
16119 ac_file=$1
16120 shift
16121
16122 case $ac_mode in
16123 :L) ac_source=$1;;
16124 :[FH])
16125 ac_file_inputs=
16126 for ac_f
16127 do
16128 case $ac_f in
16129 -) ac_f="$tmp/stdin";;
16130 *) # Look for the file first in the build tree, then in the source tree
16131 # (if the path is not absolute). The absolute path cannot be DOS-style,
16132 # because $ac_f cannot contain `:'.
16133 test -f "$ac_f" ||
16134 case $ac_f in
16135 [\\/$]*) false;;
16136 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16137 esac ||
16138 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16139 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16140 { (exit 1); exit 1; }; };;
16141 esac
16142 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16143 ac_file_inputs="$ac_file_inputs '$ac_f'"
16144 done
16145
16146 # Let's still pretend it is `configure' which instantiates (i.e., don't
16147 # use $as_me), people would be surprised to read:
16148 # /* config.h. Generated by config.status. */
16149 configure_input='Generated from '`
16150 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16151 `' by configure.'
16152 if test x"$ac_file" != x-; then
16153 configure_input="$ac_file. $configure_input"
16154 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16155 $as_echo "$as_me: creating $ac_file" >&6;}
16156 fi
16157 # Neutralize special characters interpreted by sed in replacement strings.
16158 case $configure_input in #(
16159 *\&* | *\|* | *\\* )
16160 ac_sed_conf_input=`$as_echo "$configure_input" |
16161 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16162 *) ac_sed_conf_input=$configure_input;;
16163 esac
16164
16165 case $ac_tag in
16166 *:-:* | *:-) cat >"$tmp/stdin" \
16167 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16168 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16169 { (exit 1); exit 1; }; } ;;
16170 esac
16171 ;;
16172 esac
16173
16174 ac_dir=`$as_dirname -- "$ac_file" ||
16175 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16176 X"$ac_file" : 'X\(//\)[^/]' \| \
16177 X"$ac_file" : 'X\(//\)$' \| \
16178 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16179 $as_echo X"$ac_file" |
16180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16181 s//\1/
16182 q
16183 }
16184 /^X\(\/\/\)[^/].*/{
16185 s//\1/
16186 q
16187 }
16188 /^X\(\/\/\)$/{
16189 s//\1/
16190 q
16191 }
16192 /^X\(\/\).*/{
16193 s//\1/
16194 q
16195 }
16196 s/.*/./; q'`
16197 { as_dir="$ac_dir"
16198 case $as_dir in #(
16199 -*) as_dir=./$as_dir;;
16200 esac
16201 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16202 as_dirs=
16203 while :; do
16204 case $as_dir in #(
16205 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16206 *) as_qdir=$as_dir;;
16207 esac
16208 as_dirs="'$as_qdir' $as_dirs"
16209 as_dir=`$as_dirname -- "$as_dir" ||
16210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16211 X"$as_dir" : 'X\(//\)[^/]' \| \
16212 X"$as_dir" : 'X\(//\)$' \| \
16213 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16214 $as_echo X"$as_dir" |
16215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16216 s//\1/
16217 q
16218 }
16219 /^X\(\/\/\)[^/].*/{
16220 s//\1/
16221 q
16222 }
16223 /^X\(\/\/\)$/{
16224 s//\1/
16225 q
16226 }
16227 /^X\(\/\).*/{
16228 s//\1/
16229 q
16230 }
16231 s/.*/./; q'`
16232 test -d "$as_dir" && break
16233 done
16234 test -z "$as_dirs" || eval "mkdir $as_dirs"
16235 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16236 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16237 { (exit 1); exit 1; }; }; }
16238 ac_builddir=.
16239
16240 case "$ac_dir" in
16241 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16242 *)
16243 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16244 # A ".." for each directory in $ac_dir_suffix.
16245 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16246 case $ac_top_builddir_sub in
16247 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16248 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16249 esac ;;
16250 esac
16251 ac_abs_top_builddir=$ac_pwd
16252 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16253 # for backward compatibility:
16254 ac_top_builddir=$ac_top_build_prefix
16255
16256 case $srcdir in
16257 .) # We are building in place.
16258 ac_srcdir=.
16259 ac_top_srcdir=$ac_top_builddir_sub
16260 ac_abs_top_srcdir=$ac_pwd ;;
16261 [\\/]* | ?:[\\/]* ) # Absolute name.
16262 ac_srcdir=$srcdir$ac_dir_suffix;
16263 ac_top_srcdir=$srcdir
16264 ac_abs_top_srcdir=$srcdir ;;
16265 *) # Relative name.
16266 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16267 ac_top_srcdir=$ac_top_build_prefix$srcdir
16268 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16269 esac
16270 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16271
16272
16273 case $ac_mode in
16274 :F)
16275 #
16276 # CONFIG_FILE
16277 #
16278
16279 case $INSTALL in
16280 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16281 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16282 esac
16283 ac_MKDIR_P=$MKDIR_P
16284 case $MKDIR_P in
16285 [\\/$]* | ?:[\\/]* ) ;;
16286 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16287 esac
16288 _ACEOF
16289
16290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16291 # If the template does not know about datarootdir, expand it.
16292 # FIXME: This hack should be removed a few years after 2.60.
16293 ac_datarootdir_hack=; ac_datarootdir_seen=
16294
16295 ac_sed_dataroot='
16296 /datarootdir/ {
16297 p
16298 q
16299 }
16300 /@datadir@/p
16301 /@docdir@/p
16302 /@infodir@/p
16303 /@localedir@/p
16304 /@mandir@/p
16305 '
16306 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16307 *datarootdir*) ac_datarootdir_seen=yes;;
16308 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16309 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16310 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16311 _ACEOF
16312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16313 ac_datarootdir_hack='
16314 s&@datadir@&$datadir&g
16315 s&@docdir@&$docdir&g
16316 s&@infodir@&$infodir&g
16317 s&@localedir@&$localedir&g
16318 s&@mandir@&$mandir&g
16319 s&\\\${datarootdir}&$datarootdir&g' ;;
16320 esac
16321 _ACEOF
16322
16323 # Neutralize VPATH when `$srcdir' = `.'.
16324 # Shell code in configure.ac might set extrasub.
16325 # FIXME: do we really want to maintain this feature?
16326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16327 ac_sed_extra="$ac_vpsub
16328 $extrasub
16329 _ACEOF
16330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16331 :t
16332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16333 s|@configure_input@|$ac_sed_conf_input|;t t
16334 s&@top_builddir@&$ac_top_builddir_sub&;t t
16335 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16336 s&@srcdir@&$ac_srcdir&;t t
16337 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16338 s&@top_srcdir@&$ac_top_srcdir&;t t
16339 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16340 s&@builddir@&$ac_builddir&;t t
16341 s&@abs_builddir@&$ac_abs_builddir&;t t
16342 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16343 s&@INSTALL@&$ac_INSTALL&;t t
16344 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16345 $ac_datarootdir_hack
16346 "
16347 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16348 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16349 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16350 { (exit 1); exit 1; }; }
16351
16352 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16353 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16354 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16355 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16356 which seems to be undefined. Please make sure it is defined." >&5
16357 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16358 which seems to be undefined. Please make sure it is defined." >&2;}
16359
16360 rm -f "$tmp/stdin"
16361 case $ac_file in
16362 -) cat "$tmp/out" && rm -f "$tmp/out";;
16363 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16364 esac \
16365 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16366 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16367 { (exit 1); exit 1; }; }
16368 ;;
16369 :H)
16370 #
16371 # CONFIG_HEADER
16372 #
16373 if test x"$ac_file" != x-; then
16374 {
16375 $as_echo "/* $configure_input */" \
16376 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16377 } >"$tmp/config.h" \
16378 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16379 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16380 { (exit 1); exit 1; }; }
16381 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16382 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16383 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16384 else
16385 rm -f "$ac_file"
16386 mv "$tmp/config.h" "$ac_file" \
16387 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16388 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16389 { (exit 1); exit 1; }; }
16390 fi
16391 else
16392 $as_echo "/* $configure_input */" \
16393 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16394 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16395 $as_echo "$as_me: error: could not create -" >&2;}
16396 { (exit 1); exit 1; }; }
16397 fi
16398 ;;
16399
16400
16401 esac
16402
16403 done # for ac_tag
16404
16405
16406 { (exit 0); exit 0; }
16407 _ACEOF
16408 chmod +x $CONFIG_STATUS
16409 ac_clean_files=$ac_clean_files_save
16410
16411 test $ac_write_fail = 0 ||
16412 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16413 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16414 { (exit 1); exit 1; }; }
16415
16416
16417 # configure is writing to config.log, and then calls config.status.
16418 # config.status does its own redirection, appending to config.log.
16419 # Unfortunately, on DOS this fails, as config.log is still kept open
16420 # by configure, so config.status won't be able to write to it; its
16421 # output is simply discarded. So we exec the FD to /dev/null,
16422 # effectively closing config.log, so it can be properly (re)opened and
16423 # appended to by config.status. When coming back to configure, we
16424 # need to make the FD available again.
16425 if test "$no_create" != yes; then
16426 ac_cs_success=:
16427 ac_config_status_args=
16428 test "$silent" = yes &&
16429 ac_config_status_args="$ac_config_status_args --quiet"
16430 exec 5>/dev/null
16431 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16432 exec 5>>config.log
16433 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16434 # would make configure fail if this is the last instruction.
16435 $ac_cs_success || { (exit 1); exit 1; }
16436 fi
16437 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16438 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16439 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16440 fi
16441
16442
16443 if test x$ODIRECT != xyes; then
16444 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16445 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
16446 fi
This page took 0.935904 seconds and 6 git commands to generate.