]> sourceware.org Git - lvm2.git/blob - configure
Replicator: base lvm2 support
[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 WRITE_INSTALL
650 UDEV_SYNC
651 UDEV_RULES
652 UDEV_PC
653 UDEV_LIBS
654 STATIC_LINK
655 STATICDIR
656 SNAPSHOTS
657 SELINUX_PC
658 SELINUX_LIBS
659 READLINE_LIBS
660 PTHREAD_LIBS
661 POOL
662 PKGCONFIG
663 REPLICATORS
664 MIRRORS
665 LVM_RELEASE_DATE
666 LVM_RELEASE
667 LVM_PATCHLEVEL
668 LVM_MINOR
669 LVM_MAJOR
670 LVM_LIBAPI
671 LVM_VERSION
672 LVM1_FALLBACK
673 LVM1
674 LOCALEDIR
675 LIB_SUFFIX
676 LDDEPS
677 JOBS
678 INTL_PACKAGE
679 INTL
680 HAVE_REALTIME
681 HAVE_LIBDL
682 FSADM
683 DM_LIB_PATCHLEVEL
684 DM_LIB_VERSION
685 DM_IOCTLS
686 DM_DEVICE_UID
687 DM_DEVICE_MODE
688 DM_DEVICE_GID
689 DM_COMPAT
690 DMEVENTD
691 DL_LIBS
692 DEVMAPPER
693 DEFAULT_LOCK_DIR
694 DEFAULT_CACHE_SUBDIR
695 DEFAULT_BACKUP_SUBDIR
696 DEFAULT_ARCHIVE_SUBDIR
697 DEFAULT_SYS_DIR
698 DEBUG
699 COPTIMISE_FLAG
700 CONFDIR
701 CMDLIB
702 CLVMD
703 CLUSTER
704 CLDWHOLEARCHIVE
705 CLDNOWHOLEARCHIVE
706 CLDFLAGS
707 BUILD_DMEVENTD
708 BUILD_CMIRRORD
709 APPLIB
710 MODPROBE_CMD
711 MSGFMT
712 LVM2CMD_LIB
713 LVM2APP_LIB
714 GENPNG
715 GENHTML
716 LCOV
717 SACKPT_LIBS
718 SACKPT_CFLAGS
719 DLM_LIBS
720 DLM_CFLAGS
721 CPG_LIBS
722 CPG_CFLAGS
723 CONFDB_LIBS
724 CONFDB_CFLAGS
725 SALCK_LIBS
726 SALCK_CFLAGS
727 QUORUM_LIBS
728 QUORUM_CFLAGS
729 COROSYNC_LIBS
730 COROSYNC_CFLAGS
731 CMAN_LIBS
732 CMAN_CFLAGS
733 GULM_LIBS
734 GULM_CFLAGS
735 CCS_LIBS
736 CCS_CFLAGS
737 PKGCONFIGINIT_LIBS
738 PKGCONFIGINIT_CFLAGS
739 PKG_CONFIG
740 POW_LIB
741 LIBOBJS
742 ALLOCA
743 CSCOPE_CMD
744 CFLOW_CMD
745 RANLIB
746 MKDIR_P
747 SET_MAKE
748 LN_S
749 INSTALL_DATA
750 INSTALL_SCRIPT
751 INSTALL_PROGRAM
752 EGREP
753 GREP
754 CPP
755 OBJEXT
756 EXEEXT
757 ac_ct_CC
758 CPPFLAGS
759 LDFLAGS
760 CFLAGS
761 CC
762 AWK
763 SED
764 target_os
765 target_vendor
766 target_cpu
767 target
768 host_os
769 host_vendor
770 host_cpu
771 host
772 build_os
773 build_vendor
774 build_cpu
775 build
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_BUGREPORT
807 PACKAGE_STRING
808 PACKAGE_VERSION
809 PACKAGE_TARNAME
810 PACKAGE_NAME
811 PATH_SEPARATOR
812 SHELL'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 enable_static_link
817 with_user
818 with_group
819 with_device_uid
820 with_device_gid
821 with_device_mode
822 enable_lvm1_fallback
823 with_lvm1
824 with_pool
825 with_cluster
826 with_snapshots
827 with_mirrors
828 with_replicators
829 enable_readline
830 enable_realtime
831 with_clvmd
832 enable_cmirrord
833 with_cmirrord_pidfile
834 enable_debug
835 with_optimisation
836 enable_profiling
837 enable_devmapper
838 enable_udev_sync
839 enable_udev_rules
840 enable_compat
841 enable_units_compat
842 enable_ioctl
843 enable_o_direct
844 enable_applib
845 enable_cmdlib
846 enable_pkgconfig
847 enable_write_install
848 enable_fsadm
849 enable_dmeventd
850 enable_selinux
851 enable_nls
852 with_localedir
853 with_confdir
854 with_staticdir
855 with_usrlibdir
856 with_usrsbindir
857 with_udev_prefix
858 with_udevdir
859 with_dmeventd_pidfile
860 with_dmeventd_path
861 with_default_system_dir
862 with_default_archive_subdir
863 with_default_backup_subdir
864 with_default_cache_subdir
865 with_default_locking_dir
866 with_interface
867 '
868 ac_precious_vars='build_alias
869 host_alias
870 target_alias
871 CC
872 CFLAGS
873 LDFLAGS
874 LIBS
875 CPPFLAGS
876 CPP
877 PKG_CONFIG
878 PKGCONFIGINIT_CFLAGS
879 PKGCONFIGINIT_LIBS
880 CCS_CFLAGS
881 CCS_LIBS
882 GULM_CFLAGS
883 GULM_LIBS
884 CMAN_CFLAGS
885 CMAN_LIBS
886 COROSYNC_CFLAGS
887 COROSYNC_LIBS
888 QUORUM_CFLAGS
889 QUORUM_LIBS
890 SALCK_CFLAGS
891 SALCK_LIBS
892 CONFDB_CFLAGS
893 CONFDB_LIBS
894 CPG_CFLAGS
895 CPG_LIBS
896 DLM_CFLAGS
897 DLM_LIBS
898 SACKPT_CFLAGS
899 SACKPT_LIBS'
900
901
902 # Initialize some variables set by options.
903 ac_init_help=
904 ac_init_version=false
905 ac_unrecognized_opts=
906 ac_unrecognized_sep=
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
909 cache_file=/dev/null
910 exec_prefix=NONE
911 no_create=
912 no_recursion=
913 prefix=NONE
914 program_prefix=NONE
915 program_suffix=NONE
916 program_transform_name=s,x,x,
917 silent=
918 site=
919 srcdir=
920 verbose=
921 x_includes=NONE
922 x_libraries=NONE
923
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE}'
941 infodir='${datarootdir}/info'
942 htmldir='${docdir}'
943 dvidir='${docdir}'
944 pdfdir='${docdir}'
945 psdir='${docdir}'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
949
950 ac_prev=
951 ac_dashdash=
952 for ac_option
953 do
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
956 eval $ac_prev=\$ac_option
957 ac_prev=
958 continue
959 fi
960
961 case $ac_option in
962 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963 *) ac_optarg=yes ;;
964 esac
965
966 # Accept the important Cygnus configure options, so we can diagnose typos.
967
968 case $ac_dashdash$ac_option in
969 --)
970 ac_dashdash=yes ;;
971
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 bindir=$ac_optarg ;;
976
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
981
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
988
989 --config-cache | -C)
990 cache_file=config.cache ;;
991
992 -datadir | --datadir | --datadi | --datad)
993 ac_prev=datadir ;;
994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
995 datadir=$ac_optarg ;;
996
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1003
1004 -disable-* | --disable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1009 { (exit 1); exit 1; }; }
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1013 *"
1014 "enable_$ac_useropt"
1015 "*) ;;
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1018 esac
1019 eval enable_$ac_useropt=no ;;
1020
1021 -docdir | --docdir | --docdi | --doc | --do)
1022 ac_prev=docdir ;;
1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024 docdir=$ac_optarg ;;
1025
1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027 ac_prev=dvidir ;;
1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029 dvidir=$ac_optarg ;;
1030
1031 -enable-* | --enable-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1036 { (exit 1); exit 1; }; }
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1040 *"
1041 "enable_$ac_useropt"
1042 "*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1045 esac
1046 eval enable_$ac_useropt=\$ac_optarg ;;
1047
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
1055 exec_prefix=$ac_optarg ;;
1056
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1059 with_gas=yes ;;
1060
1061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
1067
1068 -host | --host | --hos | --ho)
1069 ac_prev=host_alias ;;
1070 -host=* | --host=* | --hos=* | --ho=*)
1071 host_alias=$ac_optarg ;;
1072
1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 ac_prev=htmldir ;;
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 | --ht=*)
1077 htmldir=$ac_optarg ;;
1078
1079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
1084 includedir=$ac_optarg ;;
1085
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 ac_prev=infodir ;;
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1089 infodir=$ac_optarg ;;
1090
1091 -libdir | --libdir | --libdi | --libd)
1092 ac_prev=libdir ;;
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1094 libdir=$ac_optarg ;;
1095
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
1101 libexecdir=$ac_optarg ;;
1102
1103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1107
1108 -localstatedir | --localstatedir | --localstatedi | --localstated \
1109 | --localstate | --localstat | --localsta | --localst | --locals)
1110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1113 localstatedir=$ac_optarg ;;
1114
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 ac_prev=mandir ;;
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1118 mandir=$ac_optarg ;;
1119
1120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1122 with_fp=no ;;
1123
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1125 | --no-cr | --no-c | -n)
1126 no_create=yes ;;
1127
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 no_recursion=yes ;;
1131
1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1139 oldincludedir=$ac_optarg ;;
1140
1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 ac_prev=prefix ;;
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1144 prefix=$ac_optarg ;;
1145
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1151 program_prefix=$ac_optarg ;;
1152
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1158 program_suffix=$ac_optarg ;;
1159
1160 -program-transform-name | --program-transform-name \
1161 | --program-transform-nam | --program-transform-na \
1162 | --program-transform-n | --program-transform- \
1163 | --program-transform | --program-transfor \
1164 | --program-transfo | --program-transf \
1165 | --program-trans | --program-tran \
1166 | --progr-tra | --program-tr | --program-t)
1167 ac_prev=program_transform_name ;;
1168 -program-transform-name=* | --program-transform-name=* \
1169 | --program-transform-nam=* | --program-transform-na=* \
1170 | --program-transform-n=* | --program-transform-=* \
1171 | --program-transform=* | --program-transfor=* \
1172 | --program-transfo=* | --program-transf=* \
1173 | --program-trans=* | --program-tran=* \
1174 | --progr-tra=* | --program-tr=* | --program-t=*)
1175 program_transform_name=$ac_optarg ;;
1176
1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 ac_prev=pdfdir ;;
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1181
1182 -psdir | --psdir | --psdi | --psd | --ps)
1183 ac_prev=psdir ;;
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 psdir=$ac_optarg ;;
1186
1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1189 silent=yes ;;
1190
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 ac_prev=sbindir ;;
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 | --sbi=* | --sb=*)
1195 sbindir=$ac_optarg ;;
1196
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1200 | --sha | --sh)
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 | --sha=* | --sh=*)
1206 sharedstatedir=$ac_optarg ;;
1207
1208 -site | --site | --sit)
1209 ac_prev=site ;;
1210 -site=* | --site=* | --sit=*)
1211 site=$ac_optarg ;;
1212
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 ac_prev=srcdir ;;
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216 srcdir=$ac_optarg ;;
1217
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223 sysconfdir=$ac_optarg ;;
1224
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
1226 ac_prev=target_alias ;;
1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228 target_alias=$ac_optarg ;;
1229
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 verbose=yes ;;
1232
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
1235
1236 -with-* | --with-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1241 { (exit 1); exit 1; }; }
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1245 *"
1246 "with_$ac_useropt"
1247 "*) ;;
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1250 esac
1251 eval with_$ac_useropt=\$ac_optarg ;;
1252
1253 -without-* | --without-*)
1254 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1258 { (exit 1); exit 1; }; }
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263 "with_$ac_useropt"
1264 "*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=no ;;
1269
1270 --x)
1271 # Obsolete; use --with-x.
1272 with_x=yes ;;
1273
1274 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275 | --x-incl | --x-inc | --x-in | --x-i)
1276 ac_prev=x_includes ;;
1277 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279 x_includes=$ac_optarg ;;
1280
1281 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283 ac_prev=x_libraries ;;
1284 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286 x_libraries=$ac_optarg ;;
1287
1288 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1289 Try \`$0 --help' for more information." >&2
1290 { (exit 1); exit 1; }; }
1291 ;;
1292
1293 *=*)
1294 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1297 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1298 { (exit 1); exit 1; }; }
1299 eval $ac_envvar=\$ac_optarg
1300 export $ac_envvar ;;
1301
1302 *)
1303 # FIXME: should be removed in autoconf 3.0.
1304 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1308 ;;
1309
1310 esac
1311 done
1312
1313 if test -n "$ac_prev"; then
1314 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1316 { (exit 1); exit 1; }; }
1317 fi
1318
1319 if test -n "$ac_unrecognized_opts"; then
1320 case $enable_option_checking in
1321 no) ;;
1322 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1323 { (exit 1); exit 1; }; } ;;
1324 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1325 esac
1326 fi
1327
1328 # Check all directory arguments for consistency.
1329 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1333 do
1334 eval ac_val=\$$ac_var
1335 # Remove trailing slashes.
1336 case $ac_val in
1337 */ )
1338 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1339 eval $ac_var=\$ac_val;;
1340 esac
1341 # Be sure to have absolute directory names.
1342 case $ac_val in
1343 [\\/$]* | ?:[\\/]* ) continue;;
1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345 esac
1346 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1347 { (exit 1); exit 1; }; }
1348 done
1349
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1353 build=$build_alias
1354 host=$host_alias
1355 target=$target_alias
1356
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1362 If a cross compiler is detected then cross compile mode will be used." >&2
1363 elif test "x$build_alias" != "x$host_alias"; then
1364 cross_compiling=yes
1365 fi
1366 fi
1367
1368 ac_tool_prefix=
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370
1371 test "$silent" = yes && exec 6>/dev/null
1372
1373
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1378 { (exit 1); exit 1; }; }
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1381 { (exit 1); exit 1; }; }
1382
1383
1384 # Find the source files, if location was not specified.
1385 if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
1387 # Try the directory containing this script, then the parent directory.
1388 ac_confdir=`$as_dirname -- "$as_myself" ||
1389 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390 X"$as_myself" : 'X\(//\)[^/]' \| \
1391 X"$as_myself" : 'X\(//\)$' \| \
1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1393 $as_echo X"$as_myself" |
1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)[^/].*/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\).*/{
1407 s//\1/
1408 q
1409 }
1410 s/.*/./; q'`
1411 srcdir=$ac_confdir
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1413 srcdir=..
1414 fi
1415 else
1416 ac_srcdir_defaulted=no
1417 fi
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1421 { (exit 1); exit 1; }; }
1422 fi
1423 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424 ac_abs_confdir=`(
1425 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1426 { (exit 1); exit 1; }; }
1427 pwd)`
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1431 fi
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1435 case $srcdir in
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 esac
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 done
1444
1445 #
1446 # Report the --help message.
1447 #
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
1452 \`configure' configures this package to adapt to many kinds of systems.
1453
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1458
1459 Defaults for the options are specified in brackets.
1460
1461 Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 [PREFIX]
1477
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1482
1483 For better control, use the options below.
1484
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1505 _ACEOF
1506
1507 cat <<\_ACEOF
1508
1509 System types:
1510 --build=BUILD configure for building on BUILD [guessed]
1511 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1512 --target=TARGET configure for building compilers for TARGET [HOST]
1513 _ACEOF
1514 fi
1515
1516 if test -n "$ac_init_help"; then
1517
1518 cat <<\_ACEOF
1519
1520 Optional Features:
1521 --disable-option-checking ignore unrecognized --enable/--with options
1522 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1523 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1524 --enable-static_link Use this to link the tools to their libraries
1525 statically. Default is dynamic linking
1526 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1527 device-mapper is missing from the kernel
1528 --disable-readline Disable readline support
1529 --enable-realtime Enable realtime clock support
1530 --enable-cmirrord Enable the cluster mirror log daemon
1531 --enable-debug Enable debugging
1532 --enable-profiling Gather gcov profiling data
1533 --disable-devmapper Disable LVM2 device-mapper interaction
1534 --enable-udev_sync Enable synchronisation with udev processing
1535 --enable-udev_rules Install rule files needed for udev synchronisation
1536 --enable-compat Enable support for old device-mapper versions
1537 --enable-units-compat Enable output compatibility with old versions that
1538 that don't use KiB-style unit suffixes
1539 --disable-driver Disable calls to device-mapper in the kernel
1540 --disable-o_direct Disable O_DIRECT
1541 --enable-applib Build application library
1542 --enable-cmdlib Build shared command library
1543 --enable-pkgconfig Install pkgconfig support
1544 --enable-write_install Install user writable files
1545 --disable-fsadm Disable fsadm
1546 --enable-dmeventd Enable the device-mapper event daemon
1547 --disable-selinux Disable selinux support
1548 --enable-nls Enable Native Language Support
1549
1550 Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-user=USER Set the owner of installed files [USER=]
1554 --with-group=GROUP Set the group owner of installed files [GROUP=]
1555 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1556 --with-device-gid=UID Set the group used for new device nodes [GID=0]
1557 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1558 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1559 TYPE=internal
1560 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1561 TYPE=internal
1562 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1563 TYPE=internal
1564 --with-snapshots=TYPE Snapshot support: internal/shared/none
1565 TYPE=internal
1566 --with-mirrors=TYPE Mirror support: internal/shared/none
1567 TYPE=internal
1568 --with-replicators=TYPE Replicator support: internal/shared/none TYPE=none
1569 --with-clvmd=TYPE Build cluster LVM Daemon.
1570 The following cluster manager combinations are valid:
1571 * cman,gulm (RHEL4 or equivalent)
1572 * cman (RHEL5 or equivalent)
1573 * cman,corosync,openais (or selection of them)
1574 * singlenode (localhost only)
1575 * all (autodetect)
1576 * none (disable build)
1577 TYPE=none
1578 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
1579 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1580 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1581 --with-confdir=DIR Configuration files in DIR [/etc]
1582 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
1583 --with-usrlibdir=DIR
1584 --with-usrsbindir=DIR
1585 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
1586 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
1587 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1588 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
1589 --with-default-system-dir=DIR Default LVM system directory [/etc/lvm]
1590 --with-default-archive-subdir=SUBDIR Default metadata archive subdir [archive]
1591 --with-default-backup-subdir=SUBDIR Default metadata backup subdir [backup]
1592 --with-default-cache-subdir=SUBDIR Default metadata cache subdir [cache]
1593 --with-default-locking-dir=DIR Default locking directory [/var/lock/lvm]
1594 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
1595
1596 Some influential environment variables:
1597 CC C compiler command
1598 CFLAGS C compiler flags
1599 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1600 nonstandard directory <lib dir>
1601 LIBS libraries to pass to the linker, e.g. -l<library>
1602 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1603 you have headers in a nonstandard directory <include dir>
1604 CPP C preprocessor
1605 PKG_CONFIG path to pkg-config utility
1606 PKGCONFIGINIT_CFLAGS
1607 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1608 PKGCONFIGINIT_LIBS
1609 linker flags for PKGCONFIGINIT, overriding pkg-config
1610 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1611 CCS_LIBS linker flags for CCS, overriding pkg-config
1612 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1613 GULM_LIBS linker flags for GULM, overriding pkg-config
1614 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1615 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1616 COROSYNC_CFLAGS
1617 C compiler flags for COROSYNC, overriding pkg-config
1618 COROSYNC_LIBS
1619 linker flags for COROSYNC, overriding pkg-config
1620 QUORUM_CFLAGS
1621 C compiler flags for QUORUM, overriding pkg-config
1622 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1623 SALCK_CFLAGS
1624 C compiler flags for SALCK, overriding pkg-config
1625 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1626 CONFDB_CFLAGS
1627 C compiler flags for CONFDB, overriding pkg-config
1628 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1629 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1630 CPG_LIBS linker flags for CPG, overriding pkg-config
1631 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1632 DLM_LIBS linker flags for DLM, overriding pkg-config
1633 SACKPT_CFLAGS
1634 C compiler flags for SACKPT, overriding pkg-config
1635 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1636
1637 Use these variables to override the choices made by `configure' or to help
1638 it to find libraries and programs with nonstandard names/locations.
1639
1640 _ACEOF
1641 ac_status=$?
1642 fi
1643
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 continue
1650 ac_builddir=.
1651
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *)
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1667
1668 case $srcdir in
1669 .) # We are building in place.
1670 ac_srcdir=.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1692 else
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1696 done
1697 fi
1698
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701 cat <<\_ACEOF
1702 configure
1703 generated by GNU Autoconf 2.63
1704
1705 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1706 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1709 _ACEOF
1710 exit
1711 fi
1712 cat >config.log <<_ACEOF
1713 This file contains any messages produced by compilers while
1714 running configure, to aid debugging if configure makes a mistake.
1715
1716 It was created by $as_me, which was
1717 generated by GNU Autoconf 2.63. Invocation command line was
1718
1719 $ $0 $@
1720
1721 _ACEOF
1722 exec 5>>config.log
1723 {
1724 cat <<_ASUNAME
1725 ## --------- ##
1726 ## Platform. ##
1727 ## --------- ##
1728
1729 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1730 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1731 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1732 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1733 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1734
1735 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1736 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1737
1738 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1739 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1740 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1741 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1742 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1743 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1744 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1745
1746 _ASUNAME
1747
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 $as_echo "PATH: $as_dir"
1754 done
1755 IFS=$as_save_IFS
1756
1757 } >&5
1758
1759 cat >&5 <<_ACEOF
1760
1761
1762 ## ----------- ##
1763 ## Core tests. ##
1764 ## ----------- ##
1765
1766 _ACEOF
1767
1768
1769 # Keep a trace of the command line.
1770 # Strip out --no-create and --no-recursion so they do not pile up.
1771 # Strip out --silent because we don't want to record it for future runs.
1772 # Also quote any args containing shell meta-characters.
1773 # Make two passes to allow for proper duplicate-argument suppression.
1774 ac_configure_args=
1775 ac_configure_args0=
1776 ac_configure_args1=
1777 ac_must_keep_next=false
1778 for ac_pass in 1 2
1779 do
1780 for ac_arg
1781 do
1782 case $ac_arg in
1783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1785 | -silent | --silent | --silen | --sile | --sil)
1786 continue ;;
1787 *\'*)
1788 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1789 esac
1790 case $ac_pass in
1791 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1792 2)
1793 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1794 if test $ac_must_keep_next = true; then
1795 ac_must_keep_next=false # Got value, back to normal.
1796 else
1797 case $ac_arg in
1798 *=* | --config-cache | -C | -disable-* | --disable-* \
1799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1801 | -with-* | --with-* | -without-* | --without-* | --x)
1802 case "$ac_configure_args0 " in
1803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1804 esac
1805 ;;
1806 -* ) ac_must_keep_next=true ;;
1807 esac
1808 fi
1809 ac_configure_args="$ac_configure_args '$ac_arg'"
1810 ;;
1811 esac
1812 done
1813 done
1814 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1815 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1816
1817 # When interrupted or exit'd, cleanup temporary files, and complete
1818 # config.log. We remove comments because anyway the quotes in there
1819 # would cause problems or look ugly.
1820 # WARNING: Use '\'' to represent an apostrophe within the trap.
1821 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1822 trap 'exit_status=$?
1823 # Save into config.log some information that might help in debugging.
1824 {
1825 echo
1826
1827 cat <<\_ASBOX
1828 ## ---------------- ##
1829 ## Cache variables. ##
1830 ## ---------------- ##
1831 _ASBOX
1832 echo
1833 # The following way of writing the cache mishandles newlines in values,
1834 (
1835 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1836 eval ac_val=\$$ac_var
1837 case $ac_val in #(
1838 *${as_nl}*)
1839 case $ac_var in #(
1840 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1841 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1842 esac
1843 case $ac_var in #(
1844 _ | IFS | as_nl) ;; #(
1845 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1846 *) $as_unset $ac_var ;;
1847 esac ;;
1848 esac
1849 done
1850 (set) 2>&1 |
1851 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1852 *${as_nl}ac_space=\ *)
1853 sed -n \
1854 "s/'\''/'\''\\\\'\'''\''/g;
1855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1856 ;; #(
1857 *)
1858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1859 ;;
1860 esac |
1861 sort
1862 )
1863 echo
1864
1865 cat <<\_ASBOX
1866 ## ----------------- ##
1867 ## Output variables. ##
1868 ## ----------------- ##
1869 _ASBOX
1870 echo
1871 for ac_var in $ac_subst_vars
1872 do
1873 eval ac_val=\$$ac_var
1874 case $ac_val in
1875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 esac
1877 $as_echo "$ac_var='\''$ac_val'\''"
1878 done | sort
1879 echo
1880
1881 if test -n "$ac_subst_files"; then
1882 cat <<\_ASBOX
1883 ## ------------------- ##
1884 ## File substitutions. ##
1885 ## ------------------- ##
1886 _ASBOX
1887 echo
1888 for ac_var in $ac_subst_files
1889 do
1890 eval ac_val=\$$ac_var
1891 case $ac_val in
1892 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893 esac
1894 $as_echo "$ac_var='\''$ac_val'\''"
1895 done | sort
1896 echo
1897 fi
1898
1899 if test -s confdefs.h; then
1900 cat <<\_ASBOX
1901 ## ----------- ##
1902 ## confdefs.h. ##
1903 ## ----------- ##
1904 _ASBOX
1905 echo
1906 cat confdefs.h
1907 echo
1908 fi
1909 test "$ac_signal" != 0 &&
1910 $as_echo "$as_me: caught signal $ac_signal"
1911 $as_echo "$as_me: exit $exit_status"
1912 } >&5
1913 rm -f core *.core core.conftest.* &&
1914 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1915 exit $exit_status
1916 ' 0
1917 for ac_signal in 1 2 13 15; do
1918 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1919 done
1920 ac_signal=0
1921
1922 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1923 rm -f -r conftest* confdefs.h
1924
1925 # Predefined preprocessor variables.
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_NAME "$PACKAGE_NAME"
1929 _ACEOF
1930
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1939 _ACEOF
1940
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_STRING "$PACKAGE_STRING"
1944 _ACEOF
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1949 _ACEOF
1950
1951
1952 # Let the site file select an alternate cache file if it wants to.
1953 # Prefer an explicitly selected file to automatically selected ones.
1954 ac_site_file1=NONE
1955 ac_site_file2=NONE
1956 if test -n "$CONFIG_SITE"; then
1957 ac_site_file1=$CONFIG_SITE
1958 elif test "x$prefix" != xNONE; then
1959 ac_site_file1=$prefix/share/config.site
1960 ac_site_file2=$prefix/etc/config.site
1961 else
1962 ac_site_file1=$ac_default_prefix/share/config.site
1963 ac_site_file2=$ac_default_prefix/etc/config.site
1964 fi
1965 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1966 do
1967 test "x$ac_site_file" = xNONE && continue
1968 if test -r "$ac_site_file"; then
1969 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1970 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1971 sed 's/^/| /' "$ac_site_file" >&5
1972 . "$ac_site_file"
1973 fi
1974 done
1975
1976 if test -r "$cache_file"; then
1977 # Some versions of bash will fail to source /dev/null (special
1978 # files actually), so we avoid doing that.
1979 if test -f "$cache_file"; then
1980 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1981 $as_echo "$as_me: loading cache $cache_file" >&6;}
1982 case $cache_file in
1983 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1984 *) . "./$cache_file";;
1985 esac
1986 fi
1987 else
1988 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1989 $as_echo "$as_me: creating cache $cache_file" >&6;}
1990 >$cache_file
1991 fi
1992
1993 # Check that the precious variables saved in the cache have kept the same
1994 # value.
1995 ac_cache_corrupted=false
1996 for ac_var in $ac_precious_vars; do
1997 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1998 eval ac_new_set=\$ac_env_${ac_var}_set
1999 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2000 eval ac_new_val=\$ac_env_${ac_var}_value
2001 case $ac_old_set,$ac_new_set in
2002 set,)
2003 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2004 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2005 ac_cache_corrupted=: ;;
2006 ,set)
2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2008 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2009 ac_cache_corrupted=: ;;
2010 ,);;
2011 *)
2012 if test "x$ac_old_val" != "x$ac_new_val"; then
2013 # differences in whitespace do not lead to failure.
2014 ac_old_val_w=`echo x $ac_old_val`
2015 ac_new_val_w=`echo x $ac_new_val`
2016 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2017 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2018 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2019 ac_cache_corrupted=:
2020 else
2021 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2022 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2023 eval $ac_var=\$ac_old_val
2024 fi
2025 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2026 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2027 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2028 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2029 fi;;
2030 esac
2031 # Pass precious variables to config.status.
2032 if test "$ac_new_set" = set; then
2033 case $ac_new_val in
2034 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2035 *) ac_arg=$ac_var=$ac_new_val ;;
2036 esac
2037 case " $ac_configure_args " in
2038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2039 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2040 esac
2041 fi
2042 done
2043 if $ac_cache_corrupted; then
2044 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2046 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2047 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2048 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2049 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2050 { (exit 1); exit 1; }; }
2051 fi
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069 ac_ext=c
2070 ac_cpp='$CPP $CPPFLAGS'
2071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2074
2075
2076
2077 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2078
2079
2080 ################################################################################
2081 ac_aux_dir=
2082 for ac_dir in autoconf "$srcdir"/autoconf; do
2083 if test -f "$ac_dir/install-sh"; then
2084 ac_aux_dir=$ac_dir
2085 ac_install_sh="$ac_aux_dir/install-sh -c"
2086 break
2087 elif test -f "$ac_dir/install.sh"; then
2088 ac_aux_dir=$ac_dir
2089 ac_install_sh="$ac_aux_dir/install.sh -c"
2090 break
2091 elif test -f "$ac_dir/shtool"; then
2092 ac_aux_dir=$ac_dir
2093 ac_install_sh="$ac_aux_dir/shtool install -c"
2094 break
2095 fi
2096 done
2097 if test -z "$ac_aux_dir"; then
2098 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2099 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2100 { (exit 1); exit 1; }; }
2101 fi
2102
2103 # These three variables are undocumented and unsupported,
2104 # and are intended to be withdrawn in a future Autoconf release.
2105 # They can cause serious problems if a builder's source tree is in a directory
2106 # whose full name contains unusual characters.
2107 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2108 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2109 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2110
2111
2112
2113 ################################################################################
2114 # Make sure we can run config.sub.
2115 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2116 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2117 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2118 { (exit 1); exit 1; }; }
2119
2120 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2121 $as_echo_n "checking build system type... " >&6; }
2122 if test "${ac_cv_build+set}" = set; then
2123 $as_echo_n "(cached) " >&6
2124 else
2125 ac_build_alias=$build_alias
2126 test "x$ac_build_alias" = x &&
2127 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2128 test "x$ac_build_alias" = x &&
2129 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2130 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2131 { (exit 1); exit 1; }; }
2132 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2133 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2134 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2135 { (exit 1); exit 1; }; }
2136
2137 fi
2138 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2139 $as_echo "$ac_cv_build" >&6; }
2140 case $ac_cv_build in
2141 *-*-*) ;;
2142 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2143 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2144 { (exit 1); exit 1; }; };;
2145 esac
2146 build=$ac_cv_build
2147 ac_save_IFS=$IFS; IFS='-'
2148 set x $ac_cv_build
2149 shift
2150 build_cpu=$1
2151 build_vendor=$2
2152 shift; shift
2153 # Remember, the first character of IFS is used to create $*,
2154 # except with old shells:
2155 build_os=$*
2156 IFS=$ac_save_IFS
2157 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2158
2159
2160 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2161 $as_echo_n "checking host system type... " >&6; }
2162 if test "${ac_cv_host+set}" = set; then
2163 $as_echo_n "(cached) " >&6
2164 else
2165 if test "x$host_alias" = x; then
2166 ac_cv_host=$ac_cv_build
2167 else
2168 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2169 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2170 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2171 { (exit 1); exit 1; }; }
2172 fi
2173
2174 fi
2175 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2176 $as_echo "$ac_cv_host" >&6; }
2177 case $ac_cv_host in
2178 *-*-*) ;;
2179 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2180 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2181 { (exit 1); exit 1; }; };;
2182 esac
2183 host=$ac_cv_host
2184 ac_save_IFS=$IFS; IFS='-'
2185 set x $ac_cv_host
2186 shift
2187 host_cpu=$1
2188 host_vendor=$2
2189 shift; shift
2190 # Remember, the first character of IFS is used to create $*,
2191 # except with old shells:
2192 host_os=$*
2193 IFS=$ac_save_IFS
2194 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2195
2196
2197 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2198 $as_echo_n "checking target system type... " >&6; }
2199 if test "${ac_cv_target+set}" = set; then
2200 $as_echo_n "(cached) " >&6
2201 else
2202 if test "x$target_alias" = x; then
2203 ac_cv_target=$ac_cv_host
2204 else
2205 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2206 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2207 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2208 { (exit 1); exit 1; }; }
2209 fi
2210
2211 fi
2212 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2213 $as_echo "$ac_cv_target" >&6; }
2214 case $ac_cv_target in
2215 *-*-*) ;;
2216 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2217 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2218 { (exit 1); exit 1; }; };;
2219 esac
2220 target=$ac_cv_target
2221 ac_save_IFS=$IFS; IFS='-'
2222 set x $ac_cv_target
2223 shift
2224 target_cpu=$1
2225 target_vendor=$2
2226 shift; shift
2227 # Remember, the first character of IFS is used to create $*,
2228 # except with old shells:
2229 target_os=$*
2230 IFS=$ac_save_IFS
2231 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2232
2233
2234 # The aliases save the names the user supplied, while $host etc.
2235 # will get canonicalized.
2236 test -n "$target_alias" &&
2237 test "$program_prefix$program_suffix$program_transform_name" = \
2238 NONENONEs,x,x, &&
2239 program_prefix=${target_alias}-
2240
2241 case "$host_os" in
2242 linux*)
2243 CFLAGS="$CFLAGS"
2244 COPTIMISE_FLAG="-O2"
2245 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2246 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2247 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2248 LDDEPS="$LDDEPS .export.sym"
2249 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2250 LIB_SUFFIX=so
2251 DEVMAPPER=yes
2252 ODIRECT=yes
2253 DM_IOCTLS=yes
2254 SELINUX=yes
2255 CLUSTER=internal
2256 FSADM=yes
2257 ;;
2258 darwin*)
2259 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2260 COPTIMISE_FLAG="-O2"
2261 CLDFLAGS="$CLDFLAGS"
2262 CLDWHOLEARCHIVE="-all_load"
2263 CLDNOWHOLEARCHIVE=
2264 LIB_SUFFIX=dylib
2265 DEVMAPPER=yes
2266 ODIRECT=no
2267 DM_IOCTLS=no
2268 SELINUX=no
2269 CLUSTER=none
2270 FSADM=no
2271 ;;
2272 esac
2273
2274 ################################################################################
2275 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2276 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2277 if test "${ac_cv_path_SED+set}" = set; then
2278 $as_echo_n "(cached) " >&6
2279 else
2280 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2281 for ac_i in 1 2 3 4 5 6 7; do
2282 ac_script="$ac_script$as_nl$ac_script"
2283 done
2284 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2285 $as_unset ac_script || ac_script=
2286 if test -z "$SED"; then
2287 ac_path_SED_found=false
2288 # Loop through the user's path and test for each of PROGNAME-LIST
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2291 do
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_prog in sed gsed; do
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2297 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2298 # Check for GNU ac_path_SED and select it if it is found.
2299 # Check for GNU $ac_path_SED
2300 case `"$ac_path_SED" --version 2>&1` in
2301 *GNU*)
2302 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2303 *)
2304 ac_count=0
2305 $as_echo_n 0123456789 >"conftest.in"
2306 while :
2307 do
2308 cat "conftest.in" "conftest.in" >"conftest.tmp"
2309 mv "conftest.tmp" "conftest.in"
2310 cp "conftest.in" "conftest.nl"
2311 $as_echo '' >> "conftest.nl"
2312 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2314 ac_count=`expr $ac_count + 1`
2315 if test $ac_count -gt ${ac_path_SED_max-0}; then
2316 # Best one so far, save it but keep looking for a better one
2317 ac_cv_path_SED="$ac_path_SED"
2318 ac_path_SED_max=$ac_count
2319 fi
2320 # 10*(2^10) chars as input seems more than enough
2321 test $ac_count -gt 10 && break
2322 done
2323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2324 esac
2325
2326 $ac_path_SED_found && break 3
2327 done
2328 done
2329 done
2330 IFS=$as_save_IFS
2331 if test -z "$ac_cv_path_SED"; then
2332 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2333 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2334 { (exit 1); exit 1; }; }
2335 fi
2336 else
2337 ac_cv_path_SED=$SED
2338 fi
2339
2340 fi
2341 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2342 $as_echo "$ac_cv_path_SED" >&6; }
2343 SED="$ac_cv_path_SED"
2344 rm -f conftest.sed
2345
2346 for ac_prog in gawk mawk nawk awk
2347 do
2348 # Extract the first word of "$ac_prog", so it can be a program name with args.
2349 set dummy $ac_prog; ac_word=$2
2350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 $as_echo_n "checking for $ac_word... " >&6; }
2352 if test "${ac_cv_prog_AWK+set}" = set; then
2353 $as_echo_n "(cached) " >&6
2354 else
2355 if test -n "$AWK"; then
2356 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_AWK="$ac_prog"
2366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 break 2
2368 fi
2369 done
2370 done
2371 IFS=$as_save_IFS
2372
2373 fi
2374 fi
2375 AWK=$ac_cv_prog_AWK
2376 if test -n "$AWK"; then
2377 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2378 $as_echo "$AWK" >&6; }
2379 else
2380 { $as_echo "$as_me:$LINENO: result: no" >&5
2381 $as_echo "no" >&6; }
2382 fi
2383
2384
2385 test -n "$AWK" && break
2386 done
2387
2388 ac_ext=c
2389 ac_cpp='$CPP $CPPFLAGS'
2390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393 if test -n "$ac_tool_prefix"; then
2394 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2395 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 $as_echo_n "checking for $ac_word... " >&6; }
2398 if test "${ac_cv_prog_CC+set}" = set; then
2399 $as_echo_n "(cached) " >&6
2400 else
2401 if test -n "$CC"; then
2402 ac_cv_prog_CC="$CC" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415 done
2416 done
2417 IFS=$as_save_IFS
2418
2419 fi
2420 fi
2421 CC=$ac_cv_prog_CC
2422 if test -n "$CC"; then
2423 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2424 $as_echo "$CC" >&6; }
2425 else
2426 { $as_echo "$as_me:$LINENO: result: no" >&5
2427 $as_echo "no" >&6; }
2428 fi
2429
2430
2431 fi
2432 if test -z "$ac_cv_prog_CC"; then
2433 ac_ct_CC=$CC
2434 # Extract the first word of "gcc", so it can be a program name with args.
2435 set dummy gcc; ac_word=$2
2436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2437 $as_echo_n "checking for $ac_word... " >&6; }
2438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2439 $as_echo_n "(cached) " >&6
2440 else
2441 if test -n "$ac_ct_CC"; then
2442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451 ac_cv_prog_ac_ct_CC="gcc"
2452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2454 fi
2455 done
2456 done
2457 IFS=$as_save_IFS
2458
2459 fi
2460 fi
2461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2462 if test -n "$ac_ct_CC"; then
2463 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2464 $as_echo "$ac_ct_CC" >&6; }
2465 else
2466 { $as_echo "$as_me:$LINENO: result: no" >&5
2467 $as_echo "no" >&6; }
2468 fi
2469
2470 if test "x$ac_ct_CC" = x; then
2471 CC=""
2472 else
2473 case $cross_compiling:$ac_tool_warned in
2474 yes:)
2475 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2477 ac_tool_warned=yes ;;
2478 esac
2479 CC=$ac_ct_CC
2480 fi
2481 else
2482 CC="$ac_cv_prog_CC"
2483 fi
2484
2485 if test -z "$CC"; then
2486 if test -n "$ac_tool_prefix"; then
2487 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2488 set dummy ${ac_tool_prefix}cc; ac_word=$2
2489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2490 $as_echo_n "checking for $ac_word... " >&6; }
2491 if test "${ac_cv_prog_CC+set}" = set; then
2492 $as_echo_n "(cached) " >&6
2493 else
2494 if test -n "$CC"; then
2495 ac_cv_prog_CC="$CC" # Let the user override the test.
2496 else
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 for as_dir in $PATH
2499 do
2500 IFS=$as_save_IFS
2501 test -z "$as_dir" && as_dir=.
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2504 ac_cv_prog_CC="${ac_tool_prefix}cc"
2505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 break 2
2507 fi
2508 done
2509 done
2510 IFS=$as_save_IFS
2511
2512 fi
2513 fi
2514 CC=$ac_cv_prog_CC
2515 if test -n "$CC"; then
2516 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2517 $as_echo "$CC" >&6; }
2518 else
2519 { $as_echo "$as_me:$LINENO: result: no" >&5
2520 $as_echo "no" >&6; }
2521 fi
2522
2523
2524 fi
2525 fi
2526 if test -z "$CC"; then
2527 # Extract the first word of "cc", so it can be a program name with args.
2528 set dummy cc; ac_word=$2
2529 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2530 $as_echo_n "checking for $ac_word... " >&6; }
2531 if test "${ac_cv_prog_CC+set}" = set; then
2532 $as_echo_n "(cached) " >&6
2533 else
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2536 else
2537 ac_prog_rejected=no
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2540 do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2546 ac_prog_rejected=yes
2547 continue
2548 fi
2549 ac_cv_prog_CC="cc"
2550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 break 2
2552 fi
2553 done
2554 done
2555 IFS=$as_save_IFS
2556
2557 if test $ac_prog_rejected = yes; then
2558 # We found a bogon in the path, so make sure we never use it.
2559 set dummy $ac_cv_prog_CC
2560 shift
2561 if test $# != 0; then
2562 # We chose a different compiler from the bogus one.
2563 # However, it has the same basename, so the bogon will be chosen
2564 # first if we set CC to just the basename; use the full file name.
2565 shift
2566 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2567 fi
2568 fi
2569 fi
2570 fi
2571 CC=$ac_cv_prog_CC
2572 if test -n "$CC"; then
2573 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2574 $as_echo "$CC" >&6; }
2575 else
2576 { $as_echo "$as_me:$LINENO: result: no" >&5
2577 $as_echo "no" >&6; }
2578 fi
2579
2580
2581 fi
2582 if test -z "$CC"; then
2583 if test -n "$ac_tool_prefix"; then
2584 for ac_prog in cl.exe
2585 do
2586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2587 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if test "${ac_cv_prog_CC+set}" = set; then
2591 $as_echo_n "(cached) " >&6
2592 else
2593 if test -n "$CC"; then
2594 ac_cv_prog_CC="$CC" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2604 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 break 2
2606 fi
2607 done
2608 done
2609 IFS=$as_save_IFS
2610
2611 fi
2612 fi
2613 CC=$ac_cv_prog_CC
2614 if test -n "$CC"; then
2615 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2616 $as_echo "$CC" >&6; }
2617 else
2618 { $as_echo "$as_me:$LINENO: result: no" >&5
2619 $as_echo "no" >&6; }
2620 fi
2621
2622
2623 test -n "$CC" && break
2624 done
2625 fi
2626 if test -z "$CC"; then
2627 ac_ct_CC=$CC
2628 for ac_prog in cl.exe
2629 do
2630 # Extract the first word of "$ac_prog", so it can be a program name with args.
2631 set dummy $ac_prog; ac_word=$2
2632 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2635 $as_echo_n "(cached) " >&6
2636 else
2637 if test -n "$ac_ct_CC"; then
2638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2642 do
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647 ac_cv_prog_ac_ct_CC="$ac_prog"
2648 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2650 fi
2651 done
2652 done
2653 IFS=$as_save_IFS
2654
2655 fi
2656 fi
2657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2658 if test -n "$ac_ct_CC"; then
2659 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2660 $as_echo "$ac_ct_CC" >&6; }
2661 else
2662 { $as_echo "$as_me:$LINENO: result: no" >&5
2663 $as_echo "no" >&6; }
2664 fi
2665
2666
2667 test -n "$ac_ct_CC" && break
2668 done
2669
2670 if test "x$ac_ct_CC" = x; then
2671 CC=""
2672 else
2673 case $cross_compiling:$ac_tool_warned in
2674 yes:)
2675 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2677 ac_tool_warned=yes ;;
2678 esac
2679 CC=$ac_ct_CC
2680 fi
2681 fi
2682
2683 fi
2684
2685
2686 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2688 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2689 See \`config.log' for more details." >&5
2690 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2691 See \`config.log' for more details." >&2;}
2692 { (exit 1); exit 1; }; }; }
2693
2694 # Provide some information about the compiler.
2695 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2696 set X $ac_compile
2697 ac_compiler=$2
2698 { (ac_try="$ac_compiler --version >&5"
2699 case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702 esac
2703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2704 $as_echo "$ac_try_echo") >&5
2705 (eval "$ac_compiler --version >&5") 2>&5
2706 ac_status=$?
2707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }
2709 { (ac_try="$ac_compiler -v >&5"
2710 case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713 esac
2714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2715 $as_echo "$ac_try_echo") >&5
2716 (eval "$ac_compiler -v >&5") 2>&5
2717 ac_status=$?
2718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2720 { (ac_try="$ac_compiler -V >&5"
2721 case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724 esac
2725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2726 $as_echo "$ac_try_echo") >&5
2727 (eval "$ac_compiler -V >&5") 2>&5
2728 ac_status=$?
2729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
2731
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h. */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2738
2739 int
2740 main ()
2741 {
2742
2743 ;
2744 return 0;
2745 }
2746 _ACEOF
2747 ac_clean_files_save=$ac_clean_files
2748 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2749 # Try to create an executable without -o first, disregard a.out.
2750 # It will help us diagnose broken compilers, and finding out an intuition
2751 # of exeext.
2752 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753 $as_echo_n "checking for C compiler default output file name... " >&6; }
2754 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755
2756 # The possible output files:
2757 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2758
2759 ac_rmfiles=
2760 for ac_file in $ac_files
2761 do
2762 case $ac_file in
2763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2764 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2765 esac
2766 done
2767 rm -f $ac_rmfiles
2768
2769 if { (ac_try="$ac_link_default"
2770 case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773 esac
2774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2775 $as_echo "$ac_try_echo") >&5
2776 (eval "$ac_link_default") 2>&5
2777 ac_status=$?
2778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; then
2780 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2781 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2782 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2783 # so that the user can short-circuit this test for compilers unknown to
2784 # Autoconf.
2785 for ac_file in $ac_files ''
2786 do
2787 test -f "$ac_file" || continue
2788 case $ac_file in
2789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2790 ;;
2791 [ab].out )
2792 # We found the default executable, but exeext='' is most
2793 # certainly right.
2794 break;;
2795 *.* )
2796 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2797 then :; else
2798 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2799 fi
2800 # We set ac_cv_exeext here because the later test for it is not
2801 # safe: cross compilers may not add the suffix if given an `-o'
2802 # argument, so we may need to know it at that point already.
2803 # Even if this section looks crufty: it has the advantage of
2804 # actually working.
2805 break;;
2806 * )
2807 break;;
2808 esac
2809 done
2810 test "$ac_cv_exeext" = no && ac_cv_exeext=
2811
2812 else
2813 ac_file=''
2814 fi
2815
2816 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2817 $as_echo "$ac_file" >&6; }
2818 if test -z "$ac_file"; then
2819 $as_echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2821
2822 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2824 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2825 See \`config.log' for more details." >&5
2826 $as_echo "$as_me: error: C compiler cannot create executables
2827 See \`config.log' for more details." >&2;}
2828 { (exit 77); exit 77; }; }; }
2829 fi
2830
2831 ac_exeext=$ac_cv_exeext
2832
2833 # Check that the compiler produces executables we can run. If not, either
2834 # the compiler is broken, or we cross compile.
2835 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2836 $as_echo_n "checking whether the C compiler works... " >&6; }
2837 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2838 # If not cross compiling, check that we can run a simple program.
2839 if test "$cross_compiling" != yes; then
2840 if { ac_try='./$ac_file'
2841 { (case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844 esac
2845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2846 $as_echo "$ac_try_echo") >&5
2847 (eval "$ac_try") 2>&5
2848 ac_status=$?
2849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 cross_compiling=no
2852 else
2853 if test "$cross_compiling" = maybe; then
2854 cross_compiling=yes
2855 else
2856 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2858 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2859 If you meant to cross compile, use \`--host'.
2860 See \`config.log' for more details." >&5
2861 $as_echo "$as_me: error: cannot run C compiled programs.
2862 If you meant to cross compile, use \`--host'.
2863 See \`config.log' for more details." >&2;}
2864 { (exit 1); exit 1; }; }; }
2865 fi
2866 fi
2867 fi
2868 { $as_echo "$as_me:$LINENO: result: yes" >&5
2869 $as_echo "yes" >&6; }
2870
2871 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2872 ac_clean_files=$ac_clean_files_save
2873 # Check that the compiler produces executables we can run. If not, either
2874 # the compiler is broken, or we cross compile.
2875 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2876 $as_echo_n "checking whether we are cross compiling... " >&6; }
2877 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2878 $as_echo "$cross_compiling" >&6; }
2879
2880 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2881 $as_echo_n "checking for suffix of executables... " >&6; }
2882 if { (ac_try="$ac_link"
2883 case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886 esac
2887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2888 $as_echo "$ac_try_echo") >&5
2889 (eval "$ac_link") 2>&5
2890 ac_status=$?
2891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2895 # work properly (i.e., refer to `conftest.exe'), while it won't with
2896 # `rm'.
2897 for ac_file in conftest.exe conftest conftest.*; do
2898 test -f "$ac_file" || continue
2899 case $ac_file in
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902 break;;
2903 * ) break;;
2904 esac
2905 done
2906 else
2907 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2910 See \`config.log' for more details." >&5
2911 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2912 See \`config.log' for more details." >&2;}
2913 { (exit 1); exit 1; }; }; }
2914 fi
2915
2916 rm -f conftest$ac_cv_exeext
2917 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2918 $as_echo "$ac_cv_exeext" >&6; }
2919
2920 rm -f conftest.$ac_ext
2921 EXEEXT=$ac_cv_exeext
2922 ac_exeext=$EXEEXT
2923 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2924 $as_echo_n "checking for suffix of object files... " >&6; }
2925 if test "${ac_cv_objext+set}" = set; then
2926 $as_echo_n "(cached) " >&6
2927 else
2928 cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h. */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2934
2935 int
2936 main ()
2937 {
2938
2939 ;
2940 return 0;
2941 }
2942 _ACEOF
2943 rm -f conftest.o conftest.obj
2944 if { (ac_try="$ac_compile"
2945 case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948 esac
2949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2950 $as_echo "$ac_try_echo") >&5
2951 (eval "$ac_compile") 2>&5
2952 ac_status=$?
2953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; then
2955 for ac_file in conftest.o conftest.obj conftest.*; do
2956 test -f "$ac_file" || continue;
2957 case $ac_file in
2958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2959 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2960 break;;
2961 esac
2962 done
2963 else
2964 $as_echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2966
2967 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2970 See \`config.log' for more details." >&5
2971 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2972 See \`config.log' for more details." >&2;}
2973 { (exit 1); exit 1; }; }; }
2974 fi
2975
2976 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2977 fi
2978 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2979 $as_echo "$ac_cv_objext" >&6; }
2980 OBJEXT=$ac_cv_objext
2981 ac_objext=$OBJEXT
2982 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2983 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2984 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2985 $as_echo_n "(cached) " >&6
2986 else
2987 cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h. */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
2993
2994 int
2995 main ()
2996 {
2997 #ifndef __GNUC__
2998 choke me
2999 #endif
3000
3001 ;
3002 return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3012 $as_echo "$ac_try_echo") >&5
3013 (eval "$ac_compile") 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } && {
3020 test -z "$ac_c_werror_flag" ||
3021 test ! -s conftest.err
3022 } && test -s conftest.$ac_objext; then
3023 ac_compiler_gnu=yes
3024 else
3025 $as_echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028 ac_compiler_gnu=no
3029 fi
3030
3031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3033
3034 fi
3035 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3036 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3037 if test $ac_compiler_gnu = yes; then
3038 GCC=yes
3039 else
3040 GCC=
3041 fi
3042 ac_test_CFLAGS=${CFLAGS+set}
3043 ac_save_CFLAGS=$CFLAGS
3044 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3045 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3046 if test "${ac_cv_prog_cc_g+set}" = set; then
3047 $as_echo_n "(cached) " >&6
3048 else
3049 ac_save_c_werror_flag=$ac_c_werror_flag
3050 ac_c_werror_flag=yes
3051 ac_cv_prog_cc_g=no
3052 CFLAGS="-g"
3053 cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059
3060 int
3061 main ()
3062 {
3063
3064 ;
3065 return 0;
3066 }
3067 _ACEOF
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3070 case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3075 $as_echo "$ac_try_echo") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3077 ac_status=$?
3078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } && {
3083 test -z "$ac_c_werror_flag" ||
3084 test ! -s conftest.err
3085 } && test -s conftest.$ac_objext; then
3086 ac_cv_prog_cc_g=yes
3087 else
3088 $as_echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3090
3091 CFLAGS=""
3092 cat >conftest.$ac_ext <<_ACEOF
3093 /* confdefs.h. */
3094 _ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h. */
3098
3099 int
3100 main ()
3101 {
3102
3103 ;
3104 return 0;
3105 }
3106 _ACEOF
3107 rm -f conftest.$ac_objext
3108 if { (ac_try="$ac_compile"
3109 case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112 esac
3113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3114 $as_echo "$ac_try_echo") >&5
3115 (eval "$ac_compile") 2>conftest.er1
3116 ac_status=$?
3117 grep -v '^ *+' conftest.er1 >conftest.err
3118 rm -f conftest.er1
3119 cat conftest.err >&5
3120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } && {
3122 test -z "$ac_c_werror_flag" ||
3123 test ! -s conftest.err
3124 } && test -s conftest.$ac_objext; then
3125 :
3126 else
3127 $as_echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3129
3130 ac_c_werror_flag=$ac_save_c_werror_flag
3131 CFLAGS="-g"
3132 cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h. */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3138
3139 int
3140 main ()
3141 {
3142
3143 ;
3144 return 0;
3145 }
3146 _ACEOF
3147 rm -f conftest.$ac_objext
3148 if { (ac_try="$ac_compile"
3149 case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3154 $as_echo "$ac_try_echo") >&5
3155 (eval "$ac_compile") 2>conftest.er1
3156 ac_status=$?
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } && {
3162 test -z "$ac_c_werror_flag" ||
3163 test ! -s conftest.err
3164 } && test -s conftest.$ac_objext; then
3165 ac_cv_prog_cc_g=yes
3166 else
3167 $as_echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170
3171 fi
3172
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 fi
3175
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 fi
3178
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 ac_c_werror_flag=$ac_save_c_werror_flag
3181 fi
3182 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3183 $as_echo "$ac_cv_prog_cc_g" >&6; }
3184 if test "$ac_test_CFLAGS" = set; then
3185 CFLAGS=$ac_save_CFLAGS
3186 elif test $ac_cv_prog_cc_g = yes; then
3187 if test "$GCC" = yes; then
3188 CFLAGS="-g -O2"
3189 else
3190 CFLAGS="-g"
3191 fi
3192 else
3193 if test "$GCC" = yes; then
3194 CFLAGS="-O2"
3195 else
3196 CFLAGS=
3197 fi
3198 fi
3199 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3200 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3201 if test "${ac_cv_prog_cc_c89+set}" = set; then
3202 $as_echo_n "(cached) " >&6
3203 else
3204 ac_cv_prog_cc_c89=no
3205 ac_save_CC=$CC
3206 cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212 #include <stdarg.h>
3213 #include <stdio.h>
3214 #include <sys/types.h>
3215 #include <sys/stat.h>
3216 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3217 struct buf { int x; };
3218 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3219 static char *e (p, i)
3220 char **p;
3221 int i;
3222 {
3223 return p[i];
3224 }
3225 static char *f (char * (*g) (char **, int), char **p, ...)
3226 {
3227 char *s;
3228 va_list v;
3229 va_start (v,p);
3230 s = g (p, va_arg (v,int));
3231 va_end (v);
3232 return s;
3233 }
3234
3235 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3236 function prototypes and stuff, but not '\xHH' hex character constants.
3237 These don't provoke an error unfortunately, instead are silently treated
3238 as 'x'. The following induces an error, until -std is added to get
3239 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3240 array size at least. It's necessary to write '\x00'==0 to get something
3241 that's true only with -std. */
3242 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3243
3244 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3245 inside strings and character constants. */
3246 #define FOO(x) 'x'
3247 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3248
3249 int test (int i, double x);
3250 struct s1 {int (*f) (int a);};
3251 struct s2 {int (*f) (double a);};
3252 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3253 int argc;
3254 char **argv;
3255 int
3256 main ()
3257 {
3258 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3259 ;
3260 return 0;
3261 }
3262 _ACEOF
3263 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3264 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3265 do
3266 CC="$ac_save_CC $ac_arg"
3267 rm -f conftest.$ac_objext
3268 if { (ac_try="$ac_compile"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274 $as_echo "$ac_try_echo") >&5
3275 (eval "$ac_compile") 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } && {
3282 test -z "$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3284 } && test -s conftest.$ac_objext; then
3285 ac_cv_prog_cc_c89=$ac_arg
3286 else
3287 $as_echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290
3291 fi
3292
3293 rm -f core conftest.err conftest.$ac_objext
3294 test "x$ac_cv_prog_cc_c89" != "xno" && break
3295 done
3296 rm -f conftest.$ac_ext
3297 CC=$ac_save_CC
3298
3299 fi
3300 # AC_CACHE_VAL
3301 case "x$ac_cv_prog_cc_c89" in
3302 x)
3303 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3304 $as_echo "none needed" >&6; } ;;
3305 xno)
3306 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3307 $as_echo "unsupported" >&6; } ;;
3308 *)
3309 CC="$CC $ac_cv_prog_cc_c89"
3310 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3311 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3312 esac
3313
3314
3315 ac_ext=c
3316 ac_cpp='$CPP $CPPFLAGS'
3317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3320
3321
3322
3323 ac_ext=c
3324 ac_cpp='$CPP $CPPFLAGS'
3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3329 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3330 # On Suns, sometimes $CPP names a directory.
3331 if test -n "$CPP" && test -d "$CPP"; then
3332 CPP=
3333 fi
3334 if test -z "$CPP"; then
3335 if test "${ac_cv_prog_CPP+set}" = set; then
3336 $as_echo_n "(cached) " >&6
3337 else
3338 # Double quotes because CPP needs to be expanded
3339 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3340 do
3341 ac_preproc_ok=false
3342 for ac_c_preproc_warn_flag in '' yes
3343 do
3344 # Use a header file that comes with gcc, so configuring glibc
3345 # with a fresh cross-compiler works.
3346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3347 # <limits.h> exists even on freestanding compilers.
3348 # On the NeXT, cc -E runs the code through the compiler's parser,
3349 # not just through cpp. "Syntax error" is here to catch this case.
3350 cat >conftest.$ac_ext <<_ACEOF
3351 /* confdefs.h. */
3352 _ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h. */
3356 #ifdef __STDC__
3357 # include <limits.h>
3358 #else
3359 # include <assert.h>
3360 #endif
3361 Syntax error
3362 _ACEOF
3363 if { (ac_try="$ac_cpp conftest.$ac_ext"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3369 $as_echo "$ac_try_echo") >&5
3370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3371 ac_status=$?
3372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
3375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } >/dev/null && {
3377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3378 test ! -s conftest.err
3379 }; then
3380 :
3381 else
3382 $as_echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385 # Broken: fails on valid input.
3386 continue
3387 fi
3388
3389 rm -f conftest.err conftest.$ac_ext
3390
3391 # OK, works on sane cases. Now check whether nonexistent headers
3392 # can be detected and how.
3393 cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h. */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3399 #include <ac_nonexistent.h>
3400 _ACEOF
3401 if { (ac_try="$ac_cpp conftest.$ac_ext"
3402 case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405 esac
3406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3407 $as_echo "$ac_try_echo") >&5
3408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3409 ac_status=$?
3410 grep -v '^ *+' conftest.er1 >conftest.err
3411 rm -f conftest.er1
3412 cat conftest.err >&5
3413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } >/dev/null && {
3415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3416 test ! -s conftest.err
3417 }; then
3418 # Broken: success on invalid input.
3419 continue
3420 else
3421 $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424 # Passes both tests.
3425 ac_preproc_ok=:
3426 break
3427 fi
3428
3429 rm -f conftest.err conftest.$ac_ext
3430
3431 done
3432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3433 rm -f conftest.err conftest.$ac_ext
3434 if $ac_preproc_ok; then
3435 break
3436 fi
3437
3438 done
3439 ac_cv_prog_CPP=$CPP
3440
3441 fi
3442 CPP=$ac_cv_prog_CPP
3443 else
3444 ac_cv_prog_CPP=$CPP
3445 fi
3446 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3447 $as_echo "$CPP" >&6; }
3448 ac_preproc_ok=false
3449 for ac_c_preproc_warn_flag in '' yes
3450 do
3451 # Use a header file that comes with gcc, so configuring glibc
3452 # with a fresh cross-compiler works.
3453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3454 # <limits.h> exists even on freestanding compilers.
3455 # On the NeXT, cc -E runs the code through the compiler's parser,
3456 # not just through cpp. "Syntax error" is here to catch this case.
3457 cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h. */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3463 #ifdef __STDC__
3464 # include <limits.h>
3465 #else
3466 # include <assert.h>
3467 #endif
3468 Syntax error
3469 _ACEOF
3470 if { (ac_try="$ac_cpp conftest.$ac_ext"
3471 case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3476 $as_echo "$ac_try_echo") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null && {
3484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3485 test ! -s conftest.err
3486 }; then
3487 :
3488 else
3489 $as_echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492 # Broken: fails on valid input.
3493 continue
3494 fi
3495
3496 rm -f conftest.err conftest.$ac_ext
3497
3498 # OK, works on sane cases. Now check whether nonexistent headers
3499 # can be detected and how.
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 #include <ac_nonexistent.h>
3507 _ACEOF
3508 if { (ac_try="$ac_cpp conftest.$ac_ext"
3509 case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512 esac
3513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3514 $as_echo "$ac_try_echo") >&5
3515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3516 ac_status=$?
3517 grep -v '^ *+' conftest.er1 >conftest.err
3518 rm -f conftest.er1
3519 cat conftest.err >&5
3520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } >/dev/null && {
3522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3523 test ! -s conftest.err
3524 }; then
3525 # Broken: success on invalid input.
3526 continue
3527 else
3528 $as_echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3530
3531 # Passes both tests.
3532 ac_preproc_ok=:
3533 break
3534 fi
3535
3536 rm -f conftest.err conftest.$ac_ext
3537
3538 done
3539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3540 rm -f conftest.err conftest.$ac_ext
3541 if $ac_preproc_ok; then
3542 :
3543 else
3544 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3547 See \`config.log' for more details." >&5
3548 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3549 See \`config.log' for more details." >&2;}
3550 { (exit 1); exit 1; }; }; }
3551 fi
3552
3553 ac_ext=c
3554 ac_cpp='$CPP $CPPFLAGS'
3555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558
3559
3560 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3561 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3562 if test "${ac_cv_path_GREP+set}" = set; then
3563 $as_echo_n "(cached) " >&6
3564 else
3565 if test -z "$GREP"; then
3566 ac_path_GREP_found=false
3567 # Loop through the user's path and test for each of PROGNAME-LIST
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3570 do
3571 IFS=$as_save_IFS
3572 test -z "$as_dir" && as_dir=.
3573 for ac_prog in grep ggrep; do
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3576 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3577 # Check for GNU ac_path_GREP and select it if it is found.
3578 # Check for GNU $ac_path_GREP
3579 case `"$ac_path_GREP" --version 2>&1` in
3580 *GNU*)
3581 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3582 *)
3583 ac_count=0
3584 $as_echo_n 0123456789 >"conftest.in"
3585 while :
3586 do
3587 cat "conftest.in" "conftest.in" >"conftest.tmp"
3588 mv "conftest.tmp" "conftest.in"
3589 cp "conftest.in" "conftest.nl"
3590 $as_echo 'GREP' >> "conftest.nl"
3591 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3592 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3593 ac_count=`expr $ac_count + 1`
3594 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3595 # Best one so far, save it but keep looking for a better one
3596 ac_cv_path_GREP="$ac_path_GREP"
3597 ac_path_GREP_max=$ac_count
3598 fi
3599 # 10*(2^10) chars as input seems more than enough
3600 test $ac_count -gt 10 && break
3601 done
3602 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3603 esac
3604
3605 $ac_path_GREP_found && break 3
3606 done
3607 done
3608 done
3609 IFS=$as_save_IFS
3610 if test -z "$ac_cv_path_GREP"; then
3611 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3612 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3613 { (exit 1); exit 1; }; }
3614 fi
3615 else
3616 ac_cv_path_GREP=$GREP
3617 fi
3618
3619 fi
3620 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3621 $as_echo "$ac_cv_path_GREP" >&6; }
3622 GREP="$ac_cv_path_GREP"
3623
3624
3625 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3626 $as_echo_n "checking for egrep... " >&6; }
3627 if test "${ac_cv_path_EGREP+set}" = set; then
3628 $as_echo_n "(cached) " >&6
3629 else
3630 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3631 then ac_cv_path_EGREP="$GREP -E"
3632 else
3633 if test -z "$EGREP"; then
3634 ac_path_EGREP_found=false
3635 # Loop through the user's path and test for each of PROGNAME-LIST
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3638 do
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_prog in egrep; do
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3644 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3645 # Check for GNU ac_path_EGREP and select it if it is found.
3646 # Check for GNU $ac_path_EGREP
3647 case `"$ac_path_EGREP" --version 2>&1` in
3648 *GNU*)
3649 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3650 *)
3651 ac_count=0
3652 $as_echo_n 0123456789 >"conftest.in"
3653 while :
3654 do
3655 cat "conftest.in" "conftest.in" >"conftest.tmp"
3656 mv "conftest.tmp" "conftest.in"
3657 cp "conftest.in" "conftest.nl"
3658 $as_echo 'EGREP' >> "conftest.nl"
3659 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3661 ac_count=`expr $ac_count + 1`
3662 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3663 # Best one so far, save it but keep looking for a better one
3664 ac_cv_path_EGREP="$ac_path_EGREP"
3665 ac_path_EGREP_max=$ac_count
3666 fi
3667 # 10*(2^10) chars as input seems more than enough
3668 test $ac_count -gt 10 && break
3669 done
3670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3671 esac
3672
3673 $ac_path_EGREP_found && break 3
3674 done
3675 done
3676 done
3677 IFS=$as_save_IFS
3678 if test -z "$ac_cv_path_EGREP"; then
3679 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3680 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3681 { (exit 1); exit 1; }; }
3682 fi
3683 else
3684 ac_cv_path_EGREP=$EGREP
3685 fi
3686
3687 fi
3688 fi
3689 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3690 $as_echo "$ac_cv_path_EGREP" >&6; }
3691 EGREP="$ac_cv_path_EGREP"
3692
3693
3694 if test $ac_cv_c_compiler_gnu = yes; then
3695 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3696 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3697 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3698 $as_echo_n "(cached) " >&6
3699 else
3700 ac_pattern="Autoconf.*'x'"
3701 cat >conftest.$ac_ext <<_ACEOF
3702 /* confdefs.h. */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3707 #include <sgtty.h>
3708 Autoconf TIOCGETP
3709 _ACEOF
3710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3711 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3712 ac_cv_prog_gcc_traditional=yes
3713 else
3714 ac_cv_prog_gcc_traditional=no
3715 fi
3716 rm -f conftest*
3717
3718
3719 if test $ac_cv_prog_gcc_traditional = no; then
3720 cat >conftest.$ac_ext <<_ACEOF
3721 /* confdefs.h. */
3722 _ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3726 #include <termio.h>
3727 Autoconf TCGETA
3728 _ACEOF
3729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3730 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3731 ac_cv_prog_gcc_traditional=yes
3732 fi
3733 rm -f conftest*
3734
3735 fi
3736 fi
3737 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3738 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3739 if test $ac_cv_prog_gcc_traditional = yes; then
3740 CC="$CC -traditional"
3741 fi
3742 fi
3743
3744 # Find a good install program. We prefer a C program (faster),
3745 # so one script is as good as another. But avoid the broken or
3746 # incompatible versions:
3747 # SysV /etc/install, /usr/sbin/install
3748 # SunOS /usr/etc/install
3749 # IRIX /sbin/install
3750 # AIX /bin/install
3751 # AmigaOS /C/install, which installs bootblocks on floppy discs
3752 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3753 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3754 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3755 # OS/2's system install, which has a completely different semantic
3756 # ./install, which can be erroneously created by make from ./install.sh.
3757 # Reject install programs that cannot install multiple files.
3758 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3759 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3760 if test -z "$INSTALL"; then
3761 if test "${ac_cv_path_install+set}" = set; then
3762 $as_echo_n "(cached) " >&6
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 # Account for people who put trailing slashes in PATH elements.
3770 case $as_dir/ in
3771 ./ | .// | /cC/* | \
3772 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3773 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3774 /usr/ucb/* ) ;;
3775 *)
3776 # OSF1 and SCO ODT 3.0 have their own names for install.
3777 # Don't use installbsd from OSF since it installs stuff as root
3778 # by default.
3779 for ac_prog in ginstall scoinst install; do
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3782 if test $ac_prog = install &&
3783 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3784 # AIX install. It has an incompatible calling convention.
3785 :
3786 elif test $ac_prog = install &&
3787 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3788 # program-specific install script used by HP pwplus--don't use.
3789 :
3790 else
3791 rm -rf conftest.one conftest.two conftest.dir
3792 echo one > conftest.one
3793 echo two > conftest.two
3794 mkdir conftest.dir
3795 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3796 test -s conftest.one && test -s conftest.two &&
3797 test -s conftest.dir/conftest.one &&
3798 test -s conftest.dir/conftest.two
3799 then
3800 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3801 break 3
3802 fi
3803 fi
3804 fi
3805 done
3806 done
3807 ;;
3808 esac
3809
3810 done
3811 IFS=$as_save_IFS
3812
3813 rm -rf conftest.one conftest.two conftest.dir
3814
3815 fi
3816 if test "${ac_cv_path_install+set}" = set; then
3817 INSTALL=$ac_cv_path_install
3818 else
3819 # As a last resort, use the slow shell script. Don't cache a
3820 # value for INSTALL within a source directory, because that will
3821 # break other packages using the cache if that directory is
3822 # removed, or if the value is a relative name.
3823 INSTALL=$ac_install_sh
3824 fi
3825 fi
3826 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3827 $as_echo "$INSTALL" >&6; }
3828
3829 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3830 # It thinks the first close brace ends the variable substitution.
3831 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3832
3833 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3834
3835 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3836
3837 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3838 $as_echo_n "checking whether ln -s works... " >&6; }
3839 LN_S=$as_ln_s
3840 if test "$LN_S" = "ln -s"; then
3841 { $as_echo "$as_me:$LINENO: result: yes" >&5
3842 $as_echo "yes" >&6; }
3843 else
3844 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3845 $as_echo "no, using $LN_S" >&6; }
3846 fi
3847
3848 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3849 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3850 set x ${MAKE-make}
3851 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3852 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3853 $as_echo_n "(cached) " >&6
3854 else
3855 cat >conftest.make <<\_ACEOF
3856 SHELL = /bin/sh
3857 all:
3858 @echo '@@@%%%=$(MAKE)=@@@%%%'
3859 _ACEOF
3860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3861 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3862 *@@@%%%=?*=@@@%%%*)
3863 eval ac_cv_prog_make_${ac_make}_set=yes;;
3864 *)
3865 eval ac_cv_prog_make_${ac_make}_set=no;;
3866 esac
3867 rm -f conftest.make
3868 fi
3869 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3870 { $as_echo "$as_me:$LINENO: result: yes" >&5
3871 $as_echo "yes" >&6; }
3872 SET_MAKE=
3873 else
3874 { $as_echo "$as_me:$LINENO: result: no" >&5
3875 $as_echo "no" >&6; }
3876 SET_MAKE="MAKE=${MAKE-make}"
3877 fi
3878
3879 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3880 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3881 if test -z "$MKDIR_P"; then
3882 if test "${ac_cv_path_mkdir+set}" = set; then
3883 $as_echo_n "(cached) " >&6
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3887 do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_prog in mkdir gmkdir; do
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3893 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3894 'mkdir (GNU coreutils) '* | \
3895 'mkdir (coreutils) '* | \
3896 'mkdir (fileutils) '4.1*)
3897 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3898 break 3;;
3899 esac
3900 done
3901 done
3902 done
3903 IFS=$as_save_IFS
3904
3905 fi
3906
3907 if test "${ac_cv_path_mkdir+set}" = set; then
3908 MKDIR_P="$ac_cv_path_mkdir -p"
3909 else
3910 # As a last resort, use the slow shell script. Don't cache a
3911 # value for MKDIR_P within a source directory, because that will
3912 # break other packages using the cache if that directory is
3913 # removed, or if the value is a relative name.
3914 test -d ./--version && rmdir ./--version
3915 MKDIR_P="$ac_install_sh -d"
3916 fi
3917 fi
3918 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3919 $as_echo "$MKDIR_P" >&6; }
3920
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3924 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 $as_echo_n "checking for $ac_word... " >&6; }
3926 if test "${ac_cv_prog_RANLIB+set}" = set; then
3927 $as_echo_n "(cached) " >&6
3928 else
3929 if test -n "$RANLIB"; then
3930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3940 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943 done
3944 done
3945 IFS=$as_save_IFS
3946
3947 fi
3948 fi
3949 RANLIB=$ac_cv_prog_RANLIB
3950 if test -n "$RANLIB"; then
3951 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3952 $as_echo "$RANLIB" >&6; }
3953 else
3954 { $as_echo "$as_me:$LINENO: result: no" >&5
3955 $as_echo "no" >&6; }
3956 fi
3957
3958
3959 fi
3960 if test -z "$ac_cv_prog_RANLIB"; then
3961 ac_ct_RANLIB=$RANLIB
3962 # Extract the first word of "ranlib", so it can be a program name with args.
3963 set dummy ranlib; ac_word=$2
3964 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3965 $as_echo_n "checking for $ac_word... " >&6; }
3966 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3967 $as_echo_n "(cached) " >&6
3968 else
3969 if test -n "$ac_ct_RANLIB"; then
3970 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3971 else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3979 ac_cv_prog_ac_ct_RANLIB="ranlib"
3980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983 done
3984 done
3985 IFS=$as_save_IFS
3986
3987 fi
3988 fi
3989 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3990 if test -n "$ac_ct_RANLIB"; then
3991 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3992 $as_echo "$ac_ct_RANLIB" >&6; }
3993 else
3994 { $as_echo "$as_me:$LINENO: result: no" >&5
3995 $as_echo "no" >&6; }
3996 fi
3997
3998 if test "x$ac_ct_RANLIB" = x; then
3999 RANLIB=":"
4000 else
4001 case $cross_compiling:$ac_tool_warned in
4002 yes:)
4003 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4005 ac_tool_warned=yes ;;
4006 esac
4007 RANLIB=$ac_ct_RANLIB
4008 fi
4009 else
4010 RANLIB="$ac_cv_prog_RANLIB"
4011 fi
4012
4013 # Extract the first word of "cflow", so it can be a program name with args.
4014 set dummy cflow; ac_word=$2
4015 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4016 $as_echo_n "checking for $ac_word... " >&6; }
4017 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
4018 $as_echo_n "(cached) " >&6
4019 else
4020 case $CFLOW_CMD in
4021 [\\/]* | ?:[\\/]*)
4022 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4023 ;;
4024 *)
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4027 do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4033 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 break 2
4035 fi
4036 done
4037 done
4038 IFS=$as_save_IFS
4039
4040 ;;
4041 esac
4042 fi
4043 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4044 if test -n "$CFLOW_CMD"; then
4045 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4046 $as_echo "$CFLOW_CMD" >&6; }
4047 else
4048 { $as_echo "$as_me:$LINENO: result: no" >&5
4049 $as_echo "no" >&6; }
4050 fi
4051
4052
4053 # Extract the first word of "cscope", so it can be a program name with args.
4054 set dummy cscope; ac_word=$2
4055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
4058 $as_echo_n "(cached) " >&6
4059 else
4060 case $CSCOPE_CMD in
4061 [\\/]* | ?:[\\/]*)
4062 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4063 ;;
4064 *)
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4072 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4073 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 break 2
4075 fi
4076 done
4077 done
4078 IFS=$as_save_IFS
4079
4080 ;;
4081 esac
4082 fi
4083 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4084 if test -n "$CSCOPE_CMD"; then
4085 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4086 $as_echo "$CSCOPE_CMD" >&6; }
4087 else
4088 { $as_echo "$as_me:$LINENO: result: no" >&5
4089 $as_echo "no" >&6; }
4090 fi
4091
4092
4093
4094 ################################################################################
4095
4096
4097
4098
4099
4100 ac_header_dirent=no
4101 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4102 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4103 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4104 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4106 $as_echo_n "(cached) " >&6
4107 else
4108 cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h. */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114 #include <sys/types.h>
4115 #include <$ac_hdr>
4116
4117 int
4118 main ()
4119 {
4120 if ((DIR *) 0)
4121 return 0;
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 rm -f conftest.$ac_objext
4127 if { (ac_try="$ac_compile"
4128 case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131 esac
4132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4133 $as_echo "$ac_try_echo") >&5
4134 (eval "$ac_compile") 2>conftest.er1
4135 ac_status=$?
4136 grep -v '^ *+' conftest.er1 >conftest.err
4137 rm -f conftest.er1
4138 cat conftest.err >&5
4139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } && {
4141 test -z "$ac_c_werror_flag" ||
4142 test ! -s conftest.err
4143 } && test -s conftest.$ac_objext; then
4144 eval "$as_ac_Header=yes"
4145 else
4146 $as_echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4148
4149 eval "$as_ac_Header=no"
4150 fi
4151
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 fi
4154 ac_res=`eval 'as_val=${'$as_ac_Header'}
4155 $as_echo "$as_val"'`
4156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4157 $as_echo "$ac_res" >&6; }
4158 as_val=`eval 'as_val=${'$as_ac_Header'}
4159 $as_echo "$as_val"'`
4160 if test "x$as_val" = x""yes; then
4161 cat >>confdefs.h <<_ACEOF
4162 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4163 _ACEOF
4164
4165 ac_header_dirent=$ac_hdr; break
4166 fi
4167
4168 done
4169 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4170 if test $ac_header_dirent = dirent.h; then
4171 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4172 $as_echo_n "checking for library containing opendir... " >&6; }
4173 if test "${ac_cv_search_opendir+set}" = set; then
4174 $as_echo_n "(cached) " >&6
4175 else
4176 ac_func_search_save_LIBS=$LIBS
4177 cat >conftest.$ac_ext <<_ACEOF
4178 /* confdefs.h. */
4179 _ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4183
4184 /* Override any GCC internal prototype to avoid an error.
4185 Use char because int might match the return type of a GCC
4186 builtin and then its argument prototype would still apply. */
4187 #ifdef __cplusplus
4188 extern "C"
4189 #endif
4190 char opendir ();
4191 int
4192 main ()
4193 {
4194 return opendir ();
4195 ;
4196 return 0;
4197 }
4198 _ACEOF
4199 for ac_lib in '' dir; do
4200 if test -z "$ac_lib"; then
4201 ac_res="none required"
4202 else
4203 ac_res=-l$ac_lib
4204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4205 fi
4206 rm -f conftest.$ac_objext conftest$ac_exeext
4207 if { (ac_try="$ac_link"
4208 case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211 esac
4212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4213 $as_echo "$ac_try_echo") >&5
4214 (eval "$ac_link") 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } && {
4221 test -z "$ac_c_werror_flag" ||
4222 test ! -s conftest.err
4223 } && test -s conftest$ac_exeext && {
4224 test "$cross_compiling" = yes ||
4225 $as_test_x conftest$ac_exeext
4226 }; then
4227 ac_cv_search_opendir=$ac_res
4228 else
4229 $as_echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4231
4232
4233 fi
4234
4235 rm -rf conftest.dSYM
4236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4237 conftest$ac_exeext
4238 if test "${ac_cv_search_opendir+set}" = set; then
4239 break
4240 fi
4241 done
4242 if test "${ac_cv_search_opendir+set}" = set; then
4243 :
4244 else
4245 ac_cv_search_opendir=no
4246 fi
4247 rm conftest.$ac_ext
4248 LIBS=$ac_func_search_save_LIBS
4249 fi
4250 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4251 $as_echo "$ac_cv_search_opendir" >&6; }
4252 ac_res=$ac_cv_search_opendir
4253 if test "$ac_res" != no; then
4254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4255
4256 fi
4257
4258 else
4259 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4260 $as_echo_n "checking for library containing opendir... " >&6; }
4261 if test "${ac_cv_search_opendir+set}" = set; then
4262 $as_echo_n "(cached) " >&6
4263 else
4264 ac_func_search_save_LIBS=$LIBS
4265 cat >conftest.$ac_ext <<_ACEOF
4266 /* confdefs.h. */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271
4272 /* Override any GCC internal prototype to avoid an error.
4273 Use char because int might match the return type of a GCC
4274 builtin and then its argument prototype would still apply. */
4275 #ifdef __cplusplus
4276 extern "C"
4277 #endif
4278 char opendir ();
4279 int
4280 main ()
4281 {
4282 return opendir ();
4283 ;
4284 return 0;
4285 }
4286 _ACEOF
4287 for ac_lib in '' x; do
4288 if test -z "$ac_lib"; then
4289 ac_res="none required"
4290 else
4291 ac_res=-l$ac_lib
4292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4293 fi
4294 rm -f conftest.$ac_objext conftest$ac_exeext
4295 if { (ac_try="$ac_link"
4296 case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299 esac
4300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4301 $as_echo "$ac_try_echo") >&5
4302 (eval "$ac_link") 2>conftest.er1
4303 ac_status=$?
4304 grep -v '^ *+' conftest.er1 >conftest.err
4305 rm -f conftest.er1
4306 cat conftest.err >&5
4307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } && {
4309 test -z "$ac_c_werror_flag" ||
4310 test ! -s conftest.err
4311 } && test -s conftest$ac_exeext && {
4312 test "$cross_compiling" = yes ||
4313 $as_test_x conftest$ac_exeext
4314 }; then
4315 ac_cv_search_opendir=$ac_res
4316 else
4317 $as_echo "$as_me: failed program was:" >&5
4318 sed 's/^/| /' conftest.$ac_ext >&5
4319
4320
4321 fi
4322
4323 rm -rf conftest.dSYM
4324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4325 conftest$ac_exeext
4326 if test "${ac_cv_search_opendir+set}" = set; then
4327 break
4328 fi
4329 done
4330 if test "${ac_cv_search_opendir+set}" = set; then
4331 :
4332 else
4333 ac_cv_search_opendir=no
4334 fi
4335 rm conftest.$ac_ext
4336 LIBS=$ac_func_search_save_LIBS
4337 fi
4338 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4339 $as_echo "$ac_cv_search_opendir" >&6; }
4340 ac_res=$ac_cv_search_opendir
4341 if test "$ac_res" != no; then
4342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4343
4344 fi
4345
4346 fi
4347
4348 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4349 $as_echo_n "checking for ANSI C header files... " >&6; }
4350 if test "${ac_cv_header_stdc+set}" = set; then
4351 $as_echo_n "(cached) " >&6
4352 else
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h. */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <stdlib.h>
4360 #include <stdarg.h>
4361 #include <string.h>
4362 #include <float.h>
4363
4364 int
4365 main ()
4366 {
4367
4368 ;
4369 return 0;
4370 }
4371 _ACEOF
4372 rm -f conftest.$ac_objext
4373 if { (ac_try="$ac_compile"
4374 case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377 esac
4378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4379 $as_echo "$ac_try_echo") >&5
4380 (eval "$ac_compile") 2>conftest.er1
4381 ac_status=$?
4382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
4385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } && {
4387 test -z "$ac_c_werror_flag" ||
4388 test ! -s conftest.err
4389 } && test -s conftest.$ac_objext; then
4390 ac_cv_header_stdc=yes
4391 else
4392 $as_echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4394
4395 ac_cv_header_stdc=no
4396 fi
4397
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399
4400 if test $ac_cv_header_stdc = yes; then
4401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h. */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 #include <string.h>
4409
4410 _ACEOF
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 $EGREP "memchr" >/dev/null 2>&1; then
4413 :
4414 else
4415 ac_cv_header_stdc=no
4416 fi
4417 rm -f conftest*
4418
4419 fi
4420
4421 if test $ac_cv_header_stdc = yes; then
4422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4423 cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h. */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 #include <stdlib.h>
4430
4431 _ACEOF
4432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4433 $EGREP "free" >/dev/null 2>&1; then
4434 :
4435 else
4436 ac_cv_header_stdc=no
4437 fi
4438 rm -f conftest*
4439
4440 fi
4441
4442 if test $ac_cv_header_stdc = yes; then
4443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4444 if test "$cross_compiling" = yes; then
4445 :
4446 else
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h. */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 #include <ctype.h>
4454 #include <stdlib.h>
4455 #if ((' ' & 0x0FF) == 0x020)
4456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4458 #else
4459 # define ISLOWER(c) \
4460 (('a' <= (c) && (c) <= 'i') \
4461 || ('j' <= (c) && (c) <= 'r') \
4462 || ('s' <= (c) && (c) <= 'z'))
4463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4464 #endif
4465
4466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4467 int
4468 main ()
4469 {
4470 int i;
4471 for (i = 0; i < 256; i++)
4472 if (XOR (islower (i), ISLOWER (i))
4473 || toupper (i) != TOUPPER (i))
4474 return 2;
4475 return 0;
4476 }
4477 _ACEOF
4478 rm -f conftest$ac_exeext
4479 if { (ac_try="$ac_link"
4480 case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483 esac
4484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4485 $as_echo "$ac_try_echo") >&5
4486 (eval "$ac_link") 2>&5
4487 ac_status=$?
4488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4490 { (case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4493 esac
4494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4495 $as_echo "$ac_try_echo") >&5
4496 (eval "$ac_try") 2>&5
4497 ac_status=$?
4498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 :
4501 else
4502 $as_echo "$as_me: program exited with status $ac_status" >&5
4503 $as_echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4505
4506 ( exit $ac_status )
4507 ac_cv_header_stdc=no
4508 fi
4509 rm -rf conftest.dSYM
4510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4511 fi
4512
4513
4514 fi
4515 fi
4516 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4517 $as_echo "$ac_cv_header_stdc" >&6; }
4518 if test $ac_cv_header_stdc = yes; then
4519
4520 cat >>confdefs.h <<\_ACEOF
4521 #define STDC_HEADERS 1
4522 _ACEOF
4523
4524 fi
4525
4526 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4527 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4528 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4529 $as_echo_n "(cached) " >&6
4530 else
4531 cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h. */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 #include <sys/types.h>
4538 #include <sys/wait.h>
4539 #ifndef WEXITSTATUS
4540 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4541 #endif
4542 #ifndef WIFEXITED
4543 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4544 #endif
4545
4546 int
4547 main ()
4548 {
4549 int s;
4550 wait (&s);
4551 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4552 ;
4553 return 0;
4554 }
4555 _ACEOF
4556 rm -f conftest.$ac_objext
4557 if { (ac_try="$ac_compile"
4558 case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561 esac
4562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4563 $as_echo "$ac_try_echo") >&5
4564 (eval "$ac_compile") 2>conftest.er1
4565 ac_status=$?
4566 grep -v '^ *+' conftest.er1 >conftest.err
4567 rm -f conftest.er1
4568 cat conftest.err >&5
4569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } && {
4571 test -z "$ac_c_werror_flag" ||
4572 test ! -s conftest.err
4573 } && test -s conftest.$ac_objext; then
4574 ac_cv_header_sys_wait_h=yes
4575 else
4576 $as_echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4578
4579 ac_cv_header_sys_wait_h=no
4580 fi
4581
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 fi
4584 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4585 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4586 if test $ac_cv_header_sys_wait_h = yes; then
4587
4588 cat >>confdefs.h <<\_ACEOF
4589 #define HAVE_SYS_WAIT_H 1
4590 _ACEOF
4591
4592 fi
4593
4594 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4595 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4596 if test "${ac_cv_header_time+set}" = set; then
4597 $as_echo_n "(cached) " >&6
4598 else
4599 cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h. */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605 #include <sys/types.h>
4606 #include <sys/time.h>
4607 #include <time.h>
4608
4609 int
4610 main ()
4611 {
4612 if ((struct tm *) 0)
4613 return 0;
4614 ;
4615 return 0;
4616 }
4617 _ACEOF
4618 rm -f conftest.$ac_objext
4619 if { (ac_try="$ac_compile"
4620 case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4625 $as_echo "$ac_try_echo") >&5
4626 (eval "$ac_compile") 2>conftest.er1
4627 ac_status=$?
4628 grep -v '^ *+' conftest.er1 >conftest.err
4629 rm -f conftest.er1
4630 cat conftest.err >&5
4631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } && {
4633 test -z "$ac_c_werror_flag" ||
4634 test ! -s conftest.err
4635 } && test -s conftest.$ac_objext; then
4636 ac_cv_header_time=yes
4637 else
4638 $as_echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4640
4641 ac_cv_header_time=no
4642 fi
4643
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 fi
4646 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4647 $as_echo "$ac_cv_header_time" >&6; }
4648 if test $ac_cv_header_time = yes; then
4649
4650 cat >>confdefs.h <<\_ACEOF
4651 #define TIME_WITH_SYS_TIME 1
4652 _ACEOF
4653
4654 fi
4655
4656
4657 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4668 inttypes.h stdint.h unistd.h
4669 do
4670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4671 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4672 $as_echo_n "checking for $ac_header... " >&6; }
4673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4674 $as_echo_n "(cached) " >&6
4675 else
4676 cat >conftest.$ac_ext <<_ACEOF
4677 /* confdefs.h. */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 $ac_includes_default
4683
4684 #include <$ac_header>
4685 _ACEOF
4686 rm -f conftest.$ac_objext
4687 if { (ac_try="$ac_compile"
4688 case "(($ac_try" in
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4691 esac
4692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4693 $as_echo "$ac_try_echo") >&5
4694 (eval "$ac_compile") 2>conftest.er1
4695 ac_status=$?
4696 grep -v '^ *+' conftest.er1 >conftest.err
4697 rm -f conftest.er1
4698 cat conftest.err >&5
4699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } && {
4701 test -z "$ac_c_werror_flag" ||
4702 test ! -s conftest.err
4703 } && test -s conftest.$ac_objext; then
4704 eval "$as_ac_Header=yes"
4705 else
4706 $as_echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4708
4709 eval "$as_ac_Header=no"
4710 fi
4711
4712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 fi
4714 ac_res=`eval 'as_val=${'$as_ac_Header'}
4715 $as_echo "$as_val"'`
4716 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4717 $as_echo "$ac_res" >&6; }
4718 as_val=`eval 'as_val=${'$as_ac_Header'}
4719 $as_echo "$as_val"'`
4720 if test "x$as_val" = x""yes; then
4721 cat >>confdefs.h <<_ACEOF
4722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4723 _ACEOF
4724
4725 fi
4726
4727 done
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4744 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4745 do
4746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4748 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4749 $as_echo_n "checking for $ac_header... " >&6; }
4750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4751 $as_echo_n "(cached) " >&6
4752 fi
4753 ac_res=`eval 'as_val=${'$as_ac_Header'}
4754 $as_echo "$as_val"'`
4755 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4756 $as_echo "$ac_res" >&6; }
4757 else
4758 # Is the header compilable?
4759 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4760 $as_echo_n "checking $ac_header usability... " >&6; }
4761 cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h. */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4767 $ac_includes_default
4768 #include <$ac_header>
4769 _ACEOF
4770 rm -f conftest.$ac_objext
4771 if { (ac_try="$ac_compile"
4772 case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775 esac
4776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4777 $as_echo "$ac_try_echo") >&5
4778 (eval "$ac_compile") 2>conftest.er1
4779 ac_status=$?
4780 grep -v '^ *+' conftest.er1 >conftest.err
4781 rm -f conftest.er1
4782 cat conftest.err >&5
4783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } && {
4785 test -z "$ac_c_werror_flag" ||
4786 test ! -s conftest.err
4787 } && test -s conftest.$ac_objext; then
4788 ac_header_compiler=yes
4789 else
4790 $as_echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4792
4793 ac_header_compiler=no
4794 fi
4795
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4798 $as_echo "$ac_header_compiler" >&6; }
4799
4800 # Is the header present?
4801 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4802 $as_echo_n "checking $ac_header presence... " >&6; }
4803 cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h. */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4809 #include <$ac_header>
4810 _ACEOF
4811 if { (ac_try="$ac_cpp conftest.$ac_ext"
4812 case "(($ac_try" in
4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814 *) ac_try_echo=$ac_try;;
4815 esac
4816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4817 $as_echo "$ac_try_echo") >&5
4818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4819 ac_status=$?
4820 grep -v '^ *+' conftest.er1 >conftest.err
4821 rm -f conftest.er1
4822 cat conftest.err >&5
4823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } >/dev/null && {
4825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4826 test ! -s conftest.err
4827 }; then
4828 ac_header_preproc=yes
4829 else
4830 $as_echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833 ac_header_preproc=no
4834 fi
4835
4836 rm -f conftest.err conftest.$ac_ext
4837 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4838 $as_echo "$ac_header_preproc" >&6; }
4839
4840 # So? What about this header?
4841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4842 yes:no: )
4843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4844 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4846 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4847 ac_header_preproc=yes
4848 ;;
4849 no:yes:* )
4850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4851 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4853 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4855 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4857 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4859 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4861 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4862
4863 ;;
4864 esac
4865 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4866 $as_echo_n "checking for $ac_header... " >&6; }
4867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4868 $as_echo_n "(cached) " >&6
4869 else
4870 eval "$as_ac_Header=\$ac_header_preproc"
4871 fi
4872 ac_res=`eval 'as_val=${'$as_ac_Header'}
4873 $as_echo "$as_val"'`
4874 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4875 $as_echo "$ac_res" >&6; }
4876
4877 fi
4878 as_val=`eval 'as_val=${'$as_ac_Header'}
4879 $as_echo "$as_val"'`
4880 if test "x$as_val" = x""yes; then
4881 cat >>confdefs.h <<_ACEOF
4882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4883 _ACEOF
4884
4885 else
4886 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4887 $as_echo "$as_me: error: bailing out" >&2;}
4888 { (exit 1); exit 1; }; }
4889 fi
4890
4891 done
4892
4893
4894 case "$host_os" in
4895 linux*)
4896
4897
4898
4899 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4900 do
4901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4903 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4904 $as_echo_n "checking for $ac_header... " >&6; }
4905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4906 $as_echo_n "(cached) " >&6
4907 fi
4908 ac_res=`eval 'as_val=${'$as_ac_Header'}
4909 $as_echo "$as_val"'`
4910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4911 $as_echo "$ac_res" >&6; }
4912 else
4913 # Is the header compilable?
4914 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4915 $as_echo_n "checking $ac_header usability... " >&6; }
4916 cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922 $ac_includes_default
4923 #include <$ac_header>
4924 _ACEOF
4925 rm -f conftest.$ac_objext
4926 if { (ac_try="$ac_compile"
4927 case "(($ac_try" in
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4930 esac
4931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4932 $as_echo "$ac_try_echo") >&5
4933 (eval "$ac_compile") 2>conftest.er1
4934 ac_status=$?
4935 grep -v '^ *+' conftest.er1 >conftest.err
4936 rm -f conftest.er1
4937 cat conftest.err >&5
4938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } && {
4940 test -z "$ac_c_werror_flag" ||
4941 test ! -s conftest.err
4942 } && test -s conftest.$ac_objext; then
4943 ac_header_compiler=yes
4944 else
4945 $as_echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4947
4948 ac_header_compiler=no
4949 fi
4950
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4953 $as_echo "$ac_header_compiler" >&6; }
4954
4955 # Is the header present?
4956 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4957 $as_echo_n "checking $ac_header presence... " >&6; }
4958 cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h. */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 #include <$ac_header>
4965 _ACEOF
4966 if { (ac_try="$ac_cpp conftest.$ac_ext"
4967 case "(($ac_try" in
4968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969 *) ac_try_echo=$ac_try;;
4970 esac
4971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4972 $as_echo "$ac_try_echo") >&5
4973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4974 ac_status=$?
4975 grep -v '^ *+' conftest.er1 >conftest.err
4976 rm -f conftest.er1
4977 cat conftest.err >&5
4978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } >/dev/null && {
4980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4981 test ! -s conftest.err
4982 }; then
4983 ac_header_preproc=yes
4984 else
4985 $as_echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988 ac_header_preproc=no
4989 fi
4990
4991 rm -f conftest.err conftest.$ac_ext
4992 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4993 $as_echo "$ac_header_preproc" >&6; }
4994
4995 # So? What about this header?
4996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4997 yes:no: )
4998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4999 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5001 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5002 ac_header_preproc=yes
5003 ;;
5004 no:yes:* )
5005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5006 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5008 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5010 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5012 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5014 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5016 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5017
5018 ;;
5019 esac
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 else
5025 eval "$as_ac_Header=\$ac_header_preproc"
5026 fi
5027 ac_res=`eval 'as_val=${'$as_ac_Header'}
5028 $as_echo "$as_val"'`
5029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5030 $as_echo "$ac_res" >&6; }
5031
5032 fi
5033 as_val=`eval 'as_val=${'$as_ac_Header'}
5034 $as_echo "$as_val"'`
5035 if test "x$as_val" = x""yes; then
5036 cat >>confdefs.h <<_ACEOF
5037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5038 _ACEOF
5039
5040 else
5041 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5042 $as_echo "$as_me: error: bailing out" >&2;}
5043 { (exit 1); exit 1; }; }
5044 fi
5045
5046 done
5047 ;;
5048 darwin*)
5049
5050
5051 for ac_header in machine/endian.h sys/disk.h
5052 do
5053 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5055 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5056 $as_echo_n "checking for $ac_header... " >&6; }
5057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5058 $as_echo_n "(cached) " >&6
5059 fi
5060 ac_res=`eval 'as_val=${'$as_ac_Header'}
5061 $as_echo "$as_val"'`
5062 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5063 $as_echo "$ac_res" >&6; }
5064 else
5065 # Is the header compilable?
5066 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5067 $as_echo_n "checking $ac_header usability... " >&6; }
5068 cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h. */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 $ac_includes_default
5075 #include <$ac_header>
5076 _ACEOF
5077 rm -f conftest.$ac_objext
5078 if { (ac_try="$ac_compile"
5079 case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5082 esac
5083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5084 $as_echo "$ac_try_echo") >&5
5085 (eval "$ac_compile") 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && {
5092 test -z "$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5094 } && test -s conftest.$ac_objext; then
5095 ac_header_compiler=yes
5096 else
5097 $as_echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100 ac_header_compiler=no
5101 fi
5102
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5105 $as_echo "$ac_header_compiler" >&6; }
5106
5107 # Is the header present?
5108 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5109 $as_echo_n "checking $ac_header presence... " >&6; }
5110 cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h. */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 #include <$ac_header>
5117 _ACEOF
5118 if { (ac_try="$ac_cpp conftest.$ac_ext"
5119 case "(($ac_try" in
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5122 esac
5123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5124 $as_echo "$ac_try_echo") >&5
5125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5126 ac_status=$?
5127 grep -v '^ *+' conftest.er1 >conftest.err
5128 rm -f conftest.er1
5129 cat conftest.err >&5
5130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } >/dev/null && {
5132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5133 test ! -s conftest.err
5134 }; then
5135 ac_header_preproc=yes
5136 else
5137 $as_echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5139
5140 ac_header_preproc=no
5141 fi
5142
5143 rm -f conftest.err conftest.$ac_ext
5144 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5145 $as_echo "$ac_header_preproc" >&6; }
5146
5147 # So? What about this header?
5148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5149 yes:no: )
5150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5151 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5154 ac_header_preproc=yes
5155 ;;
5156 no:yes:* )
5157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5158 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5160 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5162 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5164 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5166 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5168 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5169
5170 ;;
5171 esac
5172 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5173 $as_echo_n "checking for $ac_header... " >&6; }
5174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5175 $as_echo_n "(cached) " >&6
5176 else
5177 eval "$as_ac_Header=\$ac_header_preproc"
5178 fi
5179 ac_res=`eval 'as_val=${'$as_ac_Header'}
5180 $as_echo "$as_val"'`
5181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5182 $as_echo "$ac_res" >&6; }
5183
5184 fi
5185 as_val=`eval 'as_val=${'$as_ac_Header'}
5186 $as_echo "$as_val"'`
5187 if test "x$as_val" = x""yes; then
5188 cat >>confdefs.h <<_ACEOF
5189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5190 _ACEOF
5191
5192 else
5193 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5194 $as_echo "$as_me: error: bailing out" >&2;}
5195 { (exit 1); exit 1; }; }
5196 fi
5197
5198 done
5199 ;;
5200 esac
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5219 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5220 sys/types.h unistd.h
5221 do
5222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5224 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5225 $as_echo_n "checking for $ac_header... " >&6; }
5226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5227 $as_echo_n "(cached) " >&6
5228 fi
5229 ac_res=`eval 'as_val=${'$as_ac_Header'}
5230 $as_echo "$as_val"'`
5231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5232 $as_echo "$ac_res" >&6; }
5233 else
5234 # Is the header compilable?
5235 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5236 $as_echo_n "checking $ac_header usability... " >&6; }
5237 cat >conftest.$ac_ext <<_ACEOF
5238 /* confdefs.h. */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 $ac_includes_default
5244 #include <$ac_header>
5245 _ACEOF
5246 rm -f conftest.$ac_objext
5247 if { (ac_try="$ac_compile"
5248 case "(($ac_try" in
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5251 esac
5252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5253 $as_echo "$ac_try_echo") >&5
5254 (eval "$ac_compile") 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } && {
5261 test -z "$ac_c_werror_flag" ||
5262 test ! -s conftest.err
5263 } && test -s conftest.$ac_objext; then
5264 ac_header_compiler=yes
5265 else
5266 $as_echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5268
5269 ac_header_compiler=no
5270 fi
5271
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5274 $as_echo "$ac_header_compiler" >&6; }
5275
5276 # Is the header present?
5277 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5278 $as_echo_n "checking $ac_header presence... " >&6; }
5279 cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h. */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 #include <$ac_header>
5286 _ACEOF
5287 if { (ac_try="$ac_cpp conftest.$ac_ext"
5288 case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291 esac
5292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5293 $as_echo "$ac_try_echo") >&5
5294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5295 ac_status=$?
5296 grep -v '^ *+' conftest.er1 >conftest.err
5297 rm -f conftest.er1
5298 cat conftest.err >&5
5299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } >/dev/null && {
5301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5302 test ! -s conftest.err
5303 }; then
5304 ac_header_preproc=yes
5305 else
5306 $as_echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5308
5309 ac_header_preproc=no
5310 fi
5311
5312 rm -f conftest.err conftest.$ac_ext
5313 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5314 $as_echo "$ac_header_preproc" >&6; }
5315
5316 # So? What about this header?
5317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5318 yes:no: )
5319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5320 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5322 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5323 ac_header_preproc=yes
5324 ;;
5325 no:yes:* )
5326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5327 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5329 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5331 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5333 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5337 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5338
5339 ;;
5340 esac
5341 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5342 $as_echo_n "checking for $ac_header... " >&6; }
5343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5344 $as_echo_n "(cached) " >&6
5345 else
5346 eval "$as_ac_Header=\$ac_header_preproc"
5347 fi
5348 ac_res=`eval 'as_val=${'$as_ac_Header'}
5349 $as_echo "$as_val"'`
5350 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5351 $as_echo "$ac_res" >&6; }
5352
5353 fi
5354 as_val=`eval 'as_val=${'$as_ac_Header'}
5355 $as_echo "$as_val"'`
5356 if test "x$as_val" = x""yes; then
5357 cat >>confdefs.h <<_ACEOF
5358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5359 _ACEOF
5360
5361 else
5362 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5363 $as_echo "$as_me: error: bailing out" >&2;}
5364 { (exit 1); exit 1; }; }
5365 fi
5366
5367 done
5368
5369
5370
5371 for ac_header in termios.h sys/statvfs.h
5372 do
5373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5375 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5376 $as_echo_n "checking for $ac_header... " >&6; }
5377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5378 $as_echo_n "(cached) " >&6
5379 fi
5380 ac_res=`eval 'as_val=${'$as_ac_Header'}
5381 $as_echo "$as_val"'`
5382 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5383 $as_echo "$ac_res" >&6; }
5384 else
5385 # Is the header compilable?
5386 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5387 $as_echo_n "checking $ac_header usability... " >&6; }
5388 cat >conftest.$ac_ext <<_ACEOF
5389 /* confdefs.h. */
5390 _ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5394 $ac_includes_default
5395 #include <$ac_header>
5396 _ACEOF
5397 rm -f conftest.$ac_objext
5398 if { (ac_try="$ac_compile"
5399 case "(($ac_try" in
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5402 esac
5403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5404 $as_echo "$ac_try_echo") >&5
5405 (eval "$ac_compile") 2>conftest.er1
5406 ac_status=$?
5407 grep -v '^ *+' conftest.er1 >conftest.err
5408 rm -f conftest.er1
5409 cat conftest.err >&5
5410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } && {
5412 test -z "$ac_c_werror_flag" ||
5413 test ! -s conftest.err
5414 } && test -s conftest.$ac_objext; then
5415 ac_header_compiler=yes
5416 else
5417 $as_echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5419
5420 ac_header_compiler=no
5421 fi
5422
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5425 $as_echo "$ac_header_compiler" >&6; }
5426
5427 # Is the header present?
5428 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5429 $as_echo_n "checking $ac_header presence... " >&6; }
5430 cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h. */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 #include <$ac_header>
5437 _ACEOF
5438 if { (ac_try="$ac_cpp conftest.$ac_ext"
5439 case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442 esac
5443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5444 $as_echo "$ac_try_echo") >&5
5445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5446 ac_status=$?
5447 grep -v '^ *+' conftest.er1 >conftest.err
5448 rm -f conftest.er1
5449 cat conftest.err >&5
5450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } >/dev/null && {
5452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5453 test ! -s conftest.err
5454 }; then
5455 ac_header_preproc=yes
5456 else
5457 $as_echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5459
5460 ac_header_preproc=no
5461 fi
5462
5463 rm -f conftest.err conftest.$ac_ext
5464 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5465 $as_echo "$ac_header_preproc" >&6; }
5466
5467 # So? What about this header?
5468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5469 yes:no: )
5470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5471 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5473 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5474 ac_header_preproc=yes
5475 ;;
5476 no:yes:* )
5477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5478 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5480 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5482 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5484 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5486 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5488 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5489
5490 ;;
5491 esac
5492 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5493 $as_echo_n "checking for $ac_header... " >&6; }
5494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5495 $as_echo_n "(cached) " >&6
5496 else
5497 eval "$as_ac_Header=\$ac_header_preproc"
5498 fi
5499 ac_res=`eval 'as_val=${'$as_ac_Header'}
5500 $as_echo "$as_val"'`
5501 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5502 $as_echo "$ac_res" >&6; }
5503
5504 fi
5505 as_val=`eval 'as_val=${'$as_ac_Header'}
5506 $as_echo "$as_val"'`
5507 if test "x$as_val" = x""yes; then
5508 cat >>confdefs.h <<_ACEOF
5509 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5510 _ACEOF
5511
5512 fi
5513
5514 done
5515
5516
5517 ################################################################################
5518 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5519 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5520 if test "${ac_cv_c_const+set}" = set; then
5521 $as_echo_n "(cached) " >&6
5522 else
5523 cat >conftest.$ac_ext <<_ACEOF
5524 /* confdefs.h. */
5525 _ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h. */
5529
5530 int
5531 main ()
5532 {
5533 /* FIXME: Include the comments suggested by Paul. */
5534 #ifndef __cplusplus
5535 /* Ultrix mips cc rejects this. */
5536 typedef int charset[2];
5537 const charset cs;
5538 /* SunOS 4.1.1 cc rejects this. */
5539 char const *const *pcpcc;
5540 char **ppc;
5541 /* NEC SVR4.0.2 mips cc rejects this. */
5542 struct point {int x, y;};
5543 static struct point const zero = {0,0};
5544 /* AIX XL C 1.02.0.0 rejects this.
5545 It does not let you subtract one const X* pointer from another in
5546 an arm of an if-expression whose if-part is not a constant
5547 expression */
5548 const char *g = "string";
5549 pcpcc = &g + (g ? g-g : 0);
5550 /* HPUX 7.0 cc rejects these. */
5551 ++pcpcc;
5552 ppc = (char**) pcpcc;
5553 pcpcc = (char const *const *) ppc;
5554 { /* SCO 3.2v4 cc rejects this. */
5555 char *t;
5556 char const *s = 0 ? (char *) 0 : (char const *) 0;
5557
5558 *t++ = 0;
5559 if (s) return 0;
5560 }
5561 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5562 int x[] = {25, 17};
5563 const int *foo = &x[0];
5564 ++foo;
5565 }
5566 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5567 typedef const int *iptr;
5568 iptr p = 0;
5569 ++p;
5570 }
5571 { /* AIX XL C 1.02.0.0 rejects this saying
5572 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5573 struct s { int j; const int *ap[3]; };
5574 struct s *b; b->j = 5;
5575 }
5576 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5577 const int foo = 10;
5578 if (!foo) return 0;
5579 }
5580 return !cs[0] && !zero.x;
5581 #endif
5582
5583 ;
5584 return 0;
5585 }
5586 _ACEOF
5587 rm -f conftest.$ac_objext
5588 if { (ac_try="$ac_compile"
5589 case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5592 esac
5593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5594 $as_echo "$ac_try_echo") >&5
5595 (eval "$ac_compile") 2>conftest.er1
5596 ac_status=$?
5597 grep -v '^ *+' conftest.er1 >conftest.err
5598 rm -f conftest.er1
5599 cat conftest.err >&5
5600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } && {
5602 test -z "$ac_c_werror_flag" ||
5603 test ! -s conftest.err
5604 } && test -s conftest.$ac_objext; then
5605 ac_cv_c_const=yes
5606 else
5607 $as_echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5609
5610 ac_cv_c_const=no
5611 fi
5612
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614 fi
5615 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5616 $as_echo "$ac_cv_c_const" >&6; }
5617 if test $ac_cv_c_const = no; then
5618
5619 cat >>confdefs.h <<\_ACEOF
5620 #define const /**/
5621 _ACEOF
5622
5623 fi
5624
5625 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5626 $as_echo_n "checking for inline... " >&6; }
5627 if test "${ac_cv_c_inline+set}" = set; then
5628 $as_echo_n "(cached) " >&6
5629 else
5630 ac_cv_c_inline=no
5631 for ac_kw in inline __inline__ __inline; do
5632 cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h. */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #ifndef __cplusplus
5639 typedef int foo_t;
5640 static $ac_kw foo_t static_foo () {return 0; }
5641 $ac_kw foo_t foo () {return 0; }
5642 #endif
5643
5644 _ACEOF
5645 rm -f conftest.$ac_objext
5646 if { (ac_try="$ac_compile"
5647 case "(($ac_try" in
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5650 esac
5651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5652 $as_echo "$ac_try_echo") >&5
5653 (eval "$ac_compile") 2>conftest.er1
5654 ac_status=$?
5655 grep -v '^ *+' conftest.er1 >conftest.err
5656 rm -f conftest.er1
5657 cat conftest.err >&5
5658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } && {
5660 test -z "$ac_c_werror_flag" ||
5661 test ! -s conftest.err
5662 } && test -s conftest.$ac_objext; then
5663 ac_cv_c_inline=$ac_kw
5664 else
5665 $as_echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5667
5668
5669 fi
5670
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672 test "$ac_cv_c_inline" != no && break
5673 done
5674
5675 fi
5676 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5677 $as_echo "$ac_cv_c_inline" >&6; }
5678
5679
5680 case $ac_cv_c_inline in
5681 inline | yes) ;;
5682 *)
5683 case $ac_cv_c_inline in
5684 no) ac_val=;;
5685 *) ac_val=$ac_cv_c_inline;;
5686 esac
5687 cat >>confdefs.h <<_ACEOF
5688 #ifndef __cplusplus
5689 #define inline $ac_val
5690 #endif
5691 _ACEOF
5692 ;;
5693 esac
5694
5695 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5696 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
5697 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5698 $as_echo_n "(cached) " >&6
5699 else
5700 cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h. */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 $ac_includes_default
5707 int
5708 main ()
5709 {
5710 static struct stat ac_aggr;
5711 if (ac_aggr.st_rdev)
5712 return 0;
5713 ;
5714 return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5719 case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722 esac
5723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5724 $as_echo "$ac_try_echo") >&5
5725 (eval "$ac_compile") 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } && {
5732 test -z "$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5734 } && test -s conftest.$ac_objext; then
5735 ac_cv_member_struct_stat_st_rdev=yes
5736 else
5737 $as_echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5739
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h. */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 $ac_includes_default
5747 int
5748 main ()
5749 {
5750 static struct stat ac_aggr;
5751 if (sizeof ac_aggr.st_rdev)
5752 return 0;
5753 ;
5754 return 0;
5755 }
5756 _ACEOF
5757 rm -f conftest.$ac_objext
5758 if { (ac_try="$ac_compile"
5759 case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762 esac
5763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5764 $as_echo "$ac_try_echo") >&5
5765 (eval "$ac_compile") 2>conftest.er1
5766 ac_status=$?
5767 grep -v '^ *+' conftest.er1 >conftest.err
5768 rm -f conftest.er1
5769 cat conftest.err >&5
5770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } && {
5772 test -z "$ac_c_werror_flag" ||
5773 test ! -s conftest.err
5774 } && test -s conftest.$ac_objext; then
5775 ac_cv_member_struct_stat_st_rdev=yes
5776 else
5777 $as_echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5779
5780 ac_cv_member_struct_stat_st_rdev=no
5781 fi
5782
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 fi
5785
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 fi
5788 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5789 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5790 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5791
5792 cat >>confdefs.h <<_ACEOF
5793 #define HAVE_STRUCT_STAT_ST_RDEV 1
5794 _ACEOF
5795
5796
5797 fi
5798
5799 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5800 $as_echo_n "checking for off_t... " >&6; }
5801 if test "${ac_cv_type_off_t+set}" = set; then
5802 $as_echo_n "(cached) " >&6
5803 else
5804 ac_cv_type_off_t=no
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 $ac_includes_default
5812 int
5813 main ()
5814 {
5815 if (sizeof (off_t))
5816 return 0;
5817 ;
5818 return 0;
5819 }
5820 _ACEOF
5821 rm -f conftest.$ac_objext
5822 if { (ac_try="$ac_compile"
5823 case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5826 esac
5827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5828 $as_echo "$ac_try_echo") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && {
5836 test -z "$ac_c_werror_flag" ||
5837 test ! -s conftest.err
5838 } && test -s conftest.$ac_objext; then
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 $ac_includes_default
5846 int
5847 main ()
5848 {
5849 if (sizeof ((off_t)))
5850 return 0;
5851 ;
5852 return 0;
5853 }
5854 _ACEOF
5855 rm -f conftest.$ac_objext
5856 if { (ac_try="$ac_compile"
5857 case "(($ac_try" in
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5860 esac
5861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5862 $as_echo "$ac_try_echo") >&5
5863 (eval "$ac_compile") 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } && {
5870 test -z "$ac_c_werror_flag" ||
5871 test ! -s conftest.err
5872 } && test -s conftest.$ac_objext; then
5873 :
5874 else
5875 $as_echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5877
5878 ac_cv_type_off_t=yes
5879 fi
5880
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 else
5883 $as_echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886
5887 fi
5888
5889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5890 fi
5891 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5892 $as_echo "$ac_cv_type_off_t" >&6; }
5893 if test "x$ac_cv_type_off_t" = x""yes; then
5894 :
5895 else
5896
5897 cat >>confdefs.h <<_ACEOF
5898 #define off_t long int
5899 _ACEOF
5900
5901 fi
5902
5903 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5904 $as_echo_n "checking for pid_t... " >&6; }
5905 if test "${ac_cv_type_pid_t+set}" = set; then
5906 $as_echo_n "(cached) " >&6
5907 else
5908 ac_cv_type_pid_t=no
5909 cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 $ac_includes_default
5916 int
5917 main ()
5918 {
5919 if (sizeof (pid_t))
5920 return 0;
5921 ;
5922 return 0;
5923 }
5924 _ACEOF
5925 rm -f conftest.$ac_objext
5926 if { (ac_try="$ac_compile"
5927 case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930 esac
5931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5932 $as_echo "$ac_try_echo") >&5
5933 (eval "$ac_compile") 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } && {
5940 test -z "$ac_c_werror_flag" ||
5941 test ! -s conftest.err
5942 } && test -s conftest.$ac_objext; then
5943 cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h. */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 $ac_includes_default
5950 int
5951 main ()
5952 {
5953 if (sizeof ((pid_t)))
5954 return 0;
5955 ;
5956 return 0;
5957 }
5958 _ACEOF
5959 rm -f conftest.$ac_objext
5960 if { (ac_try="$ac_compile"
5961 case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5964 esac
5965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5966 $as_echo "$ac_try_echo") >&5
5967 (eval "$ac_compile") 2>conftest.er1
5968 ac_status=$?
5969 grep -v '^ *+' conftest.er1 >conftest.err
5970 rm -f conftest.er1
5971 cat conftest.err >&5
5972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && {
5974 test -z "$ac_c_werror_flag" ||
5975 test ! -s conftest.err
5976 } && test -s conftest.$ac_objext; then
5977 :
5978 else
5979 $as_echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5981
5982 ac_cv_type_pid_t=yes
5983 fi
5984
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 else
5987 $as_echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.$ac_ext >&5
5989
5990
5991 fi
5992
5993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994 fi
5995 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5996 $as_echo "$ac_cv_type_pid_t" >&6; }
5997 if test "x$ac_cv_type_pid_t" = x""yes; then
5998 :
5999 else
6000
6001 cat >>confdefs.h <<_ACEOF
6002 #define pid_t int
6003 _ACEOF
6004
6005 fi
6006
6007 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6008 $as_echo_n "checking return type of signal handlers... " >&6; }
6009 if test "${ac_cv_type_signal+set}" = set; then
6010 $as_echo_n "(cached) " >&6
6011 else
6012 cat >conftest.$ac_ext <<_ACEOF
6013 /* confdefs.h. */
6014 _ACEOF
6015 cat confdefs.h >>conftest.$ac_ext
6016 cat >>conftest.$ac_ext <<_ACEOF
6017 /* end confdefs.h. */
6018 #include <sys/types.h>
6019 #include <signal.h>
6020
6021 int
6022 main ()
6023 {
6024 return *(signal (0, 0)) (0) == 1;
6025 ;
6026 return 0;
6027 }
6028 _ACEOF
6029 rm -f conftest.$ac_objext
6030 if { (ac_try="$ac_compile"
6031 case "(($ac_try" in
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6034 esac
6035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6036 $as_echo "$ac_try_echo") >&5
6037 (eval "$ac_compile") 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } && {
6044 test -z "$ac_c_werror_flag" ||
6045 test ! -s conftest.err
6046 } && test -s conftest.$ac_objext; then
6047 ac_cv_type_signal=int
6048 else
6049 $as_echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6051
6052 ac_cv_type_signal=void
6053 fi
6054
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 fi
6057 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6058 $as_echo "$ac_cv_type_signal" >&6; }
6059
6060 cat >>confdefs.h <<_ACEOF
6061 #define RETSIGTYPE $ac_cv_type_signal
6062 _ACEOF
6063
6064
6065 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6066 $as_echo_n "checking for size_t... " >&6; }
6067 if test "${ac_cv_type_size_t+set}" = set; then
6068 $as_echo_n "(cached) " >&6
6069 else
6070 ac_cv_type_size_t=no
6071 cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h. */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077 $ac_includes_default
6078 int
6079 main ()
6080 {
6081 if (sizeof (size_t))
6082 return 0;
6083 ;
6084 return 0;
6085 }
6086 _ACEOF
6087 rm -f conftest.$ac_objext
6088 if { (ac_try="$ac_compile"
6089 case "(($ac_try" in
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6092 esac
6093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6094 $as_echo "$ac_try_echo") >&5
6095 (eval "$ac_compile") 2>conftest.er1
6096 ac_status=$?
6097 grep -v '^ *+' conftest.er1 >conftest.err
6098 rm -f conftest.er1
6099 cat conftest.err >&5
6100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } && {
6102 test -z "$ac_c_werror_flag" ||
6103 test ! -s conftest.err
6104 } && test -s conftest.$ac_objext; then
6105 cat >conftest.$ac_ext <<_ACEOF
6106 /* confdefs.h. */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 $ac_includes_default
6112 int
6113 main ()
6114 {
6115 if (sizeof ((size_t)))
6116 return 0;
6117 ;
6118 return 0;
6119 }
6120 _ACEOF
6121 rm -f conftest.$ac_objext
6122 if { (ac_try="$ac_compile"
6123 case "(($ac_try" in
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6126 esac
6127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6128 $as_echo "$ac_try_echo") >&5
6129 (eval "$ac_compile") 2>conftest.er1
6130 ac_status=$?
6131 grep -v '^ *+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
6133 cat conftest.err >&5
6134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } && {
6136 test -z "$ac_c_werror_flag" ||
6137 test ! -s conftest.err
6138 } && test -s conftest.$ac_objext; then
6139 :
6140 else
6141 $as_echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 ac_cv_type_size_t=yes
6145 fi
6146
6147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148 else
6149 $as_echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6151
6152
6153 fi
6154
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156 fi
6157 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6158 $as_echo "$ac_cv_type_size_t" >&6; }
6159 if test "x$ac_cv_type_size_t" = x""yes; then
6160 :
6161 else
6162
6163 cat >>confdefs.h <<_ACEOF
6164 #define size_t unsigned int
6165 _ACEOF
6166
6167 fi
6168
6169 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6170 $as_echo_n "checking for mode_t... " >&6; }
6171 if test "${ac_cv_type_mode_t+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6173 else
6174 ac_cv_type_mode_t=no
6175 cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h. */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 $ac_includes_default
6182 int
6183 main ()
6184 {
6185 if (sizeof (mode_t))
6186 return 0;
6187 ;
6188 return 0;
6189 }
6190 _ACEOF
6191 rm -f conftest.$ac_objext
6192 if { (ac_try="$ac_compile"
6193 case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6196 esac
6197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6198 $as_echo "$ac_try_echo") >&5
6199 (eval "$ac_compile") 2>conftest.er1
6200 ac_status=$?
6201 grep -v '^ *+' conftest.er1 >conftest.err
6202 rm -f conftest.er1
6203 cat conftest.err >&5
6204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } && {
6206 test -z "$ac_c_werror_flag" ||
6207 test ! -s conftest.err
6208 } && test -s conftest.$ac_objext; then
6209 cat >conftest.$ac_ext <<_ACEOF
6210 /* confdefs.h. */
6211 _ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h. */
6215 $ac_includes_default
6216 int
6217 main ()
6218 {
6219 if (sizeof ((mode_t)))
6220 return 0;
6221 ;
6222 return 0;
6223 }
6224 _ACEOF
6225 rm -f conftest.$ac_objext
6226 if { (ac_try="$ac_compile"
6227 case "(($ac_try" in
6228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229 *) ac_try_echo=$ac_try;;
6230 esac
6231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6232 $as_echo "$ac_try_echo") >&5
6233 (eval "$ac_compile") 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } && {
6240 test -z "$ac_c_werror_flag" ||
6241 test ! -s conftest.err
6242 } && test -s conftest.$ac_objext; then
6243 :
6244 else
6245 $as_echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248 ac_cv_type_mode_t=yes
6249 fi
6250
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 else
6253 $as_echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256
6257 fi
6258
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 fi
6261 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6262 $as_echo "$ac_cv_type_mode_t" >&6; }
6263 if test "x$ac_cv_type_mode_t" = x""yes; then
6264 :
6265 else
6266
6267 cat >>confdefs.h <<_ACEOF
6268 #define mode_t int
6269 _ACEOF
6270
6271 fi
6272
6273 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6274 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6275 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6276 $as_echo_n "(cached) " >&6
6277 else
6278 cat >conftest.$ac_ext <<_ACEOF
6279 /* confdefs.h. */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6284 $ac_includes_default
6285 int
6286 main ()
6287 {
6288 static struct stat ac_aggr;
6289 if (ac_aggr.st_rdev)
6290 return 0;
6291 ;
6292 return 0;
6293 }
6294 _ACEOF
6295 rm -f conftest.$ac_objext
6296 if { (ac_try="$ac_compile"
6297 case "(($ac_try" in
6298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299 *) ac_try_echo=$ac_try;;
6300 esac
6301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6302 $as_echo "$ac_try_echo") >&5
6303 (eval "$ac_compile") 2>conftest.er1
6304 ac_status=$?
6305 grep -v '^ *+' conftest.er1 >conftest.err
6306 rm -f conftest.er1
6307 cat conftest.err >&5
6308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } && {
6310 test -z "$ac_c_werror_flag" ||
6311 test ! -s conftest.err
6312 } && test -s conftest.$ac_objext; then
6313 ac_cv_member_struct_stat_st_rdev=yes
6314 else
6315 $as_echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6317
6318 cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h. */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 $ac_includes_default
6325 int
6326 main ()
6327 {
6328 static struct stat ac_aggr;
6329 if (sizeof ac_aggr.st_rdev)
6330 return 0;
6331 ;
6332 return 0;
6333 }
6334 _ACEOF
6335 rm -f conftest.$ac_objext
6336 if { (ac_try="$ac_compile"
6337 case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6340 esac
6341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6342 $as_echo "$ac_try_echo") >&5
6343 (eval "$ac_compile") 2>conftest.er1
6344 ac_status=$?
6345 grep -v '^ *+' conftest.er1 >conftest.err
6346 rm -f conftest.er1
6347 cat conftest.err >&5
6348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } && {
6350 test -z "$ac_c_werror_flag" ||
6351 test ! -s conftest.err
6352 } && test -s conftest.$ac_objext; then
6353 ac_cv_member_struct_stat_st_rdev=yes
6354 else
6355 $as_echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358 ac_cv_member_struct_stat_st_rdev=no
6359 fi
6360
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 fi
6363
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 fi
6366 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6367 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6368 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6369
6370 cat >>confdefs.h <<_ACEOF
6371 #define HAVE_STRUCT_STAT_ST_RDEV 1
6372 _ACEOF
6373
6374
6375 fi
6376
6377 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6378 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6379 if test "${ac_cv_struct_tm+set}" = set; then
6380 $as_echo_n "(cached) " >&6
6381 else
6382 cat >conftest.$ac_ext <<_ACEOF
6383 /* confdefs.h. */
6384 _ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h. */
6388 #include <sys/types.h>
6389 #include <time.h>
6390
6391 int
6392 main ()
6393 {
6394 struct tm tm;
6395 int *p = &tm.tm_sec;
6396 return !p;
6397 ;
6398 return 0;
6399 }
6400 _ACEOF
6401 rm -f conftest.$ac_objext
6402 if { (ac_try="$ac_compile"
6403 case "(($ac_try" in
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6406 esac
6407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6408 $as_echo "$ac_try_echo") >&5
6409 (eval "$ac_compile") 2>conftest.er1
6410 ac_status=$?
6411 grep -v '^ *+' conftest.er1 >conftest.err
6412 rm -f conftest.er1
6413 cat conftest.err >&5
6414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } && {
6416 test -z "$ac_c_werror_flag" ||
6417 test ! -s conftest.err
6418 } && test -s conftest.$ac_objext; then
6419 ac_cv_struct_tm=time.h
6420 else
6421 $as_echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6423
6424 ac_cv_struct_tm=sys/time.h
6425 fi
6426
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428 fi
6429 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6430 $as_echo "$ac_cv_struct_tm" >&6; }
6431 if test $ac_cv_struct_tm = sys/time.h; then
6432
6433 cat >>confdefs.h <<\_ACEOF
6434 #define TM_IN_SYS_TIME 1
6435 _ACEOF
6436
6437 fi
6438
6439
6440 ################################################################################
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6459 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6460 uname
6461 do
6462 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6463 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6464 $as_echo_n "checking for $ac_func... " >&6; }
6465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6466 $as_echo_n "(cached) " >&6
6467 else
6468 cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h. */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6476 #define $ac_func innocuous_$ac_func
6477
6478 /* System header to define __stub macros and hopefully few prototypes,
6479 which can conflict with char $ac_func (); below.
6480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6481 <limits.h> exists even on freestanding compilers. */
6482
6483 #ifdef __STDC__
6484 # include <limits.h>
6485 #else
6486 # include <assert.h>
6487 #endif
6488
6489 #undef $ac_func
6490
6491 /* Override any GCC internal prototype to avoid an error.
6492 Use char because int might match the return type of a GCC
6493 builtin and then its argument prototype would still apply. */
6494 #ifdef __cplusplus
6495 extern "C"
6496 #endif
6497 char $ac_func ();
6498 /* The GNU C library defines this for functions which it implements
6499 to always fail with ENOSYS. Some functions are actually named
6500 something starting with __ and the normal name is an alias. */
6501 #if defined __stub_$ac_func || defined __stub___$ac_func
6502 choke me
6503 #endif
6504
6505 int
6506 main ()
6507 {
6508 return $ac_func ();
6509 ;
6510 return 0;
6511 }
6512 _ACEOF
6513 rm -f conftest.$ac_objext conftest$ac_exeext
6514 if { (ac_try="$ac_link"
6515 case "(($ac_try" in
6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6518 esac
6519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6520 $as_echo "$ac_try_echo") >&5
6521 (eval "$ac_link") 2>conftest.er1
6522 ac_status=$?
6523 grep -v '^ *+' conftest.er1 >conftest.err
6524 rm -f conftest.er1
6525 cat conftest.err >&5
6526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } && {
6528 test -z "$ac_c_werror_flag" ||
6529 test ! -s conftest.err
6530 } && test -s conftest$ac_exeext && {
6531 test "$cross_compiling" = yes ||
6532 $as_test_x conftest$ac_exeext
6533 }; then
6534 eval "$as_ac_var=yes"
6535 else
6536 $as_echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6538
6539 eval "$as_ac_var=no"
6540 fi
6541
6542 rm -rf conftest.dSYM
6543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6544 conftest$ac_exeext conftest.$ac_ext
6545 fi
6546 ac_res=`eval 'as_val=${'$as_ac_var'}
6547 $as_echo "$as_val"'`
6548 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6549 $as_echo "$ac_res" >&6; }
6550 as_val=`eval 'as_val=${'$as_ac_var'}
6551 $as_echo "$as_val"'`
6552 if test "x$as_val" = x""yes; then
6553 cat >>confdefs.h <<_ACEOF
6554 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6555 _ACEOF
6556
6557 else
6558 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6559 $as_echo "$as_me: error: bailing out" >&2;}
6560 { (exit 1); exit 1; }; }
6561 fi
6562 done
6563
6564
6565 for ac_func in siginterrupt
6566 do
6567 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6568 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6569 $as_echo_n "checking for $ac_func... " >&6; }
6570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6571 $as_echo_n "(cached) " >&6
6572 else
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6581 #define $ac_func innocuous_$ac_func
6582
6583 /* System header to define __stub macros and hopefully few prototypes,
6584 which can conflict with char $ac_func (); below.
6585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6586 <limits.h> exists even on freestanding compilers. */
6587
6588 #ifdef __STDC__
6589 # include <limits.h>
6590 #else
6591 # include <assert.h>
6592 #endif
6593
6594 #undef $ac_func
6595
6596 /* Override any GCC internal prototype to avoid an error.
6597 Use char because int might match the return type of a GCC
6598 builtin and then its argument prototype would still apply. */
6599 #ifdef __cplusplus
6600 extern "C"
6601 #endif
6602 char $ac_func ();
6603 /* The GNU C library defines this for functions which it implements
6604 to always fail with ENOSYS. Some functions are actually named
6605 something starting with __ and the normal name is an alias. */
6606 #if defined __stub_$ac_func || defined __stub___$ac_func
6607 choke me
6608 #endif
6609
6610 int
6611 main ()
6612 {
6613 return $ac_func ();
6614 ;
6615 return 0;
6616 }
6617 _ACEOF
6618 rm -f conftest.$ac_objext conftest$ac_exeext
6619 if { (ac_try="$ac_link"
6620 case "(($ac_try" in
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6623 esac
6624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6625 $as_echo "$ac_try_echo") >&5
6626 (eval "$ac_link") 2>conftest.er1
6627 ac_status=$?
6628 grep -v '^ *+' conftest.er1 >conftest.err
6629 rm -f conftest.er1
6630 cat conftest.err >&5
6631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest$ac_exeext && {
6636 test "$cross_compiling" = yes ||
6637 $as_test_x conftest$ac_exeext
6638 }; then
6639 eval "$as_ac_var=yes"
6640 else
6641 $as_echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6643
6644 eval "$as_ac_var=no"
6645 fi
6646
6647 rm -rf conftest.dSYM
6648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6649 conftest$ac_exeext conftest.$ac_ext
6650 fi
6651 ac_res=`eval 'as_val=${'$as_ac_var'}
6652 $as_echo "$as_val"'`
6653 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6654 $as_echo "$ac_res" >&6; }
6655 as_val=`eval 'as_val=${'$as_ac_var'}
6656 $as_echo "$as_val"'`
6657 if test "x$as_val" = x""yes; then
6658 cat >>confdefs.h <<_ACEOF
6659 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6660 _ACEOF
6661
6662 fi
6663 done
6664
6665 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6666 # for constant arguments. Useless!
6667 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6668 $as_echo_n "checking for working alloca.h... " >&6; }
6669 if test "${ac_cv_working_alloca_h+set}" = set; then
6670 $as_echo_n "(cached) " >&6
6671 else
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 #include <alloca.h>
6679 int
6680 main ()
6681 {
6682 char *p = (char *) alloca (2 * sizeof (int));
6683 if (p) return 0;
6684 ;
6685 return 0;
6686 }
6687 _ACEOF
6688 rm -f conftest.$ac_objext conftest$ac_exeext
6689 if { (ac_try="$ac_link"
6690 case "(($ac_try" in
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6693 esac
6694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6695 $as_echo "$ac_try_echo") >&5
6696 (eval "$ac_link") 2>conftest.er1
6697 ac_status=$?
6698 grep -v '^ *+' conftest.er1 >conftest.err
6699 rm -f conftest.er1
6700 cat conftest.err >&5
6701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } && {
6703 test -z "$ac_c_werror_flag" ||
6704 test ! -s conftest.err
6705 } && test -s conftest$ac_exeext && {
6706 test "$cross_compiling" = yes ||
6707 $as_test_x conftest$ac_exeext
6708 }; then
6709 ac_cv_working_alloca_h=yes
6710 else
6711 $as_echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6713
6714 ac_cv_working_alloca_h=no
6715 fi
6716
6717 rm -rf conftest.dSYM
6718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6719 conftest$ac_exeext conftest.$ac_ext
6720 fi
6721 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6722 $as_echo "$ac_cv_working_alloca_h" >&6; }
6723 if test $ac_cv_working_alloca_h = yes; then
6724
6725 cat >>confdefs.h <<\_ACEOF
6726 #define HAVE_ALLOCA_H 1
6727 _ACEOF
6728
6729 fi
6730
6731 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6732 $as_echo_n "checking for alloca... " >&6; }
6733 if test "${ac_cv_func_alloca_works+set}" = set; then
6734 $as_echo_n "(cached) " >&6
6735 else
6736 cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h. */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 #ifdef __GNUC__
6743 # define alloca __builtin_alloca
6744 #else
6745 # ifdef _MSC_VER
6746 # include <malloc.h>
6747 # define alloca _alloca
6748 # else
6749 # ifdef HAVE_ALLOCA_H
6750 # include <alloca.h>
6751 # else
6752 # ifdef _AIX
6753 #pragma alloca
6754 # else
6755 # ifndef alloca /* predefined by HP cc +Olibcalls */
6756 char *alloca ();
6757 # endif
6758 # endif
6759 # endif
6760 # endif
6761 #endif
6762
6763 int
6764 main ()
6765 {
6766 char *p = (char *) alloca (1);
6767 if (p) return 0;
6768 ;
6769 return 0;
6770 }
6771 _ACEOF
6772 rm -f conftest.$ac_objext conftest$ac_exeext
6773 if { (ac_try="$ac_link"
6774 case "(($ac_try" in
6775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776 *) ac_try_echo=$ac_try;;
6777 esac
6778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6779 $as_echo "$ac_try_echo") >&5
6780 (eval "$ac_link") 2>conftest.er1
6781 ac_status=$?
6782 grep -v '^ *+' conftest.er1 >conftest.err
6783 rm -f conftest.er1
6784 cat conftest.err >&5
6785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } && {
6787 test -z "$ac_c_werror_flag" ||
6788 test ! -s conftest.err
6789 } && test -s conftest$ac_exeext && {
6790 test "$cross_compiling" = yes ||
6791 $as_test_x conftest$ac_exeext
6792 }; then
6793 ac_cv_func_alloca_works=yes
6794 else
6795 $as_echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6797
6798 ac_cv_func_alloca_works=no
6799 fi
6800
6801 rm -rf conftest.dSYM
6802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6803 conftest$ac_exeext conftest.$ac_ext
6804 fi
6805 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6806 $as_echo "$ac_cv_func_alloca_works" >&6; }
6807
6808 if test $ac_cv_func_alloca_works = yes; then
6809
6810 cat >>confdefs.h <<\_ACEOF
6811 #define HAVE_ALLOCA 1
6812 _ACEOF
6813
6814 else
6815 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6816 # that cause trouble. Some versions do not even contain alloca or
6817 # contain a buggy version. If you still want to use their alloca,
6818 # use ar to extract alloca.o from them instead of compiling alloca.c.
6819
6820 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6821
6822 cat >>confdefs.h <<\_ACEOF
6823 #define C_ALLOCA 1
6824 _ACEOF
6825
6826
6827 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6828 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6829 if test "${ac_cv_os_cray+set}" = set; then
6830 $as_echo_n "(cached) " >&6
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 #if defined CRAY && ! defined CRAY2
6839 webecray
6840 #else
6841 wenotbecray
6842 #endif
6843
6844 _ACEOF
6845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6846 $EGREP "webecray" >/dev/null 2>&1; then
6847 ac_cv_os_cray=yes
6848 else
6849 ac_cv_os_cray=no
6850 fi
6851 rm -f conftest*
6852
6853 fi
6854 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6855 $as_echo "$ac_cv_os_cray" >&6; }
6856 if test $ac_cv_os_cray = yes; then
6857 for ac_func in _getb67 GETB67 getb67; do
6858 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6859 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6860 $as_echo_n "checking for $ac_func... " >&6; }
6861 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6862 $as_echo_n "(cached) " >&6
6863 else
6864 cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h. */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6872 #define $ac_func innocuous_$ac_func
6873
6874 /* System header to define __stub macros and hopefully few prototypes,
6875 which can conflict with char $ac_func (); below.
6876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6877 <limits.h> exists even on freestanding compilers. */
6878
6879 #ifdef __STDC__
6880 # include <limits.h>
6881 #else
6882 # include <assert.h>
6883 #endif
6884
6885 #undef $ac_func
6886
6887 /* Override any GCC internal prototype to avoid an error.
6888 Use char because int might match the return type of a GCC
6889 builtin and then its argument prototype would still apply. */
6890 #ifdef __cplusplus
6891 extern "C"
6892 #endif
6893 char $ac_func ();
6894 /* The GNU C library defines this for functions which it implements
6895 to always fail with ENOSYS. Some functions are actually named
6896 something starting with __ and the normal name is an alias. */
6897 #if defined __stub_$ac_func || defined __stub___$ac_func
6898 choke me
6899 #endif
6900
6901 int
6902 main ()
6903 {
6904 return $ac_func ();
6905 ;
6906 return 0;
6907 }
6908 _ACEOF
6909 rm -f conftest.$ac_objext conftest$ac_exeext
6910 if { (ac_try="$ac_link"
6911 case "(($ac_try" in
6912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6914 esac
6915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6916 $as_echo "$ac_try_echo") >&5
6917 (eval "$ac_link") 2>conftest.er1
6918 ac_status=$?
6919 grep -v '^ *+' conftest.er1 >conftest.err
6920 rm -f conftest.er1
6921 cat conftest.err >&5
6922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && {
6924 test -z "$ac_c_werror_flag" ||
6925 test ! -s conftest.err
6926 } && test -s conftest$ac_exeext && {
6927 test "$cross_compiling" = yes ||
6928 $as_test_x conftest$ac_exeext
6929 }; then
6930 eval "$as_ac_var=yes"
6931 else
6932 $as_echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6934
6935 eval "$as_ac_var=no"
6936 fi
6937
6938 rm -rf conftest.dSYM
6939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6940 conftest$ac_exeext conftest.$ac_ext
6941 fi
6942 ac_res=`eval 'as_val=${'$as_ac_var'}
6943 $as_echo "$as_val"'`
6944 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6945 $as_echo "$ac_res" >&6; }
6946 as_val=`eval 'as_val=${'$as_ac_var'}
6947 $as_echo "$as_val"'`
6948 if test "x$as_val" = x""yes; then
6949
6950 cat >>confdefs.h <<_ACEOF
6951 #define CRAY_STACKSEG_END $ac_func
6952 _ACEOF
6953
6954 break
6955 fi
6956
6957 done
6958 fi
6959
6960 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6961 $as_echo_n "checking stack direction for C alloca... " >&6; }
6962 if test "${ac_cv_c_stack_direction+set}" = set; then
6963 $as_echo_n "(cached) " >&6
6964 else
6965 if test "$cross_compiling" = yes; then
6966 ac_cv_c_stack_direction=0
6967 else
6968 cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h. */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 $ac_includes_default
6975 int
6976 find_stack_direction ()
6977 {
6978 static char *addr = 0;
6979 auto char dummy;
6980 if (addr == 0)
6981 {
6982 addr = &dummy;
6983 return find_stack_direction ();
6984 }
6985 else
6986 return (&dummy > addr) ? 1 : -1;
6987 }
6988
6989 int
6990 main ()
6991 {
6992 return find_stack_direction () < 0;
6993 }
6994 _ACEOF
6995 rm -f conftest$ac_exeext
6996 if { (ac_try="$ac_link"
6997 case "(($ac_try" in
6998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6999 *) ac_try_echo=$ac_try;;
7000 esac
7001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7002 $as_echo "$ac_try_echo") >&5
7003 (eval "$ac_link") 2>&5
7004 ac_status=$?
7005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7007 { (case "(($ac_try" in
7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009 *) ac_try_echo=$ac_try;;
7010 esac
7011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7012 $as_echo "$ac_try_echo") >&5
7013 (eval "$ac_try") 2>&5
7014 ac_status=$?
7015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7017 ac_cv_c_stack_direction=1
7018 else
7019 $as_echo "$as_me: program exited with status $ac_status" >&5
7020 $as_echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7022
7023 ( exit $ac_status )
7024 ac_cv_c_stack_direction=-1
7025 fi
7026 rm -rf conftest.dSYM
7027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7028 fi
7029
7030
7031 fi
7032 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7033 $as_echo "$ac_cv_c_stack_direction" >&6; }
7034
7035 cat >>confdefs.h <<_ACEOF
7036 #define STACK_DIRECTION $ac_cv_c_stack_direction
7037 _ACEOF
7038
7039
7040 fi
7041
7042 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7043 $as_echo_n "checking whether closedir returns void... " >&6; }
7044 if test "${ac_cv_func_closedir_void+set}" = set; then
7045 $as_echo_n "(cached) " >&6
7046 else
7047 if test "$cross_compiling" = yes; then
7048 ac_cv_func_closedir_void=yes
7049 else
7050 cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h. */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 $ac_includes_default
7057 #include <$ac_header_dirent>
7058 #ifndef __cplusplus
7059 int closedir ();
7060 #endif
7061
7062 int
7063 main ()
7064 {
7065 return closedir (opendir (".")) != 0;
7066 ;
7067 return 0;
7068 }
7069 _ACEOF
7070 rm -f conftest$ac_exeext
7071 if { (ac_try="$ac_link"
7072 case "(($ac_try" in
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7075 esac
7076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7077 $as_echo "$ac_try_echo") >&5
7078 (eval "$ac_link") 2>&5
7079 ac_status=$?
7080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7082 { (case "(($ac_try" in
7083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084 *) ac_try_echo=$ac_try;;
7085 esac
7086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7087 $as_echo "$ac_try_echo") >&5
7088 (eval "$ac_try") 2>&5
7089 ac_status=$?
7090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7092 ac_cv_func_closedir_void=no
7093 else
7094 $as_echo "$as_me: program exited with status $ac_status" >&5
7095 $as_echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7097
7098 ( exit $ac_status )
7099 ac_cv_func_closedir_void=yes
7100 fi
7101 rm -rf conftest.dSYM
7102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7103 fi
7104
7105
7106 fi
7107 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7108 $as_echo "$ac_cv_func_closedir_void" >&6; }
7109 if test $ac_cv_func_closedir_void = yes; then
7110
7111 cat >>confdefs.h <<\_ACEOF
7112 #define CLOSEDIR_VOID 1
7113 _ACEOF
7114
7115 fi
7116
7117
7118 for ac_header in vfork.h
7119 do
7120 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7122 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7123 $as_echo_n "checking for $ac_header... " >&6; }
7124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7125 $as_echo_n "(cached) " >&6
7126 fi
7127 ac_res=`eval 'as_val=${'$as_ac_Header'}
7128 $as_echo "$as_val"'`
7129 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7130 $as_echo "$ac_res" >&6; }
7131 else
7132 # Is the header compilable?
7133 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7134 $as_echo_n "checking $ac_header usability... " >&6; }
7135 cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h. */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7141 $ac_includes_default
7142 #include <$ac_header>
7143 _ACEOF
7144 rm -f conftest.$ac_objext
7145 if { (ac_try="$ac_compile"
7146 case "(($ac_try" in
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7149 esac
7150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7151 $as_echo "$ac_try_echo") >&5
7152 (eval "$ac_compile") 2>conftest.er1
7153 ac_status=$?
7154 grep -v '^ *+' conftest.er1 >conftest.err
7155 rm -f conftest.er1
7156 cat conftest.err >&5
7157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } && {
7159 test -z "$ac_c_werror_flag" ||
7160 test ! -s conftest.err
7161 } && test -s conftest.$ac_objext; then
7162 ac_header_compiler=yes
7163 else
7164 $as_echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7166
7167 ac_header_compiler=no
7168 fi
7169
7170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7172 $as_echo "$ac_header_compiler" >&6; }
7173
7174 # Is the header present?
7175 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7176 $as_echo_n "checking $ac_header presence... " >&6; }
7177 cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h. */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 #include <$ac_header>
7184 _ACEOF
7185 if { (ac_try="$ac_cpp conftest.$ac_ext"
7186 case "(($ac_try" in
7187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188 *) ac_try_echo=$ac_try;;
7189 esac
7190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7191 $as_echo "$ac_try_echo") >&5
7192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7193 ac_status=$?
7194 grep -v '^ *+' conftest.er1 >conftest.err
7195 rm -f conftest.er1
7196 cat conftest.err >&5
7197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } >/dev/null && {
7199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7200 test ! -s conftest.err
7201 }; then
7202 ac_header_preproc=yes
7203 else
7204 $as_echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7206
7207 ac_header_preproc=no
7208 fi
7209
7210 rm -f conftest.err conftest.$ac_ext
7211 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7212 $as_echo "$ac_header_preproc" >&6; }
7213
7214 # So? What about this header?
7215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7216 yes:no: )
7217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7218 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7220 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7221 ac_header_preproc=yes
7222 ;;
7223 no:yes:* )
7224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7225 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7227 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7229 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7231 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7233 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7235 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7236
7237 ;;
7238 esac
7239 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7240 $as_echo_n "checking for $ac_header... " >&6; }
7241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7242 $as_echo_n "(cached) " >&6
7243 else
7244 eval "$as_ac_Header=\$ac_header_preproc"
7245 fi
7246 ac_res=`eval 'as_val=${'$as_ac_Header'}
7247 $as_echo "$as_val"'`
7248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7249 $as_echo "$ac_res" >&6; }
7250
7251 fi
7252 as_val=`eval 'as_val=${'$as_ac_Header'}
7253 $as_echo "$as_val"'`
7254 if test "x$as_val" = x""yes; then
7255 cat >>confdefs.h <<_ACEOF
7256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7257 _ACEOF
7258
7259 fi
7260
7261 done
7262
7263
7264
7265 for ac_func in fork vfork
7266 do
7267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7268 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7269 $as_echo_n "checking for $ac_func... " >&6; }
7270 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7271 $as_echo_n "(cached) " >&6
7272 else
7273 cat >conftest.$ac_ext <<_ACEOF
7274 /* confdefs.h. */
7275 _ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7281 #define $ac_func innocuous_$ac_func
7282
7283 /* System header to define __stub macros and hopefully few prototypes,
7284 which can conflict with char $ac_func (); below.
7285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7286 <limits.h> exists even on freestanding compilers. */
7287
7288 #ifdef __STDC__
7289 # include <limits.h>
7290 #else
7291 # include <assert.h>
7292 #endif
7293
7294 #undef $ac_func
7295
7296 /* Override any GCC internal prototype to avoid an error.
7297 Use char because int might match the return type of a GCC
7298 builtin and then its argument prototype would still apply. */
7299 #ifdef __cplusplus
7300 extern "C"
7301 #endif
7302 char $ac_func ();
7303 /* The GNU C library defines this for functions which it implements
7304 to always fail with ENOSYS. Some functions are actually named
7305 something starting with __ and the normal name is an alias. */
7306 #if defined __stub_$ac_func || defined __stub___$ac_func
7307 choke me
7308 #endif
7309
7310 int
7311 main ()
7312 {
7313 return $ac_func ();
7314 ;
7315 return 0;
7316 }
7317 _ACEOF
7318 rm -f conftest.$ac_objext conftest$ac_exeext
7319 if { (ac_try="$ac_link"
7320 case "(($ac_try" in
7321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322 *) ac_try_echo=$ac_try;;
7323 esac
7324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7325 $as_echo "$ac_try_echo") >&5
7326 (eval "$ac_link") 2>conftest.er1
7327 ac_status=$?
7328 grep -v '^ *+' conftest.er1 >conftest.err
7329 rm -f conftest.er1
7330 cat conftest.err >&5
7331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } && {
7333 test -z "$ac_c_werror_flag" ||
7334 test ! -s conftest.err
7335 } && test -s conftest$ac_exeext && {
7336 test "$cross_compiling" = yes ||
7337 $as_test_x conftest$ac_exeext
7338 }; then
7339 eval "$as_ac_var=yes"
7340 else
7341 $as_echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7343
7344 eval "$as_ac_var=no"
7345 fi
7346
7347 rm -rf conftest.dSYM
7348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7349 conftest$ac_exeext conftest.$ac_ext
7350 fi
7351 ac_res=`eval 'as_val=${'$as_ac_var'}
7352 $as_echo "$as_val"'`
7353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7354 $as_echo "$ac_res" >&6; }
7355 as_val=`eval 'as_val=${'$as_ac_var'}
7356 $as_echo "$as_val"'`
7357 if test "x$as_val" = x""yes; then
7358 cat >>confdefs.h <<_ACEOF
7359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7360 _ACEOF
7361
7362 fi
7363 done
7364
7365 if test "x$ac_cv_func_fork" = xyes; then
7366 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7367 $as_echo_n "checking for working fork... " >&6; }
7368 if test "${ac_cv_func_fork_works+set}" = set; then
7369 $as_echo_n "(cached) " >&6
7370 else
7371 if test "$cross_compiling" = yes; then
7372 ac_cv_func_fork_works=cross
7373 else
7374 cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h. */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380 $ac_includes_default
7381 int
7382 main ()
7383 {
7384
7385 /* By Ruediger Kuhlmann. */
7386 return fork () < 0;
7387
7388 ;
7389 return 0;
7390 }
7391 _ACEOF
7392 rm -f conftest$ac_exeext
7393 if { (ac_try="$ac_link"
7394 case "(($ac_try" in
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7397 esac
7398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7399 $as_echo "$ac_try_echo") >&5
7400 (eval "$ac_link") 2>&5
7401 ac_status=$?
7402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7404 { (case "(($ac_try" in
7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406 *) ac_try_echo=$ac_try;;
7407 esac
7408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7409 $as_echo "$ac_try_echo") >&5
7410 (eval "$ac_try") 2>&5
7411 ac_status=$?
7412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7414 ac_cv_func_fork_works=yes
7415 else
7416 $as_echo "$as_me: program exited with status $ac_status" >&5
7417 $as_echo "$as_me: failed program was:" >&5
7418 sed 's/^/| /' conftest.$ac_ext >&5
7419
7420 ( exit $ac_status )
7421 ac_cv_func_fork_works=no
7422 fi
7423 rm -rf conftest.dSYM
7424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7425 fi
7426
7427
7428 fi
7429 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7430 $as_echo "$ac_cv_func_fork_works" >&6; }
7431
7432 else
7433 ac_cv_func_fork_works=$ac_cv_func_fork
7434 fi
7435 if test "x$ac_cv_func_fork_works" = xcross; then
7436 case $host in
7437 *-*-amigaos* | *-*-msdosdjgpp*)
7438 # Override, as these systems have only a dummy fork() stub
7439 ac_cv_func_fork_works=no
7440 ;;
7441 *)
7442 ac_cv_func_fork_works=yes
7443 ;;
7444 esac
7445 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7446 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7447 fi
7448 ac_cv_func_vfork_works=$ac_cv_func_vfork
7449 if test "x$ac_cv_func_vfork" = xyes; then
7450 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7451 $as_echo_n "checking for working vfork... " >&6; }
7452 if test "${ac_cv_func_vfork_works+set}" = set; then
7453 $as_echo_n "(cached) " >&6
7454 else
7455 if test "$cross_compiling" = yes; then
7456 ac_cv_func_vfork_works=cross
7457 else
7458 cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h. */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7464 /* Thanks to Paul Eggert for this test. */
7465 $ac_includes_default
7466 #include <sys/wait.h>
7467 #ifdef HAVE_VFORK_H
7468 # include <vfork.h>
7469 #endif
7470 /* On some sparc systems, changes by the child to local and incoming
7471 argument registers are propagated back to the parent. The compiler
7472 is told about this with #include <vfork.h>, but some compilers
7473 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7474 static variable whose address is put into a register that is
7475 clobbered by the vfork. */
7476 static void
7477 #ifdef __cplusplus
7478 sparc_address_test (int arg)
7479 # else
7480 sparc_address_test (arg) int arg;
7481 #endif
7482 {
7483 static pid_t child;
7484 if (!child) {
7485 child = vfork ();
7486 if (child < 0) {
7487 perror ("vfork");
7488 _exit(2);
7489 }
7490 if (!child) {
7491 arg = getpid();
7492 write(-1, "", 0);
7493 _exit (arg);
7494 }
7495 }
7496 }
7497
7498 int
7499 main ()
7500 {
7501 pid_t parent = getpid ();
7502 pid_t child;
7503
7504 sparc_address_test (0);
7505
7506 child = vfork ();
7507
7508 if (child == 0) {
7509 /* Here is another test for sparc vfork register problems. This
7510 test uses lots of local variables, at least as many local
7511 variables as main has allocated so far including compiler
7512 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7513 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7514 reuse the register of parent for one of the local variables,
7515 since it will think that parent can't possibly be used any more
7516 in this routine. Assigning to the local variable will thus
7517 munge parent in the parent process. */
7518 pid_t
7519 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7520 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7521 /* Convince the compiler that p..p7 are live; otherwise, it might
7522 use the same hardware register for all 8 local variables. */
7523 if (p != p1 || p != p2 || p != p3 || p != p4
7524 || p != p5 || p != p6 || p != p7)
7525 _exit(1);
7526
7527 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7528 from child file descriptors. If the child closes a descriptor
7529 before it execs or exits, this munges the parent's descriptor
7530 as well. Test for this by closing stdout in the child. */
7531 _exit(close(fileno(stdout)) != 0);
7532 } else {
7533 int status;
7534 struct stat st;
7535
7536 while (wait(&status) != child)
7537 ;
7538 return (
7539 /* Was there some problem with vforking? */
7540 child < 0
7541
7542 /* Did the child fail? (This shouldn't happen.) */
7543 || status
7544
7545 /* Did the vfork/compiler bug occur? */
7546 || parent != getpid()
7547
7548 /* Did the file descriptor bug occur? */
7549 || fstat(fileno(stdout), &st) != 0
7550 );
7551 }
7552 }
7553 _ACEOF
7554 rm -f conftest$ac_exeext
7555 if { (ac_try="$ac_link"
7556 case "(($ac_try" in
7557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7559 esac
7560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7561 $as_echo "$ac_try_echo") >&5
7562 (eval "$ac_link") 2>&5
7563 ac_status=$?
7564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7566 { (case "(($ac_try" in
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7569 esac
7570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7571 $as_echo "$ac_try_echo") >&5
7572 (eval "$ac_try") 2>&5
7573 ac_status=$?
7574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; }; then
7576 ac_cv_func_vfork_works=yes
7577 else
7578 $as_echo "$as_me: program exited with status $ac_status" >&5
7579 $as_echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7581
7582 ( exit $ac_status )
7583 ac_cv_func_vfork_works=no
7584 fi
7585 rm -rf conftest.dSYM
7586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7587 fi
7588
7589
7590 fi
7591 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7592 $as_echo "$ac_cv_func_vfork_works" >&6; }
7593
7594 fi;
7595 if test "x$ac_cv_func_fork_works" = xcross; then
7596 ac_cv_func_vfork_works=$ac_cv_func_vfork
7597 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7598 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7599 fi
7600
7601 if test "x$ac_cv_func_vfork_works" = xyes; then
7602
7603 cat >>confdefs.h <<\_ACEOF
7604 #define HAVE_WORKING_VFORK 1
7605 _ACEOF
7606
7607 else
7608
7609 cat >>confdefs.h <<\_ACEOF
7610 #define vfork fork
7611 _ACEOF
7612
7613 fi
7614 if test "x$ac_cv_func_fork_works" = xyes; then
7615
7616 cat >>confdefs.h <<\_ACEOF
7617 #define HAVE_WORKING_FORK 1
7618 _ACEOF
7619
7620 fi
7621
7622 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7623 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
7624 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7625 $as_echo_n "(cached) " >&6
7626 else
7627 rm -f conftest.sym conftest.file
7628 echo >conftest.file
7629 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7630 if test "$cross_compiling" = yes; then
7631 ac_cv_func_lstat_dereferences_slashed_symlink=no
7632 else
7633 cat >conftest.$ac_ext <<_ACEOF
7634 /* confdefs.h. */
7635 _ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7639 $ac_includes_default
7640 int
7641 main ()
7642 {
7643 struct stat sbuf;
7644 /* Linux will dereference the symlink and fail.
7645 That is better in the sense that it means we will not
7646 have to compile and use the lstat wrapper. */
7647 return lstat ("conftest.sym/", &sbuf) == 0;
7648 ;
7649 return 0;
7650 }
7651 _ACEOF
7652 rm -f conftest$ac_exeext
7653 if { (ac_try="$ac_link"
7654 case "(($ac_try" in
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7657 esac
7658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7659 $as_echo "$ac_try_echo") >&5
7660 (eval "$ac_link") 2>&5
7661 ac_status=$?
7662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7664 { (case "(($ac_try" in
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7667 esac
7668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7669 $as_echo "$ac_try_echo") >&5
7670 (eval "$ac_try") 2>&5
7671 ac_status=$?
7672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; }; then
7674 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7675 else
7676 $as_echo "$as_me: program exited with status $ac_status" >&5
7677 $as_echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7679
7680 ( exit $ac_status )
7681 ac_cv_func_lstat_dereferences_slashed_symlink=no
7682 fi
7683 rm -rf conftest.dSYM
7684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7685 fi
7686
7687
7688 else
7689 # If the `ln -s' command failed, then we probably don't even
7690 # have an lstat function.
7691 ac_cv_func_lstat_dereferences_slashed_symlink=no
7692 fi
7693 rm -f conftest.sym conftest.file
7694
7695 fi
7696 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7697 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7698
7699 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7700
7701 cat >>confdefs.h <<_ACEOF
7702 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7703 _ACEOF
7704
7705
7706 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7707 case " $LIBOBJS " in
7708 *" lstat.$ac_objext "* ) ;;
7709 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7710 ;;
7711 esac
7712
7713 fi
7714
7715 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7716 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7717 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7718 $as_echo_n "(cached) " >&6
7719 else
7720 if test "$cross_compiling" = yes; then
7721 ac_cv_func_lstat_empty_string_bug=yes
7722 else
7723 cat >conftest.$ac_ext <<_ACEOF
7724 /* confdefs.h. */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 $ac_includes_default
7730 int
7731 main ()
7732 {
7733 struct stat sbuf;
7734 return lstat ("", &sbuf) == 0;
7735 ;
7736 return 0;
7737 }
7738 _ACEOF
7739 rm -f conftest$ac_exeext
7740 if { (ac_try="$ac_link"
7741 case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7744 esac
7745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7746 $as_echo "$ac_try_echo") >&5
7747 (eval "$ac_link") 2>&5
7748 ac_status=$?
7749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7751 { (case "(($ac_try" in
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7754 esac
7755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7756 $as_echo "$ac_try_echo") >&5
7757 (eval "$ac_try") 2>&5
7758 ac_status=$?
7759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7761 ac_cv_func_lstat_empty_string_bug=no
7762 else
7763 $as_echo "$as_me: program exited with status $ac_status" >&5
7764 $as_echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7766
7767 ( exit $ac_status )
7768 ac_cv_func_lstat_empty_string_bug=yes
7769 fi
7770 rm -rf conftest.dSYM
7771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7772 fi
7773
7774
7775 fi
7776 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7777 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7778 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7779 case " $LIBOBJS " in
7780 *" lstat.$ac_objext "* ) ;;
7781 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7782 ;;
7783 esac
7784
7785
7786 cat >>confdefs.h <<_ACEOF
7787 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7788 _ACEOF
7789
7790 fi
7791
7792
7793 for ac_header in stdlib.h
7794 do
7795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7797 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7798 $as_echo_n "checking for $ac_header... " >&6; }
7799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7800 $as_echo_n "(cached) " >&6
7801 fi
7802 ac_res=`eval 'as_val=${'$as_ac_Header'}
7803 $as_echo "$as_val"'`
7804 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7805 $as_echo "$ac_res" >&6; }
7806 else
7807 # Is the header compilable?
7808 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7809 $as_echo_n "checking $ac_header usability... " >&6; }
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 $ac_includes_default
7817 #include <$ac_header>
7818 _ACEOF
7819 rm -f conftest.$ac_objext
7820 if { (ac_try="$ac_compile"
7821 case "(($ac_try" in
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7824 esac
7825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7826 $as_echo "$ac_try_echo") >&5
7827 (eval "$ac_compile") 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest.$ac_objext; then
7837 ac_header_compiler=yes
7838 else
7839 $as_echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7841
7842 ac_header_compiler=no
7843 fi
7844
7845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7847 $as_echo "$ac_header_compiler" >&6; }
7848
7849 # Is the header present?
7850 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7851 $as_echo_n "checking $ac_header presence... " >&6; }
7852 cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h. */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 #include <$ac_header>
7859 _ACEOF
7860 if { (ac_try="$ac_cpp conftest.$ac_ext"
7861 case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864 esac
7865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7866 $as_echo "$ac_try_echo") >&5
7867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } >/dev/null && {
7874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 }; then
7877 ac_header_preproc=yes
7878 else
7879 $as_echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7881
7882 ac_header_preproc=no
7883 fi
7884
7885 rm -f conftest.err conftest.$ac_ext
7886 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7887 $as_echo "$ac_header_preproc" >&6; }
7888
7889 # So? What about this header?
7890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7891 yes:no: )
7892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7893 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7895 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7896 ac_header_preproc=yes
7897 ;;
7898 no:yes:* )
7899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7900 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7902 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7904 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7906 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7908 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7910 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7911
7912 ;;
7913 esac
7914 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7915 $as_echo_n "checking for $ac_header... " >&6; }
7916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7917 $as_echo_n "(cached) " >&6
7918 else
7919 eval "$as_ac_Header=\$ac_header_preproc"
7920 fi
7921 ac_res=`eval 'as_val=${'$as_ac_Header'}
7922 $as_echo "$as_val"'`
7923 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7924 $as_echo "$ac_res" >&6; }
7925
7926 fi
7927 as_val=`eval 'as_val=${'$as_ac_Header'}
7928 $as_echo "$as_val"'`
7929 if test "x$as_val" = x""yes; then
7930 cat >>confdefs.h <<_ACEOF
7931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7932 _ACEOF
7933
7934 fi
7935
7936 done
7937
7938 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7939 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7940 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7941 $as_echo_n "(cached) " >&6
7942 else
7943 if test "$cross_compiling" = yes; then
7944 ac_cv_func_malloc_0_nonnull=no
7945 else
7946 cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h. */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7952 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7953 # include <stdlib.h>
7954 #else
7955 char *malloc ();
7956 #endif
7957
7958 int
7959 main ()
7960 {
7961 return ! malloc (0);
7962 ;
7963 return 0;
7964 }
7965 _ACEOF
7966 rm -f conftest$ac_exeext
7967 if { (ac_try="$ac_link"
7968 case "(($ac_try" in
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7971 esac
7972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7973 $as_echo "$ac_try_echo") >&5
7974 (eval "$ac_link") 2>&5
7975 ac_status=$?
7976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7978 { (case "(($ac_try" in
7979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7980 *) ac_try_echo=$ac_try;;
7981 esac
7982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7983 $as_echo "$ac_try_echo") >&5
7984 (eval "$ac_try") 2>&5
7985 ac_status=$?
7986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7988 ac_cv_func_malloc_0_nonnull=yes
7989 else
7990 $as_echo "$as_me: program exited with status $ac_status" >&5
7991 $as_echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7993
7994 ( exit $ac_status )
7995 ac_cv_func_malloc_0_nonnull=no
7996 fi
7997 rm -rf conftest.dSYM
7998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7999 fi
8000
8001
8002 fi
8003 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8004 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
8005 if test $ac_cv_func_malloc_0_nonnull = yes; then
8006
8007 cat >>confdefs.h <<\_ACEOF
8008 #define HAVE_MALLOC 1
8009 _ACEOF
8010
8011 else
8012 cat >>confdefs.h <<\_ACEOF
8013 #define HAVE_MALLOC 0
8014 _ACEOF
8015
8016 case " $LIBOBJS " in
8017 *" malloc.$ac_objext "* ) ;;
8018 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8019 ;;
8020 esac
8021
8022
8023 cat >>confdefs.h <<\_ACEOF
8024 #define malloc rpl_malloc
8025 _ACEOF
8026
8027 fi
8028
8029
8030
8031 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8032 $as_echo_n "checking for working memcmp... " >&6; }
8033 if test "${ac_cv_func_memcmp_working+set}" = set; then
8034 $as_echo_n "(cached) " >&6
8035 else
8036 if test "$cross_compiling" = yes; then
8037 ac_cv_func_memcmp_working=no
8038 else
8039 cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h. */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 $ac_includes_default
8046 int
8047 main ()
8048 {
8049
8050 /* Some versions of memcmp are not 8-bit clean. */
8051 char c0 = '\100', c1 = '\200', c2 = '\201';
8052 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8053 return 1;
8054
8055 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8056 or more and with at least one buffer not starting on a 4-byte boundary.
8057 William Lewis provided this test program. */
8058 {
8059 char foo[21];
8060 char bar[21];
8061 int i;
8062 for (i = 0; i < 4; i++)
8063 {
8064 char *a = foo + i;
8065 char *b = bar + i;
8066 strcpy (a, "--------01111111");
8067 strcpy (b, "--------10000000");
8068 if (memcmp (a, b, 16) >= 0)
8069 return 1;
8070 }
8071 return 0;
8072 }
8073
8074 ;
8075 return 0;
8076 }
8077 _ACEOF
8078 rm -f conftest$ac_exeext
8079 if { (ac_try="$ac_link"
8080 case "(($ac_try" in
8081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082 *) ac_try_echo=$ac_try;;
8083 esac
8084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8085 $as_echo "$ac_try_echo") >&5
8086 (eval "$ac_link") 2>&5
8087 ac_status=$?
8088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8090 { (case "(($ac_try" in
8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092 *) ac_try_echo=$ac_try;;
8093 esac
8094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8095 $as_echo "$ac_try_echo") >&5
8096 (eval "$ac_try") 2>&5
8097 ac_status=$?
8098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 ac_cv_func_memcmp_working=yes
8101 else
8102 $as_echo "$as_me: program exited with status $ac_status" >&5
8103 $as_echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8105
8106 ( exit $ac_status )
8107 ac_cv_func_memcmp_working=no
8108 fi
8109 rm -rf conftest.dSYM
8110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8111 fi
8112
8113
8114 fi
8115 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8116 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8117 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8118 *" memcmp.$ac_objext "* ) ;;
8119 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8120 ;;
8121 esac
8122
8123
8124
8125
8126 for ac_header in stdlib.h unistd.h
8127 do
8128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8130 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8131 $as_echo_n "checking for $ac_header... " >&6; }
8132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8133 $as_echo_n "(cached) " >&6
8134 fi
8135 ac_res=`eval 'as_val=${'$as_ac_Header'}
8136 $as_echo "$as_val"'`
8137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8138 $as_echo "$ac_res" >&6; }
8139 else
8140 # Is the header compilable?
8141 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8142 $as_echo_n "checking $ac_header usability... " >&6; }
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 $ac_includes_default
8150 #include <$ac_header>
8151 _ACEOF
8152 rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8154 case "(($ac_try" in
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8157 esac
8158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8159 $as_echo "$ac_try_echo") >&5
8160 (eval "$ac_compile") 2>conftest.er1
8161 ac_status=$?
8162 grep -v '^ *+' conftest.er1 >conftest.err
8163 rm -f conftest.er1
8164 cat conftest.err >&5
8165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } && {
8167 test -z "$ac_c_werror_flag" ||
8168 test ! -s conftest.err
8169 } && test -s conftest.$ac_objext; then
8170 ac_header_compiler=yes
8171 else
8172 $as_echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8174
8175 ac_header_compiler=no
8176 fi
8177
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8180 $as_echo "$ac_header_compiler" >&6; }
8181
8182 # Is the header present?
8183 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8184 $as_echo_n "checking $ac_header presence... " >&6; }
8185 cat >conftest.$ac_ext <<_ACEOF
8186 /* confdefs.h. */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8191 #include <$ac_header>
8192 _ACEOF
8193 if { (ac_try="$ac_cpp conftest.$ac_ext"
8194 case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197 esac
8198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8199 $as_echo "$ac_try_echo") >&5
8200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } >/dev/null && {
8207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 }; then
8210 ac_header_preproc=yes
8211 else
8212 $as_echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8214
8215 ac_header_preproc=no
8216 fi
8217
8218 rm -f conftest.err conftest.$ac_ext
8219 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8220 $as_echo "$ac_header_preproc" >&6; }
8221
8222 # So? What about this header?
8223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8224 yes:no: )
8225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8226 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8228 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8229 ac_header_preproc=yes
8230 ;;
8231 no:yes:* )
8232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8233 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8235 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8237 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8239 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8241 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8243 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8244
8245 ;;
8246 esac
8247 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8248 $as_echo_n "checking for $ac_header... " >&6; }
8249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8250 $as_echo_n "(cached) " >&6
8251 else
8252 eval "$as_ac_Header=\$ac_header_preproc"
8253 fi
8254 ac_res=`eval 'as_val=${'$as_ac_Header'}
8255 $as_echo "$as_val"'`
8256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8257 $as_echo "$ac_res" >&6; }
8258
8259 fi
8260 as_val=`eval 'as_val=${'$as_ac_Header'}
8261 $as_echo "$as_val"'`
8262 if test "x$as_val" = x""yes; then
8263 cat >>confdefs.h <<_ACEOF
8264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8265 _ACEOF
8266
8267 fi
8268
8269 done
8270
8271
8272 for ac_func in getpagesize
8273 do
8274 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8275 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8276 $as_echo_n "checking for $ac_func... " >&6; }
8277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8278 $as_echo_n "(cached) " >&6
8279 else
8280 cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h. */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8288 #define $ac_func innocuous_$ac_func
8289
8290 /* System header to define __stub macros and hopefully few prototypes,
8291 which can conflict with char $ac_func (); below.
8292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8293 <limits.h> exists even on freestanding compilers. */
8294
8295 #ifdef __STDC__
8296 # include <limits.h>
8297 #else
8298 # include <assert.h>
8299 #endif
8300
8301 #undef $ac_func
8302
8303 /* Override any GCC internal prototype to avoid an error.
8304 Use char because int might match the return type of a GCC
8305 builtin and then its argument prototype would still apply. */
8306 #ifdef __cplusplus
8307 extern "C"
8308 #endif
8309 char $ac_func ();
8310 /* The GNU C library defines this for functions which it implements
8311 to always fail with ENOSYS. Some functions are actually named
8312 something starting with __ and the normal name is an alias. */
8313 #if defined __stub_$ac_func || defined __stub___$ac_func
8314 choke me
8315 #endif
8316
8317 int
8318 main ()
8319 {
8320 return $ac_func ();
8321 ;
8322 return 0;
8323 }
8324 _ACEOF
8325 rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (ac_try="$ac_link"
8327 case "(($ac_try" in
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8330 esac
8331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8332 $as_echo "$ac_try_echo") >&5
8333 (eval "$ac_link") 2>conftest.er1
8334 ac_status=$?
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
8338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } && {
8340 test -z "$ac_c_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest$ac_exeext && {
8343 test "$cross_compiling" = yes ||
8344 $as_test_x conftest$ac_exeext
8345 }; then
8346 eval "$as_ac_var=yes"
8347 else
8348 $as_echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8350
8351 eval "$as_ac_var=no"
8352 fi
8353
8354 rm -rf conftest.dSYM
8355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8356 conftest$ac_exeext conftest.$ac_ext
8357 fi
8358 ac_res=`eval 'as_val=${'$as_ac_var'}
8359 $as_echo "$as_val"'`
8360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8361 $as_echo "$ac_res" >&6; }
8362 as_val=`eval 'as_val=${'$as_ac_var'}
8363 $as_echo "$as_val"'`
8364 if test "x$as_val" = x""yes; then
8365 cat >>confdefs.h <<_ACEOF
8366 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8367 _ACEOF
8368
8369 fi
8370 done
8371
8372 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8373 $as_echo_n "checking for working mmap... " >&6; }
8374 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8375 $as_echo_n "(cached) " >&6
8376 else
8377 if test "$cross_compiling" = yes; then
8378 ac_cv_func_mmap_fixed_mapped=no
8379 else
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h. */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 $ac_includes_default
8387 /* malloc might have been renamed as rpl_malloc. */
8388 #undef malloc
8389
8390 /* Thanks to Mike Haertel and Jim Avera for this test.
8391 Here is a matrix of mmap possibilities:
8392 mmap private not fixed
8393 mmap private fixed at somewhere currently unmapped
8394 mmap private fixed at somewhere already mapped
8395 mmap shared not fixed
8396 mmap shared fixed at somewhere currently unmapped
8397 mmap shared fixed at somewhere already mapped
8398 For private mappings, we should verify that changes cannot be read()
8399 back from the file, nor mmap's back from the file at a different
8400 address. (There have been systems where private was not correctly
8401 implemented like the infamous i386 svr4.0, and systems where the
8402 VM page cache was not coherent with the file system buffer cache
8403 like early versions of FreeBSD and possibly contemporary NetBSD.)
8404 For shared mappings, we should conversely verify that changes get
8405 propagated back to all the places they're supposed to be.
8406
8407 Grep wants private fixed already mapped.
8408 The main things grep needs to know about mmap are:
8409 * does it exist and is it safe to write into the mmap'd area
8410 * how to use it (BSD variants) */
8411
8412 #include <fcntl.h>
8413 #include <sys/mman.h>
8414
8415 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8416 char *malloc ();
8417 #endif
8418
8419 /* This mess was copied from the GNU getpagesize.h. */
8420 #ifndef HAVE_GETPAGESIZE
8421 /* Assume that all systems that can run configure have sys/param.h. */
8422 # ifndef HAVE_SYS_PARAM_H
8423 # define HAVE_SYS_PARAM_H 1
8424 # endif
8425
8426 # ifdef _SC_PAGESIZE
8427 # define getpagesize() sysconf(_SC_PAGESIZE)
8428 # else /* no _SC_PAGESIZE */
8429 # ifdef HAVE_SYS_PARAM_H
8430 # include <sys/param.h>
8431 # ifdef EXEC_PAGESIZE
8432 # define getpagesize() EXEC_PAGESIZE
8433 # else /* no EXEC_PAGESIZE */
8434 # ifdef NBPG
8435 # define getpagesize() NBPG * CLSIZE
8436 # ifndef CLSIZE
8437 # define CLSIZE 1
8438 # endif /* no CLSIZE */
8439 # else /* no NBPG */
8440 # ifdef NBPC
8441 # define getpagesize() NBPC
8442 # else /* no NBPC */
8443 # ifdef PAGESIZE
8444 # define getpagesize() PAGESIZE
8445 # endif /* PAGESIZE */
8446 # endif /* no NBPC */
8447 # endif /* no NBPG */
8448 # endif /* no EXEC_PAGESIZE */
8449 # else /* no HAVE_SYS_PARAM_H */
8450 # define getpagesize() 8192 /* punt totally */
8451 # endif /* no HAVE_SYS_PARAM_H */
8452 # endif /* no _SC_PAGESIZE */
8453
8454 #endif /* no HAVE_GETPAGESIZE */
8455
8456 int
8457 main ()
8458 {
8459 char *data, *data2, *data3;
8460 int i, pagesize;
8461 int fd;
8462
8463 pagesize = getpagesize ();
8464
8465 /* First, make a file with some known garbage in it. */
8466 data = (char *) malloc (pagesize);
8467 if (!data)
8468 return 1;
8469 for (i = 0; i < pagesize; ++i)
8470 *(data + i) = rand ();
8471 umask (0);
8472 fd = creat ("conftest.mmap", 0600);
8473 if (fd < 0)
8474 return 1;
8475 if (write (fd, data, pagesize) != pagesize)
8476 return 1;
8477 close (fd);
8478
8479 /* Next, try to mmap the file at a fixed address which already has
8480 something else allocated at it. If we can, also make sure that
8481 we see the same garbage. */
8482 fd = open ("conftest.mmap", O_RDWR);
8483 if (fd < 0)
8484 return 1;
8485 data2 = (char *) malloc (2 * pagesize);
8486 if (!data2)
8487 return 1;
8488 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8489 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8490 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8491 return 1;
8492 for (i = 0; i < pagesize; ++i)
8493 if (*(data + i) != *(data2 + i))
8494 return 1;
8495
8496 /* Finally, make sure that changes to the mapped area do not
8497 percolate back to the file as seen by read(). (This is a bug on
8498 some variants of i386 svr4.0.) */
8499 for (i = 0; i < pagesize; ++i)
8500 *(data2 + i) = *(data2 + i) + 1;
8501 data3 = (char *) malloc (pagesize);
8502 if (!data3)
8503 return 1;
8504 if (read (fd, data3, pagesize) != pagesize)
8505 return 1;
8506 for (i = 0; i < pagesize; ++i)
8507 if (*(data + i) != *(data3 + i))
8508 return 1;
8509 close (fd);
8510 return 0;
8511 }
8512 _ACEOF
8513 rm -f conftest$ac_exeext
8514 if { (ac_try="$ac_link"
8515 case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8518 esac
8519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8520 $as_echo "$ac_try_echo") >&5
8521 (eval "$ac_link") 2>&5
8522 ac_status=$?
8523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8525 { (case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8528 esac
8529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8530 $as_echo "$ac_try_echo") >&5
8531 (eval "$ac_try") 2>&5
8532 ac_status=$?
8533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 ac_cv_func_mmap_fixed_mapped=yes
8536 else
8537 $as_echo "$as_me: program exited with status $ac_status" >&5
8538 $as_echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8540
8541 ( exit $ac_status )
8542 ac_cv_func_mmap_fixed_mapped=no
8543 fi
8544 rm -rf conftest.dSYM
8545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8546 fi
8547
8548
8549 fi
8550 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8551 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8552 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8553
8554 cat >>confdefs.h <<\_ACEOF
8555 #define HAVE_MMAP 1
8556 _ACEOF
8557
8558 fi
8559 rm -f conftest.mmap
8560
8561 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8562 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
8563 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8564 $as_echo_n "(cached) " >&6
8565 else
8566 if test "$cross_compiling" = yes; then
8567 ac_cv_func_stat_empty_string_bug=yes
8568 else
8569 cat >conftest.$ac_ext <<_ACEOF
8570 /* confdefs.h. */
8571 _ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8575 $ac_includes_default
8576 int
8577 main ()
8578 {
8579 struct stat sbuf;
8580 return stat ("", &sbuf) == 0;
8581 ;
8582 return 0;
8583 }
8584 _ACEOF
8585 rm -f conftest$ac_exeext
8586 if { (ac_try="$ac_link"
8587 case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590 esac
8591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8592 $as_echo "$ac_try_echo") >&5
8593 (eval "$ac_link") 2>&5
8594 ac_status=$?
8595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8597 { (case "(($ac_try" in
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8600 esac
8601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8602 $as_echo "$ac_try_echo") >&5
8603 (eval "$ac_try") 2>&5
8604 ac_status=$?
8605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_cv_func_stat_empty_string_bug=no
8608 else
8609 $as_echo "$as_me: program exited with status $ac_status" >&5
8610 $as_echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613 ( exit $ac_status )
8614 ac_cv_func_stat_empty_string_bug=yes
8615 fi
8616 rm -rf conftest.dSYM
8617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8618 fi
8619
8620
8621 fi
8622 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8623 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8624 if test $ac_cv_func_stat_empty_string_bug = yes; then
8625 case " $LIBOBJS " in
8626 *" stat.$ac_objext "* ) ;;
8627 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8628 ;;
8629 esac
8630
8631
8632 cat >>confdefs.h <<_ACEOF
8633 #define HAVE_STAT_EMPTY_STRING_BUG 1
8634 _ACEOF
8635
8636 fi
8637
8638 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8639 $as_echo_n "checking for working strtod... " >&6; }
8640 if test "${ac_cv_func_strtod+set}" = set; then
8641 $as_echo_n "(cached) " >&6
8642 else
8643 if test "$cross_compiling" = yes; then
8644 ac_cv_func_strtod=no
8645 else
8646 cat >conftest.$ac_ext <<_ACEOF
8647 /* confdefs.h. */
8648 _ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8652
8653 $ac_includes_default
8654 #ifndef strtod
8655 double strtod ();
8656 #endif
8657 int
8658 main()
8659 {
8660 {
8661 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8662 char *string = " +69";
8663 char *term;
8664 double value;
8665 value = strtod (string, &term);
8666 if (value != 69 || term != (string + 4))
8667 return 1;
8668 }
8669
8670 {
8671 /* Under Solaris 2.4, strtod returns the wrong value for the
8672 terminating character under some conditions. */
8673 char *string = "NaN";
8674 char *term;
8675 strtod (string, &term);
8676 if (term != string && *(term - 1) == 0)
8677 return 1;
8678 }
8679 return 0;
8680 }
8681
8682 _ACEOF
8683 rm -f conftest$ac_exeext
8684 if { (ac_try="$ac_link"
8685 case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8688 esac
8689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8690 $as_echo "$ac_try_echo") >&5
8691 (eval "$ac_link") 2>&5
8692 ac_status=$?
8693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8695 { (case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698 esac
8699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8700 $as_echo "$ac_try_echo") >&5
8701 (eval "$ac_try") 2>&5
8702 ac_status=$?
8703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 ac_cv_func_strtod=yes
8706 else
8707 $as_echo "$as_me: program exited with status $ac_status" >&5
8708 $as_echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711 ( exit $ac_status )
8712 ac_cv_func_strtod=no
8713 fi
8714 rm -rf conftest.dSYM
8715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8716 fi
8717
8718
8719 fi
8720 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8721 $as_echo "$ac_cv_func_strtod" >&6; }
8722 if test $ac_cv_func_strtod = no; then
8723 case " $LIBOBJS " in
8724 *" strtod.$ac_objext "* ) ;;
8725 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8726 ;;
8727 esac
8728
8729 { $as_echo "$as_me:$LINENO: checking for pow" >&5
8730 $as_echo_n "checking for pow... " >&6; }
8731 if test "${ac_cv_func_pow+set}" = set; then
8732 $as_echo_n "(cached) " >&6
8733 else
8734 cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h. */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8740 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8742 #define pow innocuous_pow
8743
8744 /* System header to define __stub macros and hopefully few prototypes,
8745 which can conflict with char pow (); below.
8746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8747 <limits.h> exists even on freestanding compilers. */
8748
8749 #ifdef __STDC__
8750 # include <limits.h>
8751 #else
8752 # include <assert.h>
8753 #endif
8754
8755 #undef pow
8756
8757 /* Override any GCC internal prototype to avoid an error.
8758 Use char because int might match the return type of a GCC
8759 builtin and then its argument prototype would still apply. */
8760 #ifdef __cplusplus
8761 extern "C"
8762 #endif
8763 char pow ();
8764 /* The GNU C library defines this for functions which it implements
8765 to always fail with ENOSYS. Some functions are actually named
8766 something starting with __ and the normal name is an alias. */
8767 #if defined __stub_pow || defined __stub___pow
8768 choke me
8769 #endif
8770
8771 int
8772 main ()
8773 {
8774 return pow ();
8775 ;
8776 return 0;
8777 }
8778 _ACEOF
8779 rm -f conftest.$ac_objext conftest$ac_exeext
8780 if { (ac_try="$ac_link"
8781 case "(($ac_try" in
8782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783 *) ac_try_echo=$ac_try;;
8784 esac
8785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8786 $as_echo "$ac_try_echo") >&5
8787 (eval "$ac_link") 2>conftest.er1
8788 ac_status=$?
8789 grep -v '^ *+' conftest.er1 >conftest.err
8790 rm -f conftest.er1
8791 cat conftest.err >&5
8792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } && {
8794 test -z "$ac_c_werror_flag" ||
8795 test ! -s conftest.err
8796 } && test -s conftest$ac_exeext && {
8797 test "$cross_compiling" = yes ||
8798 $as_test_x conftest$ac_exeext
8799 }; then
8800 ac_cv_func_pow=yes
8801 else
8802 $as_echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8804
8805 ac_cv_func_pow=no
8806 fi
8807
8808 rm -rf conftest.dSYM
8809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8810 conftest$ac_exeext conftest.$ac_ext
8811 fi
8812 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8813 $as_echo "$ac_cv_func_pow" >&6; }
8814
8815 if test $ac_cv_func_pow = no; then
8816 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8817 $as_echo_n "checking for pow in -lm... " >&6; }
8818 if test "${ac_cv_lib_m_pow+set}" = set; then
8819 $as_echo_n "(cached) " >&6
8820 else
8821 ac_check_lib_save_LIBS=$LIBS
8822 LIBS="-lm $LIBS"
8823 cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h. */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829
8830 /* Override any GCC internal prototype to avoid an error.
8831 Use char because int might match the return type of a GCC
8832 builtin and then its argument prototype would still apply. */
8833 #ifdef __cplusplus
8834 extern "C"
8835 #endif
8836 char pow ();
8837 int
8838 main ()
8839 {
8840 return pow ();
8841 ;
8842 return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (ac_try="$ac_link"
8847 case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850 esac
8851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8852 $as_echo "$ac_try_echo") >&5
8853 (eval "$ac_link") 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && {
8860 test -z "$ac_c_werror_flag" ||
8861 test ! -s conftest.err
8862 } && test -s conftest$ac_exeext && {
8863 test "$cross_compiling" = yes ||
8864 $as_test_x conftest$ac_exeext
8865 }; then
8866 ac_cv_lib_m_pow=yes
8867 else
8868 $as_echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8870
8871 ac_cv_lib_m_pow=no
8872 fi
8873
8874 rm -rf conftest.dSYM
8875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8876 conftest$ac_exeext conftest.$ac_ext
8877 LIBS=$ac_check_lib_save_LIBS
8878 fi
8879 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8880 $as_echo "$ac_cv_lib_m_pow" >&6; }
8881 if test "x$ac_cv_lib_m_pow" = x""yes; then
8882 POW_LIB=-lm
8883 else
8884 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8885 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8886 fi
8887
8888 fi
8889
8890 fi
8891
8892
8893 for ac_func in vprintf
8894 do
8895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8896 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8897 $as_echo_n "checking for $ac_func... " >&6; }
8898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8899 $as_echo_n "(cached) " >&6
8900 else
8901 cat >conftest.$ac_ext <<_ACEOF
8902 /* confdefs.h. */
8903 _ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h. */
8907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8909 #define $ac_func innocuous_$ac_func
8910
8911 /* System header to define __stub macros and hopefully few prototypes,
8912 which can conflict with char $ac_func (); below.
8913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8914 <limits.h> exists even on freestanding compilers. */
8915
8916 #ifdef __STDC__
8917 # include <limits.h>
8918 #else
8919 # include <assert.h>
8920 #endif
8921
8922 #undef $ac_func
8923
8924 /* Override any GCC internal prototype to avoid an error.
8925 Use char because int might match the return type of a GCC
8926 builtin and then its argument prototype would still apply. */
8927 #ifdef __cplusplus
8928 extern "C"
8929 #endif
8930 char $ac_func ();
8931 /* The GNU C library defines this for functions which it implements
8932 to always fail with ENOSYS. Some functions are actually named
8933 something starting with __ and the normal name is an alias. */
8934 #if defined __stub_$ac_func || defined __stub___$ac_func
8935 choke me
8936 #endif
8937
8938 int
8939 main ()
8940 {
8941 return $ac_func ();
8942 ;
8943 return 0;
8944 }
8945 _ACEOF
8946 rm -f conftest.$ac_objext conftest$ac_exeext
8947 if { (ac_try="$ac_link"
8948 case "(($ac_try" in
8949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950 *) ac_try_echo=$ac_try;;
8951 esac
8952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8953 $as_echo "$ac_try_echo") >&5
8954 (eval "$ac_link") 2>conftest.er1
8955 ac_status=$?
8956 grep -v '^ *+' conftest.er1 >conftest.err
8957 rm -f conftest.er1
8958 cat conftest.err >&5
8959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } && {
8961 test -z "$ac_c_werror_flag" ||
8962 test ! -s conftest.err
8963 } && test -s conftest$ac_exeext && {
8964 test "$cross_compiling" = yes ||
8965 $as_test_x conftest$ac_exeext
8966 }; then
8967 eval "$as_ac_var=yes"
8968 else
8969 $as_echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8971
8972 eval "$as_ac_var=no"
8973 fi
8974
8975 rm -rf conftest.dSYM
8976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8977 conftest$ac_exeext conftest.$ac_ext
8978 fi
8979 ac_res=`eval 'as_val=${'$as_ac_var'}
8980 $as_echo "$as_val"'`
8981 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8982 $as_echo "$ac_res" >&6; }
8983 as_val=`eval 'as_val=${'$as_ac_var'}
8984 $as_echo "$as_val"'`
8985 if test "x$as_val" = x""yes; then
8986 cat >>confdefs.h <<_ACEOF
8987 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8988 _ACEOF
8989
8990 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8991 $as_echo_n "checking for _doprnt... " >&6; }
8992 if test "${ac_cv_func__doprnt+set}" = set; then
8993 $as_echo_n "(cached) " >&6
8994 else
8995 cat >conftest.$ac_ext <<_ACEOF
8996 /* confdefs.h. */
8997 _ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9003 #define _doprnt innocuous__doprnt
9004
9005 /* System header to define __stub macros and hopefully few prototypes,
9006 which can conflict with char _doprnt (); below.
9007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9008 <limits.h> exists even on freestanding compilers. */
9009
9010 #ifdef __STDC__
9011 # include <limits.h>
9012 #else
9013 # include <assert.h>
9014 #endif
9015
9016 #undef _doprnt
9017
9018 /* Override any GCC internal prototype to avoid an error.
9019 Use char because int might match the return type of a GCC
9020 builtin and then its argument prototype would still apply. */
9021 #ifdef __cplusplus
9022 extern "C"
9023 #endif
9024 char _doprnt ();
9025 /* The GNU C library defines this for functions which it implements
9026 to always fail with ENOSYS. Some functions are actually named
9027 something starting with __ and the normal name is an alias. */
9028 #if defined __stub__doprnt || defined __stub____doprnt
9029 choke me
9030 #endif
9031
9032 int
9033 main ()
9034 {
9035 return _doprnt ();
9036 ;
9037 return 0;
9038 }
9039 _ACEOF
9040 rm -f conftest.$ac_objext conftest$ac_exeext
9041 if { (ac_try="$ac_link"
9042 case "(($ac_try" in
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9045 esac
9046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9047 $as_echo "$ac_try_echo") >&5
9048 (eval "$ac_link") 2>conftest.er1
9049 ac_status=$?
9050 grep -v '^ *+' conftest.er1 >conftest.err
9051 rm -f conftest.er1
9052 cat conftest.err >&5
9053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } && {
9055 test -z "$ac_c_werror_flag" ||
9056 test ! -s conftest.err
9057 } && test -s conftest$ac_exeext && {
9058 test "$cross_compiling" = yes ||
9059 $as_test_x conftest$ac_exeext
9060 }; then
9061 ac_cv_func__doprnt=yes
9062 else
9063 $as_echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9065
9066 ac_cv_func__doprnt=no
9067 fi
9068
9069 rm -rf conftest.dSYM
9070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9071 conftest$ac_exeext conftest.$ac_ext
9072 fi
9073 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9074 $as_echo "$ac_cv_func__doprnt" >&6; }
9075 if test "x$ac_cv_func__doprnt" = x""yes; then
9076
9077 cat >>confdefs.h <<\_ACEOF
9078 #define HAVE_DOPRNT 1
9079 _ACEOF
9080
9081 fi
9082
9083 fi
9084 done
9085
9086
9087
9088 ################################################################################
9089 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9090 $as_echo_n "checking whether to use static linking... " >&6; }
9091 # Check whether --enable-static_link was given.
9092 if test "${enable_static_link+set}" = set; then
9093 enableval=$enable_static_link; STATIC_LINK=$enableval
9094 else
9095 STATIC_LINK=no
9096 fi
9097
9098 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9099 $as_echo "$STATIC_LINK" >&6; }
9100
9101 ################################################################################
9102
9103
9104 ################################################################################
9105 { $as_echo "$as_me:$LINENO: checking file owner" >&5
9106 $as_echo_n "checking file owner... " >&6; }
9107
9108 # Check whether --with-user was given.
9109 if test "${with_user+set}" = set; then
9110 withval=$with_user; OWNER="$withval"
9111 fi
9112
9113 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9114 $as_echo "$OWNER" >&6; }
9115
9116 if test x$OWNER != x; then
9117 INSTALL="$INSTALL -o $OWNER"
9118 fi
9119
9120 ################################################################################
9121 { $as_echo "$as_me:$LINENO: checking group owner" >&5
9122 $as_echo_n "checking group owner... " >&6; }
9123
9124 # Check whether --with-group was given.
9125 if test "${with_group+set}" = set; then
9126 withval=$with_group; GROUP="$withval"
9127 fi
9128
9129 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9130 $as_echo "$GROUP" >&6; }
9131
9132 if test x$GROUP != x; then
9133 INSTALL="$INSTALL -g $GROUP"
9134 fi
9135
9136 ################################################################################
9137 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
9138 $as_echo_n "checking device node uid... " >&6; }
9139
9140
9141 # Check whether --with-device-uid was given.
9142 if test "${with_device_uid+set}" = set; then
9143 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9144 else
9145 DM_DEVICE_UID="0"
9146 fi
9147
9148 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9149 $as_echo "$DM_DEVICE_UID" >&6; }
9150
9151 ################################################################################
9152 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
9153 $as_echo_n "checking device node gid... " >&6; }
9154
9155
9156 # Check whether --with-device-gid was given.
9157 if test "${with_device_gid+set}" = set; then
9158 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9159 else
9160 DM_DEVICE_GID="0"
9161 fi
9162
9163 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9164 $as_echo "$DM_DEVICE_GID" >&6; }
9165
9166 ################################################################################
9167 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
9168 $as_echo_n "checking device node mode... " >&6; }
9169
9170
9171 # Check whether --with-device-mode was given.
9172 if test "${with_device_mode+set}" = set; then
9173 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9174 else
9175 DM_DEVICE_MODE="0600"
9176 fi
9177
9178 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9179 $as_echo "$DM_DEVICE_MODE" >&6; }
9180
9181 ################################################################################
9182 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9183 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
9184 # Check whether --enable-lvm1_fallback was given.
9185 if test "${enable_lvm1_fallback+set}" = set; then
9186 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9187 else
9188 LVM1_FALLBACK=no
9189 fi
9190
9191 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9192 $as_echo "$LVM1_FALLBACK" >&6; }
9193
9194 if test x$LVM1_FALLBACK = xyes; then
9195
9196 cat >>confdefs.h <<\_ACEOF
9197 #define LVM1_FALLBACK 1
9198 _ACEOF
9199
9200 fi
9201
9202 ################################################################################
9203 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9204 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
9205
9206 # Check whether --with-lvm1 was given.
9207 if test "${with_lvm1+set}" = set; then
9208 withval=$with_lvm1; LVM1="$withval"
9209 else
9210 LVM1="internal"
9211 fi
9212
9213 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9214 $as_echo "$LVM1" >&6; }
9215
9216 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
9217 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
9218 " >&5
9219 $as_echo "$as_me: error: --with-lvm1 parameter invalid
9220 " >&2;}
9221 { (exit 1); exit 1; }; }
9222 fi;
9223
9224 if test x$LVM1 = xinternal; then
9225
9226 cat >>confdefs.h <<\_ACEOF
9227 #define LVM1_INTERNAL 1
9228 _ACEOF
9229
9230 fi
9231
9232 ################################################################################
9233 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9234 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
9235
9236 # Check whether --with-pool was given.
9237 if test "${with_pool+set}" = set; then
9238 withval=$with_pool; POOL="$withval"
9239 else
9240 POOL="internal"
9241 fi
9242
9243 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
9244 $as_echo "$POOL" >&6; }
9245
9246 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
9247 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
9248 " >&5
9249 $as_echo "$as_me: error: --with-pool parameter invalid
9250 " >&2;}
9251 { (exit 1); exit 1; }; }
9252 fi;
9253
9254 if test x$POOL = xinternal; then
9255
9256 cat >>confdefs.h <<\_ACEOF
9257 #define POOL_INTERNAL 1
9258 _ACEOF
9259
9260 fi
9261
9262 ################################################################################
9263 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9264 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
9265
9266 # Check whether --with-cluster was given.
9267 if test "${with_cluster+set}" = set; then
9268 withval=$with_cluster; CLUSTER="$withval"
9269 fi
9270
9271 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9272 $as_echo "$CLUSTER" >&6; }
9273
9274 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
9275 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
9276 " >&5
9277 $as_echo "$as_me: error: --with-cluster parameter invalid
9278 " >&2;}
9279 { (exit 1); exit 1; }; }
9280 fi;
9281
9282 if test x$CLUSTER = xinternal; then
9283
9284 cat >>confdefs.h <<\_ACEOF
9285 #define CLUSTER_LOCKING_INTERNAL 1
9286 _ACEOF
9287
9288 fi
9289
9290 ################################################################################
9291 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9292 $as_echo_n "checking whether to include snapshots... " >&6; }
9293
9294 # Check whether --with-snapshots was given.
9295 if test "${with_snapshots+set}" = set; then
9296 withval=$with_snapshots; SNAPSHOTS="$withval"
9297 else
9298 SNAPSHOTS="internal"
9299 fi
9300
9301 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9302 $as_echo "$SNAPSHOTS" >&6; }
9303
9304 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
9305 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
9306 " >&5
9307 $as_echo "$as_me: error: --with-snapshots parameter invalid
9308 " >&2;}
9309 { (exit 1); exit 1; }; }
9310 fi;
9311
9312 if test x$SNAPSHOTS = xinternal; then
9313
9314 cat >>confdefs.h <<\_ACEOF
9315 #define SNAPSHOT_INTERNAL 1
9316 _ACEOF
9317
9318 fi
9319
9320 ################################################################################
9321 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9322 $as_echo_n "checking whether to include mirrors... " >&6; }
9323
9324 # Check whether --with-mirrors was given.
9325 if test "${with_mirrors+set}" = set; then
9326 withval=$with_mirrors; MIRRORS="$withval"
9327 else
9328 MIRRORS="internal"
9329 fi
9330
9331 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9332 $as_echo "$MIRRORS" >&6; }
9333
9334 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
9335 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
9336 " >&5
9337 $as_echo "$as_me: error: --with-mirrors parameter invalid
9338 " >&2;}
9339 { (exit 1); exit 1; }; }
9340 fi;
9341
9342 if test x$MIRRORS = xinternal; then
9343
9344 cat >>confdefs.h <<\_ACEOF
9345 #define MIRRORED_INTERNAL 1
9346 _ACEOF
9347
9348 fi
9349
9350 ################################################################################
9351 { $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5
9352 $as_echo_n "checking whether to include replicators... " >&6; }
9353
9354 # Check whether --with-replicators was given.
9355 if test "${with_replicators+set}" = set; then
9356 withval=$with_replicators; REPLICATORS=$withval
9357 else
9358 REPLICATORS="none"
9359 fi
9360
9361 { $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5
9362 $as_echo "$REPLICATORS" >&6; }
9363
9364 case "$REPLICATORS" in
9365 none|shared) ;;
9366 internal)
9367 cat >>confdefs.h <<\_ACEOF
9368 #define REPLICATOR_INTERNAL 1
9369 _ACEOF
9370 ;;
9371 *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5
9372 $as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;}
9373 { (exit 1); exit 1; }; } ;;
9374 esac
9375
9376 ################################################################################
9377 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9378 $as_echo_n "checking whether to enable readline... " >&6; }
9379 # Check whether --enable-readline was given.
9380 if test "${enable_readline+set}" = set; then
9381 enableval=$enable_readline; READLINE=$enableval
9382 else
9383 READLINE=maybe
9384 fi
9385
9386 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9387 $as_echo "$READLINE" >&6; }
9388
9389 ################################################################################
9390 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9391 $as_echo_n "checking whether to enable realtime support... " >&6; }
9392 # Check whether --enable-realtime was given.
9393 if test "${enable_realtime+set}" = set; then
9394 enableval=$enable_realtime; REALTIME=$enableval
9395 fi
9396
9397 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9398 $as_echo "$REALTIME" >&6; }
9399
9400 ################################################################################
9401 pkg_config_init() {
9402
9403
9404 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9405 if test -n "$ac_tool_prefix"; then
9406 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9407 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9409 $as_echo_n "checking for $ac_word... " >&6; }
9410 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9411 $as_echo_n "(cached) " >&6
9412 else
9413 case $PKG_CONFIG in
9414 [\\/]* | ?:[\\/]*)
9415 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9416 ;;
9417 *)
9418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9419 for as_dir in $PATH
9420 do
9421 IFS=$as_save_IFS
9422 test -z "$as_dir" && as_dir=.
9423 for ac_exec_ext in '' $ac_executable_extensions; do
9424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9425 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9427 break 2
9428 fi
9429 done
9430 done
9431 IFS=$as_save_IFS
9432
9433 ;;
9434 esac
9435 fi
9436 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9437 if test -n "$PKG_CONFIG"; then
9438 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9439 $as_echo "$PKG_CONFIG" >&6; }
9440 else
9441 { $as_echo "$as_me:$LINENO: result: no" >&5
9442 $as_echo "no" >&6; }
9443 fi
9444
9445
9446 fi
9447 if test -z "$ac_cv_path_PKG_CONFIG"; then
9448 ac_pt_PKG_CONFIG=$PKG_CONFIG
9449 # Extract the first word of "pkg-config", so it can be a program name with args.
9450 set dummy pkg-config; ac_word=$2
9451 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9452 $as_echo_n "checking for $ac_word... " >&6; }
9453 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9454 $as_echo_n "(cached) " >&6
9455 else
9456 case $ac_pt_PKG_CONFIG in
9457 [\\/]* | ?:[\\/]*)
9458 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9459 ;;
9460 *)
9461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9462 for as_dir in $PATH
9463 do
9464 IFS=$as_save_IFS
9465 test -z "$as_dir" && as_dir=.
9466 for ac_exec_ext in '' $ac_executable_extensions; do
9467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9468 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9470 break 2
9471 fi
9472 done
9473 done
9474 IFS=$as_save_IFS
9475
9476 ;;
9477 esac
9478 fi
9479 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9480 if test -n "$ac_pt_PKG_CONFIG"; then
9481 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9482 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9483 else
9484 { $as_echo "$as_me:$LINENO: result: no" >&5
9485 $as_echo "no" >&6; }
9486 fi
9487
9488 if test "x$ac_pt_PKG_CONFIG" = x; then
9489 PKG_CONFIG=""
9490 else
9491 case $cross_compiling:$ac_tool_warned in
9492 yes:)
9493 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9495 ac_tool_warned=yes ;;
9496 esac
9497 PKG_CONFIG=$ac_pt_PKG_CONFIG
9498 fi
9499 else
9500 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9501 fi
9502
9503 fi
9504 if test -n "$PKG_CONFIG"; then
9505 _pkg_min_version=0.9.0
9506 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9507 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9508 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9509 { $as_echo "$as_me:$LINENO: result: yes" >&5
9510 $as_echo "yes" >&6; }
9511 else
9512 { $as_echo "$as_me:$LINENO: result: no" >&5
9513 $as_echo "no" >&6; }
9514 PKG_CONFIG=""
9515 fi
9516
9517 fi
9518
9519 pkg_failed=no
9520 { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9521 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
9522
9523 if test -n "$PKGCONFIGINIT_CFLAGS"; then
9524 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
9525 elif test -n "$PKG_CONFIG"; then
9526 if test -n "$PKG_CONFIG" && \
9527 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9528 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9529 ac_status=$?
9530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; then
9532 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
9533 else
9534 pkg_failed=yes
9535 fi
9536 else
9537 pkg_failed=untried
9538 fi
9539 if test -n "$PKGCONFIGINIT_LIBS"; then
9540 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
9541 elif test -n "$PKG_CONFIG"; then
9542 if test -n "$PKG_CONFIG" && \
9543 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9544 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9545 ac_status=$?
9546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; then
9548 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
9549 else
9550 pkg_failed=yes
9551 fi
9552 else
9553 pkg_failed=untried
9554 fi
9555
9556
9557
9558 if test $pkg_failed = yes; then
9559
9560 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9561 _pkg_short_errors_supported=yes
9562 else
9563 _pkg_short_errors_supported=no
9564 fi
9565 if test $_pkg_short_errors_supported = yes; then
9566 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
9567 else
9568 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
9569 fi
9570 # Put the nasty error message in config.log where it belongs
9571 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
9572
9573 { $as_echo "$as_me:$LINENO: result: no" >&5
9574 $as_echo "no" >&6; }
9575 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9576 $as_echo "pkg-config initialized" >&6; }
9577 elif test $pkg_failed = untried; then
9578 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9579 $as_echo "pkg-config initialized" >&6; }
9580 else
9581 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9582 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
9583 { $as_echo "$as_me:$LINENO: result: yes" >&5
9584 $as_echo "yes" >&6; }
9585 :
9586 fi
9587 PKGCONFIG_INIT=1
9588 }
9589
9590 ################################################################################
9591 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9592 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9593
9594 # Check whether --with-clvmd was given.
9595 if test "${with_clvmd+set}" = set; then
9596 withval=$with_clvmd; CLVMD="$withval"
9597 else
9598 CLVMD="none"
9599 fi
9600
9601 if test x$CLVMD = xyes; then
9602 CLVMD=all
9603 fi
9604 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9605 $as_echo "$CLVMD" >&6; }
9606
9607 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9608 CLUSTER=internal
9609 fi
9610
9611 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9612 pkg_config_init
9613 fi
9614
9615
9616 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9617 BUILDGULM=yes
9618 fi
9619 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9620 BUILDCOROSYNC=yes
9621 fi
9622 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9623 BUILDOPENAIS=yes
9624 fi
9625 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9626 BUILDCMAN=yes
9627 fi
9628
9629 if test x$BUILDGULM = xyes; then
9630 if test x$BUILDCOROSYNC = xyes || \
9631 test x$BUILDOPENAIS = xyes; then
9632 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9633 $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9634 { (exit 1); exit 1; }; }
9635 fi
9636 fi
9637
9638 soft_bailout() {
9639 NOTFOUND=1
9640 }
9641
9642 hard_bailout() {
9643 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9644 $as_echo "$as_me: error: bailing out" >&2;}
9645 { (exit 1); exit 1; }; }
9646 }
9647
9648 if test x$CLVMD = xall; then
9649 bailout=soft_bailout
9650 BUILDGULM=yes
9651 BUILDCMAN=yes
9652 BUILDCOROSYNC=yes
9653 BUILDOPENAIS=yes
9654 else
9655 bailout=hard_bailout
9656 fi
9657
9658 check_lib_no_libs() {
9659 lib_no_libs_arg1=$1
9660 shift
9661 lib_no_libs_arg2=$1
9662 shift
9663 lib_no_libs_args=$@
9664
9665 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9666 { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9667 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9668 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9669 $as_echo_n "(cached) " >&6
9670 else
9671 ac_check_lib_save_LIBS=$LIBS
9672 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9673 cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h. */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9679
9680 /* Override any GCC internal prototype to avoid an error.
9681 Use char because int might match the return type of a GCC
9682 builtin and then its argument prototype would still apply. */
9683 #ifdef __cplusplus
9684 extern "C"
9685 #endif
9686 char $lib_no_libs_arg2 ();
9687 int
9688 main ()
9689 {
9690 return $lib_no_libs_arg2 ();
9691 ;
9692 return 0;
9693 }
9694 _ACEOF
9695 rm -f conftest.$ac_objext conftest$ac_exeext
9696 if { (ac_try="$ac_link"
9697 case "(($ac_try" in
9698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699 *) ac_try_echo=$ac_try;;
9700 esac
9701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9702 $as_echo "$ac_try_echo") >&5
9703 (eval "$ac_link") 2>conftest.er1
9704 ac_status=$?
9705 grep -v '^ *+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
9708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } && {
9710 test -z "$ac_c_werror_flag" ||
9711 test ! -s conftest.err
9712 } && test -s conftest$ac_exeext && {
9713 test "$cross_compiling" = yes ||
9714 $as_test_x conftest$ac_exeext
9715 }; then
9716 eval "$as_ac_Lib=yes"
9717 else
9718 $as_echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9720
9721 eval "$as_ac_Lib=no"
9722 fi
9723
9724 rm -rf conftest.dSYM
9725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9726 conftest$ac_exeext conftest.$ac_ext
9727 LIBS=$ac_check_lib_save_LIBS
9728 fi
9729 ac_res=`eval 'as_val=${'$as_ac_Lib'}
9730 $as_echo "$as_val"'`
9731 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9732 $as_echo "$ac_res" >&6; }
9733 as_val=`eval 'as_val=${'$as_ac_Lib'}
9734 $as_echo "$as_val"'`
9735 if test "x$as_val" = x""yes; then
9736 cat >>confdefs.h <<_ACEOF
9737 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9738 _ACEOF
9739
9740 LIBS="-l$lib_no_libs_arg1 $LIBS"
9741
9742 else
9743 $bailout
9744 fi
9745
9746 LIBS=$ac_check_lib_save_LIBS
9747 }
9748
9749 if test x$BUILDGULM = xyes; then
9750
9751 pkg_failed=no
9752 { $as_echo "$as_me:$LINENO: checking for CCS" >&5
9753 $as_echo_n "checking for CCS... " >&6; }
9754
9755 if test -n "$CCS_CFLAGS"; then
9756 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
9757 elif test -n "$PKG_CONFIG"; then
9758 if test -n "$PKG_CONFIG" && \
9759 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9760 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9761 ac_status=$?
9762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; then
9764 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
9765 else
9766 pkg_failed=yes
9767 fi
9768 else
9769 pkg_failed=untried
9770 fi
9771 if test -n "$CCS_LIBS"; then
9772 pkg_cv_CCS_LIBS="$CCS_LIBS"
9773 elif test -n "$PKG_CONFIG"; then
9774 if test -n "$PKG_CONFIG" && \
9775 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9776 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9777 ac_status=$?
9778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; then
9780 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
9781 else
9782 pkg_failed=yes
9783 fi
9784 else
9785 pkg_failed=untried
9786 fi
9787
9788
9789
9790 if test $pkg_failed = yes; then
9791
9792 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9793 _pkg_short_errors_supported=yes
9794 else
9795 _pkg_short_errors_supported=no
9796 fi
9797 if test $_pkg_short_errors_supported = yes; then
9798 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
9799 else
9800 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
9801 fi
9802 # Put the nasty error message in config.log where it belongs
9803 echo "$CCS_PKG_ERRORS" >&5
9804
9805 { $as_echo "$as_me:$LINENO: result: no" >&5
9806 $as_echo "no" >&6; }
9807 NOTFOUND=0
9808
9809 for ac_header in ccs.h
9810 do
9811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9813 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9814 $as_echo_n "checking for $ac_header... " >&6; }
9815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9816 $as_echo_n "(cached) " >&6
9817 fi
9818 ac_res=`eval 'as_val=${'$as_ac_Header'}
9819 $as_echo "$as_val"'`
9820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9821 $as_echo "$ac_res" >&6; }
9822 else
9823 # Is the header compilable?
9824 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9825 $as_echo_n "checking $ac_header usability... " >&6; }
9826 cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h. */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 $ac_includes_default
9833 #include <$ac_header>
9834 _ACEOF
9835 rm -f conftest.$ac_objext
9836 if { (ac_try="$ac_compile"
9837 case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840 esac
9841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9842 $as_echo "$ac_try_echo") >&5
9843 (eval "$ac_compile") 2>conftest.er1
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } && {
9850 test -z "$ac_c_werror_flag" ||
9851 test ! -s conftest.err
9852 } && test -s conftest.$ac_objext; then
9853 ac_header_compiler=yes
9854 else
9855 $as_echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9857
9858 ac_header_compiler=no
9859 fi
9860
9861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9862 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9863 $as_echo "$ac_header_compiler" >&6; }
9864
9865 # Is the header present?
9866 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9867 $as_echo_n "checking $ac_header presence... " >&6; }
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h. */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 #include <$ac_header>
9875 _ACEOF
9876 if { (ac_try="$ac_cpp conftest.$ac_ext"
9877 case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880 esac
9881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9882 $as_echo "$ac_try_echo") >&5
9883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9884 ac_status=$?
9885 grep -v '^ *+' conftest.er1 >conftest.err
9886 rm -f conftest.er1
9887 cat conftest.err >&5
9888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } >/dev/null && {
9890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9891 test ! -s conftest.err
9892 }; then
9893 ac_header_preproc=yes
9894 else
9895 $as_echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9897
9898 ac_header_preproc=no
9899 fi
9900
9901 rm -f conftest.err conftest.$ac_ext
9902 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9903 $as_echo "$ac_header_preproc" >&6; }
9904
9905 # So? What about this header?
9906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9907 yes:no: )
9908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9909 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9911 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9912 ac_header_preproc=yes
9913 ;;
9914 no:yes:* )
9915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9916 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9918 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9920 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9922 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9924 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9926 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9927
9928 ;;
9929 esac
9930 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9931 $as_echo_n "checking for $ac_header... " >&6; }
9932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9933 $as_echo_n "(cached) " >&6
9934 else
9935 eval "$as_ac_Header=\$ac_header_preproc"
9936 fi
9937 ac_res=`eval 'as_val=${'$as_ac_Header'}
9938 $as_echo "$as_val"'`
9939 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9940 $as_echo "$ac_res" >&6; }
9941
9942 fi
9943 as_val=`eval 'as_val=${'$as_ac_Header'}
9944 $as_echo "$as_val"'`
9945 if test "x$as_val" = x""yes; then
9946 cat >>confdefs.h <<_ACEOF
9947 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9948 _ACEOF
9949
9950 else
9951 $bailout
9952 fi
9953
9954 done
9955
9956 check_lib_no_libs ccs ccs_connect
9957 if test $NOTFOUND = 0; then
9958 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9959 $as_echo "no pkg for libccs, using -lccs" >&6; }
9960 CCS_LIBS="-lccs"
9961 HAVE_CCS=yes
9962 fi
9963 elif test $pkg_failed = untried; then
9964 NOTFOUND=0
9965
9966 for ac_header in ccs.h
9967 do
9968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9970 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9971 $as_echo_n "checking for $ac_header... " >&6; }
9972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9973 $as_echo_n "(cached) " >&6
9974 fi
9975 ac_res=`eval 'as_val=${'$as_ac_Header'}
9976 $as_echo "$as_val"'`
9977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9978 $as_echo "$ac_res" >&6; }
9979 else
9980 # Is the header compilable?
9981 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9982 $as_echo_n "checking $ac_header usability... " >&6; }
9983 cat >conftest.$ac_ext <<_ACEOF
9984 /* confdefs.h. */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 $ac_includes_default
9990 #include <$ac_header>
9991 _ACEOF
9992 rm -f conftest.$ac_objext
9993 if { (ac_try="$ac_compile"
9994 case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9997 esac
9998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9999 $as_echo "$ac_try_echo") >&5
10000 (eval "$ac_compile") 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && {
10007 test -z "$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 } && test -s conftest.$ac_objext; then
10010 ac_header_compiler=yes
10011 else
10012 $as_echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10014
10015 ac_header_compiler=no
10016 fi
10017
10018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10019 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10020 $as_echo "$ac_header_compiler" >&6; }
10021
10022 # Is the header present?
10023 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10024 $as_echo_n "checking $ac_header presence... " >&6; }
10025 cat >conftest.$ac_ext <<_ACEOF
10026 /* confdefs.h. */
10027 _ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10031 #include <$ac_header>
10032 _ACEOF
10033 if { (ac_try="$ac_cpp conftest.$ac_ext"
10034 case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10037 esac
10038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10039 $as_echo "$ac_try_echo") >&5
10040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10041 ac_status=$?
10042 grep -v '^ *+' conftest.er1 >conftest.err
10043 rm -f conftest.er1
10044 cat conftest.err >&5
10045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } >/dev/null && {
10047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10048 test ! -s conftest.err
10049 }; then
10050 ac_header_preproc=yes
10051 else
10052 $as_echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10054
10055 ac_header_preproc=no
10056 fi
10057
10058 rm -f conftest.err conftest.$ac_ext
10059 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10060 $as_echo "$ac_header_preproc" >&6; }
10061
10062 # So? What about this header?
10063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10064 yes:no: )
10065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10066 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10069 ac_header_preproc=yes
10070 ;;
10071 no:yes:* )
10072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10073 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10075 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10077 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10079 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10081 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10083 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10084
10085 ;;
10086 esac
10087 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10088 $as_echo_n "checking for $ac_header... " >&6; }
10089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10090 $as_echo_n "(cached) " >&6
10091 else
10092 eval "$as_ac_Header=\$ac_header_preproc"
10093 fi
10094 ac_res=`eval 'as_val=${'$as_ac_Header'}
10095 $as_echo "$as_val"'`
10096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10097 $as_echo "$ac_res" >&6; }
10098
10099 fi
10100 as_val=`eval 'as_val=${'$as_ac_Header'}
10101 $as_echo "$as_val"'`
10102 if test "x$as_val" = x""yes; then
10103 cat >>confdefs.h <<_ACEOF
10104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10105 _ACEOF
10106
10107 else
10108 $bailout
10109 fi
10110
10111 done
10112
10113 check_lib_no_libs ccs ccs_connect
10114 if test $NOTFOUND = 0; then
10115 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10116 $as_echo "no pkg for libccs, using -lccs" >&6; }
10117 CCS_LIBS="-lccs"
10118 HAVE_CCS=yes
10119 fi
10120 else
10121 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10122 CCS_LIBS=$pkg_cv_CCS_LIBS
10123 { $as_echo "$as_me:$LINENO: result: yes" >&5
10124 $as_echo "yes" >&6; }
10125 HAVE_CCS=yes
10126 fi
10127
10128 pkg_failed=no
10129 { $as_echo "$as_me:$LINENO: checking for GULM" >&5
10130 $as_echo_n "checking for GULM... " >&6; }
10131
10132 if test -n "$GULM_CFLAGS"; then
10133 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10134 elif test -n "$PKG_CONFIG"; then
10135 if test -n "$PKG_CONFIG" && \
10136 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10137 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10138 ac_status=$?
10139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; then
10141 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10142 else
10143 pkg_failed=yes
10144 fi
10145 else
10146 pkg_failed=untried
10147 fi
10148 if test -n "$GULM_LIBS"; then
10149 pkg_cv_GULM_LIBS="$GULM_LIBS"
10150 elif test -n "$PKG_CONFIG"; then
10151 if test -n "$PKG_CONFIG" && \
10152 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10153 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10154 ac_status=$?
10155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; then
10157 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10158 else
10159 pkg_failed=yes
10160 fi
10161 else
10162 pkg_failed=untried
10163 fi
10164
10165
10166
10167 if test $pkg_failed = yes; then
10168
10169 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10170 _pkg_short_errors_supported=yes
10171 else
10172 _pkg_short_errors_supported=no
10173 fi
10174 if test $_pkg_short_errors_supported = yes; then
10175 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10176 else
10177 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10178 fi
10179 # Put the nasty error message in config.log where it belongs
10180 echo "$GULM_PKG_ERRORS" >&5
10181
10182 { $as_echo "$as_me:$LINENO: result: no" >&5
10183 $as_echo "no" >&6; }
10184 NOTFOUND=0
10185
10186 for ac_header in libgulm.h
10187 do
10188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10190 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10191 $as_echo_n "checking for $ac_header... " >&6; }
10192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10193 $as_echo_n "(cached) " >&6
10194 fi
10195 ac_res=`eval 'as_val=${'$as_ac_Header'}
10196 $as_echo "$as_val"'`
10197 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10198 $as_echo "$ac_res" >&6; }
10199 else
10200 # Is the header compilable?
10201 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10202 $as_echo_n "checking $ac_header usability... " >&6; }
10203 cat >conftest.$ac_ext <<_ACEOF
10204 /* confdefs.h. */
10205 _ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10209 $ac_includes_default
10210 #include <$ac_header>
10211 _ACEOF
10212 rm -f conftest.$ac_objext
10213 if { (ac_try="$ac_compile"
10214 case "(($ac_try" in
10215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216 *) ac_try_echo=$ac_try;;
10217 esac
10218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10219 $as_echo "$ac_try_echo") >&5
10220 (eval "$ac_compile") 2>conftest.er1
10221 ac_status=$?
10222 grep -v '^ *+' conftest.er1 >conftest.err
10223 rm -f conftest.er1
10224 cat conftest.err >&5
10225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } && {
10227 test -z "$ac_c_werror_flag" ||
10228 test ! -s conftest.err
10229 } && test -s conftest.$ac_objext; then
10230 ac_header_compiler=yes
10231 else
10232 $as_echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10234
10235 ac_header_compiler=no
10236 fi
10237
10238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10239 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10240 $as_echo "$ac_header_compiler" >&6; }
10241
10242 # Is the header present?
10243 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10244 $as_echo_n "checking $ac_header presence... " >&6; }
10245 cat >conftest.$ac_ext <<_ACEOF
10246 /* confdefs.h. */
10247 _ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10251 #include <$ac_header>
10252 _ACEOF
10253 if { (ac_try="$ac_cpp conftest.$ac_ext"
10254 case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10257 esac
10258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10259 $as_echo "$ac_try_echo") >&5
10260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10261 ac_status=$?
10262 grep -v '^ *+' conftest.er1 >conftest.err
10263 rm -f conftest.er1
10264 cat conftest.err >&5
10265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } >/dev/null && {
10267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10269 }; then
10270 ac_header_preproc=yes
10271 else
10272 $as_echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10274
10275 ac_header_preproc=no
10276 fi
10277
10278 rm -f conftest.err conftest.$ac_ext
10279 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10280 $as_echo "$ac_header_preproc" >&6; }
10281
10282 # So? What about this header?
10283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10284 yes:no: )
10285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10286 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10288 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10289 ac_header_preproc=yes
10290 ;;
10291 no:yes:* )
10292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10293 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10295 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10297 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10299 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10301 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10303 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10304
10305 ;;
10306 esac
10307 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10308 $as_echo_n "checking for $ac_header... " >&6; }
10309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10310 $as_echo_n "(cached) " >&6
10311 else
10312 eval "$as_ac_Header=\$ac_header_preproc"
10313 fi
10314 ac_res=`eval 'as_val=${'$as_ac_Header'}
10315 $as_echo "$as_val"'`
10316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10317 $as_echo "$ac_res" >&6; }
10318
10319 fi
10320 as_val=`eval 'as_val=${'$as_ac_Header'}
10321 $as_echo "$as_val"'`
10322 if test "x$as_val" = x""yes; then
10323 cat >>confdefs.h <<_ACEOF
10324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10325 _ACEOF
10326
10327 else
10328 $bailout
10329 fi
10330
10331 done
10332
10333 check_lib_no_libs gulm lg_core_login
10334 if test $NOTFOUND = 0; then
10335 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10336 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10337 GULM_LIBS="-lgulm"
10338 HAVE_GULM=yes
10339 fi
10340 elif test $pkg_failed = untried; then
10341 NOTFOUND=0
10342
10343 for ac_header in libgulm.h
10344 do
10345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10348 $as_echo_n "checking for $ac_header... " >&6; }
10349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10350 $as_echo_n "(cached) " >&6
10351 fi
10352 ac_res=`eval 'as_val=${'$as_ac_Header'}
10353 $as_echo "$as_val"'`
10354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10355 $as_echo "$ac_res" >&6; }
10356 else
10357 # Is the header compilable?
10358 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10359 $as_echo_n "checking $ac_header usability... " >&6; }
10360 cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h. */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 $ac_includes_default
10367 #include <$ac_header>
10368 _ACEOF
10369 rm -f conftest.$ac_objext
10370 if { (ac_try="$ac_compile"
10371 case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10374 esac
10375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10376 $as_echo "$ac_try_echo") >&5
10377 (eval "$ac_compile") 2>conftest.er1
10378 ac_status=$?
10379 grep -v '^ *+' conftest.er1 >conftest.err
10380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest.$ac_objext; then
10387 ac_header_compiler=yes
10388 else
10389 $as_echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10391
10392 ac_header_compiler=no
10393 fi
10394
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10397 $as_echo "$ac_header_compiler" >&6; }
10398
10399 # Is the header present?
10400 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10401 $as_echo_n "checking $ac_header presence... " >&6; }
10402 cat >conftest.$ac_ext <<_ACEOF
10403 /* confdefs.h. */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408 #include <$ac_header>
10409 _ACEOF
10410 if { (ac_try="$ac_cpp conftest.$ac_ext"
10411 case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10414 esac
10415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10416 $as_echo "$ac_try_echo") >&5
10417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } >/dev/null && {
10424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10426 }; then
10427 ac_header_preproc=yes
10428 else
10429 $as_echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10431
10432 ac_header_preproc=no
10433 fi
10434
10435 rm -f conftest.err conftest.$ac_ext
10436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10437 $as_echo "$ac_header_preproc" >&6; }
10438
10439 # So? What about this header?
10440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10441 yes:no: )
10442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10443 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10446 ac_header_preproc=yes
10447 ;;
10448 no:yes:* )
10449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10450 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10452 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10454 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10456 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10458 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10460 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10461
10462 ;;
10463 esac
10464 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10465 $as_echo_n "checking for $ac_header... " >&6; }
10466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10467 $as_echo_n "(cached) " >&6
10468 else
10469 eval "$as_ac_Header=\$ac_header_preproc"
10470 fi
10471 ac_res=`eval 'as_val=${'$as_ac_Header'}
10472 $as_echo "$as_val"'`
10473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10474 $as_echo "$ac_res" >&6; }
10475
10476 fi
10477 as_val=`eval 'as_val=${'$as_ac_Header'}
10478 $as_echo "$as_val"'`
10479 if test "x$as_val" = x""yes; then
10480 cat >>confdefs.h <<_ACEOF
10481 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10482 _ACEOF
10483
10484 else
10485 $bailout
10486 fi
10487
10488 done
10489
10490 check_lib_no_libs gulm lg_core_login
10491 if test $NOTFOUND = 0; then
10492 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10493 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10494 GULM_LIBS="-lgulm"
10495 HAVE_GULM=yes
10496 fi
10497 else
10498 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10499 GULM_LIBS=$pkg_cv_GULM_LIBS
10500 { $as_echo "$as_me:$LINENO: result: yes" >&5
10501 $as_echo "yes" >&6; }
10502 HAVE_GULM=yes
10503 fi
10504 fi
10505
10506 if test x$BUILDCMAN = xyes; then
10507
10508 pkg_failed=no
10509 { $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10510 $as_echo_n "checking for CMAN... " >&6; }
10511
10512 if test -n "$CMAN_CFLAGS"; then
10513 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10514 elif test -n "$PKG_CONFIG"; then
10515 if test -n "$PKG_CONFIG" && \
10516 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10517 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10518 ac_status=$?
10519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; then
10521 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10522 else
10523 pkg_failed=yes
10524 fi
10525 else
10526 pkg_failed=untried
10527 fi
10528 if test -n "$CMAN_LIBS"; then
10529 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10530 elif test -n "$PKG_CONFIG"; then
10531 if test -n "$PKG_CONFIG" && \
10532 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10533 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10534 ac_status=$?
10535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; then
10537 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10538 else
10539 pkg_failed=yes
10540 fi
10541 else
10542 pkg_failed=untried
10543 fi
10544
10545
10546
10547 if test $pkg_failed = yes; then
10548
10549 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10550 _pkg_short_errors_supported=yes
10551 else
10552 _pkg_short_errors_supported=no
10553 fi
10554 if test $_pkg_short_errors_supported = yes; then
10555 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10556 else
10557 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10558 fi
10559 # Put the nasty error message in config.log where it belongs
10560 echo "$CMAN_PKG_ERRORS" >&5
10561
10562 { $as_echo "$as_me:$LINENO: result: no" >&5
10563 $as_echo "no" >&6; }
10564 NOTFOUND=0
10565
10566 for ac_header in libcman.h
10567 do
10568 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10570 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10571 $as_echo_n "checking for $ac_header... " >&6; }
10572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10573 $as_echo_n "(cached) " >&6
10574 fi
10575 ac_res=`eval 'as_val=${'$as_ac_Header'}
10576 $as_echo "$as_val"'`
10577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10578 $as_echo "$ac_res" >&6; }
10579 else
10580 # Is the header compilable?
10581 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10582 $as_echo_n "checking $ac_header usability... " >&6; }
10583 cat >conftest.$ac_ext <<_ACEOF
10584 /* confdefs.h. */
10585 _ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h. */
10589 $ac_includes_default
10590 #include <$ac_header>
10591 _ACEOF
10592 rm -f conftest.$ac_objext
10593 if { (ac_try="$ac_compile"
10594 case "(($ac_try" in
10595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10597 esac
10598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10599 $as_echo "$ac_try_echo") >&5
10600 (eval "$ac_compile") 2>conftest.er1
10601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } && {
10607 test -z "$ac_c_werror_flag" ||
10608 test ! -s conftest.err
10609 } && test -s conftest.$ac_objext; then
10610 ac_header_compiler=yes
10611 else
10612 $as_echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10614
10615 ac_header_compiler=no
10616 fi
10617
10618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10619 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10620 $as_echo "$ac_header_compiler" >&6; }
10621
10622 # Is the header present?
10623 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10624 $as_echo_n "checking $ac_header presence... " >&6; }
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h. */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 #include <$ac_header>
10632 _ACEOF
10633 if { (ac_try="$ac_cpp conftest.$ac_ext"
10634 case "(($ac_try" in
10635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636 *) ac_try_echo=$ac_try;;
10637 esac
10638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10639 $as_echo "$ac_try_echo") >&5
10640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10641 ac_status=$?
10642 grep -v '^ *+' conftest.er1 >conftest.err
10643 rm -f conftest.er1
10644 cat conftest.err >&5
10645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } >/dev/null && {
10647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10648 test ! -s conftest.err
10649 }; then
10650 ac_header_preproc=yes
10651 else
10652 $as_echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10654
10655 ac_header_preproc=no
10656 fi
10657
10658 rm -f conftest.err conftest.$ac_ext
10659 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10660 $as_echo "$ac_header_preproc" >&6; }
10661
10662 # So? What about this header?
10663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10664 yes:no: )
10665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10666 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10668 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10669 ac_header_preproc=yes
10670 ;;
10671 no:yes:* )
10672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10673 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10675 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10677 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10679 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10681 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10683 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10684
10685 ;;
10686 esac
10687 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10688 $as_echo_n "checking for $ac_header... " >&6; }
10689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10690 $as_echo_n "(cached) " >&6
10691 else
10692 eval "$as_ac_Header=\$ac_header_preproc"
10693 fi
10694 ac_res=`eval 'as_val=${'$as_ac_Header'}
10695 $as_echo "$as_val"'`
10696 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10697 $as_echo "$ac_res" >&6; }
10698
10699 fi
10700 as_val=`eval 'as_val=${'$as_ac_Header'}
10701 $as_echo "$as_val"'`
10702 if test "x$as_val" = x""yes; then
10703 cat >>confdefs.h <<_ACEOF
10704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10705 _ACEOF
10706
10707 else
10708 $bailout
10709 fi
10710
10711 done
10712
10713 check_lib_no_libs cman cman_init
10714 if test $NOTFOUND = 0; then
10715 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10716 $as_echo "no pkg for libcman, using -lcman" >&6; }
10717 CMAN_LIBS="-lcman"
10718 HAVE_CMAN=yes
10719 fi
10720 elif test $pkg_failed = untried; then
10721 NOTFOUND=0
10722
10723 for ac_header in libcman.h
10724 do
10725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10728 $as_echo_n "checking for $ac_header... " >&6; }
10729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10730 $as_echo_n "(cached) " >&6
10731 fi
10732 ac_res=`eval 'as_val=${'$as_ac_Header'}
10733 $as_echo "$as_val"'`
10734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10735 $as_echo "$ac_res" >&6; }
10736 else
10737 # Is the header compilable?
10738 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10739 $as_echo_n "checking $ac_header usability... " >&6; }
10740 cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h. */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 $ac_includes_default
10747 #include <$ac_header>
10748 _ACEOF
10749 rm -f conftest.$ac_objext
10750 if { (ac_try="$ac_compile"
10751 case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10754 esac
10755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10756 $as_echo "$ac_try_echo") >&5
10757 (eval "$ac_compile") 2>conftest.er1
10758 ac_status=$?
10759 grep -v '^ *+' conftest.er1 >conftest.err
10760 rm -f conftest.er1
10761 cat conftest.err >&5
10762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } && {
10764 test -z "$ac_c_werror_flag" ||
10765 test ! -s conftest.err
10766 } && test -s conftest.$ac_objext; then
10767 ac_header_compiler=yes
10768 else
10769 $as_echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772 ac_header_compiler=no
10773 fi
10774
10775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10777 $as_echo "$ac_header_compiler" >&6; }
10778
10779 # Is the header present?
10780 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10781 $as_echo_n "checking $ac_header presence... " >&6; }
10782 cat >conftest.$ac_ext <<_ACEOF
10783 /* confdefs.h. */
10784 _ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h. */
10788 #include <$ac_header>
10789 _ACEOF
10790 if { (ac_try="$ac_cpp conftest.$ac_ext"
10791 case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10794 esac
10795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10796 $as_echo "$ac_try_echo") >&5
10797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10798 ac_status=$?
10799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
10802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } >/dev/null && {
10804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10805 test ! -s conftest.err
10806 }; then
10807 ac_header_preproc=yes
10808 else
10809 $as_echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10811
10812 ac_header_preproc=no
10813 fi
10814
10815 rm -f conftest.err conftest.$ac_ext
10816 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10817 $as_echo "$ac_header_preproc" >&6; }
10818
10819 # So? What about this header?
10820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10821 yes:no: )
10822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10823 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10826 ac_header_preproc=yes
10827 ;;
10828 no:yes:* )
10829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10830 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10832 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10834 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10836 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10838 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10840 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10841
10842 ;;
10843 esac
10844 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10845 $as_echo_n "checking for $ac_header... " >&6; }
10846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10847 $as_echo_n "(cached) " >&6
10848 else
10849 eval "$as_ac_Header=\$ac_header_preproc"
10850 fi
10851 ac_res=`eval 'as_val=${'$as_ac_Header'}
10852 $as_echo "$as_val"'`
10853 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10854 $as_echo "$ac_res" >&6; }
10855
10856 fi
10857 as_val=`eval 'as_val=${'$as_ac_Header'}
10858 $as_echo "$as_val"'`
10859 if test "x$as_val" = x""yes; then
10860 cat >>confdefs.h <<_ACEOF
10861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10862 _ACEOF
10863
10864 else
10865 $bailout
10866 fi
10867
10868 done
10869
10870 check_lib_no_libs cman cman_init
10871 if test $NOTFOUND = 0; then
10872 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10873 $as_echo "no pkg for libcman, using -lcman" >&6; }
10874 CMAN_LIBS="-lcman"
10875 HAVE_CMAN=yes
10876 fi
10877 else
10878 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10879 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10880 { $as_echo "$as_me:$LINENO: result: yes" >&5
10881 $as_echo "yes" >&6; }
10882 HAVE_CMAN=yes
10883 fi
10884 CHECKCONFDB=yes
10885 CHECKDLM=yes
10886 fi
10887
10888 if test x$BUILDCOROSYNC = xyes || \
10889 test x$BUILDOPENAIS = xyes; then
10890
10891 pkg_failed=no
10892 { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10893 $as_echo_n "checking for COROSYNC... " >&6; }
10894
10895 if test -n "$COROSYNC_CFLAGS"; then
10896 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10897 elif test -n "$PKG_CONFIG"; then
10898 if test -n "$PKG_CONFIG" && \
10899 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10900 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10901 ac_status=$?
10902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; then
10904 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10905 else
10906 pkg_failed=yes
10907 fi
10908 else
10909 pkg_failed=untried
10910 fi
10911 if test -n "$COROSYNC_LIBS"; then
10912 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10913 elif test -n "$PKG_CONFIG"; then
10914 if test -n "$PKG_CONFIG" && \
10915 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10916 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10917 ac_status=$?
10918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); }; then
10920 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10921 else
10922 pkg_failed=yes
10923 fi
10924 else
10925 pkg_failed=untried
10926 fi
10927
10928
10929
10930 if test $pkg_failed = yes; then
10931
10932 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10933 _pkg_short_errors_supported=yes
10934 else
10935 _pkg_short_errors_supported=no
10936 fi
10937 if test $_pkg_short_errors_supported = yes; then
10938 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10939 else
10940 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10941 fi
10942 # Put the nasty error message in config.log where it belongs
10943 echo "$COROSYNC_PKG_ERRORS" >&5
10944
10945 { $as_echo "$as_me:$LINENO: result: no" >&5
10946 $as_echo "no" >&6; }
10947 $bailout
10948 elif test $pkg_failed = untried; then
10949 $bailout
10950 else
10951 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10952 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10953 { $as_echo "$as_me:$LINENO: result: yes" >&5
10954 $as_echo "yes" >&6; }
10955 HAVE_COROSYNC=yes
10956 fi
10957 CHECKCONFDB=yes
10958 fi
10959
10960 if test x$BUILDCOROSYNC = xyes; then
10961
10962 pkg_failed=no
10963 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10964 $as_echo_n "checking for QUORUM... " >&6; }
10965
10966 if test -n "$QUORUM_CFLAGS"; then
10967 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10968 elif test -n "$PKG_CONFIG"; then
10969 if test -n "$PKG_CONFIG" && \
10970 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10971 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10972 ac_status=$?
10973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; then
10975 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10976 else
10977 pkg_failed=yes
10978 fi
10979 else
10980 pkg_failed=untried
10981 fi
10982 if test -n "$QUORUM_LIBS"; then
10983 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10984 elif test -n "$PKG_CONFIG"; then
10985 if test -n "$PKG_CONFIG" && \
10986 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10987 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10988 ac_status=$?
10989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; then
10991 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10992 else
10993 pkg_failed=yes
10994 fi
10995 else
10996 pkg_failed=untried
10997 fi
10998
10999
11000
11001 if test $pkg_failed = yes; then
11002
11003 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11004 _pkg_short_errors_supported=yes
11005 else
11006 _pkg_short_errors_supported=no
11007 fi
11008 if test $_pkg_short_errors_supported = yes; then
11009 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
11010 else
11011 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
11012 fi
11013 # Put the nasty error message in config.log where it belongs
11014 echo "$QUORUM_PKG_ERRORS" >&5
11015
11016 { $as_echo "$as_me:$LINENO: result: no" >&5
11017 $as_echo "no" >&6; }
11018 $bailout
11019 elif test $pkg_failed = untried; then
11020 $bailout
11021 else
11022 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
11023 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
11024 { $as_echo "$as_me:$LINENO: result: yes" >&5
11025 $as_echo "yes" >&6; }
11026 HAVE_QUORUM=yes
11027 fi
11028 CHECKCPG=yes
11029 CHECKDLM=yes
11030 fi
11031
11032 if test x$BUILDOPENAIS = xyes; then
11033
11034 pkg_failed=no
11035 { $as_echo "$as_me:$LINENO: checking for SALCK" >&5
11036 $as_echo_n "checking for SALCK... " >&6; }
11037
11038 if test -n "$SALCK_CFLAGS"; then
11039 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
11040 elif test -n "$PKG_CONFIG"; then
11041 if test -n "$PKG_CONFIG" && \
11042 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11043 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11044 ac_status=$?
11045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; then
11047 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
11048 else
11049 pkg_failed=yes
11050 fi
11051 else
11052 pkg_failed=untried
11053 fi
11054 if test -n "$SALCK_LIBS"; then
11055 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11056 elif test -n "$PKG_CONFIG"; then
11057 if test -n "$PKG_CONFIG" && \
11058 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11059 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11060 ac_status=$?
11061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; then
11063 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11064 else
11065 pkg_failed=yes
11066 fi
11067 else
11068 pkg_failed=untried
11069 fi
11070
11071
11072
11073 if test $pkg_failed = yes; then
11074
11075 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11076 _pkg_short_errors_supported=yes
11077 else
11078 _pkg_short_errors_supported=no
11079 fi
11080 if test $_pkg_short_errors_supported = yes; then
11081 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11082 else
11083 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11084 fi
11085 # Put the nasty error message in config.log where it belongs
11086 echo "$SALCK_PKG_ERRORS" >&5
11087
11088 { $as_echo "$as_me:$LINENO: result: no" >&5
11089 $as_echo "no" >&6; }
11090 $bailout
11091 elif test $pkg_failed = untried; then
11092 $bailout
11093 else
11094 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11095 SALCK_LIBS=$pkg_cv_SALCK_LIBS
11096 { $as_echo "$as_me:$LINENO: result: yes" >&5
11097 $as_echo "yes" >&6; }
11098 HAVE_SALCK=yes
11099 fi
11100 CHECKCPG=yes
11101 fi
11102
11103
11104
11105 if test x$CHECKCONFDB = xyes; then
11106
11107 pkg_failed=no
11108 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11109 $as_echo_n "checking for CONFDB... " >&6; }
11110
11111 if test -n "$CONFDB_CFLAGS"; then
11112 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11113 elif test -n "$PKG_CONFIG"; then
11114 if test -n "$PKG_CONFIG" && \
11115 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11116 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11117 ac_status=$?
11118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; then
11120 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11121 else
11122 pkg_failed=yes
11123 fi
11124 else
11125 pkg_failed=untried
11126 fi
11127 if test -n "$CONFDB_LIBS"; then
11128 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11129 elif test -n "$PKG_CONFIG"; then
11130 if test -n "$PKG_CONFIG" && \
11131 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11132 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11133 ac_status=$?
11134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; then
11136 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11137 else
11138 pkg_failed=yes
11139 fi
11140 else
11141 pkg_failed=untried
11142 fi
11143
11144
11145
11146 if test $pkg_failed = yes; then
11147
11148 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11149 _pkg_short_errors_supported=yes
11150 else
11151 _pkg_short_errors_supported=no
11152 fi
11153 if test $_pkg_short_errors_supported = yes; then
11154 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11155 else
11156 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11157 fi
11158 # Put the nasty error message in config.log where it belongs
11159 echo "$CONFDB_PKG_ERRORS" >&5
11160
11161 { $as_echo "$as_me:$LINENO: result: no" >&5
11162 $as_echo "no" >&6; }
11163 HAVE_CONFDB=no
11164 elif test $pkg_failed = untried; then
11165 HAVE_CONFDB=no
11166 else
11167 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11168 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11169 { $as_echo "$as_me:$LINENO: result: yes" >&5
11170 $as_echo "yes" >&6; }
11171 HAVE_CONFDB=yes
11172 fi
11173
11174
11175 for ac_header in corosync/confdb.h
11176 do
11177 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11180 $as_echo_n "checking for $ac_header... " >&6; }
11181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182 $as_echo_n "(cached) " >&6
11183 fi
11184 ac_res=`eval 'as_val=${'$as_ac_Header'}
11185 $as_echo "$as_val"'`
11186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11187 $as_echo "$ac_res" >&6; }
11188 else
11189 # Is the header compilable?
11190 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11191 $as_echo_n "checking $ac_header usability... " >&6; }
11192 cat >conftest.$ac_ext <<_ACEOF
11193 /* confdefs.h. */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 $ac_includes_default
11199 #include <$ac_header>
11200 _ACEOF
11201 rm -f conftest.$ac_objext
11202 if { (ac_try="$ac_compile"
11203 case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11206 esac
11207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11208 $as_echo "$ac_try_echo") >&5
11209 (eval "$ac_compile") 2>conftest.er1
11210 ac_status=$?
11211 grep -v '^ *+' conftest.er1 >conftest.err
11212 rm -f conftest.er1
11213 cat conftest.err >&5
11214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } && {
11216 test -z "$ac_c_werror_flag" ||
11217 test ! -s conftest.err
11218 } && test -s conftest.$ac_objext; then
11219 ac_header_compiler=yes
11220 else
11221 $as_echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11223
11224 ac_header_compiler=no
11225 fi
11226
11227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11229 $as_echo "$ac_header_compiler" >&6; }
11230
11231 # Is the header present?
11232 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11233 $as_echo_n "checking $ac_header presence... " >&6; }
11234 cat >conftest.$ac_ext <<_ACEOF
11235 /* confdefs.h. */
11236 _ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11240 #include <$ac_header>
11241 _ACEOF
11242 if { (ac_try="$ac_cpp conftest.$ac_ext"
11243 case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11246 esac
11247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11248 $as_echo "$ac_try_echo") >&5
11249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11250 ac_status=$?
11251 grep -v '^ *+' conftest.er1 >conftest.err
11252 rm -f conftest.er1
11253 cat conftest.err >&5
11254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } >/dev/null && {
11256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11257 test ! -s conftest.err
11258 }; then
11259 ac_header_preproc=yes
11260 else
11261 $as_echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11263
11264 ac_header_preproc=no
11265 fi
11266
11267 rm -f conftest.err conftest.$ac_ext
11268 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11269 $as_echo "$ac_header_preproc" >&6; }
11270
11271 # So? What about this header?
11272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11273 yes:no: )
11274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11275 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11277 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11278 ac_header_preproc=yes
11279 ;;
11280 no:yes:* )
11281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11282 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11284 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11286 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11288 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11290 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11292 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11293
11294 ;;
11295 esac
11296 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11297 $as_echo_n "checking for $ac_header... " >&6; }
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299 $as_echo_n "(cached) " >&6
11300 else
11301 eval "$as_ac_Header=\$ac_header_preproc"
11302 fi
11303 ac_res=`eval 'as_val=${'$as_ac_Header'}
11304 $as_echo "$as_val"'`
11305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11306 $as_echo "$ac_res" >&6; }
11307
11308 fi
11309 as_val=`eval 'as_val=${'$as_ac_Header'}
11310 $as_echo "$as_val"'`
11311 if test "x$as_val" = x""yes; then
11312 cat >>confdefs.h <<_ACEOF
11313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11314 _ACEOF
11315 HAVE_CONFDB_H=yes
11316 else
11317 HAVE_CONFDB_H=no
11318 fi
11319
11320 done
11321
11322
11323 if test x$HAVE_CONFDB != xyes && \
11324 test x$HAVE_CONFDB_H = xyes; then
11325 check_lib_no_libs confdb confdb_initialize
11326 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11327 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
11328 CONFDB_LIBS="-lconfdb"
11329 HAVE_CONFDB=yes
11330 fi
11331
11332 if test x$BUILDCOROSYNC = xyes && \
11333 test x$HAVE_CONFDB != xyes &&
11334 test x$CLVMD != xall; then
11335 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11336 $as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11337 { (exit 1); exit 1; }; }
11338 fi
11339 fi
11340
11341 if test x$CHECKCPG = xyes; then
11342
11343 pkg_failed=no
11344 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11345 $as_echo_n "checking for CPG... " >&6; }
11346
11347 if test -n "$CPG_CFLAGS"; then
11348 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11349 elif test -n "$PKG_CONFIG"; then
11350 if test -n "$PKG_CONFIG" && \
11351 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11352 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11353 ac_status=$?
11354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; then
11356 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11357 else
11358 pkg_failed=yes
11359 fi
11360 else
11361 pkg_failed=untried
11362 fi
11363 if test -n "$CPG_LIBS"; then
11364 pkg_cv_CPG_LIBS="$CPG_LIBS"
11365 elif test -n "$PKG_CONFIG"; then
11366 if test -n "$PKG_CONFIG" && \
11367 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11368 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11369 ac_status=$?
11370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; then
11372 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11373 else
11374 pkg_failed=yes
11375 fi
11376 else
11377 pkg_failed=untried
11378 fi
11379
11380
11381
11382 if test $pkg_failed = yes; then
11383
11384 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11385 _pkg_short_errors_supported=yes
11386 else
11387 _pkg_short_errors_supported=no
11388 fi
11389 if test $_pkg_short_errors_supported = yes; then
11390 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11391 else
11392 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11393 fi
11394 # Put the nasty error message in config.log where it belongs
11395 echo "$CPG_PKG_ERRORS" >&5
11396
11397 { $as_echo "$as_me:$LINENO: result: no" >&5
11398 $as_echo "no" >&6; }
11399 $bailout
11400 elif test $pkg_failed = untried; then
11401 $bailout
11402 else
11403 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11404 CPG_LIBS=$pkg_cv_CPG_LIBS
11405 { $as_echo "$as_me:$LINENO: result: yes" >&5
11406 $as_echo "yes" >&6; }
11407 HAVE_CPG=yes
11408 fi
11409 fi
11410
11411 if test x$CHECKDLM = xyes; then
11412
11413 pkg_failed=no
11414 { $as_echo "$as_me:$LINENO: checking for DLM" >&5
11415 $as_echo_n "checking for DLM... " >&6; }
11416
11417 if test -n "$DLM_CFLAGS"; then
11418 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11419 elif test -n "$PKG_CONFIG"; then
11420 if test -n "$PKG_CONFIG" && \
11421 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11422 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11423 ac_status=$?
11424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; then
11426 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11427 else
11428 pkg_failed=yes
11429 fi
11430 else
11431 pkg_failed=untried
11432 fi
11433 if test -n "$DLM_LIBS"; then
11434 pkg_cv_DLM_LIBS="$DLM_LIBS"
11435 elif test -n "$PKG_CONFIG"; then
11436 if test -n "$PKG_CONFIG" && \
11437 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11438 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11439 ac_status=$?
11440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; then
11442 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11443 else
11444 pkg_failed=yes
11445 fi
11446 else
11447 pkg_failed=untried
11448 fi
11449
11450
11451
11452 if test $pkg_failed = yes; then
11453
11454 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11455 _pkg_short_errors_supported=yes
11456 else
11457 _pkg_short_errors_supported=no
11458 fi
11459 if test $_pkg_short_errors_supported = yes; then
11460 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11461 else
11462 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11463 fi
11464 # Put the nasty error message in config.log where it belongs
11465 echo "$DLM_PKG_ERRORS" >&5
11466
11467 { $as_echo "$as_me:$LINENO: result: no" >&5
11468 $as_echo "no" >&6; }
11469 NOTFOUND=0
11470
11471 for ac_header in libdlm.h
11472 do
11473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11475 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11476 $as_echo_n "checking for $ac_header... " >&6; }
11477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11478 $as_echo_n "(cached) " >&6
11479 fi
11480 ac_res=`eval 'as_val=${'$as_ac_Header'}
11481 $as_echo "$as_val"'`
11482 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11483 $as_echo "$ac_res" >&6; }
11484 else
11485 # Is the header compilable?
11486 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11487 $as_echo_n "checking $ac_header usability... " >&6; }
11488 cat >conftest.$ac_ext <<_ACEOF
11489 /* confdefs.h. */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 $ac_includes_default
11495 #include <$ac_header>
11496 _ACEOF
11497 rm -f conftest.$ac_objext
11498 if { (ac_try="$ac_compile"
11499 case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11502 esac
11503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11504 $as_echo "$ac_try_echo") >&5
11505 (eval "$ac_compile") 2>conftest.er1
11506 ac_status=$?
11507 grep -v '^ *+' conftest.er1 >conftest.err
11508 rm -f conftest.er1
11509 cat conftest.err >&5
11510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } && {
11512 test -z "$ac_c_werror_flag" ||
11513 test ! -s conftest.err
11514 } && test -s conftest.$ac_objext; then
11515 ac_header_compiler=yes
11516 else
11517 $as_echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11519
11520 ac_header_compiler=no
11521 fi
11522
11523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11524 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11525 $as_echo "$ac_header_compiler" >&6; }
11526
11527 # Is the header present?
11528 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11529 $as_echo_n "checking $ac_header presence... " >&6; }
11530 cat >conftest.$ac_ext <<_ACEOF
11531 /* confdefs.h. */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11536 #include <$ac_header>
11537 _ACEOF
11538 if { (ac_try="$ac_cpp conftest.$ac_ext"
11539 case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11542 esac
11543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11544 $as_echo "$ac_try_echo") >&5
11545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11546 ac_status=$?
11547 grep -v '^ *+' conftest.er1 >conftest.err
11548 rm -f conftest.er1
11549 cat conftest.err >&5
11550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } >/dev/null && {
11552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11553 test ! -s conftest.err
11554 }; then
11555 ac_header_preproc=yes
11556 else
11557 $as_echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560 ac_header_preproc=no
11561 fi
11562
11563 rm -f conftest.err conftest.$ac_ext
11564 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11565 $as_echo "$ac_header_preproc" >&6; }
11566
11567 # So? What about this header?
11568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11569 yes:no: )
11570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11571 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11573 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11574 ac_header_preproc=yes
11575 ;;
11576 no:yes:* )
11577 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11578 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11579 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11580 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11581 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11582 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11584 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11586 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11588 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11589
11590 ;;
11591 esac
11592 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11593 $as_echo_n "checking for $ac_header... " >&6; }
11594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595 $as_echo_n "(cached) " >&6
11596 else
11597 eval "$as_ac_Header=\$ac_header_preproc"
11598 fi
11599 ac_res=`eval 'as_val=${'$as_ac_Header'}
11600 $as_echo "$as_val"'`
11601 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11602 $as_echo "$ac_res" >&6; }
11603
11604 fi
11605 as_val=`eval 'as_val=${'$as_ac_Header'}
11606 $as_echo "$as_val"'`
11607 if test "x$as_val" = x""yes; then
11608 cat >>confdefs.h <<_ACEOF
11609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11610 _ACEOF
11611
11612 else
11613 $bailout
11614 fi
11615
11616 done
11617
11618 check_lib_no_libs dlm dlm_lock -lpthread
11619 if test $NOTFOUND = 0; then
11620 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11621 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11622 DLM_LIBS="-ldlm -lpthread"
11623 HAVE_DLM=yes
11624 fi
11625 elif test $pkg_failed = untried; then
11626 NOTFOUND=0
11627
11628 for ac_header in libdlm.h
11629 do
11630 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11633 $as_echo_n "checking for $ac_header... " >&6; }
11634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11635 $as_echo_n "(cached) " >&6
11636 fi
11637 ac_res=`eval 'as_val=${'$as_ac_Header'}
11638 $as_echo "$as_val"'`
11639 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11640 $as_echo "$ac_res" >&6; }
11641 else
11642 # Is the header compilable?
11643 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11644 $as_echo_n "checking $ac_header usability... " >&6; }
11645 cat >conftest.$ac_ext <<_ACEOF
11646 /* confdefs.h. */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 $ac_includes_default
11652 #include <$ac_header>
11653 _ACEOF
11654 rm -f conftest.$ac_objext
11655 if { (ac_try="$ac_compile"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659 esac
11660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11661 $as_echo "$ac_try_echo") >&5
11662 (eval "$ac_compile") 2>conftest.er1
11663 ac_status=$?
11664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
11667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } && {
11669 test -z "$ac_c_werror_flag" ||
11670 test ! -s conftest.err
11671 } && test -s conftest.$ac_objext; then
11672 ac_header_compiler=yes
11673 else
11674 $as_echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11676
11677 ac_header_compiler=no
11678 fi
11679
11680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11681 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11682 $as_echo "$ac_header_compiler" >&6; }
11683
11684 # Is the header present?
11685 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11686 $as_echo_n "checking $ac_header presence... " >&6; }
11687 cat >conftest.$ac_ext <<_ACEOF
11688 /* confdefs.h. */
11689 _ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h. */
11693 #include <$ac_header>
11694 _ACEOF
11695 if { (ac_try="$ac_cpp conftest.$ac_ext"
11696 case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11699 esac
11700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11701 $as_echo "$ac_try_echo") >&5
11702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11703 ac_status=$?
11704 grep -v '^ *+' conftest.er1 >conftest.err
11705 rm -f conftest.er1
11706 cat conftest.err >&5
11707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } >/dev/null && {
11709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11710 test ! -s conftest.err
11711 }; then
11712 ac_header_preproc=yes
11713 else
11714 $as_echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11716
11717 ac_header_preproc=no
11718 fi
11719
11720 rm -f conftest.err conftest.$ac_ext
11721 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11722 $as_echo "$ac_header_preproc" >&6; }
11723
11724 # So? What about this header?
11725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11726 yes:no: )
11727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11728 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11730 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11731 ac_header_preproc=yes
11732 ;;
11733 no:yes:* )
11734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11735 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11737 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11739 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11741 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11743 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11745 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11746
11747 ;;
11748 esac
11749 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11750 $as_echo_n "checking for $ac_header... " >&6; }
11751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752 $as_echo_n "(cached) " >&6
11753 else
11754 eval "$as_ac_Header=\$ac_header_preproc"
11755 fi
11756 ac_res=`eval 'as_val=${'$as_ac_Header'}
11757 $as_echo "$as_val"'`
11758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11759 $as_echo "$ac_res" >&6; }
11760
11761 fi
11762 as_val=`eval 'as_val=${'$as_ac_Header'}
11763 $as_echo "$as_val"'`
11764 if test "x$as_val" = x""yes; then
11765 cat >>confdefs.h <<_ACEOF
11766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11767 _ACEOF
11768
11769 else
11770 $bailout
11771 fi
11772
11773 done
11774
11775 check_lib_no_libs dlm dlm_lock -lpthread
11776 if test $NOTFOUND = 0; then
11777 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11778 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11779 DLM_LIBS="-ldlm -lpthread"
11780 HAVE_DLM=yes
11781 fi
11782 else
11783 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11784 DLM_LIBS=$pkg_cv_DLM_LIBS
11785 { $as_echo "$as_me:$LINENO: result: yes" >&5
11786 $as_echo "yes" >&6; }
11787 HAVE_DLM=yes
11788 fi
11789 fi
11790
11791 if test x$CLVMD = xall; then
11792 CLVMD=none
11793 if test x$HAVE_CCS = xyes && \
11794 test x$HAVE_GULM = xyes; then
11795 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11796 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
11797 CLVMD="$CLVMD,gulm"
11798 fi
11799 if test x$HAVE_CMAN = xyes && \
11800 test x$HAVE_DLM = xyes; then
11801 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11802 $as_echo "Enabling clvmd cman cluster manager" >&6; }
11803 CLVMD="$CLVMD,cman"
11804 fi
11805 if test x$HAVE_COROSYNC = xyes && \
11806 test x$HAVE_QUORUM = xyes && \
11807 test x$HAVE_CPG = xyes && \
11808 test x$HAVE_DLM = xyes && \
11809 test x$HAVE_CONFDB = xyes; then
11810 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11811 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
11812 CLVMD="$CLVMD,corosync"
11813 fi
11814 if test x$HAVE_COROSYNC = xyes && \
11815 test x$HAVE_CPG = xyes && \
11816 test x$HAVE_SALCK = xyes; then
11817 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11818 $as_echo "Enabling clvmd openais cluster manager" >&6; }
11819 CLVMD="$CLVMD,openais"
11820 fi
11821 if test x$CLVMD = xnone; then
11822 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11823 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
11824 fi
11825 fi
11826
11827 ################################################################################
11828 { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11829 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11830 # Check whether --enable-cmirrord was given.
11831 if test "${enable_cmirrord+set}" = set; then
11832 enableval=$enable_cmirrord; CMIRRORD=$enableval
11833 else
11834 CMIRRORD=no
11835 fi
11836
11837 { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11838 $as_echo "$CMIRRORD" >&6; }
11839
11840 BUILD_CMIRRORD=$CMIRRORD
11841
11842 ################################################################################
11843
11844
11845 if test "x$BUILD_CMIRRORD" = xyes; then
11846
11847 # Check whether --with-cmirrord-pidfile was given.
11848 if test "${with_cmirrord_pidfile+set}" = set; then
11849 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11850 #define CMIRRORD_PIDFILE "$withval"
11851 _ACEOF
11852
11853 else
11854 cat >>confdefs.h <<_ACEOF
11855 #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11856 _ACEOF
11857
11858 fi
11859
11860 fi
11861
11862 ################################################################################
11863 if [ "x$BUILD_CMIRRORD" = xyes ]; then
11864 if test x$PKGCONFIG_INIT != x1; then
11865 pkg_config_init
11866 fi
11867
11868 pkg_failed=no
11869 { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11870 $as_echo_n "checking for SACKPT... " >&6; }
11871
11872 if test -n "$SACKPT_CFLAGS"; then
11873 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11874 elif test -n "$PKG_CONFIG"; then
11875 if test -n "$PKG_CONFIG" && \
11876 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11877 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11878 ac_status=$?
11879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; then
11881 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11882 else
11883 pkg_failed=yes
11884 fi
11885 else
11886 pkg_failed=untried
11887 fi
11888 if test -n "$SACKPT_LIBS"; then
11889 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11890 elif test -n "$PKG_CONFIG"; then
11891 if test -n "$PKG_CONFIG" && \
11892 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11893 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11894 ac_status=$?
11895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; then
11897 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11898 else
11899 pkg_failed=yes
11900 fi
11901 else
11902 pkg_failed=untried
11903 fi
11904
11905
11906
11907 if test $pkg_failed = yes; then
11908
11909 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11910 _pkg_short_errors_supported=yes
11911 else
11912 _pkg_short_errors_supported=no
11913 fi
11914 if test $_pkg_short_errors_supported = yes; then
11915 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11916 else
11917 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11918 fi
11919 # Put the nasty error message in config.log where it belongs
11920 echo "$SACKPT_PKG_ERRORS" >&5
11921
11922 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11923
11924 $SACKPT_PKG_ERRORS
11925
11926 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11927 installed software in a non-standard prefix.
11928
11929 Alternatively, you may set the environment variables SACKPT_CFLAGS
11930 and SACKPT_LIBS to avoid the need to call pkg-config.
11931 See the pkg-config man page for more details.
11932 " >&5
11933 $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11934
11935 $SACKPT_PKG_ERRORS
11936
11937 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11938 installed software in a non-standard prefix.
11939
11940 Alternatively, you may set the environment variables SACKPT_CFLAGS
11941 and SACKPT_LIBS to avoid the need to call pkg-config.
11942 See the pkg-config man page for more details.
11943 " >&2;}
11944 { (exit 1); exit 1; }; }
11945 elif test $pkg_failed = untried; then
11946 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11948 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11949 is in your PATH or set the PKG_CONFIG environment variable to the full
11950 path to pkg-config.
11951
11952 Alternatively, you may set the environment variables SACKPT_CFLAGS
11953 and SACKPT_LIBS to avoid the need to call pkg-config.
11954 See the pkg-config man page for more details.
11955
11956 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11957 See \`config.log' for more details." >&5
11958 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11959 is in your PATH or set the PKG_CONFIG environment variable to the full
11960 path to pkg-config.
11961
11962 Alternatively, you may set the environment variables SACKPT_CFLAGS
11963 and SACKPT_LIBS to avoid the need to call pkg-config.
11964 See the pkg-config man page for more details.
11965
11966 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11967 See \`config.log' for more details." >&2;}
11968 { (exit 1); exit 1; }; }; }
11969 else
11970 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11971 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11972 { $as_echo "$as_me:$LINENO: result: yes" >&5
11973 $as_echo "yes" >&6; }
11974 :
11975 fi
11976 if test x$HAVE_CPG != xyes; then
11977
11978 pkg_failed=no
11979 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11980 $as_echo_n "checking for CPG... " >&6; }
11981
11982 if test -n "$CPG_CFLAGS"; then
11983 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11984 elif test -n "$PKG_CONFIG"; then
11985 if test -n "$PKG_CONFIG" && \
11986 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11987 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11988 ac_status=$?
11989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; then
11991 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11992 else
11993 pkg_failed=yes
11994 fi
11995 else
11996 pkg_failed=untried
11997 fi
11998 if test -n "$CPG_LIBS"; then
11999 pkg_cv_CPG_LIBS="$CPG_LIBS"
12000 elif test -n "$PKG_CONFIG"; then
12001 if test -n "$PKG_CONFIG" && \
12002 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
12003 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
12004 ac_status=$?
12005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; then
12007 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
12008 else
12009 pkg_failed=yes
12010 fi
12011 else
12012 pkg_failed=untried
12013 fi
12014
12015
12016
12017 if test $pkg_failed = yes; then
12018
12019 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12020 _pkg_short_errors_supported=yes
12021 else
12022 _pkg_short_errors_supported=no
12023 fi
12024 if test $_pkg_short_errors_supported = yes; then
12025 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
12026 else
12027 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
12028 fi
12029 # Put the nasty error message in config.log where it belongs
12030 echo "$CPG_PKG_ERRORS" >&5
12031
12032 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
12033
12034 $CPG_PKG_ERRORS
12035
12036 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12037 installed software in a non-standard prefix.
12038
12039 Alternatively, you may set the environment variables CPG_CFLAGS
12040 and CPG_LIBS to avoid the need to call pkg-config.
12041 See the pkg-config man page for more details.
12042 " >&5
12043 $as_echo "$as_me: error: Package requirements (libcpg) were not met:
12044
12045 $CPG_PKG_ERRORS
12046
12047 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12048 installed software in a non-standard prefix.
12049
12050 Alternatively, you may set the environment variables CPG_CFLAGS
12051 and CPG_LIBS to avoid the need to call pkg-config.
12052 See the pkg-config man page for more details.
12053 " >&2;}
12054 { (exit 1); exit 1; }; }
12055 elif test $pkg_failed = untried; then
12056 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12058 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12059 is in your PATH or set the PKG_CONFIG environment variable to the full
12060 path to pkg-config.
12061
12062 Alternatively, you may set the environment variables CPG_CFLAGS
12063 and CPG_LIBS to avoid the need to call pkg-config.
12064 See the pkg-config man page for more details.
12065
12066 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12067 See \`config.log' for more details." >&5
12068 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12069 is in your PATH or set the PKG_CONFIG environment variable to the full
12070 path to pkg-config.
12071
12072 Alternatively, you may set the environment variables CPG_CFLAGS
12073 and CPG_LIBS to avoid the need to call pkg-config.
12074 See the pkg-config man page for more details.
12075
12076 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12077 See \`config.log' for more details." >&2;}
12078 { (exit 1); exit 1; }; }; }
12079 else
12080 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12081 CPG_LIBS=$pkg_cv_CPG_LIBS
12082 { $as_echo "$as_me:$LINENO: result: yes" >&5
12083 $as_echo "yes" >&6; }
12084 :
12085 fi
12086 fi
12087 fi
12088
12089 ################################################################################
12090 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12091 $as_echo_n "checking whether to enable debugging... " >&6; }
12092 # Check whether --enable-debug was given.
12093 if test "${enable_debug+set}" = set; then
12094 enableval=$enable_debug; DEBUG=$enableval
12095 else
12096 DEBUG=no
12097 fi
12098
12099 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12100 $as_echo "$DEBUG" >&6; }
12101
12102 if test x$DEBUG = xyes; then
12103 COPTIMISE_FLAG=
12104 else
12105 CSCOPE_CMD=
12106 fi
12107
12108 ################################################################################
12109 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12110 $as_echo_n "checking for C optimisation flag... " >&6; }
12111
12112 # Check whether --with-optimisation was given.
12113 if test "${with_optimisation+set}" = set; then
12114 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
12115 fi
12116
12117 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12118 $as_echo "$COPTIMISE_FLAG" >&6; }
12119
12120 ################################################################################
12121 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12122 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12123 # Check whether --enable-profiling was given.
12124 if test "${enable_profiling+set}" = set; then
12125 enableval=$enable_profiling; PROFILING=$enableval
12126 else
12127 PROFILING=no
12128 fi
12129
12130 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12131 $as_echo "$PROFILING" >&6; }
12132
12133 if test "x$PROFILING" = xyes; then
12134 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12135 # Extract the first word of "lcov", so it can be a program name with args.
12136 set dummy lcov; ac_word=$2
12137 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12138 $as_echo_n "checking for $ac_word... " >&6; }
12139 if test "${ac_cv_path_LCOV+set}" = set; then
12140 $as_echo_n "(cached) " >&6
12141 else
12142 case $LCOV in
12143 [\\/]* | ?:[\\/]*)
12144 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12145 ;;
12146 *)
12147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148 for as_dir in $PATH
12149 do
12150 IFS=$as_save_IFS
12151 test -z "$as_dir" && as_dir=.
12152 for ac_exec_ext in '' $ac_executable_extensions; do
12153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12154 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
12155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12156 break 2
12157 fi
12158 done
12159 done
12160 IFS=$as_save_IFS
12161
12162 ;;
12163 esac
12164 fi
12165 LCOV=$ac_cv_path_LCOV
12166 if test -n "$LCOV"; then
12167 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12168 $as_echo "$LCOV" >&6; }
12169 else
12170 { $as_echo "$as_me:$LINENO: result: no" >&5
12171 $as_echo "no" >&6; }
12172 fi
12173
12174
12175 # Extract the first word of "genhtml", so it can be a program name with args.
12176 set dummy genhtml; ac_word=$2
12177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12178 $as_echo_n "checking for $ac_word... " >&6; }
12179 if test "${ac_cv_path_GENHTML+set}" = set; then
12180 $as_echo_n "(cached) " >&6
12181 else
12182 case $GENHTML in
12183 [\\/]* | ?:[\\/]*)
12184 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12185 ;;
12186 *)
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12189 do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12194 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
12195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 break 2
12197 fi
12198 done
12199 done
12200 IFS=$as_save_IFS
12201
12202 ;;
12203 esac
12204 fi
12205 GENHTML=$ac_cv_path_GENHTML
12206 if test -n "$GENHTML"; then
12207 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12208 $as_echo "$GENHTML" >&6; }
12209 else
12210 { $as_echo "$as_me:$LINENO: result: no" >&5
12211 $as_echo "no" >&6; }
12212 fi
12213
12214
12215 if test -z "$LCOV" -o -z "$GENHTML"; then
12216 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12217 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
12218 { (exit 1); exit 1; }; }
12219 fi
12220 # Extract the first word of "genpng", so it can be a program name with args.
12221 set dummy genpng; ac_word=$2
12222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12223 $as_echo_n "checking for $ac_word... " >&6; }
12224 if test "${ac_cv_path_GENPNG+set}" = set; then
12225 $as_echo_n "(cached) " >&6
12226 else
12227 case $GENPNG in
12228 [\\/]* | ?:[\\/]*)
12229 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
12230 ;;
12231 *)
12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233 for as_dir in $PATH
12234 do
12235 IFS=$as_save_IFS
12236 test -z "$as_dir" && as_dir=.
12237 for ac_exec_ext in '' $ac_executable_extensions; do
12238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12239 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
12240 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12241 break 2
12242 fi
12243 done
12244 done
12245 IFS=$as_save_IFS
12246
12247 ;;
12248 esac
12249 fi
12250 GENPNG=$ac_cv_path_GENPNG
12251 if test -n "$GENPNG"; then
12252 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
12253 $as_echo "$GENPNG" >&6; }
12254 else
12255 { $as_echo "$as_me:$LINENO: result: no" >&5
12256 $as_echo "no" >&6; }
12257 fi
12258
12259
12260 if test -n "$GENPNG"; then
12261 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
12262 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
12263 if $GENPNG --help > /dev/null 2>&1 ; then
12264 { $as_echo "$as_me:$LINENO: result: ok" >&5
12265 $as_echo "ok" >&6; }
12266 GENHTML="$GENHTML --frames"
12267 else
12268 { $as_echo "$as_me:$LINENO: result: not supported" >&5
12269 $as_echo "not supported" >&6; }
12270 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
12271 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
12272 GENPNG=
12273 fi
12274 fi
12275 fi
12276
12277 ################################################################################
12278 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12279 $as_echo_n "checking whether to use device-mapper... " >&6; }
12280 # Check whether --enable-devmapper was given.
12281 if test "${enable_devmapper+set}" = set; then
12282 enableval=$enable_devmapper; DEVMAPPER=$enableval
12283 fi
12284
12285 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12286 $as_echo "$DEVMAPPER" >&6; }
12287
12288 if test x$DEVMAPPER = xyes; then
12289
12290 cat >>confdefs.h <<\_ACEOF
12291 #define DEVMAPPER_SUPPORT 1
12292 _ACEOF
12293
12294 fi
12295
12296 ################################################################################
12297 { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12298 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12299 # Check whether --enable-udev_sync was given.
12300 if test "${enable_udev_sync+set}" = set; then
12301 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12302 else
12303 UDEV_SYNC=no
12304 fi
12305
12306 { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12307 $as_echo "$UDEV_SYNC" >&6; }
12308
12309 if test x$UDEV_SYNC = xyes; then
12310 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12311 $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12312 if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12313 $as_echo_n "(cached) " >&6
12314 else
12315 ac_check_lib_save_LIBS=$LIBS
12316 LIBS="-ludev $LIBS"
12317 cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h. */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12323
12324 /* Override any GCC internal prototype to avoid an error.
12325 Use char because int might match the return type of a GCC
12326 builtin and then its argument prototype would still apply. */
12327 #ifdef __cplusplus
12328 extern "C"
12329 #endif
12330 char udev_queue_get_udev_is_active ();
12331 int
12332 main ()
12333 {
12334 return udev_queue_get_udev_is_active ();
12335 ;
12336 return 0;
12337 }
12338 _ACEOF
12339 rm -f conftest.$ac_objext conftest$ac_exeext
12340 if { (ac_try="$ac_link"
12341 case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12344 esac
12345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12346 $as_echo "$ac_try_echo") >&5
12347 (eval "$ac_link") 2>conftest.er1
12348 ac_status=$?
12349 grep -v '^ *+' conftest.er1 >conftest.err
12350 rm -f conftest.er1
12351 cat conftest.err >&5
12352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } && {
12354 test -z "$ac_c_werror_flag" ||
12355 test ! -s conftest.err
12356 } && test -s conftest$ac_exeext && {
12357 test "$cross_compiling" = yes ||
12358 $as_test_x conftest$ac_exeext
12359 }; then
12360 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12361 else
12362 $as_echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12364
12365 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12366 fi
12367
12368 rm -rf conftest.dSYM
12369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12370 conftest$ac_exeext conftest.$ac_ext
12371 LIBS=$ac_check_lib_save_LIBS
12372 fi
12373 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12374 $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12375 if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
12376 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
12377 else
12378 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
12379 $as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
12380 { (exit 1); exit 1; }; }
12381 fi
12382
12383
12384 cat >>confdefs.h <<\_ACEOF
12385 #define UDEV_SYNC_SUPPORT 1
12386 _ACEOF
12387
12388 fi
12389
12390 { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12391 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12392 # Check whether --enable-udev_rules was given.
12393 if test "${enable_udev_rules+set}" = set; then
12394 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12395 else
12396 UDEV_RULES=$UDEV_SYNC
12397 fi
12398
12399 { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12400 $as_echo "$UDEV_RULES" >&6; }
12401
12402 ################################################################################
12403 # Check whether --enable-compat was given.
12404 if test "${enable_compat+set}" = set; then
12405 enableval=$enable_compat; DM_COMPAT=$enableval
12406 else
12407 DM_COMPAT=no
12408 fi
12409
12410
12411 ################################################################################
12412 # Check whether --enable-units-compat was given.
12413 if test "${enable_units_compat+set}" = set; then
12414 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12415 else
12416 UNITS_COMPAT=no
12417 fi
12418
12419
12420 if test x$UNITS_COMPAT = xyes; then
12421
12422 cat >>confdefs.h <<\_ACEOF
12423 #define DEFAULT_SI_UNIT_CONSISTENCY 0
12424 _ACEOF
12425
12426 fi
12427
12428 ################################################################################
12429 # Check whether --enable-ioctl was given.
12430 if test "${enable_ioctl+set}" = set; then
12431 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12432 fi
12433
12434
12435 ################################################################################
12436 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12437 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
12438 # Check whether --enable-o_direct was given.
12439 if test "${enable_o_direct+set}" = set; then
12440 enableval=$enable_o_direct; ODIRECT=$enableval
12441 fi
12442
12443 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12444 $as_echo "$ODIRECT" >&6; }
12445
12446 if test x$ODIRECT = xyes; then
12447
12448 cat >>confdefs.h <<\_ACEOF
12449 #define O_DIRECT_SUPPORT 1
12450 _ACEOF
12451
12452 fi
12453
12454 ################################################################################
12455 { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12456 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12457 # Check whether --enable-applib was given.
12458 if test "${enable_applib+set}" = set; then
12459 enableval=$enable_applib; APPLIB=$enableval
12460 else
12461 APPLIB=no
12462 fi
12463
12464 { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12465 $as_echo "$APPLIB" >&6; }
12466
12467 test x$APPLIB = xyes \
12468 && LVM2APP_LIB=-llvm2app \
12469 || LVM2APP_LIB=
12470
12471 ################################################################################
12472 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12473 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
12474 # Check whether --enable-cmdlib was given.
12475 if test "${enable_cmdlib+set}" = set; then
12476 enableval=$enable_cmdlib; CMDLIB=$enableval
12477 else
12478 CMDLIB=no
12479 fi
12480
12481 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12482 $as_echo "$CMDLIB" >&6; }
12483
12484 test x$CMDLIB = xyes \
12485 && LVM2CMD_LIB=-llvm2cmd \
12486 || LVM2CMD_LIB=
12487
12488 ################################################################################
12489 # Check whether --enable-pkgconfig was given.
12490 if test "${enable_pkgconfig+set}" = set; then
12491 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12492 else
12493 PKGCONFIG=no
12494 fi
12495
12496
12497 ################################################################################
12498 # Check whether --enable-write_install was given.
12499 if test "${enable_write_install+set}" = set; then
12500 enableval=$enable_write_install; WRITE_INSTALL=$enableval
12501 else
12502 WRITE_INSTALL=no
12503 fi
12504
12505
12506 ################################################################################
12507 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12508 $as_echo_n "checking whether to install fsadm... " >&6; }
12509 # Check whether --enable-fsadm was given.
12510 if test "${enable_fsadm+set}" = set; then
12511 enableval=$enable_fsadm; FSADM=$enableval
12512 fi
12513
12514 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12515 $as_echo "$FSADM" >&6; }
12516
12517 ################################################################################
12518 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12519 $as_echo_n "checking whether to use dmeventd... " >&6; }
12520 # Check whether --enable-dmeventd was given.
12521 if test "${enable_dmeventd+set}" = set; then
12522 enableval=$enable_dmeventd; DMEVENTD=$enableval
12523 fi
12524
12525 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12526 $as_echo "$DMEVENTD" >&6; }
12527
12528 BUILD_DMEVENTD=$DMEVENTD
12529
12530 if test x$DMEVENTD = xyes; then
12531 if test x$MIRRORS != xinternal; then
12532 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
12533 " >&5
12534 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
12535 " >&2;}
12536 { (exit 1); exit 1; }; }
12537 fi
12538 if test x$CMDLIB = xno; then
12539 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12540 " >&5
12541 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12542 " >&2;}
12543 { (exit 1); exit 1; }; }
12544 fi
12545 fi
12546
12547 if test x$DMEVENTD = xyes; then
12548
12549 cat >>confdefs.h <<\_ACEOF
12550 #define DMEVENTD 1
12551 _ACEOF
12552
12553 fi
12554
12555 ################################################################################
12556
12557 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12558 $as_echo_n "checking for getline in -lc... " >&6; }
12559 if test "${ac_cv_lib_c_getline+set}" = set; then
12560 $as_echo_n "(cached) " >&6
12561 else
12562 ac_check_lib_save_LIBS=$LIBS
12563 LIBS="-lc $LIBS"
12564 cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h. */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570
12571 /* Override any GCC internal prototype to avoid an error.
12572 Use char because int might match the return type of a GCC
12573 builtin and then its argument prototype would still apply. */
12574 #ifdef __cplusplus
12575 extern "C"
12576 #endif
12577 char getline ();
12578 int
12579 main ()
12580 {
12581 return getline ();
12582 ;
12583 return 0;
12584 }
12585 _ACEOF
12586 rm -f conftest.$ac_objext conftest$ac_exeext
12587 if { (ac_try="$ac_link"
12588 case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12591 esac
12592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12593 $as_echo "$ac_try_echo") >&5
12594 (eval "$ac_link") 2>conftest.er1
12595 ac_status=$?
12596 grep -v '^ *+' conftest.er1 >conftest.err
12597 rm -f conftest.er1
12598 cat conftest.err >&5
12599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } && {
12601 test -z "$ac_c_werror_flag" ||
12602 test ! -s conftest.err
12603 } && test -s conftest$ac_exeext && {
12604 test "$cross_compiling" = yes ||
12605 $as_test_x conftest$ac_exeext
12606 }; then
12607 ac_cv_lib_c_getline=yes
12608 else
12609 $as_echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12611
12612 ac_cv_lib_c_getline=no
12613 fi
12614
12615 rm -rf conftest.dSYM
12616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12617 conftest$ac_exeext conftest.$ac_ext
12618 LIBS=$ac_check_lib_save_LIBS
12619 fi
12620 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12621 $as_echo "$ac_cv_lib_c_getline" >&6; }
12622 if test "x$ac_cv_lib_c_getline" = x""yes; then
12623
12624 cat >>confdefs.h <<\_ACEOF
12625 #define HAVE_GETLINE 1
12626 _ACEOF
12627
12628 fi
12629
12630
12631 ################################################################################
12632
12633 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12634 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
12635 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
12636 $as_echo_n "(cached) " >&6
12637 else
12638 ac_check_lib_save_LIBS=$LIBS
12639 LIBS="-lc $LIBS"
12640 cat >conftest.$ac_ext <<_ACEOF
12641 /* confdefs.h. */
12642 _ACEOF
12643 cat confdefs.h >>conftest.$ac_ext
12644 cat >>conftest.$ac_ext <<_ACEOF
12645 /* end confdefs.h. */
12646
12647 /* Override any GCC internal prototype to avoid an error.
12648 Use char because int might match the return type of a GCC
12649 builtin and then its argument prototype would still apply. */
12650 #ifdef __cplusplus
12651 extern "C"
12652 #endif
12653 char canonicalize_file_name ();
12654 int
12655 main ()
12656 {
12657 return canonicalize_file_name ();
12658 ;
12659 return 0;
12660 }
12661 _ACEOF
12662 rm -f conftest.$ac_objext conftest$ac_exeext
12663 if { (ac_try="$ac_link"
12664 case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667 esac
12668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12669 $as_echo "$ac_try_echo") >&5
12670 (eval "$ac_link") 2>conftest.er1
12671 ac_status=$?
12672 grep -v '^ *+' conftest.er1 >conftest.err
12673 rm -f conftest.er1
12674 cat conftest.err >&5
12675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } && {
12677 test -z "$ac_c_werror_flag" ||
12678 test ! -s conftest.err
12679 } && test -s conftest$ac_exeext && {
12680 test "$cross_compiling" = yes ||
12681 $as_test_x conftest$ac_exeext
12682 }; then
12683 ac_cv_lib_c_canonicalize_file_name=yes
12684 else
12685 $as_echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12687
12688 ac_cv_lib_c_canonicalize_file_name=no
12689 fi
12690
12691 rm -rf conftest.dSYM
12692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12693 conftest$ac_exeext conftest.$ac_ext
12694 LIBS=$ac_check_lib_save_LIBS
12695 fi
12696 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12697 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12698 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
12699
12700 cat >>confdefs.h <<\_ACEOF
12701 #define HAVE_CANONICALIZE_FILE_NAME 1
12702 _ACEOF
12703
12704 fi
12705
12706
12707 ################################################################################
12708 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12709 then exec_prefix="";
12710 fi;
12711
12712 ################################################################################
12713 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12714 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12716 $as_echo_n "(cached) " >&6
12717 else
12718 ac_check_lib_save_LIBS=$LIBS
12719 LIBS="-ldl $LIBS"
12720 cat >conftest.$ac_ext <<_ACEOF
12721 /* confdefs.h. */
12722 _ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h. */
12726
12727 /* Override any GCC internal prototype to avoid an error.
12728 Use char because int might match the return type of a GCC
12729 builtin and then its argument prototype would still apply. */
12730 #ifdef __cplusplus
12731 extern "C"
12732 #endif
12733 char dlopen ();
12734 int
12735 main ()
12736 {
12737 return dlopen ();
12738 ;
12739 return 0;
12740 }
12741 _ACEOF
12742 rm -f conftest.$ac_objext conftest$ac_exeext
12743 if { (ac_try="$ac_link"
12744 case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12747 esac
12748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12749 $as_echo "$ac_try_echo") >&5
12750 (eval "$ac_link") 2>conftest.er1
12751 ac_status=$?
12752 grep -v '^ *+' conftest.er1 >conftest.err
12753 rm -f conftest.er1
12754 cat conftest.err >&5
12755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } && {
12757 test -z "$ac_c_werror_flag" ||
12758 test ! -s conftest.err
12759 } && test -s conftest$ac_exeext && {
12760 test "$cross_compiling" = yes ||
12761 $as_test_x conftest$ac_exeext
12762 }; then
12763 ac_cv_lib_dl_dlopen=yes
12764 else
12765 $as_echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12767
12768 ac_cv_lib_dl_dlopen=no
12769 fi
12770
12771 rm -rf conftest.dSYM
12772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12773 conftest$ac_exeext conftest.$ac_ext
12774 LIBS=$ac_check_lib_save_LIBS
12775 fi
12776 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12777 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12778 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12779
12780
12781 cat >>confdefs.h <<\_ACEOF
12782 #define HAVE_LIBDL 1
12783 _ACEOF
12784
12785 DL_LIBS="-ldl"
12786 HAVE_LIBDL=yes
12787 else
12788
12789 DL_LIBS=
12790 HAVE_LIBDL=no
12791 fi
12792
12793
12794 ################################################################################
12795 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12796 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12797 \) -a "x$STATIC_LINK" = xyes ];
12798 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
12799 " >&5
12800 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
12801 " >&2;}
12802 { (exit 1); exit 1; }; }
12803 fi
12804
12805 ################################################################################
12806 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
12807 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
12808 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12809 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
12810 $as_echo_n "(cached) " >&6
12811 else
12812 ac_check_lib_save_LIBS=$LIBS
12813 LIBS="-lpthread $LIBS"
12814 cat >conftest.$ac_ext <<_ACEOF
12815 /* confdefs.h. */
12816 _ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12820
12821 /* Override any GCC internal prototype to avoid an error.
12822 Use char because int might match the return type of a GCC
12823 builtin and then its argument prototype would still apply. */
12824 #ifdef __cplusplus
12825 extern "C"
12826 #endif
12827 char pthread_mutex_lock ();
12828 int
12829 main ()
12830 {
12831 return pthread_mutex_lock ();
12832 ;
12833 return 0;
12834 }
12835 _ACEOF
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (ac_try="$ac_link"
12838 case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12841 esac
12842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12843 $as_echo "$ac_try_echo") >&5
12844 (eval "$ac_link") 2>conftest.er1
12845 ac_status=$?
12846 grep -v '^ *+' conftest.er1 >conftest.err
12847 rm -f conftest.er1
12848 cat conftest.err >&5
12849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } && {
12851 test -z "$ac_c_werror_flag" ||
12852 test ! -s conftest.err
12853 } && test -s conftest$ac_exeext && {
12854 test "$cross_compiling" = yes ||
12855 $as_test_x conftest$ac_exeext
12856 }; then
12857 ac_cv_lib_pthread_pthread_mutex_lock=yes
12858 else
12859 $as_echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12861
12862 ac_cv_lib_pthread_pthread_mutex_lock=no
12863 fi
12864
12865 rm -rf conftest.dSYM
12866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12867 conftest$ac_exeext conftest.$ac_ext
12868 LIBS=$ac_check_lib_save_LIBS
12869 fi
12870 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12871 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12872 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
12873 PTHREAD_LIBS="-lpthread"
12874 else
12875 hard_bailout
12876 fi
12877
12878 fi
12879
12880 ################################################################################
12881 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12882 $as_echo_n "checking whether to enable selinux support... " >&6; }
12883 # Check whether --enable-selinux was given.
12884 if test "${enable_selinux+set}" = set; then
12885 enableval=$enable_selinux; SELINUX=$enableval
12886 fi
12887
12888 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12889 $as_echo "$SELINUX" >&6; }
12890
12891 ################################################################################
12892 if test x$SELINUX = xyes; then
12893 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12894 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
12895 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
12896 $as_echo_n "(cached) " >&6
12897 else
12898 ac_check_lib_save_LIBS=$LIBS
12899 LIBS="-lsepol $LIBS"
12900 cat >conftest.$ac_ext <<_ACEOF
12901 /* confdefs.h. */
12902 _ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12906
12907 /* Override any GCC internal prototype to avoid an error.
12908 Use char because int might match the return type of a GCC
12909 builtin and then its argument prototype would still apply. */
12910 #ifdef __cplusplus
12911 extern "C"
12912 #endif
12913 char sepol_check_context ();
12914 int
12915 main ()
12916 {
12917 return sepol_check_context ();
12918 ;
12919 return 0;
12920 }
12921 _ACEOF
12922 rm -f conftest.$ac_objext conftest$ac_exeext
12923 if { (ac_try="$ac_link"
12924 case "(($ac_try" in
12925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926 *) ac_try_echo=$ac_try;;
12927 esac
12928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12929 $as_echo "$ac_try_echo") >&5
12930 (eval "$ac_link") 2>conftest.er1
12931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } && {
12937 test -z "$ac_c_werror_flag" ||
12938 test ! -s conftest.err
12939 } && test -s conftest$ac_exeext && {
12940 test "$cross_compiling" = yes ||
12941 $as_test_x conftest$ac_exeext
12942 }; then
12943 ac_cv_lib_sepol_sepol_check_context=yes
12944 else
12945 $as_echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12947
12948 ac_cv_lib_sepol_sepol_check_context=no
12949 fi
12950
12951 rm -rf conftest.dSYM
12952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12953 conftest$ac_exeext conftest.$ac_ext
12954 LIBS=$ac_check_lib_save_LIBS
12955 fi
12956 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12957 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12958 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
12959
12960
12961 cat >>confdefs.h <<\_ACEOF
12962 #define HAVE_SEPOL 1
12963 _ACEOF
12964
12965 SELINUX_LIBS="-lsepol"
12966 fi
12967
12968
12969 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12970 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
12971 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
12972 $as_echo_n "(cached) " >&6
12973 else
12974 ac_check_lib_save_LIBS=$LIBS
12975 LIBS="-lselinux $LIBS"
12976 cat >conftest.$ac_ext <<_ACEOF
12977 /* confdefs.h. */
12978 _ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h. */
12982
12983 /* Override any GCC internal prototype to avoid an error.
12984 Use char because int might match the return type of a GCC
12985 builtin and then its argument prototype would still apply. */
12986 #ifdef __cplusplus
12987 extern "C"
12988 #endif
12989 char is_selinux_enabled ();
12990 int
12991 main ()
12992 {
12993 return is_selinux_enabled ();
12994 ;
12995 return 0;
12996 }
12997 _ACEOF
12998 rm -f conftest.$ac_objext conftest$ac_exeext
12999 if { (ac_try="$ac_link"
13000 case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13003 esac
13004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13005 $as_echo "$ac_try_echo") >&5
13006 (eval "$ac_link") 2>conftest.er1
13007 ac_status=$?
13008 grep -v '^ *+' conftest.er1 >conftest.err
13009 rm -f conftest.er1
13010 cat conftest.err >&5
13011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } && {
13013 test -z "$ac_c_werror_flag" ||
13014 test ! -s conftest.err
13015 } && test -s conftest$ac_exeext && {
13016 test "$cross_compiling" = yes ||
13017 $as_test_x conftest$ac_exeext
13018 }; then
13019 ac_cv_lib_selinux_is_selinux_enabled=yes
13020 else
13021 $as_echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13023
13024 ac_cv_lib_selinux_is_selinux_enabled=no
13025 fi
13026
13027 rm -rf conftest.dSYM
13028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13029 conftest$ac_exeext conftest.$ac_ext
13030 LIBS=$ac_check_lib_save_LIBS
13031 fi
13032 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
13033 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
13034 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
13035
13036
13037 for ac_header in selinux/selinux.h
13038 do
13039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13041 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13042 $as_echo_n "checking for $ac_header... " >&6; }
13043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13044 $as_echo_n "(cached) " >&6
13045 fi
13046 ac_res=`eval 'as_val=${'$as_ac_Header'}
13047 $as_echo "$as_val"'`
13048 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13049 $as_echo "$ac_res" >&6; }
13050 else
13051 # Is the header compilable?
13052 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13053 $as_echo_n "checking $ac_header usability... " >&6; }
13054 cat >conftest.$ac_ext <<_ACEOF
13055 /* confdefs.h. */
13056 _ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13060 $ac_includes_default
13061 #include <$ac_header>
13062 _ACEOF
13063 rm -f conftest.$ac_objext
13064 if { (ac_try="$ac_compile"
13065 case "(($ac_try" in
13066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067 *) ac_try_echo=$ac_try;;
13068 esac
13069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13070 $as_echo "$ac_try_echo") >&5
13071 (eval "$ac_compile") 2>conftest.er1
13072 ac_status=$?
13073 grep -v '^ *+' conftest.er1 >conftest.err
13074 rm -f conftest.er1
13075 cat conftest.err >&5
13076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } && {
13078 test -z "$ac_c_werror_flag" ||
13079 test ! -s conftest.err
13080 } && test -s conftest.$ac_objext; then
13081 ac_header_compiler=yes
13082 else
13083 $as_echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13085
13086 ac_header_compiler=no
13087 fi
13088
13089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13090 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13091 $as_echo "$ac_header_compiler" >&6; }
13092
13093 # Is the header present?
13094 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13095 $as_echo_n "checking $ac_header presence... " >&6; }
13096 cat >conftest.$ac_ext <<_ACEOF
13097 /* confdefs.h. */
13098 _ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13102 #include <$ac_header>
13103 _ACEOF
13104 if { (ac_try="$ac_cpp conftest.$ac_ext"
13105 case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13108 esac
13109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13110 $as_echo "$ac_try_echo") >&5
13111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13112 ac_status=$?
13113 grep -v '^ *+' conftest.er1 >conftest.err
13114 rm -f conftest.er1
13115 cat conftest.err >&5
13116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } >/dev/null && {
13118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13119 test ! -s conftest.err
13120 }; then
13121 ac_header_preproc=yes
13122 else
13123 $as_echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13125
13126 ac_header_preproc=no
13127 fi
13128
13129 rm -f conftest.err conftest.$ac_ext
13130 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13131 $as_echo "$ac_header_preproc" >&6; }
13132
13133 # So? What about this header?
13134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13135 yes:no: )
13136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13137 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13140 ac_header_preproc=yes
13141 ;;
13142 no:yes:* )
13143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13144 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13146 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13148 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13150 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13152 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13154 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13155
13156 ;;
13157 esac
13158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13159 $as_echo_n "checking for $ac_header... " >&6; }
13160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13161 $as_echo_n "(cached) " >&6
13162 else
13163 eval "$as_ac_Header=\$ac_header_preproc"
13164 fi
13165 ac_res=`eval 'as_val=${'$as_ac_Header'}
13166 $as_echo "$as_val"'`
13167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13168 $as_echo "$ac_res" >&6; }
13169
13170 fi
13171 as_val=`eval 'as_val=${'$as_ac_Header'}
13172 $as_echo "$as_val"'`
13173 if test "x$as_val" = x""yes; then
13174 cat >>confdefs.h <<_ACEOF
13175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13176 _ACEOF
13177
13178 else
13179 hard_bailout
13180 fi
13181
13182 done
13183
13184
13185 cat >>confdefs.h <<\_ACEOF
13186 #define HAVE_SELINUX 1
13187 _ACEOF
13188
13189 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
13190 SELINUX_PC="libselinux"
13191 HAVE_SELINUX=yes
13192 else
13193
13194 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
13195 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
13196 SELINUX_LIBS=
13197 SELINUX_PC=
13198 HAVE_SELINUX=no
13199 fi
13200
13201 fi
13202
13203 ################################################################################
13204 if test x$REALTIME = xyes; then
13205 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13206 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13207 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
13208 $as_echo_n "(cached) " >&6
13209 else
13210 ac_check_lib_save_LIBS=$LIBS
13211 LIBS="-lrt $LIBS"
13212 cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h. */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218
13219 /* Override any GCC internal prototype to avoid an error.
13220 Use char because int might match the return type of a GCC
13221 builtin and then its argument prototype would still apply. */
13222 #ifdef __cplusplus
13223 extern "C"
13224 #endif
13225 char clock_gettime ();
13226 int
13227 main ()
13228 {
13229 return clock_gettime ();
13230 ;
13231 return 0;
13232 }
13233 _ACEOF
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (ac_try="$ac_link"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239 esac
13240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13241 $as_echo "$ac_try_echo") >&5
13242 (eval "$ac_link") 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } && {
13249 test -z "$ac_c_werror_flag" ||
13250 test ! -s conftest.err
13251 } && test -s conftest$ac_exeext && {
13252 test "$cross_compiling" = yes ||
13253 $as_test_x conftest$ac_exeext
13254 }; then
13255 ac_cv_lib_rt_clock_gettime=yes
13256 else
13257 $as_echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260 ac_cv_lib_rt_clock_gettime=no
13261 fi
13262
13263 rm -rf conftest.dSYM
13264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13265 conftest$ac_exeext conftest.$ac_ext
13266 LIBS=$ac_check_lib_save_LIBS
13267 fi
13268 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13269 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13270 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
13271 HAVE_REALTIME=yes
13272 else
13273 HAVE_REALTIME=no
13274 fi
13275
13276
13277 if test x$HAVE_REALTIME = xyes; then
13278
13279 cat >>confdefs.h <<\_ACEOF
13280 #define HAVE_REALTIME 1
13281 _ACEOF
13282
13283 LIBS="-lrt $LIBS"
13284 else
13285 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13286 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
13287 fi
13288 fi
13289
13290 ################################################################################
13291
13292 for ac_header in getopt.h
13293 do
13294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13296 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13297 $as_echo_n "checking for $ac_header... " >&6; }
13298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13299 $as_echo_n "(cached) " >&6
13300 fi
13301 ac_res=`eval 'as_val=${'$as_ac_Header'}
13302 $as_echo "$as_val"'`
13303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13304 $as_echo "$ac_res" >&6; }
13305 else
13306 # Is the header compilable?
13307 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13308 $as_echo_n "checking $ac_header usability... " >&6; }
13309 cat >conftest.$ac_ext <<_ACEOF
13310 /* confdefs.h. */
13311 _ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13315 $ac_includes_default
13316 #include <$ac_header>
13317 _ACEOF
13318 rm -f conftest.$ac_objext
13319 if { (ac_try="$ac_compile"
13320 case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13323 esac
13324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13325 $as_echo "$ac_try_echo") >&5
13326 (eval "$ac_compile") 2>conftest.er1
13327 ac_status=$?
13328 grep -v '^ *+' conftest.er1 >conftest.err
13329 rm -f conftest.er1
13330 cat conftest.err >&5
13331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } && {
13333 test -z "$ac_c_werror_flag" ||
13334 test ! -s conftest.err
13335 } && test -s conftest.$ac_objext; then
13336 ac_header_compiler=yes
13337 else
13338 $as_echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13340
13341 ac_header_compiler=no
13342 fi
13343
13344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13345 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13346 $as_echo "$ac_header_compiler" >&6; }
13347
13348 # Is the header present?
13349 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13350 $as_echo_n "checking $ac_header presence... " >&6; }
13351 cat >conftest.$ac_ext <<_ACEOF
13352 /* confdefs.h. */
13353 _ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13357 #include <$ac_header>
13358 _ACEOF
13359 if { (ac_try="$ac_cpp conftest.$ac_ext"
13360 case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13363 esac
13364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13365 $as_echo "$ac_try_echo") >&5
13366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13367 ac_status=$?
13368 grep -v '^ *+' conftest.er1 >conftest.err
13369 rm -f conftest.er1
13370 cat conftest.err >&5
13371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } >/dev/null && {
13373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13374 test ! -s conftest.err
13375 }; then
13376 ac_header_preproc=yes
13377 else
13378 $as_echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13380
13381 ac_header_preproc=no
13382 fi
13383
13384 rm -f conftest.err conftest.$ac_ext
13385 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13386 $as_echo "$ac_header_preproc" >&6; }
13387
13388 # So? What about this header?
13389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13390 yes:no: )
13391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13392 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13394 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13395 ac_header_preproc=yes
13396 ;;
13397 no:yes:* )
13398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13399 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13401 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13403 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13405 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13407 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13409 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13410
13411 ;;
13412 esac
13413 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13414 $as_echo_n "checking for $ac_header... " >&6; }
13415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13416 $as_echo_n "(cached) " >&6
13417 else
13418 eval "$as_ac_Header=\$ac_header_preproc"
13419 fi
13420 ac_res=`eval 'as_val=${'$as_ac_Header'}
13421 $as_echo "$as_val"'`
13422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13423 $as_echo "$ac_res" >&6; }
13424
13425 fi
13426 as_val=`eval 'as_val=${'$as_ac_Header'}
13427 $as_echo "$as_val"'`
13428 if test "x$as_val" = x""yes; then
13429 cat >>confdefs.h <<_ACEOF
13430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13431 _ACEOF
13432
13433 cat >>confdefs.h <<\_ACEOF
13434 #define HAVE_GETOPTLONG 1
13435 _ACEOF
13436
13437 fi
13438
13439 done
13440
13441
13442 ################################################################################
13443 if test x$READLINE != xno; then
13444 lvm_saved_libs=$LIBS
13445 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
13446 $as_echo_n "checking for library containing tgetent... " >&6; }
13447 if test "${ac_cv_search_tgetent+set}" = set; then
13448 $as_echo_n "(cached) " >&6
13449 else
13450 ac_func_search_save_LIBS=$LIBS
13451 cat >conftest.$ac_ext <<_ACEOF
13452 /* confdefs.h. */
13453 _ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h. */
13457
13458 /* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
13461 #ifdef __cplusplus
13462 extern "C"
13463 #endif
13464 char tgetent ();
13465 int
13466 main ()
13467 {
13468 return tgetent ();
13469 ;
13470 return 0;
13471 }
13472 _ACEOF
13473 for ac_lib in '' tinfo ncurses curses termcap termlib; do
13474 if test -z "$ac_lib"; then
13475 ac_res="none required"
13476 else
13477 ac_res=-l$ac_lib
13478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13479 fi
13480 rm -f conftest.$ac_objext conftest$ac_exeext
13481 if { (ac_try="$ac_link"
13482 case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13485 esac
13486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13487 $as_echo "$ac_try_echo") >&5
13488 (eval "$ac_link") 2>conftest.er1
13489 ac_status=$?
13490 grep -v '^ *+' conftest.er1 >conftest.err
13491 rm -f conftest.er1
13492 cat conftest.err >&5
13493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } && {
13495 test -z "$ac_c_werror_flag" ||
13496 test ! -s conftest.err
13497 } && test -s conftest$ac_exeext && {
13498 test "$cross_compiling" = yes ||
13499 $as_test_x conftest$ac_exeext
13500 }; then
13501 ac_cv_search_tgetent=$ac_res
13502 else
13503 $as_echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13505
13506
13507 fi
13508
13509 rm -rf conftest.dSYM
13510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13511 conftest$ac_exeext
13512 if test "${ac_cv_search_tgetent+set}" = set; then
13513 break
13514 fi
13515 done
13516 if test "${ac_cv_search_tgetent+set}" = set; then
13517 :
13518 else
13519 ac_cv_search_tgetent=no
13520 fi
13521 rm conftest.$ac_ext
13522 LIBS=$ac_func_search_save_LIBS
13523 fi
13524 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13525 $as_echo "$ac_cv_search_tgetent" >&6; }
13526 ac_res=$ac_cv_search_tgetent
13527 if test "$ac_res" != no; then
13528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13529 READLINE_LIBS=$ac_cv_search_tgetent
13530 else
13531
13532 if test "$READLINE" = yes; then
13533 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
13534 --enable-readline option (which is enabled by default). Either disable readline
13535 support with --disable-readline or download and install termcap from:
13536 ftp.gnu.org/gnu/termcap
13537 Note: if you are using precompiled packages you will also need the development
13538 package as well (which may be called termcap-devel or something similar).
13539 Note: (n)curses also seems to work as a substitute for termcap. This was
13540 not found either - but you could try installing that as well." >&5
13541 $as_echo "$as_me: error: termcap could not be found which is required for the
13542 --enable-readline option (which is enabled by default). Either disable readline
13543 support with --disable-readline or download and install termcap from:
13544 ftp.gnu.org/gnu/termcap
13545 Note: if you are using precompiled packages you will also need the development
13546 package as well (which may be called termcap-devel or something similar).
13547 Note: (n)curses also seems to work as a substitute for termcap. This was
13548 not found either - but you could try installing that as well." >&2;}
13549 { (exit 1); exit 1; }; }
13550 fi
13551 fi
13552
13553 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13554 $as_echo_n "checking for readline in -lreadline... " >&6; }
13555 if test "${ac_cv_lib_readline_readline+set}" = set; then
13556 $as_echo_n "(cached) " >&6
13557 else
13558 ac_check_lib_save_LIBS=$LIBS
13559 LIBS="-lreadline $LIBS"
13560 cat >conftest.$ac_ext <<_ACEOF
13561 /* confdefs.h. */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13566
13567 /* Override any GCC internal prototype to avoid an error.
13568 Use char because int might match the return type of a GCC
13569 builtin and then its argument prototype would still apply. */
13570 #ifdef __cplusplus
13571 extern "C"
13572 #endif
13573 char readline ();
13574 int
13575 main ()
13576 {
13577 return readline ();
13578 ;
13579 return 0;
13580 }
13581 _ACEOF
13582 rm -f conftest.$ac_objext conftest$ac_exeext
13583 if { (ac_try="$ac_link"
13584 case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13587 esac
13588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13589 $as_echo "$ac_try_echo") >&5
13590 (eval "$ac_link") 2>conftest.er1
13591 ac_status=$?
13592 grep -v '^ *+' conftest.er1 >conftest.err
13593 rm -f conftest.er1
13594 cat conftest.err >&5
13595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } && {
13597 test -z "$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13599 } && test -s conftest$ac_exeext && {
13600 test "$cross_compiling" = yes ||
13601 $as_test_x conftest$ac_exeext
13602 }; then
13603 ac_cv_lib_readline_readline=yes
13604 else
13605 $as_echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13607
13608 ac_cv_lib_readline_readline=no
13609 fi
13610
13611 rm -rf conftest.dSYM
13612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13613 conftest$ac_exeext conftest.$ac_ext
13614 LIBS=$ac_check_lib_save_LIBS
13615 fi
13616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13617 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13618 if test "x$ac_cv_lib_readline_readline" = x""yes; then
13619
13620
13621 cat >>confdefs.h <<\_ACEOF
13622 #define READLINE_SUPPORT 1
13623 _ACEOF
13624
13625 LIBS=$lvm_saved_libs
13626 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
13627 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
13628 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
13629 $as_echo_n "(cached) " >&6
13630 else
13631 ac_check_lib_save_LIBS=$LIBS
13632 LIBS="-lreadline $LIBS"
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
13640 /* Override any GCC internal prototype to avoid an error.
13641 Use char because int might match the return type of a GCC
13642 builtin and then its argument prototype would still apply. */
13643 #ifdef __cplusplus
13644 extern "C"
13645 #endif
13646 char rl_line_buffer ();
13647 int
13648 main ()
13649 {
13650 return rl_line_buffer ();
13651 ;
13652 return 0;
13653 }
13654 _ACEOF
13655 rm -f conftest.$ac_objext conftest$ac_exeext
13656 if { (ac_try="$ac_link"
13657 case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13660 esac
13661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13662 $as_echo "$ac_try_echo") >&5
13663 (eval "$ac_link") 2>conftest.er1
13664 ac_status=$?
13665 grep -v '^ *+' conftest.er1 >conftest.err
13666 rm -f conftest.er1
13667 cat conftest.err >&5
13668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } && {
13670 test -z "$ac_c_werror_flag" ||
13671 test ! -s conftest.err
13672 } && test -s conftest$ac_exeext && {
13673 test "$cross_compiling" = yes ||
13674 $as_test_x conftest$ac_exeext
13675 }; then
13676 ac_cv_lib_readline_rl_line_buffer=yes
13677 else
13678 $as_echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13680
13681 ac_cv_lib_readline_rl_line_buffer=no
13682 fi
13683
13684 rm -rf conftest.dSYM
13685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13686 conftest$ac_exeext conftest.$ac_ext
13687 LIBS=$ac_check_lib_save_LIBS
13688 fi
13689 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
13690 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
13691 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
13692 READLINE_LIBS="-lreadline"
13693 else
13694
13695 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
13696 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
13697 READLINE_LIBS="-lreadline $READLINE_LIBS"
13698
13699 fi
13700
13701 else
13702
13703 READLINE_LIBS=
13704 if test "$READLINE" = yes; then
13705 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
13706 --enable-readline option (which is enabled by default). Either disable readline
13707 support with --disable-readline or download and install readline from:
13708 ftp.gnu.org/gnu/readline
13709 Note: if you are using precompiled packages you will also need the development
13710 package as well (which may be called readline-devel or something similar)." >&5
13711 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
13712 --enable-readline option (which is enabled by default). Either disable readline
13713 support with --disable-readline or download and install readline from:
13714 ftp.gnu.org/gnu/readline
13715 Note: if you are using precompiled packages you will also need the development
13716 package as well (which may be called readline-devel or something similar)." >&2;}
13717 { (exit 1); exit 1; }; }
13718 fi
13719 fi
13720
13721 LIBS="$READLINE_LIBS $lvm_saved_libs"
13722
13723 for ac_func in rl_completion_matches
13724 do
13725 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13726 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13727 $as_echo_n "checking for $ac_func... " >&6; }
13728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13729 $as_echo_n "(cached) " >&6
13730 else
13731 cat >conftest.$ac_ext <<_ACEOF
13732 /* confdefs.h. */
13733 _ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h. */
13737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13739 #define $ac_func innocuous_$ac_func
13740
13741 /* System header to define __stub macros and hopefully few prototypes,
13742 which can conflict with char $ac_func (); below.
13743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13744 <limits.h> exists even on freestanding compilers. */
13745
13746 #ifdef __STDC__
13747 # include <limits.h>
13748 #else
13749 # include <assert.h>
13750 #endif
13751
13752 #undef $ac_func
13753
13754 /* Override any GCC internal prototype to avoid an error.
13755 Use char because int might match the return type of a GCC
13756 builtin and then its argument prototype would still apply. */
13757 #ifdef __cplusplus
13758 extern "C"
13759 #endif
13760 char $ac_func ();
13761 /* The GNU C library defines this for functions which it implements
13762 to always fail with ENOSYS. Some functions are actually named
13763 something starting with __ and the normal name is an alias. */
13764 #if defined __stub_$ac_func || defined __stub___$ac_func
13765 choke me
13766 #endif
13767
13768 int
13769 main ()
13770 {
13771 return $ac_func ();
13772 ;
13773 return 0;
13774 }
13775 _ACEOF
13776 rm -f conftest.$ac_objext conftest$ac_exeext
13777 if { (ac_try="$ac_link"
13778 case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781 esac
13782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13783 $as_echo "$ac_try_echo") >&5
13784 (eval "$ac_link") 2>conftest.er1
13785 ac_status=$?
13786 grep -v '^ *+' conftest.er1 >conftest.err
13787 rm -f conftest.er1
13788 cat conftest.err >&5
13789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } && {
13791 test -z "$ac_c_werror_flag" ||
13792 test ! -s conftest.err
13793 } && test -s conftest$ac_exeext && {
13794 test "$cross_compiling" = yes ||
13795 $as_test_x conftest$ac_exeext
13796 }; then
13797 eval "$as_ac_var=yes"
13798 else
13799 $as_echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13801
13802 eval "$as_ac_var=no"
13803 fi
13804
13805 rm -rf conftest.dSYM
13806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13807 conftest$ac_exeext conftest.$ac_ext
13808 fi
13809 ac_res=`eval 'as_val=${'$as_ac_var'}
13810 $as_echo "$as_val"'`
13811 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13812 $as_echo "$ac_res" >&6; }
13813 as_val=`eval 'as_val=${'$as_ac_var'}
13814 $as_echo "$as_val"'`
13815 if test "x$as_val" = x""yes; then
13816 cat >>confdefs.h <<_ACEOF
13817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13818 _ACEOF
13819
13820 fi
13821 done
13822
13823 LIBS=$lvm_saved_libs
13824 fi
13825
13826 ################################################################################
13827 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13828 $as_echo_n "checking whether to enable internationalisation... " >&6; }
13829 # Check whether --enable-nls was given.
13830 if test "${enable_nls+set}" = set; then
13831 enableval=$enable_nls; INTL=$enableval
13832 else
13833 INTL=no
13834 fi
13835
13836 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
13837 $as_echo "$INTL" >&6; }
13838
13839 if test x$INTL = xyes; then
13840 # FIXME - Move this - can be device-mapper too
13841 INTL_PACKAGE="lvm2"
13842 # Extract the first word of "msgfmt", so it can be a program name with args.
13843 set dummy msgfmt; ac_word=$2
13844 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13845 $as_echo_n "checking for $ac_word... " >&6; }
13846 if test "${ac_cv_path_MSGFMT+set}" = set; then
13847 $as_echo_n "(cached) " >&6
13848 else
13849 case $MSGFMT in
13850 [\\/]* | ?:[\\/]*)
13851 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13852 ;;
13853 *)
13854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13855 for as_dir in $PATH
13856 do
13857 IFS=$as_save_IFS
13858 test -z "$as_dir" && as_dir=.
13859 for ac_exec_ext in '' $ac_executable_extensions; do
13860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13861 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
13862 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13863 break 2
13864 fi
13865 done
13866 done
13867 IFS=$as_save_IFS
13868
13869 ;;
13870 esac
13871 fi
13872 MSGFMT=$ac_cv_path_MSGFMT
13873 if test -n "$MSGFMT"; then
13874 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13875 $as_echo "$MSGFMT" >&6; }
13876 else
13877 { $as_echo "$as_me:$LINENO: result: no" >&5
13878 $as_echo "no" >&6; }
13879 fi
13880
13881
13882 if [ "x$MSGFMT" == x ];
13883 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
13884 " >&5
13885 $as_echo "$as_me: error: msgfmt not found in path $PATH
13886 " >&2;}
13887 { (exit 1); exit 1; }; }
13888 fi;
13889
13890
13891 # Check whether --with-localedir was given.
13892 if test "${with_localedir+set}" = set; then
13893 withval=$with_localedir; LOCALEDIR="$withval"
13894 else
13895 LOCALEDIR='${prefix}/share/locale'
13896 fi
13897
13898 fi
13899
13900 ################################################################################
13901
13902 # Check whether --with-confdir was given.
13903 if test "${with_confdir+set}" = set; then
13904 withval=$with_confdir; CONFDIR="$withval"
13905 else
13906 CONFDIR='/etc'
13907 fi
13908
13909
13910
13911 # Check whether --with-staticdir was given.
13912 if test "${with_staticdir+set}" = set; then
13913 withval=$with_staticdir; STATICDIR="$withval"
13914 else
13915 STATICDIR='${exec_prefix}/sbin'
13916 fi
13917
13918
13919
13920 # Check whether --with-usrlibdir was given.
13921 if test "${with_usrlibdir+set}" = set; then
13922 withval=$with_usrlibdir; usrlibdir="$withval"
13923 else
13924 usrlibdir='${prefix}/lib'
13925 fi
13926
13927
13928
13929 # Check whether --with-usrsbindir was given.
13930 if test "${with_usrsbindir+set}" = set; then
13931 withval=$with_usrsbindir; usrsbindir="$withval"
13932 else
13933 usrsbindir='${prefix}/sbin'
13934 fi
13935
13936
13937 ################################################################################
13938
13939 # Check whether --with-udev_prefix was given.
13940 if test "${with_udev_prefix+set}" = set; then
13941 withval=$with_udev_prefix; udev_prefix="$withval"
13942 else
13943 udev_prefix='${exec_prefix}'
13944 fi
13945
13946
13947
13948 # Check whether --with-udevdir was given.
13949 if test "${with_udevdir+set}" = set; then
13950 withval=$with_udevdir; udevdir="$withval"
13951 else
13952 udevdir='${udev_prefix}/lib/udev/rules.d'
13953 fi
13954
13955
13956 ################################################################################
13957 if test x$READLINE = xyes; then
13958
13959
13960 for ac_header in readline/readline.h readline/history.h
13961 do
13962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13964 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13965 $as_echo_n "checking for $ac_header... " >&6; }
13966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13967 $as_echo_n "(cached) " >&6
13968 fi
13969 ac_res=`eval 'as_val=${'$as_ac_Header'}
13970 $as_echo "$as_val"'`
13971 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13972 $as_echo "$ac_res" >&6; }
13973 else
13974 # Is the header compilable?
13975 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13976 $as_echo_n "checking $ac_header usability... " >&6; }
13977 cat >conftest.$ac_ext <<_ACEOF
13978 /* confdefs.h. */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13983 $ac_includes_default
13984 #include <$ac_header>
13985 _ACEOF
13986 rm -f conftest.$ac_objext
13987 if { (ac_try="$ac_compile"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13991 esac
13992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13993 $as_echo "$ac_try_echo") >&5
13994 (eval "$ac_compile") 2>conftest.er1
13995 ac_status=$?
13996 grep -v '^ *+' conftest.er1 >conftest.err
13997 rm -f conftest.er1
13998 cat conftest.err >&5
13999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } && {
14001 test -z "$ac_c_werror_flag" ||
14002 test ! -s conftest.err
14003 } && test -s conftest.$ac_objext; then
14004 ac_header_compiler=yes
14005 else
14006 $as_echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14008
14009 ac_header_compiler=no
14010 fi
14011
14012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14013 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14014 $as_echo "$ac_header_compiler" >&6; }
14015
14016 # Is the header present?
14017 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14018 $as_echo_n "checking $ac_header presence... " >&6; }
14019 cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h. */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025 #include <$ac_header>
14026 _ACEOF
14027 if { (ac_try="$ac_cpp conftest.$ac_ext"
14028 case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14031 esac
14032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14033 $as_echo "$ac_try_echo") >&5
14034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14035 ac_status=$?
14036 grep -v '^ *+' conftest.er1 >conftest.err
14037 rm -f conftest.er1
14038 cat conftest.err >&5
14039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } >/dev/null && {
14041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14042 test ! -s conftest.err
14043 }; then
14044 ac_header_preproc=yes
14045 else
14046 $as_echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14048
14049 ac_header_preproc=no
14050 fi
14051
14052 rm -f conftest.err conftest.$ac_ext
14053 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14054 $as_echo "$ac_header_preproc" >&6; }
14055
14056 # So? What about this header?
14057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14058 yes:no: )
14059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14060 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14063 ac_header_preproc=yes
14064 ;;
14065 no:yes:* )
14066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14067 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14069 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14071 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14073 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14075 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14077 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14078
14079 ;;
14080 esac
14081 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14082 $as_echo_n "checking for $ac_header... " >&6; }
14083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14084 $as_echo_n "(cached) " >&6
14085 else
14086 eval "$as_ac_Header=\$ac_header_preproc"
14087 fi
14088 ac_res=`eval 'as_val=${'$as_ac_Header'}
14089 $as_echo "$as_val"'`
14090 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14091 $as_echo "$ac_res" >&6; }
14092
14093 fi
14094 as_val=`eval 'as_val=${'$as_ac_Header'}
14095 $as_echo "$as_val"'`
14096 if test "x$as_val" = x""yes; then
14097 cat >>confdefs.h <<_ACEOF
14098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14099 _ACEOF
14100
14101 else
14102 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14103 $as_echo "$as_me: error: bailing out" >&2;}
14104 { (exit 1); exit 1; }; }
14105 fi
14106
14107 done
14108
14109 fi
14110
14111 if test x$CLVMD != xnone; then
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122 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
14123 do
14124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14126 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14127 $as_echo_n "checking for $ac_header... " >&6; }
14128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14129 $as_echo_n "(cached) " >&6
14130 fi
14131 ac_res=`eval 'as_val=${'$as_ac_Header'}
14132 $as_echo "$as_val"'`
14133 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14134 $as_echo "$ac_res" >&6; }
14135 else
14136 # Is the header compilable?
14137 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14138 $as_echo_n "checking $ac_header usability... " >&6; }
14139 cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h. */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14145 $ac_includes_default
14146 #include <$ac_header>
14147 _ACEOF
14148 rm -f conftest.$ac_objext
14149 if { (ac_try="$ac_compile"
14150 case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14153 esac
14154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14155 $as_echo "$ac_try_echo") >&5
14156 (eval "$ac_compile") 2>conftest.er1
14157 ac_status=$?
14158 grep -v '^ *+' conftest.er1 >conftest.err
14159 rm -f conftest.er1
14160 cat conftest.err >&5
14161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } && {
14163 test -z "$ac_c_werror_flag" ||
14164 test ! -s conftest.err
14165 } && test -s conftest.$ac_objext; then
14166 ac_header_compiler=yes
14167 else
14168 $as_echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14170
14171 ac_header_compiler=no
14172 fi
14173
14174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14176 $as_echo "$ac_header_compiler" >&6; }
14177
14178 # Is the header present?
14179 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14180 $as_echo_n "checking $ac_header presence... " >&6; }
14181 cat >conftest.$ac_ext <<_ACEOF
14182 /* confdefs.h. */
14183 _ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h. */
14187 #include <$ac_header>
14188 _ACEOF
14189 if { (ac_try="$ac_cpp conftest.$ac_ext"
14190 case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14193 esac
14194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14195 $as_echo "$ac_try_echo") >&5
14196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14197 ac_status=$?
14198 grep -v '^ *+' conftest.er1 >conftest.err
14199 rm -f conftest.er1
14200 cat conftest.err >&5
14201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } >/dev/null && {
14203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14204 test ! -s conftest.err
14205 }; then
14206 ac_header_preproc=yes
14207 else
14208 $as_echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14210
14211 ac_header_preproc=no
14212 fi
14213
14214 rm -f conftest.err conftest.$ac_ext
14215 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14216 $as_echo "$ac_header_preproc" >&6; }
14217
14218 # So? What about this header?
14219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14220 yes:no: )
14221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14222 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14224 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14225 ac_header_preproc=yes
14226 ;;
14227 no:yes:* )
14228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14229 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14231 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14233 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14235 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14237 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14239 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14240
14241 ;;
14242 esac
14243 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14244 $as_echo_n "checking for $ac_header... " >&6; }
14245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14246 $as_echo_n "(cached) " >&6
14247 else
14248 eval "$as_ac_Header=\$ac_header_preproc"
14249 fi
14250 ac_res=`eval 'as_val=${'$as_ac_Header'}
14251 $as_echo "$as_val"'`
14252 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14253 $as_echo "$ac_res" >&6; }
14254
14255 fi
14256 as_val=`eval 'as_val=${'$as_ac_Header'}
14257 $as_echo "$as_val"'`
14258 if test "x$as_val" = x""yes; then
14259 cat >>confdefs.h <<_ACEOF
14260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14261 _ACEOF
14262
14263 else
14264 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14265 $as_echo "$as_me: error: bailing out" >&2;}
14266 { (exit 1); exit 1; }; }
14267 fi
14268
14269 done
14270
14271
14272
14273
14274
14275
14276 for ac_func in dup2 getmntent memmove select socket
14277 do
14278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14279 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14280 $as_echo_n "checking for $ac_func... " >&6; }
14281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14282 $as_echo_n "(cached) " >&6
14283 else
14284 cat >conftest.$ac_ext <<_ACEOF
14285 /* confdefs.h. */
14286 _ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14292 #define $ac_func innocuous_$ac_func
14293
14294 /* System header to define __stub macros and hopefully few prototypes,
14295 which can conflict with char $ac_func (); below.
14296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14297 <limits.h> exists even on freestanding compilers. */
14298
14299 #ifdef __STDC__
14300 # include <limits.h>
14301 #else
14302 # include <assert.h>
14303 #endif
14304
14305 #undef $ac_func
14306
14307 /* Override any GCC internal prototype to avoid an error.
14308 Use char because int might match the return type of a GCC
14309 builtin and then its argument prototype would still apply. */
14310 #ifdef __cplusplus
14311 extern "C"
14312 #endif
14313 char $ac_func ();
14314 /* The GNU C library defines this for functions which it implements
14315 to always fail with ENOSYS. Some functions are actually named
14316 something starting with __ and the normal name is an alias. */
14317 #if defined __stub_$ac_func || defined __stub___$ac_func
14318 choke me
14319 #endif
14320
14321 int
14322 main ()
14323 {
14324 return $ac_func ();
14325 ;
14326 return 0;
14327 }
14328 _ACEOF
14329 rm -f conftest.$ac_objext conftest$ac_exeext
14330 if { (ac_try="$ac_link"
14331 case "(($ac_try" in
14332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14333 *) ac_try_echo=$ac_try;;
14334 esac
14335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14336 $as_echo "$ac_try_echo") >&5
14337 (eval "$ac_link") 2>conftest.er1
14338 ac_status=$?
14339 grep -v '^ *+' conftest.er1 >conftest.err
14340 rm -f conftest.er1
14341 cat conftest.err >&5
14342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } && {
14344 test -z "$ac_c_werror_flag" ||
14345 test ! -s conftest.err
14346 } && test -s conftest$ac_exeext && {
14347 test "$cross_compiling" = yes ||
14348 $as_test_x conftest$ac_exeext
14349 }; then
14350 eval "$as_ac_var=yes"
14351 else
14352 $as_echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14354
14355 eval "$as_ac_var=no"
14356 fi
14357
14358 rm -rf conftest.dSYM
14359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14360 conftest$ac_exeext conftest.$ac_ext
14361 fi
14362 ac_res=`eval 'as_val=${'$as_ac_var'}
14363 $as_echo "$as_val"'`
14364 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14365 $as_echo "$ac_res" >&6; }
14366 as_val=`eval 'as_val=${'$as_ac_var'}
14367 $as_echo "$as_val"'`
14368 if test "x$as_val" = x""yes; then
14369 cat >>confdefs.h <<_ACEOF
14370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14371 _ACEOF
14372
14373 else
14374 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14375 $as_echo "$as_me: error: bailing out" >&2;}
14376 { (exit 1); exit 1; }; }
14377 fi
14378 done
14379
14380 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14381 # -lseq on Dynix/PTX, -lgen on Unixware.
14382 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14383 $as_echo_n "checking for library containing getmntent... " >&6; }
14384 if test "${ac_cv_search_getmntent+set}" = set; then
14385 $as_echo_n "(cached) " >&6
14386 else
14387 ac_func_search_save_LIBS=$LIBS
14388 cat >conftest.$ac_ext <<_ACEOF
14389 /* confdefs.h. */
14390 _ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h. */
14394
14395 /* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply. */
14398 #ifdef __cplusplus
14399 extern "C"
14400 #endif
14401 char getmntent ();
14402 int
14403 main ()
14404 {
14405 return getmntent ();
14406 ;
14407 return 0;
14408 }
14409 _ACEOF
14410 for ac_lib in '' sun seq gen; do
14411 if test -z "$ac_lib"; then
14412 ac_res="none required"
14413 else
14414 ac_res=-l$ac_lib
14415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14416 fi
14417 rm -f conftest.$ac_objext conftest$ac_exeext
14418 if { (ac_try="$ac_link"
14419 case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14422 esac
14423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14424 $as_echo "$ac_try_echo") >&5
14425 (eval "$ac_link") 2>conftest.er1
14426 ac_status=$?
14427 grep -v '^ *+' conftest.er1 >conftest.err
14428 rm -f conftest.er1
14429 cat conftest.err >&5
14430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } && {
14432 test -z "$ac_c_werror_flag" ||
14433 test ! -s conftest.err
14434 } && test -s conftest$ac_exeext && {
14435 test "$cross_compiling" = yes ||
14436 $as_test_x conftest$ac_exeext
14437 }; then
14438 ac_cv_search_getmntent=$ac_res
14439 else
14440 $as_echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14442
14443
14444 fi
14445
14446 rm -rf conftest.dSYM
14447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14448 conftest$ac_exeext
14449 if test "${ac_cv_search_getmntent+set}" = set; then
14450 break
14451 fi
14452 done
14453 if test "${ac_cv_search_getmntent+set}" = set; then
14454 :
14455 else
14456 ac_cv_search_getmntent=no
14457 fi
14458 rm conftest.$ac_ext
14459 LIBS=$ac_func_search_save_LIBS
14460 fi
14461 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14462 $as_echo "$ac_cv_search_getmntent" >&6; }
14463 ac_res=$ac_cv_search_getmntent
14464 if test "$ac_res" != no; then
14465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14466 ac_cv_func_getmntent=yes
14467
14468 cat >>confdefs.h <<\_ACEOF
14469 #define HAVE_GETMNTENT 1
14470 _ACEOF
14471
14472 else
14473 ac_cv_func_getmntent=no
14474 fi
14475
14476
14477 # AC_FUNC_REALLOC
14478
14479
14480 for ac_header in sys/select.h sys/socket.h
14481 do
14482 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14484 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14485 $as_echo_n "checking for $ac_header... " >&6; }
14486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14487 $as_echo_n "(cached) " >&6
14488 fi
14489 ac_res=`eval 'as_val=${'$as_ac_Header'}
14490 $as_echo "$as_val"'`
14491 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14492 $as_echo "$ac_res" >&6; }
14493 else
14494 # Is the header compilable?
14495 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14496 $as_echo_n "checking $ac_header usability... " >&6; }
14497 cat >conftest.$ac_ext <<_ACEOF
14498 /* confdefs.h. */
14499 _ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14503 $ac_includes_default
14504 #include <$ac_header>
14505 _ACEOF
14506 rm -f conftest.$ac_objext
14507 if { (ac_try="$ac_compile"
14508 case "(($ac_try" in
14509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14510 *) ac_try_echo=$ac_try;;
14511 esac
14512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14513 $as_echo "$ac_try_echo") >&5
14514 (eval "$ac_compile") 2>conftest.er1
14515 ac_status=$?
14516 grep -v '^ *+' conftest.er1 >conftest.err
14517 rm -f conftest.er1
14518 cat conftest.err >&5
14519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } && {
14521 test -z "$ac_c_werror_flag" ||
14522 test ! -s conftest.err
14523 } && test -s conftest.$ac_objext; then
14524 ac_header_compiler=yes
14525 else
14526 $as_echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14528
14529 ac_header_compiler=no
14530 fi
14531
14532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14533 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14534 $as_echo "$ac_header_compiler" >&6; }
14535
14536 # Is the header present?
14537 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14538 $as_echo_n "checking $ac_header presence... " >&6; }
14539 cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h. */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14545 #include <$ac_header>
14546 _ACEOF
14547 if { (ac_try="$ac_cpp conftest.$ac_ext"
14548 case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14551 esac
14552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14553 $as_echo "$ac_try_echo") >&5
14554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14555 ac_status=$?
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
14559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } >/dev/null && {
14561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14562 test ! -s conftest.err
14563 }; then
14564 ac_header_preproc=yes
14565 else
14566 $as_echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14568
14569 ac_header_preproc=no
14570 fi
14571
14572 rm -f conftest.err conftest.$ac_ext
14573 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14574 $as_echo "$ac_header_preproc" >&6; }
14575
14576 # So? What about this header?
14577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14578 yes:no: )
14579 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14580 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14581 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14582 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14583 ac_header_preproc=yes
14584 ;;
14585 no:yes:* )
14586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14587 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14589 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14591 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14593 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14595 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14597 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14598
14599 ;;
14600 esac
14601 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14602 $as_echo_n "checking for $ac_header... " >&6; }
14603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14604 $as_echo_n "(cached) " >&6
14605 else
14606 eval "$as_ac_Header=\$ac_header_preproc"
14607 fi
14608 ac_res=`eval 'as_val=${'$as_ac_Header'}
14609 $as_echo "$as_val"'`
14610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14611 $as_echo "$ac_res" >&6; }
14612
14613 fi
14614 as_val=`eval 'as_val=${'$as_ac_Header'}
14615 $as_echo "$as_val"'`
14616 if test "x$as_val" = x""yes; then
14617 cat >>confdefs.h <<_ACEOF
14618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14619 _ACEOF
14620
14621 fi
14622
14623 done
14624
14625 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14626 $as_echo_n "checking types of arguments for select... " >&6; }
14627 if test "${ac_cv_func_select_args+set}" = set; then
14628 $as_echo_n "(cached) " >&6
14629 else
14630 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14631 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14632 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14633 cat >conftest.$ac_ext <<_ACEOF
14634 /* confdefs.h. */
14635 _ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14639 $ac_includes_default
14640 #ifdef HAVE_SYS_SELECT_H
14641 # include <sys/select.h>
14642 #endif
14643 #ifdef HAVE_SYS_SOCKET_H
14644 # include <sys/socket.h>
14645 #endif
14646
14647 int
14648 main ()
14649 {
14650 extern int select ($ac_arg1,
14651 $ac_arg234, $ac_arg234, $ac_arg234,
14652 $ac_arg5);
14653 ;
14654 return 0;
14655 }
14656 _ACEOF
14657 rm -f conftest.$ac_objext
14658 if { (ac_try="$ac_compile"
14659 case "(($ac_try" in
14660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661 *) ac_try_echo=$ac_try;;
14662 esac
14663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14664 $as_echo "$ac_try_echo") >&5
14665 (eval "$ac_compile") 2>conftest.er1
14666 ac_status=$?
14667 grep -v '^ *+' conftest.er1 >conftest.err
14668 rm -f conftest.er1
14669 cat conftest.err >&5
14670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } && {
14672 test -z "$ac_c_werror_flag" ||
14673 test ! -s conftest.err
14674 } && test -s conftest.$ac_objext; then
14675 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14676 else
14677 $as_echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14679
14680
14681 fi
14682
14683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684 done
14685 done
14686 done
14687 # Provide a safe default value.
14688 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14689
14690 fi
14691 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14692 $as_echo "$ac_cv_func_select_args" >&6; }
14693 ac_save_IFS=$IFS; IFS=','
14694 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14695 IFS=$ac_save_IFS
14696 shift
14697
14698 cat >>confdefs.h <<_ACEOF
14699 #define SELECT_TYPE_ARG1 $1
14700 _ACEOF
14701
14702
14703 cat >>confdefs.h <<_ACEOF
14704 #define SELECT_TYPE_ARG234 ($2)
14705 _ACEOF
14706
14707
14708 cat >>confdefs.h <<_ACEOF
14709 #define SELECT_TYPE_ARG5 ($3)
14710 _ACEOF
14711
14712 rm -f conftest*
14713
14714 fi
14715
14716 if test x$CLUSTER != xnone; then
14717
14718
14719 for ac_header in sys/socket.h sys/un.h
14720 do
14721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14724 $as_echo_n "checking for $ac_header... " >&6; }
14725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14726 $as_echo_n "(cached) " >&6
14727 fi
14728 ac_res=`eval 'as_val=${'$as_ac_Header'}
14729 $as_echo "$as_val"'`
14730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14731 $as_echo "$ac_res" >&6; }
14732 else
14733 # Is the header compilable?
14734 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14735 $as_echo_n "checking $ac_header usability... " >&6; }
14736 cat >conftest.$ac_ext <<_ACEOF
14737 /* confdefs.h. */
14738 _ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h. */
14742 $ac_includes_default
14743 #include <$ac_header>
14744 _ACEOF
14745 rm -f conftest.$ac_objext
14746 if { (ac_try="$ac_compile"
14747 case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14750 esac
14751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14752 $as_echo "$ac_try_echo") >&5
14753 (eval "$ac_compile") 2>conftest.er1
14754 ac_status=$?
14755 grep -v '^ *+' conftest.er1 >conftest.err
14756 rm -f conftest.er1
14757 cat conftest.err >&5
14758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } && {
14760 test -z "$ac_c_werror_flag" ||
14761 test ! -s conftest.err
14762 } && test -s conftest.$ac_objext; then
14763 ac_header_compiler=yes
14764 else
14765 $as_echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14767
14768 ac_header_compiler=no
14769 fi
14770
14771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14772 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14773 $as_echo "$ac_header_compiler" >&6; }
14774
14775 # Is the header present?
14776 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14777 $as_echo_n "checking $ac_header presence... " >&6; }
14778 cat >conftest.$ac_ext <<_ACEOF
14779 /* confdefs.h. */
14780 _ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14784 #include <$ac_header>
14785 _ACEOF
14786 if { (ac_try="$ac_cpp conftest.$ac_ext"
14787 case "(($ac_try" in
14788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14789 *) ac_try_echo=$ac_try;;
14790 esac
14791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14792 $as_echo "$ac_try_echo") >&5
14793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14794 ac_status=$?
14795 grep -v '^ *+' conftest.er1 >conftest.err
14796 rm -f conftest.er1
14797 cat conftest.err >&5
14798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } >/dev/null && {
14800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14801 test ! -s conftest.err
14802 }; then
14803 ac_header_preproc=yes
14804 else
14805 $as_echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14807
14808 ac_header_preproc=no
14809 fi
14810
14811 rm -f conftest.err conftest.$ac_ext
14812 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14813 $as_echo "$ac_header_preproc" >&6; }
14814
14815 # So? What about this header?
14816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14817 yes:no: )
14818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14819 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14821 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14822 ac_header_preproc=yes
14823 ;;
14824 no:yes:* )
14825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14826 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14828 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14830 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14832 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14834 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14836 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14837
14838 ;;
14839 esac
14840 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14841 $as_echo_n "checking for $ac_header... " >&6; }
14842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14843 $as_echo_n "(cached) " >&6
14844 else
14845 eval "$as_ac_Header=\$ac_header_preproc"
14846 fi
14847 ac_res=`eval 'as_val=${'$as_ac_Header'}
14848 $as_echo "$as_val"'`
14849 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14850 $as_echo "$ac_res" >&6; }
14851
14852 fi
14853 as_val=`eval 'as_val=${'$as_ac_Header'}
14854 $as_echo "$as_val"'`
14855 if test "x$as_val" = x""yes; then
14856 cat >>confdefs.h <<_ACEOF
14857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14858 _ACEOF
14859
14860 else
14861 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14862 $as_echo "$as_me: error: bailing out" >&2;}
14863 { (exit 1); exit 1; }; }
14864 fi
14865
14866 done
14867
14868
14869 for ac_func in socket
14870 do
14871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14872 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14873 $as_echo_n "checking for $ac_func... " >&6; }
14874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14875 $as_echo_n "(cached) " >&6
14876 else
14877 cat >conftest.$ac_ext <<_ACEOF
14878 /* confdefs.h. */
14879 _ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h. */
14883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14885 #define $ac_func innocuous_$ac_func
14886
14887 /* System header to define __stub macros and hopefully few prototypes,
14888 which can conflict with char $ac_func (); below.
14889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14890 <limits.h> exists even on freestanding compilers. */
14891
14892 #ifdef __STDC__
14893 # include <limits.h>
14894 #else
14895 # include <assert.h>
14896 #endif
14897
14898 #undef $ac_func
14899
14900 /* Override any GCC internal prototype to avoid an error.
14901 Use char because int might match the return type of a GCC
14902 builtin and then its argument prototype would still apply. */
14903 #ifdef __cplusplus
14904 extern "C"
14905 #endif
14906 char $ac_func ();
14907 /* The GNU C library defines this for functions which it implements
14908 to always fail with ENOSYS. Some functions are actually named
14909 something starting with __ and the normal name is an alias. */
14910 #if defined __stub_$ac_func || defined __stub___$ac_func
14911 choke me
14912 #endif
14913
14914 int
14915 main ()
14916 {
14917 return $ac_func ();
14918 ;
14919 return 0;
14920 }
14921 _ACEOF
14922 rm -f conftest.$ac_objext conftest$ac_exeext
14923 if { (ac_try="$ac_link"
14924 case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14927 esac
14928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14929 $as_echo "$ac_try_echo") >&5
14930 (eval "$ac_link") 2>conftest.er1
14931 ac_status=$?
14932 grep -v '^ *+' conftest.er1 >conftest.err
14933 rm -f conftest.er1
14934 cat conftest.err >&5
14935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } && {
14937 test -z "$ac_c_werror_flag" ||
14938 test ! -s conftest.err
14939 } && test -s conftest$ac_exeext && {
14940 test "$cross_compiling" = yes ||
14941 $as_test_x conftest$ac_exeext
14942 }; then
14943 eval "$as_ac_var=yes"
14944 else
14945 $as_echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14947
14948 eval "$as_ac_var=no"
14949 fi
14950
14951 rm -rf conftest.dSYM
14952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14953 conftest$ac_exeext conftest.$ac_ext
14954 fi
14955 ac_res=`eval 'as_val=${'$as_ac_var'}
14956 $as_echo "$as_val"'`
14957 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14958 $as_echo "$ac_res" >&6; }
14959 as_val=`eval 'as_val=${'$as_ac_var'}
14960 $as_echo "$as_val"'`
14961 if test "x$as_val" = x""yes; then
14962 cat >>confdefs.h <<_ACEOF
14963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14964 _ACEOF
14965
14966 else
14967 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14968 $as_echo "$as_me: error: bailing out" >&2;}
14969 { (exit 1); exit 1; }; }
14970 fi
14971 done
14972
14973 fi
14974
14975 if test x$HAVE_LIBDL = xyes; then
14976
14977 for ac_header in dlfcn.h
14978 do
14979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14982 $as_echo_n "checking for $ac_header... " >&6; }
14983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14984 $as_echo_n "(cached) " >&6
14985 fi
14986 ac_res=`eval 'as_val=${'$as_ac_Header'}
14987 $as_echo "$as_val"'`
14988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14989 $as_echo "$ac_res" >&6; }
14990 else
14991 # Is the header compilable?
14992 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14993 $as_echo_n "checking $ac_header usability... " >&6; }
14994 cat >conftest.$ac_ext <<_ACEOF
14995 /* confdefs.h. */
14996 _ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15000 $ac_includes_default
15001 #include <$ac_header>
15002 _ACEOF
15003 rm -f conftest.$ac_objext
15004 if { (ac_try="$ac_compile"
15005 case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15008 esac
15009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15010 $as_echo "$ac_try_echo") >&5
15011 (eval "$ac_compile") 2>conftest.er1
15012 ac_status=$?
15013 grep -v '^ *+' conftest.er1 >conftest.err
15014 rm -f conftest.er1
15015 cat conftest.err >&5
15016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); } && {
15018 test -z "$ac_c_werror_flag" ||
15019 test ! -s conftest.err
15020 } && test -s conftest.$ac_objext; then
15021 ac_header_compiler=yes
15022 else
15023 $as_echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15025
15026 ac_header_compiler=no
15027 fi
15028
15029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15030 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15031 $as_echo "$ac_header_compiler" >&6; }
15032
15033 # Is the header present?
15034 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15035 $as_echo_n "checking $ac_header presence... " >&6; }
15036 cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h. */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 #include <$ac_header>
15043 _ACEOF
15044 if { (ac_try="$ac_cpp conftest.$ac_ext"
15045 case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15048 esac
15049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15050 $as_echo "$ac_try_echo") >&5
15051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15052 ac_status=$?
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
15056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } >/dev/null && {
15058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15059 test ! -s conftest.err
15060 }; then
15061 ac_header_preproc=yes
15062 else
15063 $as_echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15065
15066 ac_header_preproc=no
15067 fi
15068
15069 rm -f conftest.err conftest.$ac_ext
15070 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15071 $as_echo "$ac_header_preproc" >&6; }
15072
15073 # So? What about this header?
15074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15075 yes:no: )
15076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15077 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15080 ac_header_preproc=yes
15081 ;;
15082 no:yes:* )
15083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15084 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15086 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15088 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15090 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15092 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15094 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15095
15096 ;;
15097 esac
15098 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15099 $as_echo_n "checking for $ac_header... " >&6; }
15100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15101 $as_echo_n "(cached) " >&6
15102 else
15103 eval "$as_ac_Header=\$ac_header_preproc"
15104 fi
15105 ac_res=`eval 'as_val=${'$as_ac_Header'}
15106 $as_echo "$as_val"'`
15107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15108 $as_echo "$ac_res" >&6; }
15109
15110 fi
15111 as_val=`eval 'as_val=${'$as_ac_Header'}
15112 $as_echo "$as_val"'`
15113 if test "x$as_val" = x""yes; then
15114 cat >>confdefs.h <<_ACEOF
15115 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15116 _ACEOF
15117
15118 else
15119 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15120 $as_echo "$as_me: error: bailing out" >&2;}
15121 { (exit 1); exit 1; }; }
15122 fi
15123
15124 done
15125
15126 fi
15127
15128 if test x$INTL = xyes; then
15129
15130 for ac_header in libintl.h
15131 do
15132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15134 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15135 $as_echo_n "checking for $ac_header... " >&6; }
15136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15137 $as_echo_n "(cached) " >&6
15138 fi
15139 ac_res=`eval 'as_val=${'$as_ac_Header'}
15140 $as_echo "$as_val"'`
15141 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15142 $as_echo "$ac_res" >&6; }
15143 else
15144 # Is the header compilable?
15145 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15146 $as_echo_n "checking $ac_header usability... " >&6; }
15147 cat >conftest.$ac_ext <<_ACEOF
15148 /* confdefs.h. */
15149 _ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h. */
15153 $ac_includes_default
15154 #include <$ac_header>
15155 _ACEOF
15156 rm -f conftest.$ac_objext
15157 if { (ac_try="$ac_compile"
15158 case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15161 esac
15162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15163 $as_echo "$ac_try_echo") >&5
15164 (eval "$ac_compile") 2>conftest.er1
15165 ac_status=$?
15166 grep -v '^ *+' conftest.er1 >conftest.err
15167 rm -f conftest.er1
15168 cat conftest.err >&5
15169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } && {
15171 test -z "$ac_c_werror_flag" ||
15172 test ! -s conftest.err
15173 } && test -s conftest.$ac_objext; then
15174 ac_header_compiler=yes
15175 else
15176 $as_echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15178
15179 ac_header_compiler=no
15180 fi
15181
15182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15183 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15184 $as_echo "$ac_header_compiler" >&6; }
15185
15186 # Is the header present?
15187 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15188 $as_echo_n "checking $ac_header presence... " >&6; }
15189 cat >conftest.$ac_ext <<_ACEOF
15190 /* confdefs.h. */
15191 _ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15195 #include <$ac_header>
15196 _ACEOF
15197 if { (ac_try="$ac_cpp conftest.$ac_ext"
15198 case "(($ac_try" in
15199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15200 *) ac_try_echo=$ac_try;;
15201 esac
15202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15203 $as_echo "$ac_try_echo") >&5
15204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15205 ac_status=$?
15206 grep -v '^ *+' conftest.er1 >conftest.err
15207 rm -f conftest.er1
15208 cat conftest.err >&5
15209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } >/dev/null && {
15211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15212 test ! -s conftest.err
15213 }; then
15214 ac_header_preproc=yes
15215 else
15216 $as_echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15218
15219 ac_header_preproc=no
15220 fi
15221
15222 rm -f conftest.err conftest.$ac_ext
15223 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15224 $as_echo "$ac_header_preproc" >&6; }
15225
15226 # So? What about this header?
15227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15228 yes:no: )
15229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15230 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15232 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15233 ac_header_preproc=yes
15234 ;;
15235 no:yes:* )
15236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15237 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15239 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15241 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15243 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15245 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15247 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15248
15249 ;;
15250 esac
15251 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15252 $as_echo_n "checking for $ac_header... " >&6; }
15253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15254 $as_echo_n "(cached) " >&6
15255 else
15256 eval "$as_ac_Header=\$ac_header_preproc"
15257 fi
15258 ac_res=`eval 'as_val=${'$as_ac_Header'}
15259 $as_echo "$as_val"'`
15260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15261 $as_echo "$ac_res" >&6; }
15262
15263 fi
15264 as_val=`eval 'as_val=${'$as_ac_Header'}
15265 $as_echo "$as_val"'`
15266 if test "x$as_val" = x""yes; then
15267 cat >>confdefs.h <<_ACEOF
15268 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15269 _ACEOF
15270
15271 else
15272 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15273 $as_echo "$as_me: error: bailing out" >&2;}
15274 { (exit 1); exit 1; }; }
15275 fi
15276
15277 done
15278
15279 fi
15280
15281 if test x$UDEV_SYNC = xyes; then
15282
15283
15284 for ac_header in sys/ipc.h sys/sem.h
15285 do
15286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15288 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15289 $as_echo_n "checking for $ac_header... " >&6; }
15290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15291 $as_echo_n "(cached) " >&6
15292 fi
15293 ac_res=`eval 'as_val=${'$as_ac_Header'}
15294 $as_echo "$as_val"'`
15295 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15296 $as_echo "$ac_res" >&6; }
15297 else
15298 # Is the header compilable?
15299 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15300 $as_echo_n "checking $ac_header usability... " >&6; }
15301 cat >conftest.$ac_ext <<_ACEOF
15302 /* confdefs.h. */
15303 _ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 $ac_includes_default
15308 #include <$ac_header>
15309 _ACEOF
15310 rm -f conftest.$ac_objext
15311 if { (ac_try="$ac_compile"
15312 case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15315 esac
15316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15317 $as_echo "$ac_try_echo") >&5
15318 (eval "$ac_compile") 2>conftest.er1
15319 ac_status=$?
15320 grep -v '^ *+' conftest.er1 >conftest.err
15321 rm -f conftest.er1
15322 cat conftest.err >&5
15323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } && {
15325 test -z "$ac_c_werror_flag" ||
15326 test ! -s conftest.err
15327 } && test -s conftest.$ac_objext; then
15328 ac_header_compiler=yes
15329 else
15330 $as_echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15332
15333 ac_header_compiler=no
15334 fi
15335
15336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15338 $as_echo "$ac_header_compiler" >&6; }
15339
15340 # Is the header present?
15341 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15342 $as_echo_n "checking $ac_header presence... " >&6; }
15343 cat >conftest.$ac_ext <<_ACEOF
15344 /* confdefs.h. */
15345 _ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15349 #include <$ac_header>
15350 _ACEOF
15351 if { (ac_try="$ac_cpp conftest.$ac_ext"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355 esac
15356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15357 $as_echo "$ac_try_echo") >&5
15358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15359 ac_status=$?
15360 grep -v '^ *+' conftest.er1 >conftest.err
15361 rm -f conftest.er1
15362 cat conftest.err >&5
15363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } >/dev/null && {
15365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15366 test ! -s conftest.err
15367 }; then
15368 ac_header_preproc=yes
15369 else
15370 $as_echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15372
15373 ac_header_preproc=no
15374 fi
15375
15376 rm -f conftest.err conftest.$ac_ext
15377 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15378 $as_echo "$ac_header_preproc" >&6; }
15379
15380 # So? What about this header?
15381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15382 yes:no: )
15383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15384 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15386 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15387 ac_header_preproc=yes
15388 ;;
15389 no:yes:* )
15390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15391 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15393 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15395 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15397 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15399 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15401 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15402
15403 ;;
15404 esac
15405 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15406 $as_echo_n "checking for $ac_header... " >&6; }
15407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15408 $as_echo_n "(cached) " >&6
15409 else
15410 eval "$as_ac_Header=\$ac_header_preproc"
15411 fi
15412 ac_res=`eval 'as_val=${'$as_ac_Header'}
15413 $as_echo "$as_val"'`
15414 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15415 $as_echo "$ac_res" >&6; }
15416
15417 fi
15418 as_val=`eval 'as_val=${'$as_ac_Header'}
15419 $as_echo "$as_val"'`
15420 if test "x$as_val" = x""yes; then
15421 cat >>confdefs.h <<_ACEOF
15422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15423 _ACEOF
15424
15425 else
15426 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15427 $as_echo "$as_me: error: bailing out" >&2;}
15428 { (exit 1); exit 1; }; }
15429 fi
15430
15431 done
15432
15433 fi
15434
15435 ################################################################################
15436 # Extract the first word of "modprobe", so it can be a program name with args.
15437 set dummy modprobe; ac_word=$2
15438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15439 $as_echo_n "checking for $ac_word... " >&6; }
15440 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
15441 $as_echo_n "(cached) " >&6
15442 else
15443 case $MODPROBE_CMD in
15444 [\\/]* | ?:[\\/]*)
15445 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15446 ;;
15447 *)
15448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15449 for as_dir in $PATH
15450 do
15451 IFS=$as_save_IFS
15452 test -z "$as_dir" && as_dir=.
15453 for ac_exec_ext in '' $ac_executable_extensions; do
15454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15455 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
15456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15457 break 2
15458 fi
15459 done
15460 done
15461 IFS=$as_save_IFS
15462
15463 ;;
15464 esac
15465 fi
15466 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
15467 if test -n "$MODPROBE_CMD"; then
15468 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15469 $as_echo "$MODPROBE_CMD" >&6; }
15470 else
15471 { $as_echo "$as_me:$LINENO: result: no" >&5
15472 $as_echo "no" >&6; }
15473 fi
15474
15475
15476
15477 if test x$MODPROBE_CMD != x; then
15478
15479 cat >>confdefs.h <<_ACEOF
15480 #define MODPROBE_CMD "$MODPROBE_CMD"
15481 _ACEOF
15482
15483 fi
15484
15485 ################################################################################
15486
15487
15488 if test "$BUILD_DMEVENTD" = yes; then
15489
15490 # Check whether --with-dmeventd-pidfile was given.
15491 if test "${with_dmeventd_pidfile+set}" = set; then
15492 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15493 #define DMEVENTD_PIDFILE "$withval"
15494 _ACEOF
15495
15496 else
15497 cat >>confdefs.h <<_ACEOF
15498 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15499 _ACEOF
15500
15501 fi
15502
15503 fi
15504
15505
15506
15507 if test "$BUILD_DMEVENTD" = yes; then
15508 dmeventd_prefix="$exec_prefix"
15509 if test "x$dmeventd_prefix" = "xNONE"; then
15510 dmeventd_prefix="$prefix"
15511 fi
15512 if test "x$dmeventd_prefix" = "xNONE"; then
15513 dmeventd_prefix=""
15514 fi
15515
15516 # Check whether --with-dmeventd-path was given.
15517 if test "${with_dmeventd_path+set}" = set; then
15518 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15519 #define DMEVENTD_PATH "$withval"
15520 _ACEOF
15521
15522 else
15523 cat >>confdefs.h <<_ACEOF
15524 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15525 _ACEOF
15526
15527 fi
15528
15529 fi
15530
15531 ################################################################################
15532
15533
15534
15535 # Check whether --with-default-system-dir was given.
15536 if test "${with_default_system_dir+set}" = set; then
15537 withval=$with_default_system_dir; DEFAULT_SYS_DIR="$withval"
15538 else
15539 DEFAULT_SYS_DIR="/etc/lvm"
15540 fi
15541
15542 cat >>confdefs.h <<_ACEOF
15543 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
15544 _ACEOF
15545
15546
15547
15548
15549
15550 # Check whether --with-default-archive-subdir was given.
15551 if test "${with_default_archive_subdir+set}" = set; then
15552 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR="$withval"
15553 else
15554 DEFAULT_ARCHIVE_SUBDIR="archive"
15555 fi
15556
15557 cat >>confdefs.h <<_ACEOF
15558 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
15559 _ACEOF
15560
15561
15562
15563
15564
15565 # Check whether --with-default-backup-subdir was given.
15566 if test "${with_default_backup_subdir+set}" = set; then
15567 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR="$withval"
15568 else
15569 DEFAULT_BACKUP_SUBDIR="backup"
15570 fi
15571
15572 cat >>confdefs.h <<_ACEOF
15573 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
15574 _ACEOF
15575
15576
15577
15578
15579
15580 # Check whether --with-default-cache-subdir was given.
15581 if test "${with_default_cache_subdir+set}" = set; then
15582 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR="$withval"
15583 else
15584 DEFAULT_CACHE_SUBDIR="cache"
15585 fi
15586
15587 cat >>confdefs.h <<_ACEOF
15588 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
15589 _ACEOF
15590
15591
15592
15593
15594
15595 # Check whether --with-default-locking-dir was given.
15596 if test "${with_default_locking_dir+set}" = set; then
15597 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR="$withval"
15598 else
15599 DEFAULT_LOCK_DIR="/var/lock/lvm"
15600 fi
15601
15602 cat >>confdefs.h <<_ACEOF
15603 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
15604 _ACEOF
15605
15606
15607 ################################################################################
15608 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15609 $as_echo_n "checking for kernel interface choice... " >&6; }
15610
15611 # Check whether --with-interface was given.
15612 if test "${with_interface+set}" = set; then
15613 withval=$with_interface; interface="$withval"
15614 else
15615 interface=ioctl
15616 fi
15617
15618 if [ "x$interface" != xioctl ];
15619 then
15620 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15621 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
15622 { (exit 1); exit 1; }; }
15623 fi
15624 { $as_echo "$as_me:$LINENO: result: $interface" >&5
15625 $as_echo "$interface" >&6; }
15626
15627 ################################################################################
15628 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
15629
15630 cat >>confdefs.h <<_ACEOF
15631 #define DM_LIB_VERSION $DM_LIB_VERSION
15632 _ACEOF
15633
15634
15635 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
15636
15637 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
15638
15639 VER=`cat "$srcdir"/VERSION`
15640 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
15641 VER=`echo "$VER" | $AWK '{print $1}'`
15642 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15643 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15644 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15645 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
15646 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15647 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
15648
15649 ################################################################################
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745 ################################################################################
15746 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
15747
15748 cat >confcache <<\_ACEOF
15749 # This file is a shell script that caches the results of configure
15750 # tests run on this system so they can be shared between configure
15751 # scripts and configure runs, see configure's option --config-cache.
15752 # It is not useful on other systems. If it contains results you don't
15753 # want to keep, you may remove or edit it.
15754 #
15755 # config.status only pays attention to the cache file if you give it
15756 # the --recheck option to rerun configure.
15757 #
15758 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15759 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15760 # following values.
15761
15762 _ACEOF
15763
15764 # The following way of writing the cache mishandles newlines in values,
15765 # but we know of no workaround that is simple, portable, and efficient.
15766 # So, we kill variables containing newlines.
15767 # Ultrix sh set writes to stderr and can't be redirected directly,
15768 # and sets the high bit in the cache file unless we assign to the vars.
15769 (
15770 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15771 eval ac_val=\$$ac_var
15772 case $ac_val in #(
15773 *${as_nl}*)
15774 case $ac_var in #(
15775 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15776 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15777 esac
15778 case $ac_var in #(
15779 _ | IFS | as_nl) ;; #(
15780 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15781 *) $as_unset $ac_var ;;
15782 esac ;;
15783 esac
15784 done
15785
15786 (set) 2>&1 |
15787 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15788 *${as_nl}ac_space=\ *)
15789 # `set' does not quote correctly, so add quotes (double-quote
15790 # substitution turns \\\\ into \\, and sed turns \\ into \).
15791 sed -n \
15792 "s/'/'\\\\''/g;
15793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15794 ;; #(
15795 *)
15796 # `set' quotes correctly as required by POSIX, so do not add quotes.
15797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15798 ;;
15799 esac |
15800 sort
15801 ) |
15802 sed '
15803 /^ac_cv_env_/b end
15804 t clear
15805 :clear
15806 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15807 t end
15808 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15809 :end' >>confcache
15810 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15811 if test -w "$cache_file"; then
15812 test "x$cache_file" != "x/dev/null" &&
15813 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15814 $as_echo "$as_me: updating cache $cache_file" >&6;}
15815 cat confcache >$cache_file
15816 else
15817 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15818 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15819 fi
15820 fi
15821 rm -f confcache
15822
15823 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15824 # Let make expand exec_prefix.
15825 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15826
15827 DEFS=-DHAVE_CONFIG_H
15828
15829 ac_libobjs=
15830 ac_ltlibobjs=
15831 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15832 # 1. Remove the extension, and $U if already installed.
15833 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15834 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15835 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15836 # will be set to the directory where LIBOBJS objects are built.
15837 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15838 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15839 done
15840 LIBOBJS=$ac_libobjs
15841
15842 LTLIBOBJS=$ac_ltlibobjs
15843
15844
15845
15846 : ${CONFIG_STATUS=./config.status}
15847 ac_write_fail=0
15848 ac_clean_files_save=$ac_clean_files
15849 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15850 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15851 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15852 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15853 #! $SHELL
15854 # Generated by $as_me.
15855 # Run this file to recreate the current configuration.
15856 # Compiler output produced by configure, useful for debugging
15857 # configure, is in config.log if it exists.
15858
15859 debug=false
15860 ac_cs_recheck=false
15861 ac_cs_silent=false
15862 SHELL=\${CONFIG_SHELL-$SHELL}
15863 _ACEOF
15864
15865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15866 ## --------------------- ##
15867 ## M4sh Initialization. ##
15868 ## --------------------- ##
15869
15870 # Be more Bourne compatible
15871 DUALCASE=1; export DUALCASE # for MKS sh
15872 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15873 emulate sh
15874 NULLCMD=:
15875 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15876 # is contrary to our usage. Disable this feature.
15877 alias -g '${1+"$@"}'='"$@"'
15878 setopt NO_GLOB_SUBST
15879 else
15880 case `(set -o) 2>/dev/null` in
15881 *posix*) set -o posix ;;
15882 esac
15883
15884 fi
15885
15886
15887
15888
15889 # PATH needs CR
15890 # Avoid depending upon Character Ranges.
15891 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15892 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15893 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15894 as_cr_digits='0123456789'
15895 as_cr_alnum=$as_cr_Letters$as_cr_digits
15896
15897 as_nl='
15898 '
15899 export as_nl
15900 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15901 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15902 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15903 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15904 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15905 as_echo='printf %s\n'
15906 as_echo_n='printf %s'
15907 else
15908 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15909 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15910 as_echo_n='/usr/ucb/echo -n'
15911 else
15912 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15913 as_echo_n_body='eval
15914 arg=$1;
15915 case $arg in
15916 *"$as_nl"*)
15917 expr "X$arg" : "X\\(.*\\)$as_nl";
15918 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15919 esac;
15920 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15921 '
15922 export as_echo_n_body
15923 as_echo_n='sh -c $as_echo_n_body as_echo'
15924 fi
15925 export as_echo_body
15926 as_echo='sh -c $as_echo_body as_echo'
15927 fi
15928
15929 # The user is always right.
15930 if test "${PATH_SEPARATOR+set}" != set; then
15931 PATH_SEPARATOR=:
15932 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15933 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15934 PATH_SEPARATOR=';'
15935 }
15936 fi
15937
15938 # Support unset when possible.
15939 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15940 as_unset=unset
15941 else
15942 as_unset=false
15943 fi
15944
15945
15946 # IFS
15947 # We need space, tab and new line, in precisely that order. Quoting is
15948 # there to prevent editors from complaining about space-tab.
15949 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15950 # splitting by setting IFS to empty value.)
15951 IFS=" "" $as_nl"
15952
15953 # Find who we are. Look in the path if we contain no directory separator.
15954 case $0 in
15955 *[\\/]* ) as_myself=$0 ;;
15956 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15957 for as_dir in $PATH
15958 do
15959 IFS=$as_save_IFS
15960 test -z "$as_dir" && as_dir=.
15961 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15962 done
15963 IFS=$as_save_IFS
15964
15965 ;;
15966 esac
15967 # We did not find ourselves, most probably we were run as `sh COMMAND'
15968 # in which case we are not to be found in the path.
15969 if test "x$as_myself" = x; then
15970 as_myself=$0
15971 fi
15972 if test ! -f "$as_myself"; then
15973 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15974 { (exit 1); exit 1; }
15975 fi
15976
15977 # Work around bugs in pre-3.0 UWIN ksh.
15978 for as_var in ENV MAIL MAILPATH
15979 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15980 done
15981 PS1='$ '
15982 PS2='> '
15983 PS4='+ '
15984
15985 # NLS nuisances.
15986 LC_ALL=C
15987 export LC_ALL
15988 LANGUAGE=C
15989 export LANGUAGE
15990
15991 # Required to use basename.
15992 if expr a : '\(a\)' >/dev/null 2>&1 &&
15993 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15994 as_expr=expr
15995 else
15996 as_expr=false
15997 fi
15998
15999 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16000 as_basename=basename
16001 else
16002 as_basename=false
16003 fi
16004
16005
16006 # Name of the executable.
16007 as_me=`$as_basename -- "$0" ||
16008 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16009 X"$0" : 'X\(//\)$' \| \
16010 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16011 $as_echo X/"$0" |
16012 sed '/^.*\/\([^/][^/]*\)\/*$/{
16013 s//\1/
16014 q
16015 }
16016 /^X\/\(\/\/\)$/{
16017 s//\1/
16018 q
16019 }
16020 /^X\/\(\/\).*/{
16021 s//\1/
16022 q
16023 }
16024 s/.*/./; q'`
16025
16026 # CDPATH.
16027 $as_unset CDPATH
16028
16029
16030
16031 as_lineno_1=$LINENO
16032 as_lineno_2=$LINENO
16033 test "x$as_lineno_1" != "x$as_lineno_2" &&
16034 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16035
16036 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16037 # uniformly replaced by the line number. The first 'sed' inserts a
16038 # line-number line after each line using $LINENO; the second 'sed'
16039 # does the real work. The second script uses 'N' to pair each
16040 # line-number line with the line containing $LINENO, and appends
16041 # trailing '-' during substitution so that $LINENO is not a special
16042 # case at line end.
16043 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16044 # scripts with optimization help from Paolo Bonzini. Blame Lee
16045 # E. McMahon (1931-1989) for sed's syntax. :-)
16046 sed -n '
16047 p
16048 /[$]LINENO/=
16049 ' <$as_myself |
16050 sed '
16051 s/[$]LINENO.*/&-/
16052 t lineno
16053 b
16054 :lineno
16055 N
16056 :loop
16057 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16058 t loop
16059 s/-\n.*//
16060 ' >$as_me.lineno &&
16061 chmod +x "$as_me.lineno" ||
16062 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16063 { (exit 1); exit 1; }; }
16064
16065 # Don't try to exec as it changes $[0], causing all sort of problems
16066 # (the dirname of $[0] is not the place where we might find the
16067 # original and so on. Autoconf is especially sensitive to this).
16068 . "./$as_me.lineno"
16069 # Exit status is that of the last command.
16070 exit
16071 }
16072
16073
16074 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16075 as_dirname=dirname
16076 else
16077 as_dirname=false
16078 fi
16079
16080 ECHO_C= ECHO_N= ECHO_T=
16081 case `echo -n x` in
16082 -n*)
16083 case `echo 'x\c'` in
16084 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16085 *) ECHO_C='\c';;
16086 esac;;
16087 *)
16088 ECHO_N='-n';;
16089 esac
16090 if expr a : '\(a\)' >/dev/null 2>&1 &&
16091 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16092 as_expr=expr
16093 else
16094 as_expr=false
16095 fi
16096
16097 rm -f conf$$ conf$$.exe conf$$.file
16098 if test -d conf$$.dir; then
16099 rm -f conf$$.dir/conf$$.file
16100 else
16101 rm -f conf$$.dir
16102 mkdir conf$$.dir 2>/dev/null
16103 fi
16104 if (echo >conf$$.file) 2>/dev/null; then
16105 if ln -s conf$$.file conf$$ 2>/dev/null; then
16106 as_ln_s='ln -s'
16107 # ... but there are two gotchas:
16108 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16109 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16110 # In both cases, we have to default to `cp -p'.
16111 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16112 as_ln_s='cp -p'
16113 elif ln conf$$.file conf$$ 2>/dev/null; then
16114 as_ln_s=ln
16115 else
16116 as_ln_s='cp -p'
16117 fi
16118 else
16119 as_ln_s='cp -p'
16120 fi
16121 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16122 rmdir conf$$.dir 2>/dev/null
16123
16124 if mkdir -p . 2>/dev/null; then
16125 as_mkdir_p=:
16126 else
16127 test -d ./-p && rmdir ./-p
16128 as_mkdir_p=false
16129 fi
16130
16131 if test -x / >/dev/null 2>&1; then
16132 as_test_x='test -x'
16133 else
16134 if ls -dL / >/dev/null 2>&1; then
16135 as_ls_L_option=L
16136 else
16137 as_ls_L_option=
16138 fi
16139 as_test_x='
16140 eval sh -c '\''
16141 if test -d "$1"; then
16142 test -d "$1/.";
16143 else
16144 case $1 in
16145 -*)set "./$1";;
16146 esac;
16147 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16148 ???[sx]*):;;*)false;;esac;fi
16149 '\'' sh
16150 '
16151 fi
16152 as_executable_p=$as_test_x
16153
16154 # Sed expression to map a string onto a valid CPP name.
16155 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16156
16157 # Sed expression to map a string onto a valid variable name.
16158 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16159
16160
16161 exec 6>&1
16162
16163 # Save the log message, to keep $[0] and so on meaningful, and to
16164 # report actual input values of CONFIG_FILES etc. instead of their
16165 # values after options handling.
16166 ac_log="
16167 This file was extended by $as_me, which was
16168 generated by GNU Autoconf 2.63. Invocation command line was
16169
16170 CONFIG_FILES = $CONFIG_FILES
16171 CONFIG_HEADERS = $CONFIG_HEADERS
16172 CONFIG_LINKS = $CONFIG_LINKS
16173 CONFIG_COMMANDS = $CONFIG_COMMANDS
16174 $ $0 $@
16175
16176 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16177 "
16178
16179 _ACEOF
16180
16181 case $ac_config_files in *"
16182 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16183 esac
16184
16185 case $ac_config_headers in *"
16186 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16187 esac
16188
16189
16190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16191 # Files that config.status was made for.
16192 config_files="$ac_config_files"
16193 config_headers="$ac_config_headers"
16194
16195 _ACEOF
16196
16197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16198 ac_cs_usage="\
16199 \`$as_me' instantiates files from templates according to the
16200 current configuration.
16201
16202 Usage: $0 [OPTION]... [FILE]...
16203
16204 -h, --help print this help, then exit
16205 -V, --version print version number and configuration settings, then exit
16206 -q, --quiet, --silent
16207 do not print progress messages
16208 -d, --debug don't remove temporary files
16209 --recheck update $as_me by reconfiguring in the same conditions
16210 --file=FILE[:TEMPLATE]
16211 instantiate the configuration file FILE
16212 --header=FILE[:TEMPLATE]
16213 instantiate the configuration header FILE
16214
16215 Configuration files:
16216 $config_files
16217
16218 Configuration headers:
16219 $config_headers
16220
16221 Report bugs to <bug-autoconf@gnu.org>."
16222
16223 _ACEOF
16224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16225 ac_cs_version="\\
16226 config.status
16227 configured by $0, generated by GNU Autoconf 2.63,
16228 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16229
16230 Copyright (C) 2008 Free Software Foundation, Inc.
16231 This config.status script is free software; the Free Software Foundation
16232 gives unlimited permission to copy, distribute and modify it."
16233
16234 ac_pwd='$ac_pwd'
16235 srcdir='$srcdir'
16236 INSTALL='$INSTALL'
16237 MKDIR_P='$MKDIR_P'
16238 AWK='$AWK'
16239 test -n "\$AWK" || AWK=awk
16240 _ACEOF
16241
16242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16243 # The default lists apply if the user does not specify any file.
16244 ac_need_defaults=:
16245 while test $# != 0
16246 do
16247 case $1 in
16248 --*=*)
16249 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16250 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16251 ac_shift=:
16252 ;;
16253 *)
16254 ac_option=$1
16255 ac_optarg=$2
16256 ac_shift=shift
16257 ;;
16258 esac
16259
16260 case $ac_option in
16261 # Handling of the options.
16262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16263 ac_cs_recheck=: ;;
16264 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16265 $as_echo "$ac_cs_version"; exit ;;
16266 --debug | --debu | --deb | --de | --d | -d )
16267 debug=: ;;
16268 --file | --fil | --fi | --f )
16269 $ac_shift
16270 case $ac_optarg in
16271 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16272 esac
16273 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16274 ac_need_defaults=false;;
16275 --header | --heade | --head | --hea )
16276 $ac_shift
16277 case $ac_optarg in
16278 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16279 esac
16280 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16281 ac_need_defaults=false;;
16282 --he | --h)
16283 # Conflict between --help and --header
16284 { $as_echo "$as_me: error: ambiguous option: $1
16285 Try \`$0 --help' for more information." >&2
16286 { (exit 1); exit 1; }; };;
16287 --help | --hel | -h )
16288 $as_echo "$ac_cs_usage"; exit ;;
16289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16290 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16291 ac_cs_silent=: ;;
16292
16293 # This is an error.
16294 -*) { $as_echo "$as_me: error: unrecognized option: $1
16295 Try \`$0 --help' for more information." >&2
16296 { (exit 1); exit 1; }; } ;;
16297
16298 *) ac_config_targets="$ac_config_targets $1"
16299 ac_need_defaults=false ;;
16300
16301 esac
16302 shift
16303 done
16304
16305 ac_configure_extra_args=
16306
16307 if $ac_cs_silent; then
16308 exec 6>/dev/null
16309 ac_configure_extra_args="$ac_configure_extra_args --silent"
16310 fi
16311
16312 _ACEOF
16313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16314 if \$ac_cs_recheck; then
16315 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16316 shift
16317 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16318 CONFIG_SHELL='$SHELL'
16319 export CONFIG_SHELL
16320 exec "\$@"
16321 fi
16322
16323 _ACEOF
16324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16325 exec 5>>config.log
16326 {
16327 echo
16328 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16329 ## Running $as_me. ##
16330 _ASBOX
16331 $as_echo "$ac_log"
16332 } >&5
16333
16334 _ACEOF
16335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16336 _ACEOF
16337
16338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16339
16340 # Handling of arguments.
16341 for ac_config_target in $ac_config_targets
16342 do
16343 case $ac_config_target in
16344 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16345 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16346 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16347 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16348 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
16349 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
16350 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16351 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
16352 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
16353 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
16354 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16355 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
16356 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16357 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
16358 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
16359 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16360 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16361 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16362 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16363 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16364 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
16365 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
16366 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
16367 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
16368 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16369 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
16370 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
16371 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
16372 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16373 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
16374 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
16375 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
16376 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
16377 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
16378 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16379 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
16380 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16381 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
16382
16383 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16384 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16385 { (exit 1); exit 1; }; };;
16386 esac
16387 done
16388
16389
16390 # If the user did not use the arguments to specify the items to instantiate,
16391 # then the envvar interface is used. Set only those that are not.
16392 # We use the long form for the default assignment because of an extremely
16393 # bizarre bug on SunOS 4.1.3.
16394 if $ac_need_defaults; then
16395 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16396 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16397 fi
16398
16399 # Have a temporary directory for convenience. Make it in the build tree
16400 # simply because there is no reason against having it here, and in addition,
16401 # creating and moving files from /tmp can sometimes cause problems.
16402 # Hook for its removal unless debugging.
16403 # Note that there is a small window in which the directory will not be cleaned:
16404 # after its creation but before its name has been assigned to `$tmp'.
16405 $debug ||
16406 {
16407 tmp=
16408 trap 'exit_status=$?
16409 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16410 ' 0
16411 trap '{ (exit 1); exit 1; }' 1 2 13 15
16412 }
16413 # Create a (secure) tmp directory for tmp files.
16414
16415 {
16416 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16417 test -n "$tmp" && test -d "$tmp"
16418 } ||
16419 {
16420 tmp=./conf$$-$RANDOM
16421 (umask 077 && mkdir "$tmp")
16422 } ||
16423 {
16424 $as_echo "$as_me: cannot create a temporary directory in ." >&2
16425 { (exit 1); exit 1; }
16426 }
16427
16428 # Set up the scripts for CONFIG_FILES section.
16429 # No need to generate them if there are no CONFIG_FILES.
16430 # This happens for instance with `./config.status config.h'.
16431 if test -n "$CONFIG_FILES"; then
16432
16433
16434 ac_cr=' '
16435 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16436 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16437 ac_cs_awk_cr='\\r'
16438 else
16439 ac_cs_awk_cr=$ac_cr
16440 fi
16441
16442 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16443 _ACEOF
16444
16445
16446 {
16447 echo "cat >conf$$subs.awk <<_ACEOF" &&
16448 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16449 echo "_ACEOF"
16450 } >conf$$subs.sh ||
16451 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16452 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16453 { (exit 1); exit 1; }; }
16454 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16455 ac_delim='%!_!# '
16456 for ac_last_try in false false false false false :; do
16457 . ./conf$$subs.sh ||
16458 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16459 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16460 { (exit 1); exit 1; }; }
16461
16462 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16463 if test $ac_delim_n = $ac_delim_num; then
16464 break
16465 elif $ac_last_try; then
16466 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16467 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16468 { (exit 1); exit 1; }; }
16469 else
16470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16471 fi
16472 done
16473 rm -f conf$$subs.sh
16474
16475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16476 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16477 _ACEOF
16478 sed -n '
16479 h
16480 s/^/S["/; s/!.*/"]=/
16481 p
16482 g
16483 s/^[^!]*!//
16484 :repl
16485 t repl
16486 s/'"$ac_delim"'$//
16487 t delim
16488 :nl
16489 h
16490 s/\(.\{148\}\).*/\1/
16491 t more1
16492 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16493 p
16494 n
16495 b repl
16496 :more1
16497 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16498 p
16499 g
16500 s/.\{148\}//
16501 t nl
16502 :delim
16503 h
16504 s/\(.\{148\}\).*/\1/
16505 t more2
16506 s/["\\]/\\&/g; s/^/"/; s/$/"/
16507 p
16508 b
16509 :more2
16510 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16511 p
16512 g
16513 s/.\{148\}//
16514 t delim
16515 ' <conf$$subs.awk | sed '
16516 /^[^""]/{
16517 N
16518 s/\n//
16519 }
16520 ' >>$CONFIG_STATUS || ac_write_fail=1
16521 rm -f conf$$subs.awk
16522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16523 _ACAWK
16524 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16525 for (key in S) S_is_set[key] = 1
16526 FS = "\a"
16527
16528 }
16529 {
16530 line = $ 0
16531 nfields = split(line, field, "@")
16532 substed = 0
16533 len = length(field[1])
16534 for (i = 2; i < nfields; i++) {
16535 key = field[i]
16536 keylen = length(key)
16537 if (S_is_set[key]) {
16538 value = S[key]
16539 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16540 len += length(value) + length(field[++i])
16541 substed = 1
16542 } else
16543 len += 1 + keylen
16544 }
16545
16546 print line
16547 }
16548
16549 _ACAWK
16550 _ACEOF
16551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16552 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16553 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16554 else
16555 cat
16556 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16557 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16558 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16559 { (exit 1); exit 1; }; }
16560 _ACEOF
16561
16562 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16563 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16564 # trailing colons and then remove the whole line if VPATH becomes empty
16565 # (actually we leave an empty line to preserve line numbers).
16566 if test "x$srcdir" = x.; then
16567 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16568 s/:*\$(srcdir):*/:/
16569 s/:*\${srcdir}:*/:/
16570 s/:*@srcdir@:*/:/
16571 s/^\([^=]*=[ ]*\):*/\1/
16572 s/:*$//
16573 s/^[^=]*=[ ]*$//
16574 }'
16575 fi
16576
16577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16578 fi # test -n "$CONFIG_FILES"
16579
16580 # Set up the scripts for CONFIG_HEADERS section.
16581 # No need to generate them if there are no CONFIG_HEADERS.
16582 # This happens for instance with `./config.status Makefile'.
16583 if test -n "$CONFIG_HEADERS"; then
16584 cat >"$tmp/defines.awk" <<\_ACAWK ||
16585 BEGIN {
16586 _ACEOF
16587
16588 # Transform confdefs.h into an awk script `defines.awk', embedded as
16589 # here-document in config.status, that substitutes the proper values into
16590 # config.h.in to produce config.h.
16591
16592 # Create a delimiter string that does not exist in confdefs.h, to ease
16593 # handling of long lines.
16594 ac_delim='%!_!# '
16595 for ac_last_try in false false :; do
16596 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16597 if test -z "$ac_t"; then
16598 break
16599 elif $ac_last_try; then
16600 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16601 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16602 { (exit 1); exit 1; }; }
16603 else
16604 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16605 fi
16606 done
16607
16608 # For the awk script, D is an array of macro values keyed by name,
16609 # likewise P contains macro parameters if any. Preserve backslash
16610 # newline sequences.
16611
16612 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16613 sed -n '
16614 s/.\{148\}/&'"$ac_delim"'/g
16615 t rset
16616 :rset
16617 s/^[ ]*#[ ]*define[ ][ ]*/ /
16618 t def
16619 d
16620 :def
16621 s/\\$//
16622 t bsnl
16623 s/["\\]/\\&/g
16624 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16625 D["\1"]=" \3"/p
16626 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16627 d
16628 :bsnl
16629 s/["\\]/\\&/g
16630 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16631 D["\1"]=" \3\\\\\\n"\\/p
16632 t cont
16633 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16634 t cont
16635 d
16636 :cont
16637 n
16638 s/.\{148\}/&'"$ac_delim"'/g
16639 t clear
16640 :clear
16641 s/\\$//
16642 t bsnlc
16643 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16644 d
16645 :bsnlc
16646 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16647 b cont
16648 ' <confdefs.h | sed '
16649 s/'"$ac_delim"'/"\\\
16650 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16651
16652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16653 for (key in D) D_is_set[key] = 1
16654 FS = "\a"
16655 }
16656 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16657 line = \$ 0
16658 split(line, arg, " ")
16659 if (arg[1] == "#") {
16660 defundef = arg[2]
16661 mac1 = arg[3]
16662 } else {
16663 defundef = substr(arg[1], 2)
16664 mac1 = arg[2]
16665 }
16666 split(mac1, mac2, "(") #)
16667 macro = mac2[1]
16668 prefix = substr(line, 1, index(line, defundef) - 1)
16669 if (D_is_set[macro]) {
16670 # Preserve the white space surrounding the "#".
16671 print prefix "define", macro P[macro] D[macro]
16672 next
16673 } else {
16674 # Replace #undef with comments. This is necessary, for example,
16675 # in the case of _POSIX_SOURCE, which is predefined and required
16676 # on some systems where configure will not decide to define it.
16677 if (defundef == "undef") {
16678 print "/*", prefix defundef, macro, "*/"
16679 next
16680 }
16681 }
16682 }
16683 { print }
16684 _ACAWK
16685 _ACEOF
16686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16687 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16688 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16689 { (exit 1); exit 1; }; }
16690 fi # test -n "$CONFIG_HEADERS"
16691
16692
16693 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16694 shift
16695 for ac_tag
16696 do
16697 case $ac_tag in
16698 :[FHLC]) ac_mode=$ac_tag; continue;;
16699 esac
16700 case $ac_mode$ac_tag in
16701 :[FHL]*:*);;
16702 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16703 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16704 { (exit 1); exit 1; }; };;
16705 :[FH]-) ac_tag=-:-;;
16706 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16707 esac
16708 ac_save_IFS=$IFS
16709 IFS=:
16710 set x $ac_tag
16711 IFS=$ac_save_IFS
16712 shift
16713 ac_file=$1
16714 shift
16715
16716 case $ac_mode in
16717 :L) ac_source=$1;;
16718 :[FH])
16719 ac_file_inputs=
16720 for ac_f
16721 do
16722 case $ac_f in
16723 -) ac_f="$tmp/stdin";;
16724 *) # Look for the file first in the build tree, then in the source tree
16725 # (if the path is not absolute). The absolute path cannot be DOS-style,
16726 # because $ac_f cannot contain `:'.
16727 test -f "$ac_f" ||
16728 case $ac_f in
16729 [\\/$]*) false;;
16730 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16731 esac ||
16732 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16733 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16734 { (exit 1); exit 1; }; };;
16735 esac
16736 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16737 ac_file_inputs="$ac_file_inputs '$ac_f'"
16738 done
16739
16740 # Let's still pretend it is `configure' which instantiates (i.e., don't
16741 # use $as_me), people would be surprised to read:
16742 # /* config.h. Generated by config.status. */
16743 configure_input='Generated from '`
16744 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16745 `' by configure.'
16746 if test x"$ac_file" != x-; then
16747 configure_input="$ac_file. $configure_input"
16748 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16749 $as_echo "$as_me: creating $ac_file" >&6;}
16750 fi
16751 # Neutralize special characters interpreted by sed in replacement strings.
16752 case $configure_input in #(
16753 *\&* | *\|* | *\\* )
16754 ac_sed_conf_input=`$as_echo "$configure_input" |
16755 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16756 *) ac_sed_conf_input=$configure_input;;
16757 esac
16758
16759 case $ac_tag in
16760 *:-:* | *:-) cat >"$tmp/stdin" \
16761 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16762 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16763 { (exit 1); exit 1; }; } ;;
16764 esac
16765 ;;
16766 esac
16767
16768 ac_dir=`$as_dirname -- "$ac_file" ||
16769 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16770 X"$ac_file" : 'X\(//\)[^/]' \| \
16771 X"$ac_file" : 'X\(//\)$' \| \
16772 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16773 $as_echo X"$ac_file" |
16774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16775 s//\1/
16776 q
16777 }
16778 /^X\(\/\/\)[^/].*/{
16779 s//\1/
16780 q
16781 }
16782 /^X\(\/\/\)$/{
16783 s//\1/
16784 q
16785 }
16786 /^X\(\/\).*/{
16787 s//\1/
16788 q
16789 }
16790 s/.*/./; q'`
16791 { as_dir="$ac_dir"
16792 case $as_dir in #(
16793 -*) as_dir=./$as_dir;;
16794 esac
16795 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16796 as_dirs=
16797 while :; do
16798 case $as_dir in #(
16799 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16800 *) as_qdir=$as_dir;;
16801 esac
16802 as_dirs="'$as_qdir' $as_dirs"
16803 as_dir=`$as_dirname -- "$as_dir" ||
16804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16805 X"$as_dir" : 'X\(//\)[^/]' \| \
16806 X"$as_dir" : 'X\(//\)$' \| \
16807 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16808 $as_echo X"$as_dir" |
16809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16810 s//\1/
16811 q
16812 }
16813 /^X\(\/\/\)[^/].*/{
16814 s//\1/
16815 q
16816 }
16817 /^X\(\/\/\)$/{
16818 s//\1/
16819 q
16820 }
16821 /^X\(\/\).*/{
16822 s//\1/
16823 q
16824 }
16825 s/.*/./; q'`
16826 test -d "$as_dir" && break
16827 done
16828 test -z "$as_dirs" || eval "mkdir $as_dirs"
16829 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16830 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16831 { (exit 1); exit 1; }; }; }
16832 ac_builddir=.
16833
16834 case "$ac_dir" in
16835 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16836 *)
16837 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16838 # A ".." for each directory in $ac_dir_suffix.
16839 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16840 case $ac_top_builddir_sub in
16841 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16842 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16843 esac ;;
16844 esac
16845 ac_abs_top_builddir=$ac_pwd
16846 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16847 # for backward compatibility:
16848 ac_top_builddir=$ac_top_build_prefix
16849
16850 case $srcdir in
16851 .) # We are building in place.
16852 ac_srcdir=.
16853 ac_top_srcdir=$ac_top_builddir_sub
16854 ac_abs_top_srcdir=$ac_pwd ;;
16855 [\\/]* | ?:[\\/]* ) # Absolute name.
16856 ac_srcdir=$srcdir$ac_dir_suffix;
16857 ac_top_srcdir=$srcdir
16858 ac_abs_top_srcdir=$srcdir ;;
16859 *) # Relative name.
16860 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16861 ac_top_srcdir=$ac_top_build_prefix$srcdir
16862 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16863 esac
16864 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16865
16866
16867 case $ac_mode in
16868 :F)
16869 #
16870 # CONFIG_FILE
16871 #
16872
16873 case $INSTALL in
16874 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16875 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16876 esac
16877 ac_MKDIR_P=$MKDIR_P
16878 case $MKDIR_P in
16879 [\\/$]* | ?:[\\/]* ) ;;
16880 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16881 esac
16882 _ACEOF
16883
16884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16885 # If the template does not know about datarootdir, expand it.
16886 # FIXME: This hack should be removed a few years after 2.60.
16887 ac_datarootdir_hack=; ac_datarootdir_seen=
16888
16889 ac_sed_dataroot='
16890 /datarootdir/ {
16891 p
16892 q
16893 }
16894 /@datadir@/p
16895 /@docdir@/p
16896 /@infodir@/p
16897 /@localedir@/p
16898 /@mandir@/p
16899 '
16900 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16901 *datarootdir*) ac_datarootdir_seen=yes;;
16902 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16903 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16904 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16905 _ACEOF
16906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16907 ac_datarootdir_hack='
16908 s&@datadir@&$datadir&g
16909 s&@docdir@&$docdir&g
16910 s&@infodir@&$infodir&g
16911 s&@localedir@&$localedir&g
16912 s&@mandir@&$mandir&g
16913 s&\\\${datarootdir}&$datarootdir&g' ;;
16914 esac
16915 _ACEOF
16916
16917 # Neutralize VPATH when `$srcdir' = `.'.
16918 # Shell code in configure.ac might set extrasub.
16919 # FIXME: do we really want to maintain this feature?
16920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16921 ac_sed_extra="$ac_vpsub
16922 $extrasub
16923 _ACEOF
16924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16925 :t
16926 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16927 s|@configure_input@|$ac_sed_conf_input|;t t
16928 s&@top_builddir@&$ac_top_builddir_sub&;t t
16929 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16930 s&@srcdir@&$ac_srcdir&;t t
16931 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16932 s&@top_srcdir@&$ac_top_srcdir&;t t
16933 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16934 s&@builddir@&$ac_builddir&;t t
16935 s&@abs_builddir@&$ac_abs_builddir&;t t
16936 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16937 s&@INSTALL@&$ac_INSTALL&;t t
16938 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16939 $ac_datarootdir_hack
16940 "
16941 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16942 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16943 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16944 { (exit 1); exit 1; }; }
16945
16946 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16947 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16948 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16949 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16950 which seems to be undefined. Please make sure it is defined." >&5
16951 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16952 which seems to be undefined. Please make sure it is defined." >&2;}
16953
16954 rm -f "$tmp/stdin"
16955 case $ac_file in
16956 -) cat "$tmp/out" && rm -f "$tmp/out";;
16957 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16958 esac \
16959 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16960 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16961 { (exit 1); exit 1; }; }
16962 ;;
16963 :H)
16964 #
16965 # CONFIG_HEADER
16966 #
16967 if test x"$ac_file" != x-; then
16968 {
16969 $as_echo "/* $configure_input */" \
16970 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16971 } >"$tmp/config.h" \
16972 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16973 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16974 { (exit 1); exit 1; }; }
16975 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16976 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16977 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16978 else
16979 rm -f "$ac_file"
16980 mv "$tmp/config.h" "$ac_file" \
16981 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16982 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16983 { (exit 1); exit 1; }; }
16984 fi
16985 else
16986 $as_echo "/* $configure_input */" \
16987 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16988 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16989 $as_echo "$as_me: error: could not create -" >&2;}
16990 { (exit 1); exit 1; }; }
16991 fi
16992 ;;
16993
16994
16995 esac
16996
16997 done # for ac_tag
16998
16999
17000 { (exit 0); exit 0; }
17001 _ACEOF
17002 chmod +x $CONFIG_STATUS
17003 ac_clean_files=$ac_clean_files_save
17004
17005 test $ac_write_fail = 0 ||
17006 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17007 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17008 { (exit 1); exit 1; }; }
17009
17010
17011 # configure is writing to config.log, and then calls config.status.
17012 # config.status does its own redirection, appending to config.log.
17013 # Unfortunately, on DOS this fails, as config.log is still kept open
17014 # by configure, so config.status won't be able to write to it; its
17015 # output is simply discarded. So we exec the FD to /dev/null,
17016 # effectively closing config.log, so it can be properly (re)opened and
17017 # appended to by config.status. When coming back to configure, we
17018 # need to make the FD available again.
17019 if test "$no_create" != yes; then
17020 ac_cs_success=:
17021 ac_config_status_args=
17022 test "$silent" = yes &&
17023 ac_config_status_args="$ac_config_status_args --quiet"
17024 exec 5>/dev/null
17025 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17026 exec 5>>config.log
17027 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17028 # would make configure fail if this is the last instruction.
17029 $ac_cs_success || { (exit 1); exit 1; }
17030 fi
17031 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17032 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17033 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17034 fi
17035
17036
17037 if test x$ODIRECT != xyes; then
17038 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
17039 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
17040 fi
This page took 1.002911 seconds and 6 git commands to generate.