]> sourceware.org Git - lvm2.git/blob - configure
corosync not cman...
[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 tmpdir
643 kernelvsn
644 missingkernel
645 kerneldir
646 interface
647 LIB_PTHREAD
648 STATIC_LINK
649 STATICDIR
650 SNAPSHOTS
651 POOL
652 PKGCONFIG
653 OWNER
654 MIRRORS
655 LVM_RELEASE_DATE
656 LVM_RELEASE
657 LVM_PATCHLEVEL
658 LVM_MINOR
659 LVM_MAJOR
660 LVM_LIBAPI
661 LVM_VERSION
662 LVM1_FALLBACK
663 LVM1
664 LOCALEDIR
665 LIB_SUFFIX
666 LDDEPS
667 JOBS
668 INTL_PACKAGE
669 INTL
670 HAVE_SELINUX
671 HAVE_REALTIME
672 HAVE_LIBDL
673 GROUP
674 FSADM
675 DM_LIB_PATCHLEVEL
676 DM_LIB_VERSION
677 DM_IOCTLS
678 DM_DEVICE_UID
679 DM_DEVICE_MODE
680 DM_DEVICE_GID
681 DM_COMPAT
682 DMEVENTD
683 DEVMAPPER
684 DEBUG
685 COPTIMISE_FLAG
686 CONFDIR
687 CMDLIB
688 CLVMD
689 CLUSTER
690 CLDWHOLEARCHIVE
691 CLDNOWHOLEARCHIVE
692 CLDFLAGS
693 BUILD_DMEVENTD
694 APPLIB
695 MODPROBE_CMD
696 MSGFMT
697 LVM2CMD_LIB
698 LVM2APP_LIB
699 GENHTML
700 LCOV
701 CPG_LIBS
702 CPG_CFLAGS
703 CONFDB_LIBS
704 CONFDB_CFLAGS
705 QUORUM_LIBS
706 QUORUM_CFLAGS
707 PKG_CONFIG
708 POW_LIB
709 LIBOBJS
710 ALLOCA
711 CSCOPE_CMD
712 CFLOW_CMD
713 RANLIB
714 MKDIR_P
715 SET_MAKE
716 LN_S
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 EGREP
721 GREP
722 CPP
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 AWK
731 SED
732 target_os
733 target_vendor
734 target_cpu
735 target
736 host_os
737 host_vendor
738 host_cpu
739 host
740 build_os
741 build_vendor
742 build_cpu
743 build
744 target_alias
745 host_alias
746 build_alias
747 LIBS
748 ECHO_T
749 ECHO_N
750 ECHO_C
751 DEFS
752 mandir
753 localedir
754 libdir
755 psdir
756 pdfdir
757 dvidir
758 htmldir
759 infodir
760 docdir
761 oldincludedir
762 includedir
763 localstatedir
764 sharedstatedir
765 sysconfdir
766 datadir
767 datarootdir
768 libexecdir
769 sbindir
770 bindir
771 program_transform_name
772 prefix
773 exec_prefix
774 PACKAGE_BUGREPORT
775 PACKAGE_STRING
776 PACKAGE_VERSION
777 PACKAGE_TARNAME
778 PACKAGE_NAME
779 PATH_SEPARATOR
780 SHELL'
781 ac_subst_files=''
782 ac_user_opts='
783 enable_option_checking
784 enable_static_link
785 with_user
786 with_group
787 with_device_uid
788 with_device_gid
789 with_device_mode
790 enable_lvm1_fallback
791 with_lvm1
792 with_pool
793 with_cluster
794 with_snapshots
795 with_mirrors
796 enable_readline
797 enable_realtime
798 with_clvmd
799 enable_debug
800 with_optimisation
801 enable_profiling
802 enable_devmapper
803 enable_compat
804 enable_ioctl
805 enable_o_direct
806 enable_applib
807 enable_cmdlib
808 enable_pkgconfig
809 enable_fsadm
810 enable_dmeventd
811 enable_selinux
812 enable_nls
813 with_localedir
814 with_confdir
815 with_staticdir
816 with_usrlibdir
817 with_usrsbindir
818 with_dmeventd_pidfile
819 with_dmeventd_path
820 with_interface
821 '
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CC
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
830 CPP
831 PKG_CONFIG
832 QUORUM_CFLAGS
833 QUORUM_LIBS
834 CONFDB_CFLAGS
835 CONFDB_LIBS
836 CPG_CFLAGS
837 CPG_LIBS'
838
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
895 ac_prev=
896 continue
897 fi
898
899 case $ac_option in
900 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *) ac_optarg=yes ;;
902 esac
903
904 # Accept the important Cygnus configure options, so we can diagnose typos.
905
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
914
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
929
930 -datadir | --datadir | --datadi | --datad)
931 ac_prev=datadir ;;
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
934
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
947 { (exit 1); exit 1; }; }
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
968
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
974 { (exit 1); exit 1; }; }
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
985
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
994
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
998
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1005
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1010
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1016
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1023
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1028
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1033
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1040
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1045
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1052
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1057
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1061
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1065
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1069
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1078
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1083
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1090
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1097
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1114
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1119
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1124
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1128
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
1133 sbindir=$ac_optarg ;;
1134
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
1144 sharedstatedir=$ac_optarg ;;
1145
1146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
1149 site=$ac_optarg ;;
1150
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1155
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1162
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1167
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1170
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1173
1174 -with-* | --with-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1179 { (exit 1); exit 1; }; }
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=\$ac_optarg ;;
1190
1191 -without-* | --without-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1196 { (exit 1); exit 1; }; }
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1207
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1211
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1218
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1225
1226 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1227 Try \`$0 --help' for more information." >&2
1228 { (exit 1); exit 1; }; }
1229 ;;
1230
1231 *=*)
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1235 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1236 { (exit 1); exit 1; }; }
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1239
1240 *)
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1246 ;;
1247
1248 esac
1249 done
1250
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1254 { (exit 1); exit 1; }; }
1255 fi
1256
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1259 no) ;;
1260 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1261 { (exit 1); exit 1; }; } ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 esac
1264 fi
1265
1266 # Check all directory arguments for consistency.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1271 do
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
1280 case $ac_val in
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 esac
1284 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1285 { (exit 1); exit 1; }; }
1286 done
1287
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1294
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1316 { (exit 1); exit 1; }; }
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1319 { (exit 1); exit 1; }; }
1320
1321
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331 $as_echo X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
1349 srcdir=$ac_confdir
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 srcdir=..
1352 fi
1353 else
1354 ac_srcdir_defaulted=no
1355 fi
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1359 { (exit 1); exit 1; }; }
1360 fi
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 ac_abs_confdir=`(
1363 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1364 { (exit 1); exit 1; }; }
1365 pwd)`
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1369 fi
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1373 case $srcdir in
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 esac
1376 for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 done
1382
1383 #
1384 # Report the --help message.
1385 #
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390 \`configure' configures this package to adapt to many kinds of systems.
1391
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397 Defaults for the options are specified in brackets.
1398
1399 Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 [PREFIX]
1415
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1420
1421 For better control, use the options below.
1422
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1443 _ACEOF
1444
1445 cat <<\_ACEOF
1446
1447 System types:
1448 --build=BUILD configure for building on BUILD [guessed]
1449 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450 --target=TARGET configure for building compilers for TARGET [HOST]
1451 _ACEOF
1452 fi
1453
1454 if test -n "$ac_init_help"; then
1455
1456 cat <<\_ACEOF
1457
1458 Optional Features:
1459 --disable-option-checking ignore unrecognized --enable/--with options
1460 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1461 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1462 --enable-static_link Use this to link the tools to their libraries
1463 statically. Default is dynamic linking
1464 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1465 device-mapper is missing from the kernel
1466 --disable-readline Disable readline support
1467 --disable-realtime Disable realtime clock support
1468 --enable-debug Enable debugging
1469 --enable-profiling Gather gcov profiling data
1470 --disable-devmapper Disable LVM2 device-mapper interaction
1471 --enable-compat Enable support for old device-mapper versions
1472 --disable-driver Disable calls to device-mapper in the kernel
1473 --disable-o_direct Disable O_DIRECT
1474 --enable-applib Build application library
1475 --enable-cmdlib Build shared command library
1476 --enable-pkgconfig Install pkgconfig support
1477 --enable-fsadm Enable fsadm
1478 --enable-dmeventd Enable the device-mapper event daemon
1479 --disable-selinux Disable selinux support
1480 --enable-nls Enable Native Language Support
1481
1482 Optional Packages:
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-user=USER Set the owner of installed files [USER=root]
1486 --with-group=GROUP Set the group owner of installed files [GROUP=root]
1487 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1488 --with-device-gid=UID Set the group used for new device nodes [GID=0]
1489 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1490 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1491 TYPE=internal
1492 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1493 TYPE=internal
1494 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1495 TYPE=internal
1496 --with-snapshots=TYPE Snapshot support: internal/shared/none
1497 TYPE=internal
1498 --with-mirrors=TYPE Mirror support: internal/shared/none
1499 TYPE=internal
1500 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all
1501 TYPE=none
1502 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1503 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1504 --with-confdir=DIR Configuration files in DIR /etc
1505 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
1506 --with-usrlibdir=DIR
1507 --with-usrsbindir=DIR
1508 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1509 --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd]
1510 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
1511
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 CPP C preprocessor
1521 PKG_CONFIG path to pkg-config utility
1522 QUORUM_CFLAGS
1523 C compiler flags for QUORUM, overriding pkg-config
1524 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1525 CONFDB_CFLAGS
1526 C compiler flags for CONFDB, overriding pkg-config
1527 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1528 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1529 CPG_LIBS linker flags for CPG, overriding pkg-config
1530
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1533
1534 _ACEOF
1535 ac_status=$?
1536 fi
1537
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543 continue
1544 ac_builddir=.
1545
1546 case "$ac_dir" in
1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *)
1549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550 # A ".." for each directory in $ac_dir_suffix.
1551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555 esac ;;
1556 esac
1557 ac_abs_top_builddir=$ac_pwd
1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir=$ac_top_build_prefix
1561
1562 case $srcdir in
1563 .) # We are building in place.
1564 ac_srcdir=.
1565 ac_top_srcdir=$ac_top_builddir_sub
1566 ac_abs_top_srcdir=$ac_pwd ;;
1567 [\\/]* | ?:[\\/]* ) # Absolute name.
1568 ac_srcdir=$srcdir$ac_dir_suffix;
1569 ac_top_srcdir=$srcdir
1570 ac_abs_top_srcdir=$srcdir ;;
1571 *) # Relative name.
1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 esac
1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577
1578 cd "$ac_dir" || { ac_status=$?; continue; }
1579 # Check for guested configure.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1586 else
1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 fi || ac_status=$?
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1590 done
1591 fi
1592
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1595 cat <<\_ACEOF
1596 configure
1597 generated by GNU Autoconf 2.63
1598
1599 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1600 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1603 _ACEOF
1604 exit
1605 fi
1606 cat >config.log <<_ACEOF
1607 This file contains any messages produced by compilers while
1608 running configure, to aid debugging if configure makes a mistake.
1609
1610 It was created by $as_me, which was
1611 generated by GNU Autoconf 2.63. Invocation command line was
1612
1613 $ $0 $@
1614
1615 _ACEOF
1616 exec 5>>config.log
1617 {
1618 cat <<_ASUNAME
1619 ## --------- ##
1620 ## Platform. ##
1621 ## --------- ##
1622
1623 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1624 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1625 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1626 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1627 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1628
1629 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1630 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1631
1632 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1633 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1634 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1635 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1636 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1637 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1638 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1639
1640 _ASUNAME
1641
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 for as_dir in $PATH
1644 do
1645 IFS=$as_save_IFS
1646 test -z "$as_dir" && as_dir=.
1647 $as_echo "PATH: $as_dir"
1648 done
1649 IFS=$as_save_IFS
1650
1651 } >&5
1652
1653 cat >&5 <<_ACEOF
1654
1655
1656 ## ----------- ##
1657 ## Core tests. ##
1658 ## ----------- ##
1659
1660 _ACEOF
1661
1662
1663 # Keep a trace of the command line.
1664 # Strip out --no-create and --no-recursion so they do not pile up.
1665 # Strip out --silent because we don't want to record it for future runs.
1666 # Also quote any args containing shell meta-characters.
1667 # Make two passes to allow for proper duplicate-argument suppression.
1668 ac_configure_args=
1669 ac_configure_args0=
1670 ac_configure_args1=
1671 ac_must_keep_next=false
1672 for ac_pass in 1 2
1673 do
1674 for ac_arg
1675 do
1676 case $ac_arg in
1677 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1679 | -silent | --silent | --silen | --sile | --sil)
1680 continue ;;
1681 *\'*)
1682 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1683 esac
1684 case $ac_pass in
1685 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1686 2)
1687 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1688 if test $ac_must_keep_next = true; then
1689 ac_must_keep_next=false # Got value, back to normal.
1690 else
1691 case $ac_arg in
1692 *=* | --config-cache | -C | -disable-* | --disable-* \
1693 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1694 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1695 | -with-* | --with-* | -without-* | --without-* | --x)
1696 case "$ac_configure_args0 " in
1697 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1698 esac
1699 ;;
1700 -* ) ac_must_keep_next=true ;;
1701 esac
1702 fi
1703 ac_configure_args="$ac_configure_args '$ac_arg'"
1704 ;;
1705 esac
1706 done
1707 done
1708 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1709 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1710
1711 # When interrupted or exit'd, cleanup temporary files, and complete
1712 # config.log. We remove comments because anyway the quotes in there
1713 # would cause problems or look ugly.
1714 # WARNING: Use '\'' to represent an apostrophe within the trap.
1715 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1716 trap 'exit_status=$?
1717 # Save into config.log some information that might help in debugging.
1718 {
1719 echo
1720
1721 cat <<\_ASBOX
1722 ## ---------------- ##
1723 ## Cache variables. ##
1724 ## ---------------- ##
1725 _ASBOX
1726 echo
1727 # The following way of writing the cache mishandles newlines in values,
1728 (
1729 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1730 eval ac_val=\$$ac_var
1731 case $ac_val in #(
1732 *${as_nl}*)
1733 case $ac_var in #(
1734 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1735 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1736 esac
1737 case $ac_var in #(
1738 _ | IFS | as_nl) ;; #(
1739 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1740 *) $as_unset $ac_var ;;
1741 esac ;;
1742 esac
1743 done
1744 (set) 2>&1 |
1745 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1746 *${as_nl}ac_space=\ *)
1747 sed -n \
1748 "s/'\''/'\''\\\\'\'''\''/g;
1749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1750 ;; #(
1751 *)
1752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1753 ;;
1754 esac |
1755 sort
1756 )
1757 echo
1758
1759 cat <<\_ASBOX
1760 ## ----------------- ##
1761 ## Output variables. ##
1762 ## ----------------- ##
1763 _ASBOX
1764 echo
1765 for ac_var in $ac_subst_vars
1766 do
1767 eval ac_val=\$$ac_var
1768 case $ac_val in
1769 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770 esac
1771 $as_echo "$ac_var='\''$ac_val'\''"
1772 done | sort
1773 echo
1774
1775 if test -n "$ac_subst_files"; then
1776 cat <<\_ASBOX
1777 ## ------------------- ##
1778 ## File substitutions. ##
1779 ## ------------------- ##
1780 _ASBOX
1781 echo
1782 for ac_var in $ac_subst_files
1783 do
1784 eval ac_val=\$$ac_var
1785 case $ac_val in
1786 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787 esac
1788 $as_echo "$ac_var='\''$ac_val'\''"
1789 done | sort
1790 echo
1791 fi
1792
1793 if test -s confdefs.h; then
1794 cat <<\_ASBOX
1795 ## ----------- ##
1796 ## confdefs.h. ##
1797 ## ----------- ##
1798 _ASBOX
1799 echo
1800 cat confdefs.h
1801 echo
1802 fi
1803 test "$ac_signal" != 0 &&
1804 $as_echo "$as_me: caught signal $ac_signal"
1805 $as_echo "$as_me: exit $exit_status"
1806 } >&5
1807 rm -f core *.core core.conftest.* &&
1808 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1809 exit $exit_status
1810 ' 0
1811 for ac_signal in 1 2 13 15; do
1812 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1813 done
1814 ac_signal=0
1815
1816 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1817 rm -f -r conftest* confdefs.h
1818
1819 # Predefined preprocessor variables.
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_NAME "$PACKAGE_NAME"
1823 _ACEOF
1824
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1828 _ACEOF
1829
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_STRING "$PACKAGE_STRING"
1838 _ACEOF
1839
1840
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1843 _ACEOF
1844
1845
1846 # Let the site file select an alternate cache file if it wants to.
1847 # Prefer an explicitly selected file to automatically selected ones.
1848 ac_site_file1=NONE
1849 ac_site_file2=NONE
1850 if test -n "$CONFIG_SITE"; then
1851 ac_site_file1=$CONFIG_SITE
1852 elif test "x$prefix" != xNONE; then
1853 ac_site_file1=$prefix/share/config.site
1854 ac_site_file2=$prefix/etc/config.site
1855 else
1856 ac_site_file1=$ac_default_prefix/share/config.site
1857 ac_site_file2=$ac_default_prefix/etc/config.site
1858 fi
1859 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1860 do
1861 test "x$ac_site_file" = xNONE && continue
1862 if test -r "$ac_site_file"; then
1863 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1864 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1865 sed 's/^/| /' "$ac_site_file" >&5
1866 . "$ac_site_file"
1867 fi
1868 done
1869
1870 if test -r "$cache_file"; then
1871 # Some versions of bash will fail to source /dev/null (special
1872 # files actually), so we avoid doing that.
1873 if test -f "$cache_file"; then
1874 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1875 $as_echo "$as_me: loading cache $cache_file" >&6;}
1876 case $cache_file in
1877 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1878 *) . "./$cache_file";;
1879 esac
1880 fi
1881 else
1882 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1883 $as_echo "$as_me: creating cache $cache_file" >&6;}
1884 >$cache_file
1885 fi
1886
1887 # Check that the precious variables saved in the cache have kept the same
1888 # value.
1889 ac_cache_corrupted=false
1890 for ac_var in $ac_precious_vars; do
1891 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1892 eval ac_new_set=\$ac_env_${ac_var}_set
1893 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1894 eval ac_new_val=\$ac_env_${ac_var}_value
1895 case $ac_old_set,$ac_new_set in
1896 set,)
1897 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1898 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1899 ac_cache_corrupted=: ;;
1900 ,set)
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1902 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1904 ,);;
1905 *)
1906 if test "x$ac_old_val" != "x$ac_new_val"; then
1907 # differences in whitespace do not lead to failure.
1908 ac_old_val_w=`echo x $ac_old_val`
1909 ac_new_val_w=`echo x $ac_new_val`
1910 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1911 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1912 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1913 ac_cache_corrupted=:
1914 else
1915 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1916 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1917 eval $ac_var=\$ac_old_val
1918 fi
1919 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1920 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1921 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1922 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1923 fi;;
1924 esac
1925 # Pass precious variables to config.status.
1926 if test "$ac_new_set" = set; then
1927 case $ac_new_val in
1928 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1929 *) ac_arg=$ac_var=$ac_new_val ;;
1930 esac
1931 case " $ac_configure_args " in
1932 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1933 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1934 esac
1935 fi
1936 done
1937 if $ac_cache_corrupted; then
1938 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1940 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1941 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1942 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1943 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1944 { (exit 1); exit 1; }; }
1945 fi
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963 ac_ext=c
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968
1969
1970
1971 ac_config_headers="$ac_config_headers lib/misc/configure.h"
1972
1973
1974 ################################################################################
1975 ac_aux_dir=
1976 for ac_dir in autoconf "$srcdir"/autoconf; do
1977 if test -f "$ac_dir/install-sh"; then
1978 ac_aux_dir=$ac_dir
1979 ac_install_sh="$ac_aux_dir/install-sh -c"
1980 break
1981 elif test -f "$ac_dir/install.sh"; then
1982 ac_aux_dir=$ac_dir
1983 ac_install_sh="$ac_aux_dir/install.sh -c"
1984 break
1985 elif test -f "$ac_dir/shtool"; then
1986 ac_aux_dir=$ac_dir
1987 ac_install_sh="$ac_aux_dir/shtool install -c"
1988 break
1989 fi
1990 done
1991 if test -z "$ac_aux_dir"; then
1992 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1993 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1994 { (exit 1); exit 1; }; }
1995 fi
1996
1997 # These three variables are undocumented and unsupported,
1998 # and are intended to be withdrawn in a future Autoconf release.
1999 # They can cause serious problems if a builder's source tree is in a directory
2000 # whose full name contains unusual characters.
2001 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2002 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2003 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2004
2005
2006
2007 ################################################################################
2008 # Make sure we can run config.sub.
2009 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2010 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2011 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2012 { (exit 1); exit 1; }; }
2013
2014 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2015 $as_echo_n "checking build system type... " >&6; }
2016 if test "${ac_cv_build+set}" = set; then
2017 $as_echo_n "(cached) " >&6
2018 else
2019 ac_build_alias=$build_alias
2020 test "x$ac_build_alias" = x &&
2021 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2022 test "x$ac_build_alias" = x &&
2023 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2024 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2025 { (exit 1); exit 1; }; }
2026 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2027 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2028 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2029 { (exit 1); exit 1; }; }
2030
2031 fi
2032 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2033 $as_echo "$ac_cv_build" >&6; }
2034 case $ac_cv_build in
2035 *-*-*) ;;
2036 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2037 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2038 { (exit 1); exit 1; }; };;
2039 esac
2040 build=$ac_cv_build
2041 ac_save_IFS=$IFS; IFS='-'
2042 set x $ac_cv_build
2043 shift
2044 build_cpu=$1
2045 build_vendor=$2
2046 shift; shift
2047 # Remember, the first character of IFS is used to create $*,
2048 # except with old shells:
2049 build_os=$*
2050 IFS=$ac_save_IFS
2051 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2052
2053
2054 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2055 $as_echo_n "checking host system type... " >&6; }
2056 if test "${ac_cv_host+set}" = set; then
2057 $as_echo_n "(cached) " >&6
2058 else
2059 if test "x$host_alias" = x; then
2060 ac_cv_host=$ac_cv_build
2061 else
2062 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2063 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2064 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2065 { (exit 1); exit 1; }; }
2066 fi
2067
2068 fi
2069 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2070 $as_echo "$ac_cv_host" >&6; }
2071 case $ac_cv_host in
2072 *-*-*) ;;
2073 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2074 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2075 { (exit 1); exit 1; }; };;
2076 esac
2077 host=$ac_cv_host
2078 ac_save_IFS=$IFS; IFS='-'
2079 set x $ac_cv_host
2080 shift
2081 host_cpu=$1
2082 host_vendor=$2
2083 shift; shift
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2086 host_os=$*
2087 IFS=$ac_save_IFS
2088 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2089
2090
2091 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2092 $as_echo_n "checking target system type... " >&6; }
2093 if test "${ac_cv_target+set}" = set; then
2094 $as_echo_n "(cached) " >&6
2095 else
2096 if test "x$target_alias" = x; then
2097 ac_cv_target=$ac_cv_host
2098 else
2099 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2100 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2101 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2102 { (exit 1); exit 1; }; }
2103 fi
2104
2105 fi
2106 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2107 $as_echo "$ac_cv_target" >&6; }
2108 case $ac_cv_target in
2109 *-*-*) ;;
2110 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2111 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2112 { (exit 1); exit 1; }; };;
2113 esac
2114 target=$ac_cv_target
2115 ac_save_IFS=$IFS; IFS='-'
2116 set x $ac_cv_target
2117 shift
2118 target_cpu=$1
2119 target_vendor=$2
2120 shift; shift
2121 # Remember, the first character of IFS is used to create $*,
2122 # except with old shells:
2123 target_os=$*
2124 IFS=$ac_save_IFS
2125 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2126
2127
2128 # The aliases save the names the user supplied, while $host etc.
2129 # will get canonicalized.
2130 test -n "$target_alias" &&
2131 test "$program_prefix$program_suffix$program_transform_name" = \
2132 NONENONEs,x,x, &&
2133 program_prefix=${target_alias}-
2134
2135 case "$host_os" in
2136 linux*)
2137 CFLAGS="$CFLAGS"
2138 COPTIMISE_FLAG="-O2"
2139 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2140 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2141 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2142 LDDEPS="$LDDEPS .export.sym"
2143 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2144 LIB_SUFFIX=so
2145 DEVMAPPER=yes
2146 ODIRECT=yes
2147 DM_IOCTLS=yes
2148 SELINUX=yes
2149 REALTIME=yes
2150 CLUSTER=internal
2151 FSADM=yes
2152 ;;
2153 darwin*)
2154 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2155 COPTIMISE_FLAG="-O2"
2156 CLDFLAGS="$CLDFLAGS"
2157 CLDWHOLEARCHIVE="-all_load"
2158 CLDNOWHOLEARCHIVE=
2159 LIB_SUFFIX=dylib
2160 DEVMAPPER=yes
2161 ODIRECT=no
2162 DM_IOCTLS=no
2163 SELINUX=no
2164 REALTIME=no
2165 CLUSTER=none
2166 FSADM=no
2167 ;;
2168 esac
2169
2170 ################################################################################
2171 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2172 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2173 if test "${ac_cv_path_SED+set}" = set; then
2174 $as_echo_n "(cached) " >&6
2175 else
2176 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2177 for ac_i in 1 2 3 4 5 6 7; do
2178 ac_script="$ac_script$as_nl$ac_script"
2179 done
2180 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2181 $as_unset ac_script || ac_script=
2182 if test -z "$SED"; then
2183 ac_path_SED_found=false
2184 # Loop through the user's path and test for each of PROGNAME-LIST
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2187 do
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_prog in sed gsed; do
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2193 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2194 # Check for GNU ac_path_SED and select it if it is found.
2195 # Check for GNU $ac_path_SED
2196 case `"$ac_path_SED" --version 2>&1` in
2197 *GNU*)
2198 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2199 *)
2200 ac_count=0
2201 $as_echo_n 0123456789 >"conftest.in"
2202 while :
2203 do
2204 cat "conftest.in" "conftest.in" >"conftest.tmp"
2205 mv "conftest.tmp" "conftest.in"
2206 cp "conftest.in" "conftest.nl"
2207 $as_echo '' >> "conftest.nl"
2208 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2210 ac_count=`expr $ac_count + 1`
2211 if test $ac_count -gt ${ac_path_SED_max-0}; then
2212 # Best one so far, save it but keep looking for a better one
2213 ac_cv_path_SED="$ac_path_SED"
2214 ac_path_SED_max=$ac_count
2215 fi
2216 # 10*(2^10) chars as input seems more than enough
2217 test $ac_count -gt 10 && break
2218 done
2219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2220 esac
2221
2222 $ac_path_SED_found && break 3
2223 done
2224 done
2225 done
2226 IFS=$as_save_IFS
2227 if test -z "$ac_cv_path_SED"; then
2228 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2229 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2230 { (exit 1); exit 1; }; }
2231 fi
2232 else
2233 ac_cv_path_SED=$SED
2234 fi
2235
2236 fi
2237 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2238 $as_echo "$ac_cv_path_SED" >&6; }
2239 SED="$ac_cv_path_SED"
2240 rm -f conftest.sed
2241
2242 for ac_prog in gawk mawk nawk awk
2243 do
2244 # Extract the first word of "$ac_prog", so it can be a program name with args.
2245 set dummy $ac_prog; ac_word=$2
2246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 $as_echo_n "checking for $ac_word... " >&6; }
2248 if test "${ac_cv_prog_AWK+set}" = set; then
2249 $as_echo_n "(cached) " >&6
2250 else
2251 if test -n "$AWK"; then
2252 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2253 else
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 for ac_exec_ext in '' $ac_executable_extensions; do
2260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2261 ac_cv_prog_AWK="$ac_prog"
2262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 break 2
2264 fi
2265 done
2266 done
2267 IFS=$as_save_IFS
2268
2269 fi
2270 fi
2271 AWK=$ac_cv_prog_AWK
2272 if test -n "$AWK"; then
2273 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2274 $as_echo "$AWK" >&6; }
2275 else
2276 { $as_echo "$as_me:$LINENO: result: no" >&5
2277 $as_echo "no" >&6; }
2278 fi
2279
2280
2281 test -n "$AWK" && break
2282 done
2283
2284 ac_ext=c
2285 ac_cpp='$CPP $CPPFLAGS'
2286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289 if test -n "$ac_tool_prefix"; then
2290 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2291 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2292 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 $as_echo_n "checking for $ac_word... " >&6; }
2294 if test "${ac_cv_prog_CC+set}" = set; then
2295 $as_echo_n "(cached) " >&6
2296 else
2297 if test -n "$CC"; then
2298 ac_cv_prog_CC="$CC" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2302 do
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2308 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2310 fi
2311 done
2312 done
2313 IFS=$as_save_IFS
2314
2315 fi
2316 fi
2317 CC=$ac_cv_prog_CC
2318 if test -n "$CC"; then
2319 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2320 $as_echo "$CC" >&6; }
2321 else
2322 { $as_echo "$as_me:$LINENO: result: no" >&5
2323 $as_echo "no" >&6; }
2324 fi
2325
2326
2327 fi
2328 if test -z "$ac_cv_prog_CC"; then
2329 ac_ct_CC=$CC
2330 # Extract the first word of "gcc", so it can be a program name with args.
2331 set dummy gcc; ac_word=$2
2332 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 $as_echo_n "checking for $ac_word... " >&6; }
2334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2335 $as_echo_n "(cached) " >&6
2336 else
2337 if test -n "$ac_ct_CC"; then
2338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2342 do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347 ac_cv_prog_ac_ct_CC="gcc"
2348 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 break 2
2350 fi
2351 done
2352 done
2353 IFS=$as_save_IFS
2354
2355 fi
2356 fi
2357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2358 if test -n "$ac_ct_CC"; then
2359 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2360 $as_echo "$ac_ct_CC" >&6; }
2361 else
2362 { $as_echo "$as_me:$LINENO: result: no" >&5
2363 $as_echo "no" >&6; }
2364 fi
2365
2366 if test "x$ac_ct_CC" = x; then
2367 CC=""
2368 else
2369 case $cross_compiling:$ac_tool_warned in
2370 yes:)
2371 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2373 ac_tool_warned=yes ;;
2374 esac
2375 CC=$ac_ct_CC
2376 fi
2377 else
2378 CC="$ac_cv_prog_CC"
2379 fi
2380
2381 if test -z "$CC"; then
2382 if test -n "$ac_tool_prefix"; then
2383 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2384 set dummy ${ac_tool_prefix}cc; ac_word=$2
2385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 $as_echo_n "checking for $ac_word... " >&6; }
2387 if test "${ac_cv_prog_CC+set}" = set; then
2388 $as_echo_n "(cached) " >&6
2389 else
2390 if test -n "$CC"; then
2391 ac_cv_prog_CC="$CC" # Let the user override the test.
2392 else
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2395 do
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400 ac_cv_prog_CC="${ac_tool_prefix}cc"
2401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 break 2
2403 fi
2404 done
2405 done
2406 IFS=$as_save_IFS
2407
2408 fi
2409 fi
2410 CC=$ac_cv_prog_CC
2411 if test -n "$CC"; then
2412 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2413 $as_echo "$CC" >&6; }
2414 else
2415 { $as_echo "$as_me:$LINENO: result: no" >&5
2416 $as_echo "no" >&6; }
2417 fi
2418
2419
2420 fi
2421 fi
2422 if test -z "$CC"; then
2423 # Extract the first word of "cc", so it can be a program name with args.
2424 set dummy cc; ac_word=$2
2425 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 $as_echo_n "checking for $ac_word... " >&6; }
2427 if test "${ac_cv_prog_CC+set}" = set; then
2428 $as_echo_n "(cached) " >&6
2429 else
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432 else
2433 ac_prog_rejected=no
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 for as_dir in $PATH
2436 do
2437 IFS=$as_save_IFS
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2442 ac_prog_rejected=yes
2443 continue
2444 fi
2445 ac_cv_prog_CC="cc"
2446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 break 2
2448 fi
2449 done
2450 done
2451 IFS=$as_save_IFS
2452
2453 if test $ac_prog_rejected = yes; then
2454 # We found a bogon in the path, so make sure we never use it.
2455 set dummy $ac_cv_prog_CC
2456 shift
2457 if test $# != 0; then
2458 # We chose a different compiler from the bogus one.
2459 # However, it has the same basename, so the bogon will be chosen
2460 # first if we set CC to just the basename; use the full file name.
2461 shift
2462 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2463 fi
2464 fi
2465 fi
2466 fi
2467 CC=$ac_cv_prog_CC
2468 if test -n "$CC"; then
2469 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2470 $as_echo "$CC" >&6; }
2471 else
2472 { $as_echo "$as_me:$LINENO: result: no" >&5
2473 $as_echo "no" >&6; }
2474 fi
2475
2476
2477 fi
2478 if test -z "$CC"; then
2479 if test -n "$ac_tool_prefix"; then
2480 for ac_prog in cl.exe
2481 do
2482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 $as_echo_n "checking for $ac_word... " >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 $as_echo_n "(cached) " >&6
2488 else
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2500 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2502 fi
2503 done
2504 done
2505 IFS=$as_save_IFS
2506
2507 fi
2508 fi
2509 CC=$ac_cv_prog_CC
2510 if test -n "$CC"; then
2511 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2512 $as_echo "$CC" >&6; }
2513 else
2514 { $as_echo "$as_me:$LINENO: result: no" >&5
2515 $as_echo "no" >&6; }
2516 fi
2517
2518
2519 test -n "$CC" && break
2520 done
2521 fi
2522 if test -z "$CC"; then
2523 ac_ct_CC=$CC
2524 for ac_prog in cl.exe
2525 do
2526 # Extract the first word of "$ac_prog", so it can be a program name with args.
2527 set dummy $ac_prog; ac_word=$2
2528 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 $as_echo_n "checking for $ac_word... " >&6; }
2530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2531 $as_echo_n "(cached) " >&6
2532 else
2533 if test -n "$ac_ct_CC"; then
2534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_ac_ct_CC="$ac_prog"
2544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 break 2
2546 fi
2547 done
2548 done
2549 IFS=$as_save_IFS
2550
2551 fi
2552 fi
2553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2554 if test -n "$ac_ct_CC"; then
2555 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2556 $as_echo "$ac_ct_CC" >&6; }
2557 else
2558 { $as_echo "$as_me:$LINENO: result: no" >&5
2559 $as_echo "no" >&6; }
2560 fi
2561
2562
2563 test -n "$ac_ct_CC" && break
2564 done
2565
2566 if test "x$ac_ct_CC" = x; then
2567 CC=""
2568 else
2569 case $cross_compiling:$ac_tool_warned in
2570 yes:)
2571 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2573 ac_tool_warned=yes ;;
2574 esac
2575 CC=$ac_ct_CC
2576 fi
2577 fi
2578
2579 fi
2580
2581
2582 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2585 See \`config.log' for more details." >&5
2586 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2587 See \`config.log' for more details." >&2;}
2588 { (exit 1); exit 1; }; }; }
2589
2590 # Provide some information about the compiler.
2591 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2592 set X $ac_compile
2593 ac_compiler=$2
2594 { (ac_try="$ac_compiler --version >&5"
2595 case "(($ac_try" in
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2598 esac
2599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2600 $as_echo "$ac_try_echo") >&5
2601 (eval "$ac_compiler --version >&5") 2>&5
2602 ac_status=$?
2603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }
2605 { (ac_try="$ac_compiler -v >&5"
2606 case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2609 esac
2610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2611 $as_echo "$ac_try_echo") >&5
2612 (eval "$ac_compiler -v >&5") 2>&5
2613 ac_status=$?
2614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }
2616 { (ac_try="$ac_compiler -V >&5"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2622 $as_echo "$ac_try_echo") >&5
2623 (eval "$ac_compiler -V >&5") 2>&5
2624 ac_status=$?
2625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }
2627
2628 cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h. */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2634
2635 int
2636 main ()
2637 {
2638
2639 ;
2640 return 0;
2641 }
2642 _ACEOF
2643 ac_clean_files_save=$ac_clean_files
2644 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2645 # Try to create an executable without -o first, disregard a.out.
2646 # It will help us diagnose broken compilers, and finding out an intuition
2647 # of exeext.
2648 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2649 $as_echo_n "checking for C compiler default output file name... " >&6; }
2650 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2651
2652 # The possible output files:
2653 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2654
2655 ac_rmfiles=
2656 for ac_file in $ac_files
2657 do
2658 case $ac_file in
2659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2660 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2661 esac
2662 done
2663 rm -f $ac_rmfiles
2664
2665 if { (ac_try="$ac_link_default"
2666 case "(($ac_try" in
2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2669 esac
2670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2671 $as_echo "$ac_try_echo") >&5
2672 (eval "$ac_link_default") 2>&5
2673 ac_status=$?
2674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; then
2676 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2677 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2678 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2679 # so that the user can short-circuit this test for compilers unknown to
2680 # Autoconf.
2681 for ac_file in $ac_files ''
2682 do
2683 test -f "$ac_file" || continue
2684 case $ac_file in
2685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2686 ;;
2687 [ab].out )
2688 # We found the default executable, but exeext='' is most
2689 # certainly right.
2690 break;;
2691 *.* )
2692 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2693 then :; else
2694 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2695 fi
2696 # We set ac_cv_exeext here because the later test for it is not
2697 # safe: cross compilers may not add the suffix if given an `-o'
2698 # argument, so we may need to know it at that point already.
2699 # Even if this section looks crufty: it has the advantage of
2700 # actually working.
2701 break;;
2702 * )
2703 break;;
2704 esac
2705 done
2706 test "$ac_cv_exeext" = no && ac_cv_exeext=
2707
2708 else
2709 ac_file=''
2710 fi
2711
2712 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2713 $as_echo "$ac_file" >&6; }
2714 if test -z "$ac_file"; then
2715 $as_echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2720 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2721 See \`config.log' for more details." >&5
2722 $as_echo "$as_me: error: C compiler cannot create executables
2723 See \`config.log' for more details." >&2;}
2724 { (exit 77); exit 77; }; }; }
2725 fi
2726
2727 ac_exeext=$ac_cv_exeext
2728
2729 # Check that the compiler produces executables we can run. If not, either
2730 # the compiler is broken, or we cross compile.
2731 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2732 $as_echo_n "checking whether the C compiler works... " >&6; }
2733 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2734 # If not cross compiling, check that we can run a simple program.
2735 if test "$cross_compiling" != yes; then
2736 if { ac_try='./$ac_file'
2737 { (case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740 esac
2741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2742 $as_echo "$ac_try_echo") >&5
2743 (eval "$ac_try") 2>&5
2744 ac_status=$?
2745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2747 cross_compiling=no
2748 else
2749 if test "$cross_compiling" = maybe; then
2750 cross_compiling=yes
2751 else
2752 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2754 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2755 If you meant to cross compile, use \`--host'.
2756 See \`config.log' for more details." >&5
2757 $as_echo "$as_me: error: cannot run C compiled programs.
2758 If you meant to cross compile, use \`--host'.
2759 See \`config.log' for more details." >&2;}
2760 { (exit 1); exit 1; }; }; }
2761 fi
2762 fi
2763 fi
2764 { $as_echo "$as_me:$LINENO: result: yes" >&5
2765 $as_echo "yes" >&6; }
2766
2767 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2768 ac_clean_files=$ac_clean_files_save
2769 # Check that the compiler produces executables we can run. If not, either
2770 # the compiler is broken, or we cross compile.
2771 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2772 $as_echo_n "checking whether we are cross compiling... " >&6; }
2773 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2774 $as_echo "$cross_compiling" >&6; }
2775
2776 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2777 $as_echo_n "checking for suffix of executables... " >&6; }
2778 if { (ac_try="$ac_link"
2779 case "(($ac_try" in
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2782 esac
2783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2784 $as_echo "$ac_try_echo") >&5
2785 (eval "$ac_link") 2>&5
2786 ac_status=$?
2787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; then
2789 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2790 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2791 # work properly (i.e., refer to `conftest.exe'), while it won't with
2792 # `rm'.
2793 for ac_file in conftest.exe conftest conftest.*; do
2794 test -f "$ac_file" || continue
2795 case $ac_file in
2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2797 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2798 break;;
2799 * ) break;;
2800 esac
2801 done
2802 else
2803 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2805 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2806 See \`config.log' for more details." >&5
2807 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2808 See \`config.log' for more details." >&2;}
2809 { (exit 1); exit 1; }; }; }
2810 fi
2811
2812 rm -f conftest$ac_cv_exeext
2813 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2814 $as_echo "$ac_cv_exeext" >&6; }
2815
2816 rm -f conftest.$ac_ext
2817 EXEEXT=$ac_cv_exeext
2818 ac_exeext=$EXEEXT
2819 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2820 $as_echo_n "checking for suffix of object files... " >&6; }
2821 if test "${ac_cv_objext+set}" = set; then
2822 $as_echo_n "(cached) " >&6
2823 else
2824 cat >conftest.$ac_ext <<_ACEOF
2825 /* confdefs.h. */
2826 _ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2830
2831 int
2832 main ()
2833 {
2834
2835 ;
2836 return 0;
2837 }
2838 _ACEOF
2839 rm -f conftest.o conftest.obj
2840 if { (ac_try="$ac_compile"
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_compile") 2>&5
2848 ac_status=$?
2849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; then
2851 for ac_file in conftest.o conftest.obj conftest.*; do
2852 test -f "$ac_file" || continue;
2853 case $ac_file in
2854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2856 break;;
2857 esac
2858 done
2859 else
2860 $as_echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2866 See \`config.log' for more details." >&5
2867 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2868 See \`config.log' for more details." >&2;}
2869 { (exit 1); exit 1; }; }; }
2870 fi
2871
2872 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2873 fi
2874 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2875 $as_echo "$ac_cv_objext" >&6; }
2876 OBJEXT=$ac_cv_objext
2877 ac_objext=$OBJEXT
2878 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2879 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2880 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2881 $as_echo_n "(cached) " >&6
2882 else
2883 cat >conftest.$ac_ext <<_ACEOF
2884 /* confdefs.h. */
2885 _ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2889
2890 int
2891 main ()
2892 {
2893 #ifndef __GNUC__
2894 choke me
2895 #endif
2896
2897 ;
2898 return 0;
2899 }
2900 _ACEOF
2901 rm -f conftest.$ac_objext
2902 if { (ac_try="$ac_compile"
2903 case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906 esac
2907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2908 $as_echo "$ac_try_echo") >&5
2909 (eval "$ac_compile") 2>conftest.er1
2910 ac_status=$?
2911 grep -v '^ *+' conftest.er1 >conftest.err
2912 rm -f conftest.er1
2913 cat conftest.err >&5
2914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } && {
2916 test -z "$ac_c_werror_flag" ||
2917 test ! -s conftest.err
2918 } && test -s conftest.$ac_objext; then
2919 ac_compiler_gnu=yes
2920 else
2921 $as_echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2923
2924 ac_compiler_gnu=no
2925 fi
2926
2927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2929
2930 fi
2931 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2932 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2933 if test $ac_compiler_gnu = yes; then
2934 GCC=yes
2935 else
2936 GCC=
2937 fi
2938 ac_test_CFLAGS=${CFLAGS+set}
2939 ac_save_CFLAGS=$CFLAGS
2940 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2941 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2942 if test "${ac_cv_prog_cc_g+set}" = set; then
2943 $as_echo_n "(cached) " >&6
2944 else
2945 ac_save_c_werror_flag=$ac_c_werror_flag
2946 ac_c_werror_flag=yes
2947 ac_cv_prog_cc_g=no
2948 CFLAGS="-g"
2949 cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h. */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2955
2956 int
2957 main ()
2958 {
2959
2960 ;
2961 return 0;
2962 }
2963 _ACEOF
2964 rm -f conftest.$ac_objext
2965 if { (ac_try="$ac_compile"
2966 case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969 esac
2970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2971 $as_echo "$ac_try_echo") >&5
2972 (eval "$ac_compile") 2>conftest.er1
2973 ac_status=$?
2974 grep -v '^ *+' conftest.er1 >conftest.err
2975 rm -f conftest.er1
2976 cat conftest.err >&5
2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } && {
2979 test -z "$ac_c_werror_flag" ||
2980 test ! -s conftest.err
2981 } && test -s conftest.$ac_objext; then
2982 ac_cv_prog_cc_g=yes
2983 else
2984 $as_echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987 CFLAGS=""
2988 cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h. */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2994
2995 int
2996 main ()
2997 {
2998
2999 ;
3000 return 0;
3001 }
3002 _ACEOF
3003 rm -f conftest.$ac_objext
3004 if { (ac_try="$ac_compile"
3005 case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008 esac
3009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3010 $as_echo "$ac_try_echo") >&5
3011 (eval "$ac_compile") 2>conftest.er1
3012 ac_status=$?
3013 grep -v '^ *+' conftest.er1 >conftest.err
3014 rm -f conftest.er1
3015 cat conftest.err >&5
3016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } && {
3018 test -z "$ac_c_werror_flag" ||
3019 test ! -s conftest.err
3020 } && test -s conftest.$ac_objext; then
3021 :
3022 else
3023 $as_echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 ac_c_werror_flag=$ac_save_c_werror_flag
3027 CFLAGS="-g"
3028 cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h. */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3034
3035 int
3036 main ()
3037 {
3038
3039 ;
3040 return 0;
3041 }
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3045 case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3050 $as_echo "$ac_try_echo") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3052 ac_status=$?
3053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
3056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } && {
3058 test -z "$ac_c_werror_flag" ||
3059 test ! -s conftest.err
3060 } && test -s conftest.$ac_objext; then
3061 ac_cv_prog_cc_g=yes
3062 else
3063 $as_echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066
3067 fi
3068
3069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070 fi
3071
3072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3073 fi
3074
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 ac_c_werror_flag=$ac_save_c_werror_flag
3077 fi
3078 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3079 $as_echo "$ac_cv_prog_cc_g" >&6; }
3080 if test "$ac_test_CFLAGS" = set; then
3081 CFLAGS=$ac_save_CFLAGS
3082 elif test $ac_cv_prog_cc_g = yes; then
3083 if test "$GCC" = yes; then
3084 CFLAGS="-g -O2"
3085 else
3086 CFLAGS="-g"
3087 fi
3088 else
3089 if test "$GCC" = yes; then
3090 CFLAGS="-O2"
3091 else
3092 CFLAGS=
3093 fi
3094 fi
3095 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3096 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3097 if test "${ac_cv_prog_cc_c89+set}" = set; then
3098 $as_echo_n "(cached) " >&6
3099 else
3100 ac_cv_prog_cc_c89=no
3101 ac_save_CC=$CC
3102 cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h. */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3108 #include <stdarg.h>
3109 #include <stdio.h>
3110 #include <sys/types.h>
3111 #include <sys/stat.h>
3112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3113 struct buf { int x; };
3114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3115 static char *e (p, i)
3116 char **p;
3117 int i;
3118 {
3119 return p[i];
3120 }
3121 static char *f (char * (*g) (char **, int), char **p, ...)
3122 {
3123 char *s;
3124 va_list v;
3125 va_start (v,p);
3126 s = g (p, va_arg (v,int));
3127 va_end (v);
3128 return s;
3129 }
3130
3131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3132 function prototypes and stuff, but not '\xHH' hex character constants.
3133 These don't provoke an error unfortunately, instead are silently treated
3134 as 'x'. The following induces an error, until -std is added to get
3135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3136 array size at least. It's necessary to write '\x00'==0 to get something
3137 that's true only with -std. */
3138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3139
3140 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3141 inside strings and character constants. */
3142 #define FOO(x) 'x'
3143 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3144
3145 int test (int i, double x);
3146 struct s1 {int (*f) (int a);};
3147 struct s2 {int (*f) (double a);};
3148 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3149 int argc;
3150 char **argv;
3151 int
3152 main ()
3153 {
3154 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3155 ;
3156 return 0;
3157 }
3158 _ACEOF
3159 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3160 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3161 do
3162 CC="$ac_save_CC $ac_arg"
3163 rm -f conftest.$ac_objext
3164 if { (ac_try="$ac_compile"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3170 $as_echo "$ac_try_echo") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3181 ac_cv_prog_cc_c89=$ac_arg
3182 else
3183 $as_echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186
3187 fi
3188
3189 rm -f core conftest.err conftest.$ac_objext
3190 test "x$ac_cv_prog_cc_c89" != "xno" && break
3191 done
3192 rm -f conftest.$ac_ext
3193 CC=$ac_save_CC
3194
3195 fi
3196 # AC_CACHE_VAL
3197 case "x$ac_cv_prog_cc_c89" in
3198 x)
3199 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3200 $as_echo "none needed" >&6; } ;;
3201 xno)
3202 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3203 $as_echo "unsupported" >&6; } ;;
3204 *)
3205 CC="$CC $ac_cv_prog_cc_c89"
3206 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3207 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3208 esac
3209
3210
3211 ac_ext=c
3212 ac_cpp='$CPP $CPPFLAGS'
3213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216
3217
3218
3219 ac_ext=c
3220 ac_cpp='$CPP $CPPFLAGS'
3221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3225 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3226 # On Suns, sometimes $CPP names a directory.
3227 if test -n "$CPP" && test -d "$CPP"; then
3228 CPP=
3229 fi
3230 if test -z "$CPP"; then
3231 if test "${ac_cv_prog_CPP+set}" = set; then
3232 $as_echo_n "(cached) " >&6
3233 else
3234 # Double quotes because CPP needs to be expanded
3235 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3236 do
3237 ac_preproc_ok=false
3238 for ac_c_preproc_warn_flag in '' yes
3239 do
3240 # Use a header file that comes with gcc, so configuring glibc
3241 # with a fresh cross-compiler works.
3242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3243 # <limits.h> exists even on freestanding compilers.
3244 # On the NeXT, cc -E runs the code through the compiler's parser,
3245 # not just through cpp. "Syntax error" is here to catch this case.
3246 cat >conftest.$ac_ext <<_ACEOF
3247 /* confdefs.h. */
3248 _ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3252 #ifdef __STDC__
3253 # include <limits.h>
3254 #else
3255 # include <assert.h>
3256 #endif
3257 Syntax error
3258 _ACEOF
3259 if { (ac_try="$ac_cpp conftest.$ac_ext"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265 $as_echo "$ac_try_echo") >&5
3266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3267 ac_status=$?
3268 grep -v '^ *+' conftest.er1 >conftest.err
3269 rm -f conftest.er1
3270 cat conftest.err >&5
3271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } >/dev/null && {
3273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3274 test ! -s conftest.err
3275 }; then
3276 :
3277 else
3278 $as_echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3280
3281 # Broken: fails on valid input.
3282 continue
3283 fi
3284
3285 rm -f conftest.err conftest.$ac_ext
3286
3287 # OK, works on sane cases. Now check whether nonexistent headers
3288 # can be detected and how.
3289 cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h. */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 #include <ac_nonexistent.h>
3296 _ACEOF
3297 if { (ac_try="$ac_cpp conftest.$ac_ext"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3303 $as_echo "$ac_try_echo") >&5
3304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3305 ac_status=$?
3306 grep -v '^ *+' conftest.er1 >conftest.err
3307 rm -f conftest.er1
3308 cat conftest.err >&5
3309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } >/dev/null && {
3311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3312 test ! -s conftest.err
3313 }; then
3314 # Broken: success on invalid input.
3315 continue
3316 else
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 # Passes both tests.
3321 ac_preproc_ok=:
3322 break
3323 fi
3324
3325 rm -f conftest.err conftest.$ac_ext
3326
3327 done
3328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3329 rm -f conftest.err conftest.$ac_ext
3330 if $ac_preproc_ok; then
3331 break
3332 fi
3333
3334 done
3335 ac_cv_prog_CPP=$CPP
3336
3337 fi
3338 CPP=$ac_cv_prog_CPP
3339 else
3340 ac_cv_prog_CPP=$CPP
3341 fi
3342 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3343 $as_echo "$CPP" >&6; }
3344 ac_preproc_ok=false
3345 for ac_c_preproc_warn_flag in '' yes
3346 do
3347 # Use a header file that comes with gcc, so configuring glibc
3348 # with a fresh cross-compiler works.
3349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3350 # <limits.h> exists even on freestanding compilers.
3351 # On the NeXT, cc -E runs the code through the compiler's parser,
3352 # not just through cpp. "Syntax error" is here to catch this case.
3353 cat >conftest.$ac_ext <<_ACEOF
3354 /* confdefs.h. */
3355 _ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3359 #ifdef __STDC__
3360 # include <limits.h>
3361 #else
3362 # include <assert.h>
3363 #endif
3364 Syntax error
3365 _ACEOF
3366 if { (ac_try="$ac_cpp conftest.$ac_ext"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3372 $as_echo "$ac_try_echo") >&5
3373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3374 ac_status=$?
3375 grep -v '^ *+' conftest.er1 >conftest.err
3376 rm -f conftest.er1
3377 cat conftest.err >&5
3378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } >/dev/null && {
3380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3381 test ! -s conftest.err
3382 }; then
3383 :
3384 else
3385 $as_echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3387
3388 # Broken: fails on valid input.
3389 continue
3390 fi
3391
3392 rm -f conftest.err conftest.$ac_ext
3393
3394 # OK, works on sane cases. Now check whether nonexistent headers
3395 # can be detected and how.
3396 cat >conftest.$ac_ext <<_ACEOF
3397 /* confdefs.h. */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402 #include <ac_nonexistent.h>
3403 _ACEOF
3404 if { (ac_try="$ac_cpp conftest.$ac_ext"
3405 case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3410 $as_echo "$ac_try_echo") >&5
3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null && {
3418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3419 test ! -s conftest.err
3420 }; then
3421 # Broken: success on invalid input.
3422 continue
3423 else
3424 $as_echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3426
3427 # Passes both tests.
3428 ac_preproc_ok=:
3429 break
3430 fi
3431
3432 rm -f conftest.err conftest.$ac_ext
3433
3434 done
3435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436 rm -f conftest.err conftest.$ac_ext
3437 if $ac_preproc_ok; then
3438 :
3439 else
3440 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3443 See \`config.log' for more details." >&5
3444 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3445 See \`config.log' for more details." >&2;}
3446 { (exit 1); exit 1; }; }; }
3447 fi
3448
3449 ac_ext=c
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454
3455
3456 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3457 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3458 if test "${ac_cv_path_GREP+set}" = set; then
3459 $as_echo_n "(cached) " >&6
3460 else
3461 if test -z "$GREP"; then
3462 ac_path_GREP_found=false
3463 # Loop through the user's path and test for each of PROGNAME-LIST
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3466 do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_prog in grep ggrep; do
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3472 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3473 # Check for GNU ac_path_GREP and select it if it is found.
3474 # Check for GNU $ac_path_GREP
3475 case `"$ac_path_GREP" --version 2>&1` in
3476 *GNU*)
3477 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3478 *)
3479 ac_count=0
3480 $as_echo_n 0123456789 >"conftest.in"
3481 while :
3482 do
3483 cat "conftest.in" "conftest.in" >"conftest.tmp"
3484 mv "conftest.tmp" "conftest.in"
3485 cp "conftest.in" "conftest.nl"
3486 $as_echo 'GREP' >> "conftest.nl"
3487 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3488 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3489 ac_count=`expr $ac_count + 1`
3490 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3491 # Best one so far, save it but keep looking for a better one
3492 ac_cv_path_GREP="$ac_path_GREP"
3493 ac_path_GREP_max=$ac_count
3494 fi
3495 # 10*(2^10) chars as input seems more than enough
3496 test $ac_count -gt 10 && break
3497 done
3498 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3499 esac
3500
3501 $ac_path_GREP_found && break 3
3502 done
3503 done
3504 done
3505 IFS=$as_save_IFS
3506 if test -z "$ac_cv_path_GREP"; then
3507 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3508 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3509 { (exit 1); exit 1; }; }
3510 fi
3511 else
3512 ac_cv_path_GREP=$GREP
3513 fi
3514
3515 fi
3516 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3517 $as_echo "$ac_cv_path_GREP" >&6; }
3518 GREP="$ac_cv_path_GREP"
3519
3520
3521 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3522 $as_echo_n "checking for egrep... " >&6; }
3523 if test "${ac_cv_path_EGREP+set}" = set; then
3524 $as_echo_n "(cached) " >&6
3525 else
3526 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3527 then ac_cv_path_EGREP="$GREP -E"
3528 else
3529 if test -z "$EGREP"; then
3530 ac_path_EGREP_found=false
3531 # Loop through the user's path and test for each of PROGNAME-LIST
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3534 do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_prog in egrep; do
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3540 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3541 # Check for GNU ac_path_EGREP and select it if it is found.
3542 # Check for GNU $ac_path_EGREP
3543 case `"$ac_path_EGREP" --version 2>&1` in
3544 *GNU*)
3545 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3546 *)
3547 ac_count=0
3548 $as_echo_n 0123456789 >"conftest.in"
3549 while :
3550 do
3551 cat "conftest.in" "conftest.in" >"conftest.tmp"
3552 mv "conftest.tmp" "conftest.in"
3553 cp "conftest.in" "conftest.nl"
3554 $as_echo 'EGREP' >> "conftest.nl"
3555 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3557 ac_count=`expr $ac_count + 1`
3558 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3559 # Best one so far, save it but keep looking for a better one
3560 ac_cv_path_EGREP="$ac_path_EGREP"
3561 ac_path_EGREP_max=$ac_count
3562 fi
3563 # 10*(2^10) chars as input seems more than enough
3564 test $ac_count -gt 10 && break
3565 done
3566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3567 esac
3568
3569 $ac_path_EGREP_found && break 3
3570 done
3571 done
3572 done
3573 IFS=$as_save_IFS
3574 if test -z "$ac_cv_path_EGREP"; then
3575 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3576 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3577 { (exit 1); exit 1; }; }
3578 fi
3579 else
3580 ac_cv_path_EGREP=$EGREP
3581 fi
3582
3583 fi
3584 fi
3585 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3586 $as_echo "$ac_cv_path_EGREP" >&6; }
3587 EGREP="$ac_cv_path_EGREP"
3588
3589
3590 if test $ac_cv_c_compiler_gnu = yes; then
3591 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3592 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3593 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3594 $as_echo_n "(cached) " >&6
3595 else
3596 ac_pattern="Autoconf.*'x'"
3597 cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 #include <sgtty.h>
3604 Autoconf TIOCGETP
3605 _ACEOF
3606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3607 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3608 ac_cv_prog_gcc_traditional=yes
3609 else
3610 ac_cv_prog_gcc_traditional=no
3611 fi
3612 rm -f conftest*
3613
3614
3615 if test $ac_cv_prog_gcc_traditional = no; then
3616 cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h. */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 #include <termio.h>
3623 Autoconf TCGETA
3624 _ACEOF
3625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3626 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3627 ac_cv_prog_gcc_traditional=yes
3628 fi
3629 rm -f conftest*
3630
3631 fi
3632 fi
3633 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3634 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3635 if test $ac_cv_prog_gcc_traditional = yes; then
3636 CC="$CC -traditional"
3637 fi
3638 fi
3639
3640 # Find a good install program. We prefer a C program (faster),
3641 # so one script is as good as another. But avoid the broken or
3642 # incompatible versions:
3643 # SysV /etc/install, /usr/sbin/install
3644 # SunOS /usr/etc/install
3645 # IRIX /sbin/install
3646 # AIX /bin/install
3647 # AmigaOS /C/install, which installs bootblocks on floppy discs
3648 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3649 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3650 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3651 # OS/2's system install, which has a completely different semantic
3652 # ./install, which can be erroneously created by make from ./install.sh.
3653 # Reject install programs that cannot install multiple files.
3654 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3655 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3656 if test -z "$INSTALL"; then
3657 if test "${ac_cv_path_install+set}" = set; then
3658 $as_echo_n "(cached) " >&6
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 # Account for people who put trailing slashes in PATH elements.
3666 case $as_dir/ in
3667 ./ | .// | /cC/* | \
3668 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3669 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3670 /usr/ucb/* ) ;;
3671 *)
3672 # OSF1 and SCO ODT 3.0 have their own names for install.
3673 # Don't use installbsd from OSF since it installs stuff as root
3674 # by default.
3675 for ac_prog in ginstall scoinst install; do
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3678 if test $ac_prog = install &&
3679 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3680 # AIX install. It has an incompatible calling convention.
3681 :
3682 elif test $ac_prog = install &&
3683 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3684 # program-specific install script used by HP pwplus--don't use.
3685 :
3686 else
3687 rm -rf conftest.one conftest.two conftest.dir
3688 echo one > conftest.one
3689 echo two > conftest.two
3690 mkdir conftest.dir
3691 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3692 test -s conftest.one && test -s conftest.two &&
3693 test -s conftest.dir/conftest.one &&
3694 test -s conftest.dir/conftest.two
3695 then
3696 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3697 break 3
3698 fi
3699 fi
3700 fi
3701 done
3702 done
3703 ;;
3704 esac
3705
3706 done
3707 IFS=$as_save_IFS
3708
3709 rm -rf conftest.one conftest.two conftest.dir
3710
3711 fi
3712 if test "${ac_cv_path_install+set}" = set; then
3713 INSTALL=$ac_cv_path_install
3714 else
3715 # As a last resort, use the slow shell script. Don't cache a
3716 # value for INSTALL within a source directory, because that will
3717 # break other packages using the cache if that directory is
3718 # removed, or if the value is a relative name.
3719 INSTALL=$ac_install_sh
3720 fi
3721 fi
3722 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3723 $as_echo "$INSTALL" >&6; }
3724
3725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3726 # It thinks the first close brace ends the variable substitution.
3727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3728
3729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3730
3731 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3732
3733 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3734 $as_echo_n "checking whether ln -s works... " >&6; }
3735 LN_S=$as_ln_s
3736 if test "$LN_S" = "ln -s"; then
3737 { $as_echo "$as_me:$LINENO: result: yes" >&5
3738 $as_echo "yes" >&6; }
3739 else
3740 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3741 $as_echo "no, using $LN_S" >&6; }
3742 fi
3743
3744 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3745 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3746 set x ${MAKE-make}
3747 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3748 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3749 $as_echo_n "(cached) " >&6
3750 else
3751 cat >conftest.make <<\_ACEOF
3752 SHELL = /bin/sh
3753 all:
3754 @echo '@@@%%%=$(MAKE)=@@@%%%'
3755 _ACEOF
3756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3757 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3758 *@@@%%%=?*=@@@%%%*)
3759 eval ac_cv_prog_make_${ac_make}_set=yes;;
3760 *)
3761 eval ac_cv_prog_make_${ac_make}_set=no;;
3762 esac
3763 rm -f conftest.make
3764 fi
3765 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3766 { $as_echo "$as_me:$LINENO: result: yes" >&5
3767 $as_echo "yes" >&6; }
3768 SET_MAKE=
3769 else
3770 { $as_echo "$as_me:$LINENO: result: no" >&5
3771 $as_echo "no" >&6; }
3772 SET_MAKE="MAKE=${MAKE-make}"
3773 fi
3774
3775 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3776 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3777 if test -z "$MKDIR_P"; then
3778 if test "${ac_cv_path_mkdir+set}" = set; then
3779 $as_echo_n "(cached) " >&6
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3783 do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_prog in mkdir gmkdir; do
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3789 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3790 'mkdir (GNU coreutils) '* | \
3791 'mkdir (coreutils) '* | \
3792 'mkdir (fileutils) '4.1*)
3793 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3794 break 3;;
3795 esac
3796 done
3797 done
3798 done
3799 IFS=$as_save_IFS
3800
3801 fi
3802
3803 if test "${ac_cv_path_mkdir+set}" = set; then
3804 MKDIR_P="$ac_cv_path_mkdir -p"
3805 else
3806 # As a last resort, use the slow shell script. Don't cache a
3807 # value for MKDIR_P within a source directory, because that will
3808 # break other packages using the cache if that directory is
3809 # removed, or if the value is a relative name.
3810 test -d ./--version && rmdir ./--version
3811 MKDIR_P="$ac_install_sh -d"
3812 fi
3813 fi
3814 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3815 $as_echo "$MKDIR_P" >&6; }
3816
3817 if test -n "$ac_tool_prefix"; then
3818 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3819 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if test "${ac_cv_prog_RANLIB+set}" = set; then
3823 $as_echo_n "(cached) " >&6
3824 else
3825 if test -n "$RANLIB"; then
3826 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 break 2
3838 fi
3839 done
3840 done
3841 IFS=$as_save_IFS
3842
3843 fi
3844 fi
3845 RANLIB=$ac_cv_prog_RANLIB
3846 if test -n "$RANLIB"; then
3847 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3848 $as_echo "$RANLIB" >&6; }
3849 else
3850 { $as_echo "$as_me:$LINENO: result: no" >&5
3851 $as_echo "no" >&6; }
3852 fi
3853
3854
3855 fi
3856 if test -z "$ac_cv_prog_RANLIB"; then
3857 ac_ct_RANLIB=$RANLIB
3858 # Extract the first word of "ranlib", so it can be a program name with args.
3859 set dummy ranlib; ac_word=$2
3860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 $as_echo_n "checking for $ac_word... " >&6; }
3862 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3863 $as_echo_n "(cached) " >&6
3864 else
3865 if test -n "$ac_ct_RANLIB"; then
3866 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3867 else
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3870 do
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3875 ac_cv_prog_ac_ct_RANLIB="ranlib"
3876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 break 2
3878 fi
3879 done
3880 done
3881 IFS=$as_save_IFS
3882
3883 fi
3884 fi
3885 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3886 if test -n "$ac_ct_RANLIB"; then
3887 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3888 $as_echo "$ac_ct_RANLIB" >&6; }
3889 else
3890 { $as_echo "$as_me:$LINENO: result: no" >&5
3891 $as_echo "no" >&6; }
3892 fi
3893
3894 if test "x$ac_ct_RANLIB" = x; then
3895 RANLIB=":"
3896 else
3897 case $cross_compiling:$ac_tool_warned in
3898 yes:)
3899 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3901 ac_tool_warned=yes ;;
3902 esac
3903 RANLIB=$ac_ct_RANLIB
3904 fi
3905 else
3906 RANLIB="$ac_cv_prog_RANLIB"
3907 fi
3908
3909 # Extract the first word of "cflow", so it can be a program name with args.
3910 set dummy cflow; ac_word=$2
3911 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3912 $as_echo_n "checking for $ac_word... " >&6; }
3913 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3914 $as_echo_n "(cached) " >&6
3915 else
3916 case $CFLOW_CMD in
3917 [\\/]* | ?:[\\/]*)
3918 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3919 ;;
3920 *)
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
3929 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932 done
3933 done
3934 IFS=$as_save_IFS
3935
3936 ;;
3937 esac
3938 fi
3939 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3940 if test -n "$CFLOW_CMD"; then
3941 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3942 $as_echo "$CFLOW_CMD" >&6; }
3943 else
3944 { $as_echo "$as_me:$LINENO: result: no" >&5
3945 $as_echo "no" >&6; }
3946 fi
3947
3948
3949 # Extract the first word of "cscope", so it can be a program name with args.
3950 set dummy cscope; ac_word=$2
3951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 $as_echo_n "checking for $ac_word... " >&6; }
3953 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
3954 $as_echo_n "(cached) " >&6
3955 else
3956 case $CSCOPE_CMD in
3957 [\\/]* | ?:[\\/]*)
3958 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3959 ;;
3960 *)
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
3969 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 break 2
3971 fi
3972 done
3973 done
3974 IFS=$as_save_IFS
3975
3976 ;;
3977 esac
3978 fi
3979 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3980 if test -n "$CSCOPE_CMD"; then
3981 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3982 $as_echo "$CSCOPE_CMD" >&6; }
3983 else
3984 { $as_echo "$as_me:$LINENO: result: no" >&5
3985 $as_echo "no" >&6; }
3986 fi
3987
3988
3989
3990 ################################################################################
3991
3992
3993
3994
3995
3996 ac_header_dirent=no
3997 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3998 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3999 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4000 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4002 $as_echo_n "(cached) " >&6
4003 else
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 #include <sys/types.h>
4011 #include <$ac_hdr>
4012
4013 int
4014 main ()
4015 {
4016 if ((DIR *) 0)
4017 return 0;
4018 ;
4019 return 0;
4020 }
4021 _ACEOF
4022 rm -f conftest.$ac_objext
4023 if { (ac_try="$ac_compile"
4024 case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027 esac
4028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4029 $as_echo "$ac_try_echo") >&5
4030 (eval "$ac_compile") 2>conftest.er1
4031 ac_status=$?
4032 grep -v '^ *+' conftest.er1 >conftest.err
4033 rm -f conftest.er1
4034 cat conftest.err >&5
4035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } && {
4037 test -z "$ac_c_werror_flag" ||
4038 test ! -s conftest.err
4039 } && test -s conftest.$ac_objext; then
4040 eval "$as_ac_Header=yes"
4041 else
4042 $as_echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045 eval "$as_ac_Header=no"
4046 fi
4047
4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 fi
4050 ac_res=`eval 'as_val=${'$as_ac_Header'}
4051 $as_echo "$as_val"'`
4052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4053 $as_echo "$ac_res" >&6; }
4054 as_val=`eval 'as_val=${'$as_ac_Header'}
4055 $as_echo "$as_val"'`
4056 if test "x$as_val" = x""yes; then
4057 cat >>confdefs.h <<_ACEOF
4058 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4059 _ACEOF
4060
4061 ac_header_dirent=$ac_hdr; break
4062 fi
4063
4064 done
4065 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4066 if test $ac_header_dirent = dirent.h; then
4067 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4068 $as_echo_n "checking for library containing opendir... " >&6; }
4069 if test "${ac_cv_search_opendir+set}" = set; then
4070 $as_echo_n "(cached) " >&6
4071 else
4072 ac_func_search_save_LIBS=$LIBS
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h. */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079
4080 /* Override any GCC internal prototype to avoid an error.
4081 Use char because int might match the return type of a GCC
4082 builtin and then its argument prototype would still apply. */
4083 #ifdef __cplusplus
4084 extern "C"
4085 #endif
4086 char opendir ();
4087 int
4088 main ()
4089 {
4090 return opendir ();
4091 ;
4092 return 0;
4093 }
4094 _ACEOF
4095 for ac_lib in '' dir; do
4096 if test -z "$ac_lib"; then
4097 ac_res="none required"
4098 else
4099 ac_res=-l$ac_lib
4100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4101 fi
4102 rm -f conftest.$ac_objext conftest$ac_exeext
4103 if { (ac_try="$ac_link"
4104 case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4109 $as_echo "$ac_try_echo") >&5
4110 (eval "$ac_link") 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
4115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } && {
4117 test -z "$ac_c_werror_flag" ||
4118 test ! -s conftest.err
4119 } && test -s conftest$ac_exeext && {
4120 test "$cross_compiling" = yes ||
4121 $as_test_x conftest$ac_exeext
4122 }; then
4123 ac_cv_search_opendir=$ac_res
4124 else
4125 $as_echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4127
4128
4129 fi
4130
4131 rm -rf conftest.dSYM
4132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4133 conftest$ac_exeext
4134 if test "${ac_cv_search_opendir+set}" = set; then
4135 break
4136 fi
4137 done
4138 if test "${ac_cv_search_opendir+set}" = set; then
4139 :
4140 else
4141 ac_cv_search_opendir=no
4142 fi
4143 rm conftest.$ac_ext
4144 LIBS=$ac_func_search_save_LIBS
4145 fi
4146 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4147 $as_echo "$ac_cv_search_opendir" >&6; }
4148 ac_res=$ac_cv_search_opendir
4149 if test "$ac_res" != no; then
4150 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4151
4152 fi
4153
4154 else
4155 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4156 $as_echo_n "checking for library containing opendir... " >&6; }
4157 if test "${ac_cv_search_opendir+set}" = set; then
4158 $as_echo_n "(cached) " >&6
4159 else
4160 ac_func_search_save_LIBS=$LIBS
4161 cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h. */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4167
4168 /* Override any GCC internal prototype to avoid an error.
4169 Use char because int might match the return type of a GCC
4170 builtin and then its argument prototype would still apply. */
4171 #ifdef __cplusplus
4172 extern "C"
4173 #endif
4174 char opendir ();
4175 int
4176 main ()
4177 {
4178 return opendir ();
4179 ;
4180 return 0;
4181 }
4182 _ACEOF
4183 for ac_lib in '' x; do
4184 if test -z "$ac_lib"; then
4185 ac_res="none required"
4186 else
4187 ac_res=-l$ac_lib
4188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4189 fi
4190 rm -f conftest.$ac_objext conftest$ac_exeext
4191 if { (ac_try="$ac_link"
4192 case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195 esac
4196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4197 $as_echo "$ac_try_echo") >&5
4198 (eval "$ac_link") 2>conftest.er1
4199 ac_status=$?
4200 grep -v '^ *+' conftest.er1 >conftest.err
4201 rm -f conftest.er1
4202 cat conftest.err >&5
4203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } && {
4205 test -z "$ac_c_werror_flag" ||
4206 test ! -s conftest.err
4207 } && test -s conftest$ac_exeext && {
4208 test "$cross_compiling" = yes ||
4209 $as_test_x conftest$ac_exeext
4210 }; then
4211 ac_cv_search_opendir=$ac_res
4212 else
4213 $as_echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216
4217 fi
4218
4219 rm -rf conftest.dSYM
4220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4221 conftest$ac_exeext
4222 if test "${ac_cv_search_opendir+set}" = set; then
4223 break
4224 fi
4225 done
4226 if test "${ac_cv_search_opendir+set}" = set; then
4227 :
4228 else
4229 ac_cv_search_opendir=no
4230 fi
4231 rm conftest.$ac_ext
4232 LIBS=$ac_func_search_save_LIBS
4233 fi
4234 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4235 $as_echo "$ac_cv_search_opendir" >&6; }
4236 ac_res=$ac_cv_search_opendir
4237 if test "$ac_res" != no; then
4238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4239
4240 fi
4241
4242 fi
4243
4244 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4245 $as_echo_n "checking for ANSI C header files... " >&6; }
4246 if test "${ac_cv_header_stdc+set}" = set; then
4247 $as_echo_n "(cached) " >&6
4248 else
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h. */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 #include <stdlib.h>
4256 #include <stdarg.h>
4257 #include <string.h>
4258 #include <float.h>
4259
4260 int
4261 main ()
4262 {
4263
4264 ;
4265 return 0;
4266 }
4267 _ACEOF
4268 rm -f conftest.$ac_objext
4269 if { (ac_try="$ac_compile"
4270 case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273 esac
4274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4275 $as_echo "$ac_try_echo") >&5
4276 (eval "$ac_compile") 2>conftest.er1
4277 ac_status=$?
4278 grep -v '^ *+' conftest.er1 >conftest.err
4279 rm -f conftest.er1
4280 cat conftest.err >&5
4281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } && {
4283 test -z "$ac_c_werror_flag" ||
4284 test ! -s conftest.err
4285 } && test -s conftest.$ac_objext; then
4286 ac_cv_header_stdc=yes
4287 else
4288 $as_echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 ac_cv_header_stdc=no
4292 fi
4293
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295
4296 if test $ac_cv_header_stdc = yes; then
4297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4298 cat >conftest.$ac_ext <<_ACEOF
4299 /* confdefs.h. */
4300 _ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4304 #include <string.h>
4305
4306 _ACEOF
4307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308 $EGREP "memchr" >/dev/null 2>&1; then
4309 :
4310 else
4311 ac_cv_header_stdc=no
4312 fi
4313 rm -f conftest*
4314
4315 fi
4316
4317 if test $ac_cv_header_stdc = yes; then
4318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4319 cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h. */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325 #include <stdlib.h>
4326
4327 _ACEOF
4328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329 $EGREP "free" >/dev/null 2>&1; then
4330 :
4331 else
4332 ac_cv_header_stdc=no
4333 fi
4334 rm -f conftest*
4335
4336 fi
4337
4338 if test $ac_cv_header_stdc = yes; then
4339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4340 if test "$cross_compiling" = yes; then
4341 :
4342 else
4343 cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h. */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349 #include <ctype.h>
4350 #include <stdlib.h>
4351 #if ((' ' & 0x0FF) == 0x020)
4352 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4353 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4354 #else
4355 # define ISLOWER(c) \
4356 (('a' <= (c) && (c) <= 'i') \
4357 || ('j' <= (c) && (c) <= 'r') \
4358 || ('s' <= (c) && (c) <= 'z'))
4359 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4360 #endif
4361
4362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4363 int
4364 main ()
4365 {
4366 int i;
4367 for (i = 0; i < 256; i++)
4368 if (XOR (islower (i), ISLOWER (i))
4369 || toupper (i) != TOUPPER (i))
4370 return 2;
4371 return 0;
4372 }
4373 _ACEOF
4374 rm -f conftest$ac_exeext
4375 if { (ac_try="$ac_link"
4376 case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4379 esac
4380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4381 $as_echo "$ac_try_echo") >&5
4382 (eval "$ac_link") 2>&5
4383 ac_status=$?
4384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4386 { (case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389 esac
4390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4391 $as_echo "$ac_try_echo") >&5
4392 (eval "$ac_try") 2>&5
4393 ac_status=$?
4394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 :
4397 else
4398 $as_echo "$as_me: program exited with status $ac_status" >&5
4399 $as_echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402 ( exit $ac_status )
4403 ac_cv_header_stdc=no
4404 fi
4405 rm -rf conftest.dSYM
4406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4407 fi
4408
4409
4410 fi
4411 fi
4412 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4413 $as_echo "$ac_cv_header_stdc" >&6; }
4414 if test $ac_cv_header_stdc = yes; then
4415
4416 cat >>confdefs.h <<\_ACEOF
4417 #define STDC_HEADERS 1
4418 _ACEOF
4419
4420 fi
4421
4422 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4423 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4424 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4425 $as_echo_n "(cached) " >&6
4426 else
4427 cat >conftest.$ac_ext <<_ACEOF
4428 /* confdefs.h. */
4429 _ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 #include <sys/types.h>
4434 #include <sys/wait.h>
4435 #ifndef WEXITSTATUS
4436 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4437 #endif
4438 #ifndef WIFEXITED
4439 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4440 #endif
4441
4442 int
4443 main ()
4444 {
4445 int s;
4446 wait (&s);
4447 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4448 ;
4449 return 0;
4450 }
4451 _ACEOF
4452 rm -f conftest.$ac_objext
4453 if { (ac_try="$ac_compile"
4454 case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457 esac
4458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4459 $as_echo "$ac_try_echo") >&5
4460 (eval "$ac_compile") 2>conftest.er1
4461 ac_status=$?
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
4465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } && {
4467 test -z "$ac_c_werror_flag" ||
4468 test ! -s conftest.err
4469 } && test -s conftest.$ac_objext; then
4470 ac_cv_header_sys_wait_h=yes
4471 else
4472 $as_echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4474
4475 ac_cv_header_sys_wait_h=no
4476 fi
4477
4478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 fi
4480 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4481 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4482 if test $ac_cv_header_sys_wait_h = yes; then
4483
4484 cat >>confdefs.h <<\_ACEOF
4485 #define HAVE_SYS_WAIT_H 1
4486 _ACEOF
4487
4488 fi
4489
4490 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4491 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4492 if test "${ac_cv_header_time+set}" = set; then
4493 $as_echo_n "(cached) " >&6
4494 else
4495 cat >conftest.$ac_ext <<_ACEOF
4496 /* confdefs.h. */
4497 _ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4501 #include <sys/types.h>
4502 #include <sys/time.h>
4503 #include <time.h>
4504
4505 int
4506 main ()
4507 {
4508 if ((struct tm *) 0)
4509 return 0;
4510 ;
4511 return 0;
4512 }
4513 _ACEOF
4514 rm -f conftest.$ac_objext
4515 if { (ac_try="$ac_compile"
4516 case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519 esac
4520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4521 $as_echo "$ac_try_echo") >&5
4522 (eval "$ac_compile") 2>conftest.er1
4523 ac_status=$?
4524 grep -v '^ *+' conftest.er1 >conftest.err
4525 rm -f conftest.er1
4526 cat conftest.err >&5
4527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } && {
4529 test -z "$ac_c_werror_flag" ||
4530 test ! -s conftest.err
4531 } && test -s conftest.$ac_objext; then
4532 ac_cv_header_time=yes
4533 else
4534 $as_echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.$ac_ext >&5
4536
4537 ac_cv_header_time=no
4538 fi
4539
4540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4541 fi
4542 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4543 $as_echo "$ac_cv_header_time" >&6; }
4544 if test $ac_cv_header_time = yes; then
4545
4546 cat >>confdefs.h <<\_ACEOF
4547 #define TIME_WITH_SYS_TIME 1
4548 _ACEOF
4549
4550 fi
4551
4552
4553 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4564 inttypes.h stdint.h unistd.h
4565 do
4566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4567 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4568 $as_echo_n "checking for $ac_header... " >&6; }
4569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4570 $as_echo_n "(cached) " >&6
4571 else
4572 cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h. */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 $ac_includes_default
4579
4580 #include <$ac_header>
4581 _ACEOF
4582 rm -f conftest.$ac_objext
4583 if { (ac_try="$ac_compile"
4584 case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587 esac
4588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4589 $as_echo "$ac_try_echo") >&5
4590 (eval "$ac_compile") 2>conftest.er1
4591 ac_status=$?
4592 grep -v '^ *+' conftest.er1 >conftest.err
4593 rm -f conftest.er1
4594 cat conftest.err >&5
4595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } && {
4597 test -z "$ac_c_werror_flag" ||
4598 test ! -s conftest.err
4599 } && test -s conftest.$ac_objext; then
4600 eval "$as_ac_Header=yes"
4601 else
4602 $as_echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 eval "$as_ac_Header=no"
4606 fi
4607
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 fi
4610 ac_res=`eval 'as_val=${'$as_ac_Header'}
4611 $as_echo "$as_val"'`
4612 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4613 $as_echo "$ac_res" >&6; }
4614 as_val=`eval 'as_val=${'$as_ac_Header'}
4615 $as_echo "$as_val"'`
4616 if test "x$as_val" = x""yes; then
4617 cat >>confdefs.h <<_ACEOF
4618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4619 _ACEOF
4620
4621 fi
4622
4623 done
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4640 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4641 do
4642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4644 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4645 $as_echo_n "checking for $ac_header... " >&6; }
4646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4647 $as_echo_n "(cached) " >&6
4648 fi
4649 ac_res=`eval 'as_val=${'$as_ac_Header'}
4650 $as_echo "$as_val"'`
4651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4652 $as_echo "$ac_res" >&6; }
4653 else
4654 # Is the header compilable?
4655 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4656 $as_echo_n "checking $ac_header usability... " >&6; }
4657 cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h. */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 $ac_includes_default
4664 #include <$ac_header>
4665 _ACEOF
4666 rm -f conftest.$ac_objext
4667 if { (ac_try="$ac_compile"
4668 case "(($ac_try" in
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4671 esac
4672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4673 $as_echo "$ac_try_echo") >&5
4674 (eval "$ac_compile") 2>conftest.er1
4675 ac_status=$?
4676 grep -v '^ *+' conftest.er1 >conftest.err
4677 rm -f conftest.er1
4678 cat conftest.err >&5
4679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } && {
4681 test -z "$ac_c_werror_flag" ||
4682 test ! -s conftest.err
4683 } && test -s conftest.$ac_objext; then
4684 ac_header_compiler=yes
4685 else
4686 $as_echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4688
4689 ac_header_compiler=no
4690 fi
4691
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4694 $as_echo "$ac_header_compiler" >&6; }
4695
4696 # Is the header present?
4697 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4698 $as_echo_n "checking $ac_header presence... " >&6; }
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h. */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 #include <$ac_header>
4706 _ACEOF
4707 if { (ac_try="$ac_cpp conftest.$ac_ext"
4708 case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711 esac
4712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713 $as_echo "$ac_try_echo") >&5
4714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } >/dev/null && {
4721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4722 test ! -s conftest.err
4723 }; then
4724 ac_header_preproc=yes
4725 else
4726 $as_echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4728
4729 ac_header_preproc=no
4730 fi
4731
4732 rm -f conftest.err conftest.$ac_ext
4733 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4734 $as_echo "$ac_header_preproc" >&6; }
4735
4736 # So? What about this header?
4737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4738 yes:no: )
4739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4740 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4742 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4743 ac_header_preproc=yes
4744 ;;
4745 no:yes:* )
4746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4747 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4749 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4751 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4753 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4755 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4757 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4758
4759 ;;
4760 esac
4761 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4762 $as_echo_n "checking for $ac_header... " >&6; }
4763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4764 $as_echo_n "(cached) " >&6
4765 else
4766 eval "$as_ac_Header=\$ac_header_preproc"
4767 fi
4768 ac_res=`eval 'as_val=${'$as_ac_Header'}
4769 $as_echo "$as_val"'`
4770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4771 $as_echo "$ac_res" >&6; }
4772
4773 fi
4774 as_val=`eval 'as_val=${'$as_ac_Header'}
4775 $as_echo "$as_val"'`
4776 if test "x$as_val" = x""yes; then
4777 cat >>confdefs.h <<_ACEOF
4778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4779 _ACEOF
4780
4781 else
4782 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4783 $as_echo "$as_me: error: bailing out" >&2;}
4784 { (exit 1); exit 1; }; }
4785 fi
4786
4787 done
4788
4789
4790 case "$host_os" in
4791 linux*)
4792
4793
4794
4795 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4796 do
4797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4800 $as_echo_n "checking for $ac_header... " >&6; }
4801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4802 $as_echo_n "(cached) " >&6
4803 fi
4804 ac_res=`eval 'as_val=${'$as_ac_Header'}
4805 $as_echo "$as_val"'`
4806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4807 $as_echo "$ac_res" >&6; }
4808 else
4809 # Is the header compilable?
4810 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4811 $as_echo_n "checking $ac_header usability... " >&6; }
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 $ac_includes_default
4819 #include <$ac_header>
4820 _ACEOF
4821 rm -f conftest.$ac_objext
4822 if { (ac_try="$ac_compile"
4823 case "(($ac_try" in
4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825 *) ac_try_echo=$ac_try;;
4826 esac
4827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4828 $as_echo "$ac_try_echo") >&5
4829 (eval "$ac_compile") 2>conftest.er1
4830 ac_status=$?
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
4834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } && {
4836 test -z "$ac_c_werror_flag" ||
4837 test ! -s conftest.err
4838 } && test -s conftest.$ac_objext; then
4839 ac_header_compiler=yes
4840 else
4841 $as_echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4843
4844 ac_header_compiler=no
4845 fi
4846
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4849 $as_echo "$ac_header_compiler" >&6; }
4850
4851 # Is the header present?
4852 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4853 $as_echo_n "checking $ac_header presence... " >&6; }
4854 cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h. */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4860 #include <$ac_header>
4861 _ACEOF
4862 if { (ac_try="$ac_cpp conftest.$ac_ext"
4863 case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866 esac
4867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4868 $as_echo "$ac_try_echo") >&5
4869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } >/dev/null && {
4876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4877 test ! -s conftest.err
4878 }; then
4879 ac_header_preproc=yes
4880 else
4881 $as_echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4883
4884 ac_header_preproc=no
4885 fi
4886
4887 rm -f conftest.err conftest.$ac_ext
4888 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4889 $as_echo "$ac_header_preproc" >&6; }
4890
4891 # So? What about this header?
4892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4893 yes:no: )
4894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4895 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4897 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4898 ac_header_preproc=yes
4899 ;;
4900 no:yes:* )
4901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4902 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4904 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4906 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4908 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4910 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4912 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4913
4914 ;;
4915 esac
4916 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4917 $as_echo_n "checking for $ac_header... " >&6; }
4918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4919 $as_echo_n "(cached) " >&6
4920 else
4921 eval "$as_ac_Header=\$ac_header_preproc"
4922 fi
4923 ac_res=`eval 'as_val=${'$as_ac_Header'}
4924 $as_echo "$as_val"'`
4925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4926 $as_echo "$ac_res" >&6; }
4927
4928 fi
4929 as_val=`eval 'as_val=${'$as_ac_Header'}
4930 $as_echo "$as_val"'`
4931 if test "x$as_val" = x""yes; then
4932 cat >>confdefs.h <<_ACEOF
4933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4934 _ACEOF
4935
4936 else
4937 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4938 $as_echo "$as_me: error: bailing out" >&2;}
4939 { (exit 1); exit 1; }; }
4940 fi
4941
4942 done
4943 ;;
4944 darwin*)
4945
4946
4947 for ac_header in machine/endian.h sys/disk.h
4948 do
4949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4951 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4952 $as_echo_n "checking for $ac_header... " >&6; }
4953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4954 $as_echo_n "(cached) " >&6
4955 fi
4956 ac_res=`eval 'as_val=${'$as_ac_Header'}
4957 $as_echo "$as_val"'`
4958 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4959 $as_echo "$ac_res" >&6; }
4960 else
4961 # Is the header compilable?
4962 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4963 $as_echo_n "checking $ac_header usability... " >&6; }
4964 cat >conftest.$ac_ext <<_ACEOF
4965 /* confdefs.h. */
4966 _ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 $ac_includes_default
4971 #include <$ac_header>
4972 _ACEOF
4973 rm -f conftest.$ac_objext
4974 if { (ac_try="$ac_compile"
4975 case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978 esac
4979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4980 $as_echo "$ac_try_echo") >&5
4981 (eval "$ac_compile") 2>conftest.er1
4982 ac_status=$?
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
4986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } && {
4988 test -z "$ac_c_werror_flag" ||
4989 test ! -s conftest.err
4990 } && test -s conftest.$ac_objext; then
4991 ac_header_compiler=yes
4992 else
4993 $as_echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4995
4996 ac_header_compiler=no
4997 fi
4998
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5001 $as_echo "$ac_header_compiler" >&6; }
5002
5003 # Is the header present?
5004 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5005 $as_echo_n "checking $ac_header presence... " >&6; }
5006 cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h. */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5012 #include <$ac_header>
5013 _ACEOF
5014 if { (ac_try="$ac_cpp conftest.$ac_ext"
5015 case "(($ac_try" in
5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017 *) ac_try_echo=$ac_try;;
5018 esac
5019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5020 $as_echo "$ac_try_echo") >&5
5021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5022 ac_status=$?
5023 grep -v '^ *+' conftest.er1 >conftest.err
5024 rm -f conftest.er1
5025 cat conftest.err >&5
5026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } >/dev/null && {
5028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5029 test ! -s conftest.err
5030 }; then
5031 ac_header_preproc=yes
5032 else
5033 $as_echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5035
5036 ac_header_preproc=no
5037 fi
5038
5039 rm -f conftest.err conftest.$ac_ext
5040 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5041 $as_echo "$ac_header_preproc" >&6; }
5042
5043 # So? What about this header?
5044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5045 yes:no: )
5046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5047 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5049 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5050 ac_header_preproc=yes
5051 ;;
5052 no:yes:* )
5053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5054 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5056 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5058 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5060 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5064 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5065
5066 ;;
5067 esac
5068 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5069 $as_echo_n "checking for $ac_header... " >&6; }
5070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5071 $as_echo_n "(cached) " >&6
5072 else
5073 eval "$as_ac_Header=\$ac_header_preproc"
5074 fi
5075 ac_res=`eval 'as_val=${'$as_ac_Header'}
5076 $as_echo "$as_val"'`
5077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5078 $as_echo "$ac_res" >&6; }
5079
5080 fi
5081 as_val=`eval 'as_val=${'$as_ac_Header'}
5082 $as_echo "$as_val"'`
5083 if test "x$as_val" = x""yes; then
5084 cat >>confdefs.h <<_ACEOF
5085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5086 _ACEOF
5087
5088 else
5089 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5090 $as_echo "$as_me: error: bailing out" >&2;}
5091 { (exit 1); exit 1; }; }
5092 fi
5093
5094 done
5095 ;;
5096 esac
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5115 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5116 sys/types.h unistd.h
5117 do
5118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5120 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5121 $as_echo_n "checking for $ac_header... " >&6; }
5122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5123 $as_echo_n "(cached) " >&6
5124 fi
5125 ac_res=`eval 'as_val=${'$as_ac_Header'}
5126 $as_echo "$as_val"'`
5127 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5128 $as_echo "$ac_res" >&6; }
5129 else
5130 # Is the header compilable?
5131 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5132 $as_echo_n "checking $ac_header usability... " >&6; }
5133 cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h. */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 $ac_includes_default
5140 #include <$ac_header>
5141 _ACEOF
5142 rm -f conftest.$ac_objext
5143 if { (ac_try="$ac_compile"
5144 case "(($ac_try" in
5145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146 *) ac_try_echo=$ac_try;;
5147 esac
5148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5149 $as_echo "$ac_try_echo") >&5
5150 (eval "$ac_compile") 2>conftest.er1
5151 ac_status=$?
5152 grep -v '^ *+' conftest.er1 >conftest.err
5153 rm -f conftest.er1
5154 cat conftest.err >&5
5155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } && {
5157 test -z "$ac_c_werror_flag" ||
5158 test ! -s conftest.err
5159 } && test -s conftest.$ac_objext; then
5160 ac_header_compiler=yes
5161 else
5162 $as_echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5164
5165 ac_header_compiler=no
5166 fi
5167
5168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5170 $as_echo "$ac_header_compiler" >&6; }
5171
5172 # Is the header present?
5173 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5174 $as_echo_n "checking $ac_header presence... " >&6; }
5175 cat >conftest.$ac_ext <<_ACEOF
5176 /* confdefs.h. */
5177 _ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5181 #include <$ac_header>
5182 _ACEOF
5183 if { (ac_try="$ac_cpp conftest.$ac_ext"
5184 case "(($ac_try" in
5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5187 esac
5188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5189 $as_echo "$ac_try_echo") >&5
5190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } >/dev/null && {
5197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5198 test ! -s conftest.err
5199 }; then
5200 ac_header_preproc=yes
5201 else
5202 $as_echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5204
5205 ac_header_preproc=no
5206 fi
5207
5208 rm -f conftest.err conftest.$ac_ext
5209 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5210 $as_echo "$ac_header_preproc" >&6; }
5211
5212 # So? What about this header?
5213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5214 yes:no: )
5215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5216 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5218 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5219 ac_header_preproc=yes
5220 ;;
5221 no:yes:* )
5222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5223 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5225 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5227 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5229 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5231 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5233 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5234
5235 ;;
5236 esac
5237 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5238 $as_echo_n "checking for $ac_header... " >&6; }
5239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5240 $as_echo_n "(cached) " >&6
5241 else
5242 eval "$as_ac_Header=\$ac_header_preproc"
5243 fi
5244 ac_res=`eval 'as_val=${'$as_ac_Header'}
5245 $as_echo "$as_val"'`
5246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5247 $as_echo "$ac_res" >&6; }
5248
5249 fi
5250 as_val=`eval 'as_val=${'$as_ac_Header'}
5251 $as_echo "$as_val"'`
5252 if test "x$as_val" = x""yes; then
5253 cat >>confdefs.h <<_ACEOF
5254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5255 _ACEOF
5256
5257 else
5258 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5259 $as_echo "$as_me: error: bailing out" >&2;}
5260 { (exit 1); exit 1; }; }
5261 fi
5262
5263 done
5264
5265
5266
5267 for ac_header in termios.h sys/statvfs.h
5268 do
5269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5272 $as_echo_n "checking for $ac_header... " >&6; }
5273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5274 $as_echo_n "(cached) " >&6
5275 fi
5276 ac_res=`eval 'as_val=${'$as_ac_Header'}
5277 $as_echo "$as_val"'`
5278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5279 $as_echo "$ac_res" >&6; }
5280 else
5281 # Is the header compilable?
5282 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5283 $as_echo_n "checking $ac_header usability... " >&6; }
5284 cat >conftest.$ac_ext <<_ACEOF
5285 /* confdefs.h. */
5286 _ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h. */
5290 $ac_includes_default
5291 #include <$ac_header>
5292 _ACEOF
5293 rm -f conftest.$ac_objext
5294 if { (ac_try="$ac_compile"
5295 case "(($ac_try" in
5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5298 esac
5299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5300 $as_echo "$ac_try_echo") >&5
5301 (eval "$ac_compile") 2>conftest.er1
5302 ac_status=$?
5303 grep -v '^ *+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
5306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } && {
5308 test -z "$ac_c_werror_flag" ||
5309 test ! -s conftest.err
5310 } && test -s conftest.$ac_objext; then
5311 ac_header_compiler=yes
5312 else
5313 $as_echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5315
5316 ac_header_compiler=no
5317 fi
5318
5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5321 $as_echo "$ac_header_compiler" >&6; }
5322
5323 # Is the header present?
5324 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5325 $as_echo_n "checking $ac_header presence... " >&6; }
5326 cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h. */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332 #include <$ac_header>
5333 _ACEOF
5334 if { (ac_try="$ac_cpp conftest.$ac_ext"
5335 case "(($ac_try" in
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5338 esac
5339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5340 $as_echo "$ac_try_echo") >&5
5341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5342 ac_status=$?
5343 grep -v '^ *+' conftest.er1 >conftest.err
5344 rm -f conftest.er1
5345 cat conftest.err >&5
5346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } >/dev/null && {
5348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5349 test ! -s conftest.err
5350 }; then
5351 ac_header_preproc=yes
5352 else
5353 $as_echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5355
5356 ac_header_preproc=no
5357 fi
5358
5359 rm -f conftest.err conftest.$ac_ext
5360 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5361 $as_echo "$ac_header_preproc" >&6; }
5362
5363 # So? What about this header?
5364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5365 yes:no: )
5366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5367 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5370 ac_header_preproc=yes
5371 ;;
5372 no:yes:* )
5373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5374 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5376 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5378 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5380 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5384 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5385
5386 ;;
5387 esac
5388 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5389 $as_echo_n "checking for $ac_header... " >&6; }
5390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5391 $as_echo_n "(cached) " >&6
5392 else
5393 eval "$as_ac_Header=\$ac_header_preproc"
5394 fi
5395 ac_res=`eval 'as_val=${'$as_ac_Header'}
5396 $as_echo "$as_val"'`
5397 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5398 $as_echo "$ac_res" >&6; }
5399
5400 fi
5401 as_val=`eval 'as_val=${'$as_ac_Header'}
5402 $as_echo "$as_val"'`
5403 if test "x$as_val" = x""yes; then
5404 cat >>confdefs.h <<_ACEOF
5405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5406 _ACEOF
5407
5408 fi
5409
5410 done
5411
5412
5413 ################################################################################
5414 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5415 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5416 if test "${ac_cv_c_const+set}" = set; then
5417 $as_echo_n "(cached) " >&6
5418 else
5419 cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h. */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425
5426 int
5427 main ()
5428 {
5429 /* FIXME: Include the comments suggested by Paul. */
5430 #ifndef __cplusplus
5431 /* Ultrix mips cc rejects this. */
5432 typedef int charset[2];
5433 const charset cs;
5434 /* SunOS 4.1.1 cc rejects this. */
5435 char const *const *pcpcc;
5436 char **ppc;
5437 /* NEC SVR4.0.2 mips cc rejects this. */
5438 struct point {int x, y;};
5439 static struct point const zero = {0,0};
5440 /* AIX XL C 1.02.0.0 rejects this.
5441 It does not let you subtract one const X* pointer from another in
5442 an arm of an if-expression whose if-part is not a constant
5443 expression */
5444 const char *g = "string";
5445 pcpcc = &g + (g ? g-g : 0);
5446 /* HPUX 7.0 cc rejects these. */
5447 ++pcpcc;
5448 ppc = (char**) pcpcc;
5449 pcpcc = (char const *const *) ppc;
5450 { /* SCO 3.2v4 cc rejects this. */
5451 char *t;
5452 char const *s = 0 ? (char *) 0 : (char const *) 0;
5453
5454 *t++ = 0;
5455 if (s) return 0;
5456 }
5457 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5458 int x[] = {25, 17};
5459 const int *foo = &x[0];
5460 ++foo;
5461 }
5462 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5463 typedef const int *iptr;
5464 iptr p = 0;
5465 ++p;
5466 }
5467 { /* AIX XL C 1.02.0.0 rejects this saying
5468 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5469 struct s { int j; const int *ap[3]; };
5470 struct s *b; b->j = 5;
5471 }
5472 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5473 const int foo = 10;
5474 if (!foo) return 0;
5475 }
5476 return !cs[0] && !zero.x;
5477 #endif
5478
5479 ;
5480 return 0;
5481 }
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (ac_try="$ac_compile"
5485 case "(($ac_try" in
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5488 esac
5489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5490 $as_echo "$ac_try_echo") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_c_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5501 ac_cv_c_const=yes
5502 else
5503 $as_echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506 ac_cv_c_const=no
5507 fi
5508
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 fi
5511 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5512 $as_echo "$ac_cv_c_const" >&6; }
5513 if test $ac_cv_c_const = no; then
5514
5515 cat >>confdefs.h <<\_ACEOF
5516 #define const /**/
5517 _ACEOF
5518
5519 fi
5520
5521 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5522 $as_echo_n "checking for inline... " >&6; }
5523 if test "${ac_cv_c_inline+set}" = set; then
5524 $as_echo_n "(cached) " >&6
5525 else
5526 ac_cv_c_inline=no
5527 for ac_kw in inline __inline__ __inline; do
5528 cat >conftest.$ac_ext <<_ACEOF
5529 /* confdefs.h. */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5534 #ifndef __cplusplus
5535 typedef int foo_t;
5536 static $ac_kw foo_t static_foo () {return 0; }
5537 $ac_kw foo_t foo () {return 0; }
5538 #endif
5539
5540 _ACEOF
5541 rm -f conftest.$ac_objext
5542 if { (ac_try="$ac_compile"
5543 case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546 esac
5547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5548 $as_echo "$ac_try_echo") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && {
5556 test -z "$ac_c_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.$ac_objext; then
5559 ac_cv_c_inline=$ac_kw
5560 else
5561 $as_echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5563
5564
5565 fi
5566
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 test "$ac_cv_c_inline" != no && break
5569 done
5570
5571 fi
5572 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5573 $as_echo "$ac_cv_c_inline" >&6; }
5574
5575
5576 case $ac_cv_c_inline in
5577 inline | yes) ;;
5578 *)
5579 case $ac_cv_c_inline in
5580 no) ac_val=;;
5581 *) ac_val=$ac_cv_c_inline;;
5582 esac
5583 cat >>confdefs.h <<_ACEOF
5584 #ifndef __cplusplus
5585 #define inline $ac_val
5586 #endif
5587 _ACEOF
5588 ;;
5589 esac
5590
5591 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5592 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
5593 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5594 $as_echo_n "(cached) " >&6
5595 else
5596 cat >conftest.$ac_ext <<_ACEOF
5597 /* confdefs.h. */
5598 _ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5602 $ac_includes_default
5603 int
5604 main ()
5605 {
5606 static struct stat ac_aggr;
5607 if (ac_aggr.st_rdev)
5608 return 0;
5609 ;
5610 return 0;
5611 }
5612 _ACEOF
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5615 case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5620 $as_echo "$ac_try_echo") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
5631 ac_cv_member_struct_stat_st_rdev=yes
5632 else
5633 $as_echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5635
5636 cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h. */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 $ac_includes_default
5643 int
5644 main ()
5645 {
5646 static struct stat ac_aggr;
5647 if (sizeof ac_aggr.st_rdev)
5648 return 0;
5649 ;
5650 return 0;
5651 }
5652 _ACEOF
5653 rm -f conftest.$ac_objext
5654 if { (ac_try="$ac_compile"
5655 case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5658 esac
5659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5660 $as_echo "$ac_try_echo") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.$ac_objext; then
5671 ac_cv_member_struct_stat_st_rdev=yes
5672 else
5673 $as_echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ac_cv_member_struct_stat_st_rdev=no
5677 fi
5678
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 fi
5681
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 fi
5684 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5685 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5686 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5687
5688 cat >>confdefs.h <<_ACEOF
5689 #define HAVE_STRUCT_STAT_ST_RDEV 1
5690 _ACEOF
5691
5692
5693 fi
5694
5695 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5696 $as_echo_n "checking for off_t... " >&6; }
5697 if test "${ac_cv_type_off_t+set}" = set; then
5698 $as_echo_n "(cached) " >&6
5699 else
5700 ac_cv_type_off_t=no
5701 cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h. */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5707 $ac_includes_default
5708 int
5709 main ()
5710 {
5711 if (sizeof (off_t))
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 cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h. */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5741 $ac_includes_default
5742 int
5743 main ()
5744 {
5745 if (sizeof ((off_t)))
5746 return 0;
5747 ;
5748 return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5753 case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756 esac
5757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5758 $as_echo "$ac_try_echo") >&5
5759 (eval "$ac_compile") 2>conftest.er1
5760 ac_status=$?
5761 grep -v '^ *+' conftest.er1 >conftest.err
5762 rm -f conftest.er1
5763 cat conftest.err >&5
5764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } && {
5766 test -z "$ac_c_werror_flag" ||
5767 test ! -s conftest.err
5768 } && test -s conftest.$ac_objext; then
5769 :
5770 else
5771 $as_echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5773
5774 ac_cv_type_off_t=yes
5775 fi
5776
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 else
5779 $as_echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5781
5782
5783 fi
5784
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786 fi
5787 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5788 $as_echo "$ac_cv_type_off_t" >&6; }
5789 if test "x$ac_cv_type_off_t" = x""yes; then
5790 :
5791 else
5792
5793 cat >>confdefs.h <<_ACEOF
5794 #define off_t long int
5795 _ACEOF
5796
5797 fi
5798
5799 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5800 $as_echo_n "checking for pid_t... " >&6; }
5801 if test "${ac_cv_type_pid_t+set}" = set; then
5802 $as_echo_n "(cached) " >&6
5803 else
5804 ac_cv_type_pid_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 (pid_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 ((pid_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_pid_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_pid_t" >&5
5892 $as_echo "$ac_cv_type_pid_t" >&6; }
5893 if test "x$ac_cv_type_pid_t" = x""yes; then
5894 :
5895 else
5896
5897 cat >>confdefs.h <<_ACEOF
5898 #define pid_t int
5899 _ACEOF
5900
5901 fi
5902
5903 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5904 $as_echo_n "checking return type of signal handlers... " >&6; }
5905 if test "${ac_cv_type_signal+set}" = set; then
5906 $as_echo_n "(cached) " >&6
5907 else
5908 cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h. */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 #include <sys/types.h>
5915 #include <signal.h>
5916
5917 int
5918 main ()
5919 {
5920 return *(signal (0, 0)) (0) == 1;
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 ac_cv_type_signal=int
5944 else
5945 $as_echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 ac_cv_type_signal=void
5949 fi
5950
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 fi
5953 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5954 $as_echo "$ac_cv_type_signal" >&6; }
5955
5956 cat >>confdefs.h <<_ACEOF
5957 #define RETSIGTYPE $ac_cv_type_signal
5958 _ACEOF
5959
5960
5961 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5962 $as_echo_n "checking for size_t... " >&6; }
5963 if test "${ac_cv_type_size_t+set}" = set; then
5964 $as_echo_n "(cached) " >&6
5965 else
5966 ac_cv_type_size_t=no
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 $ac_includes_default
5974 int
5975 main ()
5976 {
5977 if (sizeof (size_t))
5978 return 0;
5979 ;
5980 return 0;
5981 }
5982 _ACEOF
5983 rm -f conftest.$ac_objext
5984 if { (ac_try="$ac_compile"
5985 case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988 esac
5989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5990 $as_echo "$ac_try_echo") >&5
5991 (eval "$ac_compile") 2>conftest.er1
5992 ac_status=$?
5993 grep -v '^ *+' conftest.er1 >conftest.err
5994 rm -f conftest.er1
5995 cat conftest.err >&5
5996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } && {
5998 test -z "$ac_c_werror_flag" ||
5999 test ! -s conftest.err
6000 } && test -s conftest.$ac_objext; then
6001 cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h. */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 $ac_includes_default
6008 int
6009 main ()
6010 {
6011 if (sizeof ((size_t)))
6012 return 0;
6013 ;
6014 return 0;
6015 }
6016 _ACEOF
6017 rm -f conftest.$ac_objext
6018 if { (ac_try="$ac_compile"
6019 case "(($ac_try" in
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6022 esac
6023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6024 $as_echo "$ac_try_echo") >&5
6025 (eval "$ac_compile") 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_c_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest.$ac_objext; then
6035 :
6036 else
6037 $as_echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040 ac_cv_type_size_t=yes
6041 fi
6042
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044 else
6045 $as_echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6047
6048
6049 fi
6050
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 fi
6053 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6054 $as_echo "$ac_cv_type_size_t" >&6; }
6055 if test "x$ac_cv_type_size_t" = x""yes; then
6056 :
6057 else
6058
6059 cat >>confdefs.h <<_ACEOF
6060 #define size_t unsigned int
6061 _ACEOF
6062
6063 fi
6064
6065 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6066 $as_echo_n "checking for mode_t... " >&6; }
6067 if test "${ac_cv_type_mode_t+set}" = set; then
6068 $as_echo_n "(cached) " >&6
6069 else
6070 ac_cv_type_mode_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 (mode_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 ((mode_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_mode_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_mode_t" >&5
6158 $as_echo "$ac_cv_type_mode_t" >&6; }
6159 if test "x$ac_cv_type_mode_t" = x""yes; then
6160 :
6161 else
6162
6163 cat >>confdefs.h <<_ACEOF
6164 #define mode_t int
6165 _ACEOF
6166
6167 fi
6168
6169 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6170 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6171 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6173 else
6174 cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h. */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 $ac_includes_default
6181 int
6182 main ()
6183 {
6184 static struct stat ac_aggr;
6185 if (ac_aggr.st_rdev)
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 ac_cv_member_struct_stat_st_rdev=yes
6210 else
6211 $as_echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6213
6214 cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h. */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6220 $ac_includes_default
6221 int
6222 main ()
6223 {
6224 static struct stat ac_aggr;
6225 if (sizeof ac_aggr.st_rdev)
6226 return 0;
6227 ;
6228 return 0;
6229 }
6230 _ACEOF
6231 rm -f conftest.$ac_objext
6232 if { (ac_try="$ac_compile"
6233 case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236 esac
6237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6238 $as_echo "$ac_try_echo") >&5
6239 (eval "$ac_compile") 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } && {
6246 test -z "$ac_c_werror_flag" ||
6247 test ! -s conftest.err
6248 } && test -s conftest.$ac_objext; then
6249 ac_cv_member_struct_stat_st_rdev=yes
6250 else
6251 $as_echo "$as_me: failed program was:" >&5
6252 sed 's/^/| /' conftest.$ac_ext >&5
6253
6254 ac_cv_member_struct_stat_st_rdev=no
6255 fi
6256
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 fi
6259
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 fi
6262 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6263 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6264 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6265
6266 cat >>confdefs.h <<_ACEOF
6267 #define HAVE_STRUCT_STAT_ST_RDEV 1
6268 _ACEOF
6269
6270
6271 fi
6272
6273 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6274 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6275 if test "${ac_cv_struct_tm+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 #include <sys/types.h>
6285 #include <time.h>
6286
6287 int
6288 main ()
6289 {
6290 struct tm tm;
6291 int *p = &tm.tm_sec;
6292 return !p;
6293 ;
6294 return 0;
6295 }
6296 _ACEOF
6297 rm -f conftest.$ac_objext
6298 if { (ac_try="$ac_compile"
6299 case "(($ac_try" in
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6302 esac
6303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6304 $as_echo "$ac_try_echo") >&5
6305 (eval "$ac_compile") 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && {
6312 test -z "$ac_c_werror_flag" ||
6313 test ! -s conftest.err
6314 } && test -s conftest.$ac_objext; then
6315 ac_cv_struct_tm=time.h
6316 else
6317 $as_echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6319
6320 ac_cv_struct_tm=sys/time.h
6321 fi
6322
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 fi
6325 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6326 $as_echo "$ac_cv_struct_tm" >&6; }
6327 if test $ac_cv_struct_tm = sys/time.h; then
6328
6329 cat >>confdefs.h <<\_ACEOF
6330 #define TM_IN_SYS_TIME 1
6331 _ACEOF
6332
6333 fi
6334
6335
6336 ################################################################################
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6355 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6356 uname
6357 do
6358 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6359 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6360 $as_echo_n "checking for $ac_func... " >&6; }
6361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6362 $as_echo_n "(cached) " >&6
6363 else
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6372 #define $ac_func innocuous_$ac_func
6373
6374 /* System header to define __stub macros and hopefully few prototypes,
6375 which can conflict with char $ac_func (); below.
6376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6377 <limits.h> exists even on freestanding compilers. */
6378
6379 #ifdef __STDC__
6380 # include <limits.h>
6381 #else
6382 # include <assert.h>
6383 #endif
6384
6385 #undef $ac_func
6386
6387 /* Override any GCC internal prototype to avoid an error.
6388 Use char because int might match the return type of a GCC
6389 builtin and then its argument prototype would still apply. */
6390 #ifdef __cplusplus
6391 extern "C"
6392 #endif
6393 char $ac_func ();
6394 /* The GNU C library defines this for functions which it implements
6395 to always fail with ENOSYS. Some functions are actually named
6396 something starting with __ and the normal name is an alias. */
6397 #if defined __stub_$ac_func || defined __stub___$ac_func
6398 choke me
6399 #endif
6400
6401 int
6402 main ()
6403 {
6404 return $ac_func ();
6405 ;
6406 return 0;
6407 }
6408 _ACEOF
6409 rm -f conftest.$ac_objext conftest$ac_exeext
6410 if { (ac_try="$ac_link"
6411 case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6414 esac
6415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6416 $as_echo "$ac_try_echo") >&5
6417 (eval "$ac_link") 2>conftest.er1
6418 ac_status=$?
6419 grep -v '^ *+' conftest.er1 >conftest.err
6420 rm -f conftest.er1
6421 cat conftest.err >&5
6422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } && {
6424 test -z "$ac_c_werror_flag" ||
6425 test ! -s conftest.err
6426 } && test -s conftest$ac_exeext && {
6427 test "$cross_compiling" = yes ||
6428 $as_test_x conftest$ac_exeext
6429 }; then
6430 eval "$as_ac_var=yes"
6431 else
6432 $as_echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6434
6435 eval "$as_ac_var=no"
6436 fi
6437
6438 rm -rf conftest.dSYM
6439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6440 conftest$ac_exeext conftest.$ac_ext
6441 fi
6442 ac_res=`eval 'as_val=${'$as_ac_var'}
6443 $as_echo "$as_val"'`
6444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6445 $as_echo "$ac_res" >&6; }
6446 as_val=`eval 'as_val=${'$as_ac_var'}
6447 $as_echo "$as_val"'`
6448 if test "x$as_val" = x""yes; then
6449 cat >>confdefs.h <<_ACEOF
6450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6451 _ACEOF
6452
6453 else
6454 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6455 $as_echo "$as_me: error: bailing out" >&2;}
6456 { (exit 1); exit 1; }; }
6457 fi
6458 done
6459
6460 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6461 # for constant arguments. Useless!
6462 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6463 $as_echo_n "checking for working alloca.h... " >&6; }
6464 if test "${ac_cv_working_alloca_h+set}" = set; then
6465 $as_echo_n "(cached) " >&6
6466 else
6467 cat >conftest.$ac_ext <<_ACEOF
6468 /* confdefs.h. */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 #include <alloca.h>
6474 int
6475 main ()
6476 {
6477 char *p = (char *) alloca (2 * sizeof (int));
6478 if (p) return 0;
6479 ;
6480 return 0;
6481 }
6482 _ACEOF
6483 rm -f conftest.$ac_objext conftest$ac_exeext
6484 if { (ac_try="$ac_link"
6485 case "(($ac_try" in
6486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6487 *) ac_try_echo=$ac_try;;
6488 esac
6489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6490 $as_echo "$ac_try_echo") >&5
6491 (eval "$ac_link") 2>conftest.er1
6492 ac_status=$?
6493 grep -v '^ *+' conftest.er1 >conftest.err
6494 rm -f conftest.er1
6495 cat conftest.err >&5
6496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } && {
6498 test -z "$ac_c_werror_flag" ||
6499 test ! -s conftest.err
6500 } && test -s conftest$ac_exeext && {
6501 test "$cross_compiling" = yes ||
6502 $as_test_x conftest$ac_exeext
6503 }; then
6504 ac_cv_working_alloca_h=yes
6505 else
6506 $as_echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6508
6509 ac_cv_working_alloca_h=no
6510 fi
6511
6512 rm -rf conftest.dSYM
6513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6514 conftest$ac_exeext conftest.$ac_ext
6515 fi
6516 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6517 $as_echo "$ac_cv_working_alloca_h" >&6; }
6518 if test $ac_cv_working_alloca_h = yes; then
6519
6520 cat >>confdefs.h <<\_ACEOF
6521 #define HAVE_ALLOCA_H 1
6522 _ACEOF
6523
6524 fi
6525
6526 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6527 $as_echo_n "checking for alloca... " >&6; }
6528 if test "${ac_cv_func_alloca_works+set}" = set; then
6529 $as_echo_n "(cached) " >&6
6530 else
6531 cat >conftest.$ac_ext <<_ACEOF
6532 /* confdefs.h. */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 #ifdef __GNUC__
6538 # define alloca __builtin_alloca
6539 #else
6540 # ifdef _MSC_VER
6541 # include <malloc.h>
6542 # define alloca _alloca
6543 # else
6544 # ifdef HAVE_ALLOCA_H
6545 # include <alloca.h>
6546 # else
6547 # ifdef _AIX
6548 #pragma alloca
6549 # else
6550 # ifndef alloca /* predefined by HP cc +Olibcalls */
6551 char *alloca ();
6552 # endif
6553 # endif
6554 # endif
6555 # endif
6556 #endif
6557
6558 int
6559 main ()
6560 {
6561 char *p = (char *) alloca (1);
6562 if (p) return 0;
6563 ;
6564 return 0;
6565 }
6566 _ACEOF
6567 rm -f conftest.$ac_objext conftest$ac_exeext
6568 if { (ac_try="$ac_link"
6569 case "(($ac_try" in
6570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571 *) ac_try_echo=$ac_try;;
6572 esac
6573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6574 $as_echo "$ac_try_echo") >&5
6575 (eval "$ac_link") 2>conftest.er1
6576 ac_status=$?
6577 grep -v '^ *+' conftest.er1 >conftest.err
6578 rm -f conftest.er1
6579 cat conftest.err >&5
6580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } && {
6582 test -z "$ac_c_werror_flag" ||
6583 test ! -s conftest.err
6584 } && test -s conftest$ac_exeext && {
6585 test "$cross_compiling" = yes ||
6586 $as_test_x conftest$ac_exeext
6587 }; then
6588 ac_cv_func_alloca_works=yes
6589 else
6590 $as_echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_cv_func_alloca_works=no
6594 fi
6595
6596 rm -rf conftest.dSYM
6597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6598 conftest$ac_exeext conftest.$ac_ext
6599 fi
6600 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6601 $as_echo "$ac_cv_func_alloca_works" >&6; }
6602
6603 if test $ac_cv_func_alloca_works = yes; then
6604
6605 cat >>confdefs.h <<\_ACEOF
6606 #define HAVE_ALLOCA 1
6607 _ACEOF
6608
6609 else
6610 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6611 # that cause trouble. Some versions do not even contain alloca or
6612 # contain a buggy version. If you still want to use their alloca,
6613 # use ar to extract alloca.o from them instead of compiling alloca.c.
6614
6615 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6616
6617 cat >>confdefs.h <<\_ACEOF
6618 #define C_ALLOCA 1
6619 _ACEOF
6620
6621
6622 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6623 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6624 if test "${ac_cv_os_cray+set}" = set; then
6625 $as_echo_n "(cached) " >&6
6626 else
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h. */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 #if defined CRAY && ! defined CRAY2
6634 webecray
6635 #else
6636 wenotbecray
6637 #endif
6638
6639 _ACEOF
6640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6641 $EGREP "webecray" >/dev/null 2>&1; then
6642 ac_cv_os_cray=yes
6643 else
6644 ac_cv_os_cray=no
6645 fi
6646 rm -f conftest*
6647
6648 fi
6649 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6650 $as_echo "$ac_cv_os_cray" >&6; }
6651 if test $ac_cv_os_cray = yes; then
6652 for ac_func in _getb67 GETB67 getb67; do
6653 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6654 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6655 $as_echo_n "checking for $ac_func... " >&6; }
6656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6657 $as_echo_n "(cached) " >&6
6658 else
6659 cat >conftest.$ac_ext <<_ACEOF
6660 /* confdefs.h. */
6661 _ACEOF
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>conftest.$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6667 #define $ac_func innocuous_$ac_func
6668
6669 /* System header to define __stub macros and hopefully few prototypes,
6670 which can conflict with char $ac_func (); below.
6671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6672 <limits.h> exists even on freestanding compilers. */
6673
6674 #ifdef __STDC__
6675 # include <limits.h>
6676 #else
6677 # include <assert.h>
6678 #endif
6679
6680 #undef $ac_func
6681
6682 /* Override any GCC internal prototype to avoid an error.
6683 Use char because int might match the return type of a GCC
6684 builtin and then its argument prototype would still apply. */
6685 #ifdef __cplusplus
6686 extern "C"
6687 #endif
6688 char $ac_func ();
6689 /* The GNU C library defines this for functions which it implements
6690 to always fail with ENOSYS. Some functions are actually named
6691 something starting with __ and the normal name is an alias. */
6692 #if defined __stub_$ac_func || defined __stub___$ac_func
6693 choke me
6694 #endif
6695
6696 int
6697 main ()
6698 {
6699 return $ac_func ();
6700 ;
6701 return 0;
6702 }
6703 _ACEOF
6704 rm -f conftest.$ac_objext conftest$ac_exeext
6705 if { (ac_try="$ac_link"
6706 case "(($ac_try" in
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6709 esac
6710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6711 $as_echo "$ac_try_echo") >&5
6712 (eval "$ac_link") 2>conftest.er1
6713 ac_status=$?
6714 grep -v '^ *+' conftest.er1 >conftest.err
6715 rm -f conftest.er1
6716 cat conftest.err >&5
6717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest$ac_exeext && {
6722 test "$cross_compiling" = yes ||
6723 $as_test_x conftest$ac_exeext
6724 }; then
6725 eval "$as_ac_var=yes"
6726 else
6727 $as_echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 eval "$as_ac_var=no"
6731 fi
6732
6733 rm -rf conftest.dSYM
6734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6735 conftest$ac_exeext conftest.$ac_ext
6736 fi
6737 ac_res=`eval 'as_val=${'$as_ac_var'}
6738 $as_echo "$as_val"'`
6739 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6740 $as_echo "$ac_res" >&6; }
6741 as_val=`eval 'as_val=${'$as_ac_var'}
6742 $as_echo "$as_val"'`
6743 if test "x$as_val" = x""yes; then
6744
6745 cat >>confdefs.h <<_ACEOF
6746 #define CRAY_STACKSEG_END $ac_func
6747 _ACEOF
6748
6749 break
6750 fi
6751
6752 done
6753 fi
6754
6755 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6756 $as_echo_n "checking stack direction for C alloca... " >&6; }
6757 if test "${ac_cv_c_stack_direction+set}" = set; then
6758 $as_echo_n "(cached) " >&6
6759 else
6760 if test "$cross_compiling" = yes; then
6761 ac_cv_c_stack_direction=0
6762 else
6763 cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 $ac_includes_default
6770 int
6771 find_stack_direction ()
6772 {
6773 static char *addr = 0;
6774 auto char dummy;
6775 if (addr == 0)
6776 {
6777 addr = &dummy;
6778 return find_stack_direction ();
6779 }
6780 else
6781 return (&dummy > addr) ? 1 : -1;
6782 }
6783
6784 int
6785 main ()
6786 {
6787 return find_stack_direction () < 0;
6788 }
6789 _ACEOF
6790 rm -f conftest$ac_exeext
6791 if { (ac_try="$ac_link"
6792 case "(($ac_try" in
6793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794 *) ac_try_echo=$ac_try;;
6795 esac
6796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6797 $as_echo "$ac_try_echo") >&5
6798 (eval "$ac_link") 2>&5
6799 ac_status=$?
6800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6802 { (case "(($ac_try" in
6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6805 esac
6806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6807 $as_echo "$ac_try_echo") >&5
6808 (eval "$ac_try") 2>&5
6809 ac_status=$?
6810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 ac_cv_c_stack_direction=1
6813 else
6814 $as_echo "$as_me: program exited with status $ac_status" >&5
6815 $as_echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6817
6818 ( exit $ac_status )
6819 ac_cv_c_stack_direction=-1
6820 fi
6821 rm -rf conftest.dSYM
6822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6823 fi
6824
6825
6826 fi
6827 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6828 $as_echo "$ac_cv_c_stack_direction" >&6; }
6829
6830 cat >>confdefs.h <<_ACEOF
6831 #define STACK_DIRECTION $ac_cv_c_stack_direction
6832 _ACEOF
6833
6834
6835 fi
6836
6837 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6838 $as_echo_n "checking whether closedir returns void... " >&6; }
6839 if test "${ac_cv_func_closedir_void+set}" = set; then
6840 $as_echo_n "(cached) " >&6
6841 else
6842 if test "$cross_compiling" = yes; then
6843 ac_cv_func_closedir_void=yes
6844 else
6845 cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h. */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851 $ac_includes_default
6852 #include <$ac_header_dirent>
6853 #ifndef __cplusplus
6854 int closedir ();
6855 #endif
6856
6857 int
6858 main ()
6859 {
6860 return closedir (opendir (".")) != 0;
6861 ;
6862 return 0;
6863 }
6864 _ACEOF
6865 rm -f conftest$ac_exeext
6866 if { (ac_try="$ac_link"
6867 case "(($ac_try" in
6868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869 *) ac_try_echo=$ac_try;;
6870 esac
6871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6872 $as_echo "$ac_try_echo") >&5
6873 (eval "$ac_link") 2>&5
6874 ac_status=$?
6875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6877 { (case "(($ac_try" in
6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6880 esac
6881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6882 $as_echo "$ac_try_echo") >&5
6883 (eval "$ac_try") 2>&5
6884 ac_status=$?
6885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 ac_cv_func_closedir_void=no
6888 else
6889 $as_echo "$as_me: program exited with status $ac_status" >&5
6890 $as_echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.$ac_ext >&5
6892
6893 ( exit $ac_status )
6894 ac_cv_func_closedir_void=yes
6895 fi
6896 rm -rf conftest.dSYM
6897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6898 fi
6899
6900
6901 fi
6902 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6903 $as_echo "$ac_cv_func_closedir_void" >&6; }
6904 if test $ac_cv_func_closedir_void = yes; then
6905
6906 cat >>confdefs.h <<\_ACEOF
6907 #define CLOSEDIR_VOID 1
6908 _ACEOF
6909
6910 fi
6911
6912
6913 for ac_header in vfork.h
6914 do
6915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6917 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6918 $as_echo_n "checking for $ac_header... " >&6; }
6919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6920 $as_echo_n "(cached) " >&6
6921 fi
6922 ac_res=`eval 'as_val=${'$as_ac_Header'}
6923 $as_echo "$as_val"'`
6924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6925 $as_echo "$ac_res" >&6; }
6926 else
6927 # Is the header compilable?
6928 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6929 $as_echo_n "checking $ac_header usability... " >&6; }
6930 cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h. */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6936 $ac_includes_default
6937 #include <$ac_header>
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (ac_try="$ac_compile"
6941 case "(($ac_try" in
6942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6943 *) ac_try_echo=$ac_try;;
6944 esac
6945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6946 $as_echo "$ac_try_echo") >&5
6947 (eval "$ac_compile") 2>conftest.er1
6948 ac_status=$?
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
6952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } && {
6954 test -z "$ac_c_werror_flag" ||
6955 test ! -s conftest.err
6956 } && test -s conftest.$ac_objext; then
6957 ac_header_compiler=yes
6958 else
6959 $as_echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6961
6962 ac_header_compiler=no
6963 fi
6964
6965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6967 $as_echo "$ac_header_compiler" >&6; }
6968
6969 # Is the header present?
6970 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6971 $as_echo_n "checking $ac_header presence... " >&6; }
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h. */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 #include <$ac_header>
6979 _ACEOF
6980 if { (ac_try="$ac_cpp conftest.$ac_ext"
6981 case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984 esac
6985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6986 $as_echo "$ac_try_echo") >&5
6987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6988 ac_status=$?
6989 grep -v '^ *+' conftest.er1 >conftest.err
6990 rm -f conftest.er1
6991 cat conftest.err >&5
6992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } >/dev/null && {
6994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6995 test ! -s conftest.err
6996 }; then
6997 ac_header_preproc=yes
6998 else
6999 $as_echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7001
7002 ac_header_preproc=no
7003 fi
7004
7005 rm -f conftest.err conftest.$ac_ext
7006 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7007 $as_echo "$ac_header_preproc" >&6; }
7008
7009 # So? What about this header?
7010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7011 yes:no: )
7012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7013 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7015 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7016 ac_header_preproc=yes
7017 ;;
7018 no:yes:* )
7019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7020 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7022 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7024 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7026 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7028 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7030 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7031
7032 ;;
7033 esac
7034 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7035 $as_echo_n "checking for $ac_header... " >&6; }
7036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7037 $as_echo_n "(cached) " >&6
7038 else
7039 eval "$as_ac_Header=\$ac_header_preproc"
7040 fi
7041 ac_res=`eval 'as_val=${'$as_ac_Header'}
7042 $as_echo "$as_val"'`
7043 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7044 $as_echo "$ac_res" >&6; }
7045
7046 fi
7047 as_val=`eval 'as_val=${'$as_ac_Header'}
7048 $as_echo "$as_val"'`
7049 if test "x$as_val" = x""yes; then
7050 cat >>confdefs.h <<_ACEOF
7051 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7052 _ACEOF
7053
7054 fi
7055
7056 done
7057
7058
7059
7060 for ac_func in fork vfork
7061 do
7062 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7063 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7064 $as_echo_n "checking for $ac_func... " >&6; }
7065 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7066 $as_echo_n "(cached) " >&6
7067 else
7068 cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h. */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7076 #define $ac_func innocuous_$ac_func
7077
7078 /* System header to define __stub macros and hopefully few prototypes,
7079 which can conflict with char $ac_func (); below.
7080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7081 <limits.h> exists even on freestanding compilers. */
7082
7083 #ifdef __STDC__
7084 # include <limits.h>
7085 #else
7086 # include <assert.h>
7087 #endif
7088
7089 #undef $ac_func
7090
7091 /* Override any GCC internal prototype to avoid an error.
7092 Use char because int might match the return type of a GCC
7093 builtin and then its argument prototype would still apply. */
7094 #ifdef __cplusplus
7095 extern "C"
7096 #endif
7097 char $ac_func ();
7098 /* The GNU C library defines this for functions which it implements
7099 to always fail with ENOSYS. Some functions are actually named
7100 something starting with __ and the normal name is an alias. */
7101 #if defined __stub_$ac_func || defined __stub___$ac_func
7102 choke me
7103 #endif
7104
7105 int
7106 main ()
7107 {
7108 return $ac_func ();
7109 ;
7110 return 0;
7111 }
7112 _ACEOF
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (ac_try="$ac_link"
7115 case "(($ac_try" in
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7118 esac
7119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7120 $as_echo "$ac_try_echo") >&5
7121 (eval "$ac_link") 2>conftest.er1
7122 ac_status=$?
7123 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1
7125 cat conftest.err >&5
7126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest$ac_exeext && {
7131 test "$cross_compiling" = yes ||
7132 $as_test_x conftest$ac_exeext
7133 }; then
7134 eval "$as_ac_var=yes"
7135 else
7136 $as_echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7138
7139 eval "$as_ac_var=no"
7140 fi
7141
7142 rm -rf conftest.dSYM
7143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7144 conftest$ac_exeext conftest.$ac_ext
7145 fi
7146 ac_res=`eval 'as_val=${'$as_ac_var'}
7147 $as_echo "$as_val"'`
7148 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7149 $as_echo "$ac_res" >&6; }
7150 as_val=`eval 'as_val=${'$as_ac_var'}
7151 $as_echo "$as_val"'`
7152 if test "x$as_val" = x""yes; then
7153 cat >>confdefs.h <<_ACEOF
7154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7155 _ACEOF
7156
7157 fi
7158 done
7159
7160 if test "x$ac_cv_func_fork" = xyes; then
7161 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7162 $as_echo_n "checking for working fork... " >&6; }
7163 if test "${ac_cv_func_fork_works+set}" = set; then
7164 $as_echo_n "(cached) " >&6
7165 else
7166 if test "$cross_compiling" = yes; then
7167 ac_cv_func_fork_works=cross
7168 else
7169 cat >conftest.$ac_ext <<_ACEOF
7170 /* confdefs.h. */
7171 _ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 $ac_includes_default
7176 int
7177 main ()
7178 {
7179
7180 /* By Ruediger Kuhlmann. */
7181 return fork () < 0;
7182
7183 ;
7184 return 0;
7185 }
7186 _ACEOF
7187 rm -f conftest$ac_exeext
7188 if { (ac_try="$ac_link"
7189 case "(($ac_try" in
7190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7192 esac
7193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7194 $as_echo "$ac_try_echo") >&5
7195 (eval "$ac_link") 2>&5
7196 ac_status=$?
7197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7199 { (case "(($ac_try" in
7200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201 *) ac_try_echo=$ac_try;;
7202 esac
7203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7204 $as_echo "$ac_try_echo") >&5
7205 (eval "$ac_try") 2>&5
7206 ac_status=$?
7207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7209 ac_cv_func_fork_works=yes
7210 else
7211 $as_echo "$as_me: program exited with status $ac_status" >&5
7212 $as_echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7214
7215 ( exit $ac_status )
7216 ac_cv_func_fork_works=no
7217 fi
7218 rm -rf conftest.dSYM
7219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7220 fi
7221
7222
7223 fi
7224 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7225 $as_echo "$ac_cv_func_fork_works" >&6; }
7226
7227 else
7228 ac_cv_func_fork_works=$ac_cv_func_fork
7229 fi
7230 if test "x$ac_cv_func_fork_works" = xcross; then
7231 case $host in
7232 *-*-amigaos* | *-*-msdosdjgpp*)
7233 # Override, as these systems have only a dummy fork() stub
7234 ac_cv_func_fork_works=no
7235 ;;
7236 *)
7237 ac_cv_func_fork_works=yes
7238 ;;
7239 esac
7240 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7241 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7242 fi
7243 ac_cv_func_vfork_works=$ac_cv_func_vfork
7244 if test "x$ac_cv_func_vfork" = xyes; then
7245 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7246 $as_echo_n "checking for working vfork... " >&6; }
7247 if test "${ac_cv_func_vfork_works+set}" = set; then
7248 $as_echo_n "(cached) " >&6
7249 else
7250 if test "$cross_compiling" = yes; then
7251 ac_cv_func_vfork_works=cross
7252 else
7253 cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h. */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 /* Thanks to Paul Eggert for this test. */
7260 $ac_includes_default
7261 #include <sys/wait.h>
7262 #ifdef HAVE_VFORK_H
7263 # include <vfork.h>
7264 #endif
7265 /* On some sparc systems, changes by the child to local and incoming
7266 argument registers are propagated back to the parent. The compiler
7267 is told about this with #include <vfork.h>, but some compilers
7268 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7269 static variable whose address is put into a register that is
7270 clobbered by the vfork. */
7271 static void
7272 #ifdef __cplusplus
7273 sparc_address_test (int arg)
7274 # else
7275 sparc_address_test (arg) int arg;
7276 #endif
7277 {
7278 static pid_t child;
7279 if (!child) {
7280 child = vfork ();
7281 if (child < 0) {
7282 perror ("vfork");
7283 _exit(2);
7284 }
7285 if (!child) {
7286 arg = getpid();
7287 write(-1, "", 0);
7288 _exit (arg);
7289 }
7290 }
7291 }
7292
7293 int
7294 main ()
7295 {
7296 pid_t parent = getpid ();
7297 pid_t child;
7298
7299 sparc_address_test (0);
7300
7301 child = vfork ();
7302
7303 if (child == 0) {
7304 /* Here is another test for sparc vfork register problems. This
7305 test uses lots of local variables, at least as many local
7306 variables as main has allocated so far including compiler
7307 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7308 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7309 reuse the register of parent for one of the local variables,
7310 since it will think that parent can't possibly be used any more
7311 in this routine. Assigning to the local variable will thus
7312 munge parent in the parent process. */
7313 pid_t
7314 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7315 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7316 /* Convince the compiler that p..p7 are live; otherwise, it might
7317 use the same hardware register for all 8 local variables. */
7318 if (p != p1 || p != p2 || p != p3 || p != p4
7319 || p != p5 || p != p6 || p != p7)
7320 _exit(1);
7321
7322 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7323 from child file descriptors. If the child closes a descriptor
7324 before it execs or exits, this munges the parent's descriptor
7325 as well. Test for this by closing stdout in the child. */
7326 _exit(close(fileno(stdout)) != 0);
7327 } else {
7328 int status;
7329 struct stat st;
7330
7331 while (wait(&status) != child)
7332 ;
7333 return (
7334 /* Was there some problem with vforking? */
7335 child < 0
7336
7337 /* Did the child fail? (This shouldn't happen.) */
7338 || status
7339
7340 /* Did the vfork/compiler bug occur? */
7341 || parent != getpid()
7342
7343 /* Did the file descriptor bug occur? */
7344 || fstat(fileno(stdout), &st) != 0
7345 );
7346 }
7347 }
7348 _ACEOF
7349 rm -f conftest$ac_exeext
7350 if { (ac_try="$ac_link"
7351 case "(($ac_try" in
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7354 esac
7355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7356 $as_echo "$ac_try_echo") >&5
7357 (eval "$ac_link") 2>&5
7358 ac_status=$?
7359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7361 { (case "(($ac_try" in
7362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363 *) ac_try_echo=$ac_try;;
7364 esac
7365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7366 $as_echo "$ac_try_echo") >&5
7367 (eval "$ac_try") 2>&5
7368 ac_status=$?
7369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 ac_cv_func_vfork_works=yes
7372 else
7373 $as_echo "$as_me: program exited with status $ac_status" >&5
7374 $as_echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7376
7377 ( exit $ac_status )
7378 ac_cv_func_vfork_works=no
7379 fi
7380 rm -rf conftest.dSYM
7381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7382 fi
7383
7384
7385 fi
7386 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7387 $as_echo "$ac_cv_func_vfork_works" >&6; }
7388
7389 fi;
7390 if test "x$ac_cv_func_fork_works" = xcross; then
7391 ac_cv_func_vfork_works=$ac_cv_func_vfork
7392 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7393 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7394 fi
7395
7396 if test "x$ac_cv_func_vfork_works" = xyes; then
7397
7398 cat >>confdefs.h <<\_ACEOF
7399 #define HAVE_WORKING_VFORK 1
7400 _ACEOF
7401
7402 else
7403
7404 cat >>confdefs.h <<\_ACEOF
7405 #define vfork fork
7406 _ACEOF
7407
7408 fi
7409 if test "x$ac_cv_func_fork_works" = xyes; then
7410
7411 cat >>confdefs.h <<\_ACEOF
7412 #define HAVE_WORKING_FORK 1
7413 _ACEOF
7414
7415 fi
7416
7417 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7418 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
7419 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7420 $as_echo_n "(cached) " >&6
7421 else
7422 rm -f conftest.sym conftest.file
7423 echo >conftest.file
7424 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7425 if test "$cross_compiling" = yes; then
7426 ac_cv_func_lstat_dereferences_slashed_symlink=no
7427 else
7428 cat >conftest.$ac_ext <<_ACEOF
7429 /* confdefs.h. */
7430 _ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7434 $ac_includes_default
7435 int
7436 main ()
7437 {
7438 struct stat sbuf;
7439 /* Linux will dereference the symlink and fail.
7440 That is better in the sense that it means we will not
7441 have to compile and use the lstat wrapper. */
7442 return lstat ("conftest.sym/", &sbuf) == 0;
7443 ;
7444 return 0;
7445 }
7446 _ACEOF
7447 rm -f conftest$ac_exeext
7448 if { (ac_try="$ac_link"
7449 case "(($ac_try" in
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7452 esac
7453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7454 $as_echo "$ac_try_echo") >&5
7455 (eval "$ac_link") 2>&5
7456 ac_status=$?
7457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7459 { (case "(($ac_try" in
7460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7461 *) ac_try_echo=$ac_try;;
7462 esac
7463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7464 $as_echo "$ac_try_echo") >&5
7465 (eval "$ac_try") 2>&5
7466 ac_status=$?
7467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7469 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7470 else
7471 $as_echo "$as_me: program exited with status $ac_status" >&5
7472 $as_echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7474
7475 ( exit $ac_status )
7476 ac_cv_func_lstat_dereferences_slashed_symlink=no
7477 fi
7478 rm -rf conftest.dSYM
7479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7480 fi
7481
7482
7483 else
7484 # If the `ln -s' command failed, then we probably don't even
7485 # have an lstat function.
7486 ac_cv_func_lstat_dereferences_slashed_symlink=no
7487 fi
7488 rm -f conftest.sym conftest.file
7489
7490 fi
7491 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7492 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7493
7494 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7495
7496 cat >>confdefs.h <<_ACEOF
7497 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7498 _ACEOF
7499
7500
7501 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7502 case " $LIBOBJS " in
7503 *" lstat.$ac_objext "* ) ;;
7504 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7505 ;;
7506 esac
7507
7508 fi
7509
7510 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7511 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7512 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7513 $as_echo_n "(cached) " >&6
7514 else
7515 if test "$cross_compiling" = yes; then
7516 ac_cv_func_lstat_empty_string_bug=yes
7517 else
7518 cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 $ac_includes_default
7525 int
7526 main ()
7527 {
7528 struct stat sbuf;
7529 return lstat ("", &sbuf) == 0;
7530 ;
7531 return 0;
7532 }
7533 _ACEOF
7534 rm -f conftest$ac_exeext
7535 if { (ac_try="$ac_link"
7536 case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539 esac
7540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7541 $as_echo "$ac_try_echo") >&5
7542 (eval "$ac_link") 2>&5
7543 ac_status=$?
7544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7546 { (case "(($ac_try" in
7547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7548 *) ac_try_echo=$ac_try;;
7549 esac
7550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7551 $as_echo "$ac_try_echo") >&5
7552 (eval "$ac_try") 2>&5
7553 ac_status=$?
7554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
7556 ac_cv_func_lstat_empty_string_bug=no
7557 else
7558 $as_echo "$as_me: program exited with status $ac_status" >&5
7559 $as_echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7561
7562 ( exit $ac_status )
7563 ac_cv_func_lstat_empty_string_bug=yes
7564 fi
7565 rm -rf conftest.dSYM
7566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7567 fi
7568
7569
7570 fi
7571 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7572 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7573 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7574 case " $LIBOBJS " in
7575 *" lstat.$ac_objext "* ) ;;
7576 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7577 ;;
7578 esac
7579
7580
7581 cat >>confdefs.h <<_ACEOF
7582 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7583 _ACEOF
7584
7585 fi
7586
7587
7588 for ac_header in stdlib.h
7589 do
7590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7592 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7593 $as_echo_n "checking for $ac_header... " >&6; }
7594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7595 $as_echo_n "(cached) " >&6
7596 fi
7597 ac_res=`eval 'as_val=${'$as_ac_Header'}
7598 $as_echo "$as_val"'`
7599 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7600 $as_echo "$ac_res" >&6; }
7601 else
7602 # Is the header compilable?
7603 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7604 $as_echo_n "checking $ac_header usability... " >&6; }
7605 cat >conftest.$ac_ext <<_ACEOF
7606 /* confdefs.h. */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 $ac_includes_default
7612 #include <$ac_header>
7613 _ACEOF
7614 rm -f conftest.$ac_objext
7615 if { (ac_try="$ac_compile"
7616 case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619 esac
7620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7621 $as_echo "$ac_try_echo") >&5
7622 (eval "$ac_compile") 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.$ac_objext; then
7632 ac_header_compiler=yes
7633 else
7634 $as_echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7636
7637 ac_header_compiler=no
7638 fi
7639
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7641 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7642 $as_echo "$ac_header_compiler" >&6; }
7643
7644 # Is the header present?
7645 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7646 $as_echo_n "checking $ac_header presence... " >&6; }
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h. */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 #include <$ac_header>
7654 _ACEOF
7655 if { (ac_try="$ac_cpp conftest.$ac_ext"
7656 case "(($ac_try" in
7657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658 *) ac_try_echo=$ac_try;;
7659 esac
7660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7661 $as_echo "$ac_try_echo") >&5
7662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7663 ac_status=$?
7664 grep -v '^ *+' conftest.er1 >conftest.err
7665 rm -f conftest.er1
7666 cat conftest.err >&5
7667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } >/dev/null && {
7669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7670 test ! -s conftest.err
7671 }; then
7672 ac_header_preproc=yes
7673 else
7674 $as_echo "$as_me: failed program was:" >&5
7675 sed 's/^/| /' conftest.$ac_ext >&5
7676
7677 ac_header_preproc=no
7678 fi
7679
7680 rm -f conftest.err conftest.$ac_ext
7681 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7682 $as_echo "$ac_header_preproc" >&6; }
7683
7684 # So? What about this header?
7685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7686 yes:no: )
7687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7688 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7690 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7691 ac_header_preproc=yes
7692 ;;
7693 no:yes:* )
7694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7695 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7697 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7699 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7701 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7703 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7705 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7706
7707 ;;
7708 esac
7709 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7710 $as_echo_n "checking for $ac_header... " >&6; }
7711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7712 $as_echo_n "(cached) " >&6
7713 else
7714 eval "$as_ac_Header=\$ac_header_preproc"
7715 fi
7716 ac_res=`eval 'as_val=${'$as_ac_Header'}
7717 $as_echo "$as_val"'`
7718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7719 $as_echo "$ac_res" >&6; }
7720
7721 fi
7722 as_val=`eval 'as_val=${'$as_ac_Header'}
7723 $as_echo "$as_val"'`
7724 if test "x$as_val" = x""yes; then
7725 cat >>confdefs.h <<_ACEOF
7726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7727 _ACEOF
7728
7729 fi
7730
7731 done
7732
7733 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7734 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7735 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7736 $as_echo_n "(cached) " >&6
7737 else
7738 if test "$cross_compiling" = yes; then
7739 ac_cv_func_malloc_0_nonnull=no
7740 else
7741 cat >conftest.$ac_ext <<_ACEOF
7742 /* confdefs.h. */
7743 _ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7747 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7748 # include <stdlib.h>
7749 #else
7750 char *malloc ();
7751 #endif
7752
7753 int
7754 main ()
7755 {
7756 return ! malloc (0);
7757 ;
7758 return 0;
7759 }
7760 _ACEOF
7761 rm -f conftest$ac_exeext
7762 if { (ac_try="$ac_link"
7763 case "(($ac_try" in
7764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7765 *) ac_try_echo=$ac_try;;
7766 esac
7767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7768 $as_echo "$ac_try_echo") >&5
7769 (eval "$ac_link") 2>&5
7770 ac_status=$?
7771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7773 { (case "(($ac_try" in
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7776 esac
7777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7778 $as_echo "$ac_try_echo") >&5
7779 (eval "$ac_try") 2>&5
7780 ac_status=$?
7781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; }; then
7783 ac_cv_func_malloc_0_nonnull=yes
7784 else
7785 $as_echo "$as_me: program exited with status $ac_status" >&5
7786 $as_echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7788
7789 ( exit $ac_status )
7790 ac_cv_func_malloc_0_nonnull=no
7791 fi
7792 rm -rf conftest.dSYM
7793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7794 fi
7795
7796
7797 fi
7798 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7799 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7800 if test $ac_cv_func_malloc_0_nonnull = yes; then
7801
7802 cat >>confdefs.h <<\_ACEOF
7803 #define HAVE_MALLOC 1
7804 _ACEOF
7805
7806 else
7807 cat >>confdefs.h <<\_ACEOF
7808 #define HAVE_MALLOC 0
7809 _ACEOF
7810
7811 case " $LIBOBJS " in
7812 *" malloc.$ac_objext "* ) ;;
7813 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7814 ;;
7815 esac
7816
7817
7818 cat >>confdefs.h <<\_ACEOF
7819 #define malloc rpl_malloc
7820 _ACEOF
7821
7822 fi
7823
7824
7825
7826 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7827 $as_echo_n "checking for working memcmp... " >&6; }
7828 if test "${ac_cv_func_memcmp_working+set}" = set; then
7829 $as_echo_n "(cached) " >&6
7830 else
7831 if test "$cross_compiling" = yes; then
7832 ac_cv_func_memcmp_working=no
7833 else
7834 cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h. */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7840 $ac_includes_default
7841 int
7842 main ()
7843 {
7844
7845 /* Some versions of memcmp are not 8-bit clean. */
7846 char c0 = '\100', c1 = '\200', c2 = '\201';
7847 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7848 return 1;
7849
7850 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7851 or more and with at least one buffer not starting on a 4-byte boundary.
7852 William Lewis provided this test program. */
7853 {
7854 char foo[21];
7855 char bar[21];
7856 int i;
7857 for (i = 0; i < 4; i++)
7858 {
7859 char *a = foo + i;
7860 char *b = bar + i;
7861 strcpy (a, "--------01111111");
7862 strcpy (b, "--------10000000");
7863 if (memcmp (a, b, 16) >= 0)
7864 return 1;
7865 }
7866 return 0;
7867 }
7868
7869 ;
7870 return 0;
7871 }
7872 _ACEOF
7873 rm -f conftest$ac_exeext
7874 if { (ac_try="$ac_link"
7875 case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878 esac
7879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7880 $as_echo "$ac_try_echo") >&5
7881 (eval "$ac_link") 2>&5
7882 ac_status=$?
7883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7885 { (case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7888 esac
7889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7890 $as_echo "$ac_try_echo") >&5
7891 (eval "$ac_try") 2>&5
7892 ac_status=$?
7893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 ac_cv_func_memcmp_working=yes
7896 else
7897 $as_echo "$as_me: program exited with status $ac_status" >&5
7898 $as_echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 ( exit $ac_status )
7902 ac_cv_func_memcmp_working=no
7903 fi
7904 rm -rf conftest.dSYM
7905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7906 fi
7907
7908
7909 fi
7910 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7911 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7912 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7913 *" memcmp.$ac_objext "* ) ;;
7914 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7915 ;;
7916 esac
7917
7918
7919
7920
7921 for ac_header in stdlib.h unistd.h
7922 do
7923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7926 $as_echo_n "checking for $ac_header... " >&6; }
7927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7928 $as_echo_n "(cached) " >&6
7929 fi
7930 ac_res=`eval 'as_val=${'$as_ac_Header'}
7931 $as_echo "$as_val"'`
7932 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7933 $as_echo "$ac_res" >&6; }
7934 else
7935 # Is the header compilable?
7936 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7937 $as_echo_n "checking $ac_header usability... " >&6; }
7938 cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h. */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 $ac_includes_default
7945 #include <$ac_header>
7946 _ACEOF
7947 rm -f conftest.$ac_objext
7948 if { (ac_try="$ac_compile"
7949 case "(($ac_try" in
7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7952 esac
7953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7954 $as_echo "$ac_try_echo") >&5
7955 (eval "$ac_compile") 2>conftest.er1
7956 ac_status=$?
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
7960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } && {
7962 test -z "$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 } && test -s conftest.$ac_objext; then
7965 ac_header_compiler=yes
7966 else
7967 $as_echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7969
7970 ac_header_compiler=no
7971 fi
7972
7973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7975 $as_echo "$ac_header_compiler" >&6; }
7976
7977 # Is the header present?
7978 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7979 $as_echo_n "checking $ac_header presence... " >&6; }
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 #include <$ac_header>
7987 _ACEOF
7988 if { (ac_try="$ac_cpp conftest.$ac_ext"
7989 case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992 esac
7993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7994 $as_echo "$ac_try_echo") >&5
7995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7996 ac_status=$?
7997 grep -v '^ *+' conftest.er1 >conftest.err
7998 rm -f conftest.er1
7999 cat conftest.err >&5
8000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } >/dev/null && {
8002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8003 test ! -s conftest.err
8004 }; then
8005 ac_header_preproc=yes
8006 else
8007 $as_echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8009
8010 ac_header_preproc=no
8011 fi
8012
8013 rm -f conftest.err conftest.$ac_ext
8014 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8015 $as_echo "$ac_header_preproc" >&6; }
8016
8017 # So? What about this header?
8018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8019 yes:no: )
8020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8021 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8023 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8024 ac_header_preproc=yes
8025 ;;
8026 no:yes:* )
8027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8028 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8030 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8032 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8034 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8036 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8038 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8039
8040 ;;
8041 esac
8042 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8043 $as_echo_n "checking for $ac_header... " >&6; }
8044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8045 $as_echo_n "(cached) " >&6
8046 else
8047 eval "$as_ac_Header=\$ac_header_preproc"
8048 fi
8049 ac_res=`eval 'as_val=${'$as_ac_Header'}
8050 $as_echo "$as_val"'`
8051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8052 $as_echo "$ac_res" >&6; }
8053
8054 fi
8055 as_val=`eval 'as_val=${'$as_ac_Header'}
8056 $as_echo "$as_val"'`
8057 if test "x$as_val" = x""yes; then
8058 cat >>confdefs.h <<_ACEOF
8059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8060 _ACEOF
8061
8062 fi
8063
8064 done
8065
8066
8067 for ac_func in getpagesize
8068 do
8069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8070 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8071 $as_echo_n "checking for $ac_func... " >&6; }
8072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8073 $as_echo_n "(cached) " >&6
8074 else
8075 cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h. */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8083 #define $ac_func innocuous_$ac_func
8084
8085 /* System header to define __stub macros and hopefully few prototypes,
8086 which can conflict with char $ac_func (); below.
8087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8088 <limits.h> exists even on freestanding compilers. */
8089
8090 #ifdef __STDC__
8091 # include <limits.h>
8092 #else
8093 # include <assert.h>
8094 #endif
8095
8096 #undef $ac_func
8097
8098 /* Override any GCC internal prototype to avoid an error.
8099 Use char because int might match the return type of a GCC
8100 builtin and then its argument prototype would still apply. */
8101 #ifdef __cplusplus
8102 extern "C"
8103 #endif
8104 char $ac_func ();
8105 /* The GNU C library defines this for functions which it implements
8106 to always fail with ENOSYS. Some functions are actually named
8107 something starting with __ and the normal name is an alias. */
8108 #if defined __stub_$ac_func || defined __stub___$ac_func
8109 choke me
8110 #endif
8111
8112 int
8113 main ()
8114 {
8115 return $ac_func ();
8116 ;
8117 return 0;
8118 }
8119 _ACEOF
8120 rm -f conftest.$ac_objext conftest$ac_exeext
8121 if { (ac_try="$ac_link"
8122 case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8125 esac
8126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8127 $as_echo "$ac_try_echo") >&5
8128 (eval "$ac_link") 2>conftest.er1
8129 ac_status=$?
8130 grep -v '^ *+' conftest.er1 >conftest.err
8131 rm -f conftest.er1
8132 cat conftest.err >&5
8133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } && {
8135 test -z "$ac_c_werror_flag" ||
8136 test ! -s conftest.err
8137 } && test -s conftest$ac_exeext && {
8138 test "$cross_compiling" = yes ||
8139 $as_test_x conftest$ac_exeext
8140 }; then
8141 eval "$as_ac_var=yes"
8142 else
8143 $as_echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8145
8146 eval "$as_ac_var=no"
8147 fi
8148
8149 rm -rf conftest.dSYM
8150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8151 conftest$ac_exeext conftest.$ac_ext
8152 fi
8153 ac_res=`eval 'as_val=${'$as_ac_var'}
8154 $as_echo "$as_val"'`
8155 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8156 $as_echo "$ac_res" >&6; }
8157 as_val=`eval 'as_val=${'$as_ac_var'}
8158 $as_echo "$as_val"'`
8159 if test "x$as_val" = x""yes; then
8160 cat >>confdefs.h <<_ACEOF
8161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8162 _ACEOF
8163
8164 fi
8165 done
8166
8167 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8168 $as_echo_n "checking for working mmap... " >&6; }
8169 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8170 $as_echo_n "(cached) " >&6
8171 else
8172 if test "$cross_compiling" = yes; then
8173 ac_cv_func_mmap_fixed_mapped=no
8174 else
8175 cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h. */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8182 /* malloc might have been renamed as rpl_malloc. */
8183 #undef malloc
8184
8185 /* Thanks to Mike Haertel and Jim Avera for this test.
8186 Here is a matrix of mmap possibilities:
8187 mmap private not fixed
8188 mmap private fixed at somewhere currently unmapped
8189 mmap private fixed at somewhere already mapped
8190 mmap shared not fixed
8191 mmap shared fixed at somewhere currently unmapped
8192 mmap shared fixed at somewhere already mapped
8193 For private mappings, we should verify that changes cannot be read()
8194 back from the file, nor mmap's back from the file at a different
8195 address. (There have been systems where private was not correctly
8196 implemented like the infamous i386 svr4.0, and systems where the
8197 VM page cache was not coherent with the file system buffer cache
8198 like early versions of FreeBSD and possibly contemporary NetBSD.)
8199 For shared mappings, we should conversely verify that changes get
8200 propagated back to all the places they're supposed to be.
8201
8202 Grep wants private fixed already mapped.
8203 The main things grep needs to know about mmap are:
8204 * does it exist and is it safe to write into the mmap'd area
8205 * how to use it (BSD variants) */
8206
8207 #include <fcntl.h>
8208 #include <sys/mman.h>
8209
8210 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8211 char *malloc ();
8212 #endif
8213
8214 /* This mess was copied from the GNU getpagesize.h. */
8215 #ifndef HAVE_GETPAGESIZE
8216 /* Assume that all systems that can run configure have sys/param.h. */
8217 # ifndef HAVE_SYS_PARAM_H
8218 # define HAVE_SYS_PARAM_H 1
8219 # endif
8220
8221 # ifdef _SC_PAGESIZE
8222 # define getpagesize() sysconf(_SC_PAGESIZE)
8223 # else /* no _SC_PAGESIZE */
8224 # ifdef HAVE_SYS_PARAM_H
8225 # include <sys/param.h>
8226 # ifdef EXEC_PAGESIZE
8227 # define getpagesize() EXEC_PAGESIZE
8228 # else /* no EXEC_PAGESIZE */
8229 # ifdef NBPG
8230 # define getpagesize() NBPG * CLSIZE
8231 # ifndef CLSIZE
8232 # define CLSIZE 1
8233 # endif /* no CLSIZE */
8234 # else /* no NBPG */
8235 # ifdef NBPC
8236 # define getpagesize() NBPC
8237 # else /* no NBPC */
8238 # ifdef PAGESIZE
8239 # define getpagesize() PAGESIZE
8240 # endif /* PAGESIZE */
8241 # endif /* no NBPC */
8242 # endif /* no NBPG */
8243 # endif /* no EXEC_PAGESIZE */
8244 # else /* no HAVE_SYS_PARAM_H */
8245 # define getpagesize() 8192 /* punt totally */
8246 # endif /* no HAVE_SYS_PARAM_H */
8247 # endif /* no _SC_PAGESIZE */
8248
8249 #endif /* no HAVE_GETPAGESIZE */
8250
8251 int
8252 main ()
8253 {
8254 char *data, *data2, *data3;
8255 int i, pagesize;
8256 int fd;
8257
8258 pagesize = getpagesize ();
8259
8260 /* First, make a file with some known garbage in it. */
8261 data = (char *) malloc (pagesize);
8262 if (!data)
8263 return 1;
8264 for (i = 0; i < pagesize; ++i)
8265 *(data + i) = rand ();
8266 umask (0);
8267 fd = creat ("conftest.mmap", 0600);
8268 if (fd < 0)
8269 return 1;
8270 if (write (fd, data, pagesize) != pagesize)
8271 return 1;
8272 close (fd);
8273
8274 /* Next, try to mmap the file at a fixed address which already has
8275 something else allocated at it. If we can, also make sure that
8276 we see the same garbage. */
8277 fd = open ("conftest.mmap", O_RDWR);
8278 if (fd < 0)
8279 return 1;
8280 data2 = (char *) malloc (2 * pagesize);
8281 if (!data2)
8282 return 1;
8283 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8284 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8285 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8286 return 1;
8287 for (i = 0; i < pagesize; ++i)
8288 if (*(data + i) != *(data2 + i))
8289 return 1;
8290
8291 /* Finally, make sure that changes to the mapped area do not
8292 percolate back to the file as seen by read(). (This is a bug on
8293 some variants of i386 svr4.0.) */
8294 for (i = 0; i < pagesize; ++i)
8295 *(data2 + i) = *(data2 + i) + 1;
8296 data3 = (char *) malloc (pagesize);
8297 if (!data3)
8298 return 1;
8299 if (read (fd, data3, pagesize) != pagesize)
8300 return 1;
8301 for (i = 0; i < pagesize; ++i)
8302 if (*(data + i) != *(data3 + i))
8303 return 1;
8304 close (fd);
8305 return 0;
8306 }
8307 _ACEOF
8308 rm -f conftest$ac_exeext
8309 if { (ac_try="$ac_link"
8310 case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8313 esac
8314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8315 $as_echo "$ac_try_echo") >&5
8316 (eval "$ac_link") 2>&5
8317 ac_status=$?
8318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8320 { (case "(($ac_try" in
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8323 esac
8324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8325 $as_echo "$ac_try_echo") >&5
8326 (eval "$ac_try") 2>&5
8327 ac_status=$?
8328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_func_mmap_fixed_mapped=yes
8331 else
8332 $as_echo "$as_me: program exited with status $ac_status" >&5
8333 $as_echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8335
8336 ( exit $ac_status )
8337 ac_cv_func_mmap_fixed_mapped=no
8338 fi
8339 rm -rf conftest.dSYM
8340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8341 fi
8342
8343
8344 fi
8345 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8346 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8347 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8348
8349 cat >>confdefs.h <<\_ACEOF
8350 #define HAVE_MMAP 1
8351 _ACEOF
8352
8353 fi
8354 rm -f conftest.mmap
8355
8356 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8357 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
8358 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8359 $as_echo_n "(cached) " >&6
8360 else
8361 if test "$cross_compiling" = yes; then
8362 ac_cv_func_stat_empty_string_bug=yes
8363 else
8364 cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h. */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 $ac_includes_default
8371 int
8372 main ()
8373 {
8374 struct stat sbuf;
8375 return stat ("", &sbuf) == 0;
8376 ;
8377 return 0;
8378 }
8379 _ACEOF
8380 rm -f conftest$ac_exeext
8381 if { (ac_try="$ac_link"
8382 case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8385 esac
8386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8387 $as_echo "$ac_try_echo") >&5
8388 (eval "$ac_link") 2>&5
8389 ac_status=$?
8390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8392 { (case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8395 esac
8396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8397 $as_echo "$ac_try_echo") >&5
8398 (eval "$ac_try") 2>&5
8399 ac_status=$?
8400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8402 ac_cv_func_stat_empty_string_bug=no
8403 else
8404 $as_echo "$as_me: program exited with status $ac_status" >&5
8405 $as_echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8407
8408 ( exit $ac_status )
8409 ac_cv_func_stat_empty_string_bug=yes
8410 fi
8411 rm -rf conftest.dSYM
8412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8413 fi
8414
8415
8416 fi
8417 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8418 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8419 if test $ac_cv_func_stat_empty_string_bug = yes; then
8420 case " $LIBOBJS " in
8421 *" stat.$ac_objext "* ) ;;
8422 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8423 ;;
8424 esac
8425
8426
8427 cat >>confdefs.h <<_ACEOF
8428 #define HAVE_STAT_EMPTY_STRING_BUG 1
8429 _ACEOF
8430
8431 fi
8432
8433 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8434 $as_echo_n "checking for working strtod... " >&6; }
8435 if test "${ac_cv_func_strtod+set}" = set; then
8436 $as_echo_n "(cached) " >&6
8437 else
8438 if test "$cross_compiling" = yes; then
8439 ac_cv_func_strtod=no
8440 else
8441 cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h. */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8447
8448 $ac_includes_default
8449 #ifndef strtod
8450 double strtod ();
8451 #endif
8452 int
8453 main()
8454 {
8455 {
8456 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8457 char *string = " +69";
8458 char *term;
8459 double value;
8460 value = strtod (string, &term);
8461 if (value != 69 || term != (string + 4))
8462 return 1;
8463 }
8464
8465 {
8466 /* Under Solaris 2.4, strtod returns the wrong value for the
8467 terminating character under some conditions. */
8468 char *string = "NaN";
8469 char *term;
8470 strtod (string, &term);
8471 if (term != string && *(term - 1) == 0)
8472 return 1;
8473 }
8474 return 0;
8475 }
8476
8477 _ACEOF
8478 rm -f conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8480 case "(($ac_try" in
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8483 esac
8484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8485 $as_echo "$ac_try_echo") >&5
8486 (eval "$ac_link") 2>&5
8487 ac_status=$?
8488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8490 { (case "(($ac_try" in
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8493 esac
8494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8495 $as_echo "$ac_try_echo") >&5
8496 (eval "$ac_try") 2>&5
8497 ac_status=$?
8498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_func_strtod=yes
8501 else
8502 $as_echo "$as_me: program exited with status $ac_status" >&5
8503 $as_echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506 ( exit $ac_status )
8507 ac_cv_func_strtod=no
8508 fi
8509 rm -rf conftest.dSYM
8510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8511 fi
8512
8513
8514 fi
8515 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8516 $as_echo "$ac_cv_func_strtod" >&6; }
8517 if test $ac_cv_func_strtod = no; then
8518 case " $LIBOBJS " in
8519 *" strtod.$ac_objext "* ) ;;
8520 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8521 ;;
8522 esac
8523
8524 { $as_echo "$as_me:$LINENO: checking for pow" >&5
8525 $as_echo_n "checking for pow... " >&6; }
8526 if test "${ac_cv_func_pow+set}" = set; then
8527 $as_echo_n "(cached) " >&6
8528 else
8529 cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h. */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8537 #define pow innocuous_pow
8538
8539 /* System header to define __stub macros and hopefully few prototypes,
8540 which can conflict with char pow (); below.
8541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8542 <limits.h> exists even on freestanding compilers. */
8543
8544 #ifdef __STDC__
8545 # include <limits.h>
8546 #else
8547 # include <assert.h>
8548 #endif
8549
8550 #undef pow
8551
8552 /* Override any GCC internal prototype to avoid an error.
8553 Use char because int might match the return type of a GCC
8554 builtin and then its argument prototype would still apply. */
8555 #ifdef __cplusplus
8556 extern "C"
8557 #endif
8558 char pow ();
8559 /* The GNU C library defines this for functions which it implements
8560 to always fail with ENOSYS. Some functions are actually named
8561 something starting with __ and the normal name is an alias. */
8562 #if defined __stub_pow || defined __stub___pow
8563 choke me
8564 #endif
8565
8566 int
8567 main ()
8568 {
8569 return pow ();
8570 ;
8571 return 0;
8572 }
8573 _ACEOF
8574 rm -f conftest.$ac_objext conftest$ac_exeext
8575 if { (ac_try="$ac_link"
8576 case "(($ac_try" in
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8579 esac
8580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8581 $as_echo "$ac_try_echo") >&5
8582 (eval "$ac_link") 2>conftest.er1
8583 ac_status=$?
8584 grep -v '^ *+' conftest.er1 >conftest.err
8585 rm -f conftest.er1
8586 cat conftest.err >&5
8587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } && {
8589 test -z "$ac_c_werror_flag" ||
8590 test ! -s conftest.err
8591 } && test -s conftest$ac_exeext && {
8592 test "$cross_compiling" = yes ||
8593 $as_test_x conftest$ac_exeext
8594 }; then
8595 ac_cv_func_pow=yes
8596 else
8597 $as_echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8599
8600 ac_cv_func_pow=no
8601 fi
8602
8603 rm -rf conftest.dSYM
8604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8605 conftest$ac_exeext conftest.$ac_ext
8606 fi
8607 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8608 $as_echo "$ac_cv_func_pow" >&6; }
8609
8610 if test $ac_cv_func_pow = no; then
8611 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8612 $as_echo_n "checking for pow in -lm... " >&6; }
8613 if test "${ac_cv_lib_m_pow+set}" = set; then
8614 $as_echo_n "(cached) " >&6
8615 else
8616 ac_check_lib_save_LIBS=$LIBS
8617 LIBS="-lm $LIBS"
8618 cat >conftest.$ac_ext <<_ACEOF
8619 /* confdefs.h. */
8620 _ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h. */
8624
8625 /* Override any GCC internal prototype to avoid an error.
8626 Use char because int might match the return type of a GCC
8627 builtin and then its argument prototype would still apply. */
8628 #ifdef __cplusplus
8629 extern "C"
8630 #endif
8631 char pow ();
8632 int
8633 main ()
8634 {
8635 return pow ();
8636 ;
8637 return 0;
8638 }
8639 _ACEOF
8640 rm -f conftest.$ac_objext conftest$ac_exeext
8641 if { (ac_try="$ac_link"
8642 case "(($ac_try" in
8643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8645 esac
8646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8647 $as_echo "$ac_try_echo") >&5
8648 (eval "$ac_link") 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest$ac_exeext && {
8658 test "$cross_compiling" = yes ||
8659 $as_test_x conftest$ac_exeext
8660 }; then
8661 ac_cv_lib_m_pow=yes
8662 else
8663 $as_echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666 ac_cv_lib_m_pow=no
8667 fi
8668
8669 rm -rf conftest.dSYM
8670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8671 conftest$ac_exeext conftest.$ac_ext
8672 LIBS=$ac_check_lib_save_LIBS
8673 fi
8674 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8675 $as_echo "$ac_cv_lib_m_pow" >&6; }
8676 if test "x$ac_cv_lib_m_pow" = x""yes; then
8677 POW_LIB=-lm
8678 else
8679 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8680 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8681 fi
8682
8683 fi
8684
8685 fi
8686
8687
8688 for ac_func in vprintf
8689 do
8690 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8691 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8692 $as_echo_n "checking for $ac_func... " >&6; }
8693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8694 $as_echo_n "(cached) " >&6
8695 else
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h. */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8704 #define $ac_func innocuous_$ac_func
8705
8706 /* System header to define __stub macros and hopefully few prototypes,
8707 which can conflict with char $ac_func (); below.
8708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8709 <limits.h> exists even on freestanding compilers. */
8710
8711 #ifdef __STDC__
8712 # include <limits.h>
8713 #else
8714 # include <assert.h>
8715 #endif
8716
8717 #undef $ac_func
8718
8719 /* Override any GCC internal prototype to avoid an error.
8720 Use char because int might match the return type of a GCC
8721 builtin and then its argument prototype would still apply. */
8722 #ifdef __cplusplus
8723 extern "C"
8724 #endif
8725 char $ac_func ();
8726 /* The GNU C library defines this for functions which it implements
8727 to always fail with ENOSYS. Some functions are actually named
8728 something starting with __ and the normal name is an alias. */
8729 #if defined __stub_$ac_func || defined __stub___$ac_func
8730 choke me
8731 #endif
8732
8733 int
8734 main ()
8735 {
8736 return $ac_func ();
8737 ;
8738 return 0;
8739 }
8740 _ACEOF
8741 rm -f conftest.$ac_objext conftest$ac_exeext
8742 if { (ac_try="$ac_link"
8743 case "(($ac_try" in
8744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745 *) ac_try_echo=$ac_try;;
8746 esac
8747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8748 $as_echo "$ac_try_echo") >&5
8749 (eval "$ac_link") 2>conftest.er1
8750 ac_status=$?
8751 grep -v '^ *+' conftest.er1 >conftest.err
8752 rm -f conftest.er1
8753 cat conftest.err >&5
8754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } && {
8756 test -z "$ac_c_werror_flag" ||
8757 test ! -s conftest.err
8758 } && test -s conftest$ac_exeext && {
8759 test "$cross_compiling" = yes ||
8760 $as_test_x conftest$ac_exeext
8761 }; then
8762 eval "$as_ac_var=yes"
8763 else
8764 $as_echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8766
8767 eval "$as_ac_var=no"
8768 fi
8769
8770 rm -rf conftest.dSYM
8771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8772 conftest$ac_exeext conftest.$ac_ext
8773 fi
8774 ac_res=`eval 'as_val=${'$as_ac_var'}
8775 $as_echo "$as_val"'`
8776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8777 $as_echo "$ac_res" >&6; }
8778 as_val=`eval 'as_val=${'$as_ac_var'}
8779 $as_echo "$as_val"'`
8780 if test "x$as_val" = x""yes; then
8781 cat >>confdefs.h <<_ACEOF
8782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8783 _ACEOF
8784
8785 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8786 $as_echo_n "checking for _doprnt... " >&6; }
8787 if test "${ac_cv_func__doprnt+set}" = set; then
8788 $as_echo_n "(cached) " >&6
8789 else
8790 cat >conftest.$ac_ext <<_ACEOF
8791 /* confdefs.h. */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8796 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8798 #define _doprnt innocuous__doprnt
8799
8800 /* System header to define __stub macros and hopefully few prototypes,
8801 which can conflict with char _doprnt (); below.
8802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8803 <limits.h> exists even on freestanding compilers. */
8804
8805 #ifdef __STDC__
8806 # include <limits.h>
8807 #else
8808 # include <assert.h>
8809 #endif
8810
8811 #undef _doprnt
8812
8813 /* Override any GCC internal prototype to avoid an error.
8814 Use char because int might match the return type of a GCC
8815 builtin and then its argument prototype would still apply. */
8816 #ifdef __cplusplus
8817 extern "C"
8818 #endif
8819 char _doprnt ();
8820 /* The GNU C library defines this for functions which it implements
8821 to always fail with ENOSYS. Some functions are actually named
8822 something starting with __ and the normal name is an alias. */
8823 #if defined __stub__doprnt || defined __stub____doprnt
8824 choke me
8825 #endif
8826
8827 int
8828 main ()
8829 {
8830 return _doprnt ();
8831 ;
8832 return 0;
8833 }
8834 _ACEOF
8835 rm -f conftest.$ac_objext conftest$ac_exeext
8836 if { (ac_try="$ac_link"
8837 case "(($ac_try" in
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8840 esac
8841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8842 $as_echo "$ac_try_echo") >&5
8843 (eval "$ac_link") 2>conftest.er1
8844 ac_status=$?
8845 grep -v '^ *+' conftest.er1 >conftest.err
8846 rm -f conftest.er1
8847 cat conftest.err >&5
8848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } && {
8850 test -z "$ac_c_werror_flag" ||
8851 test ! -s conftest.err
8852 } && test -s conftest$ac_exeext && {
8853 test "$cross_compiling" = yes ||
8854 $as_test_x conftest$ac_exeext
8855 }; then
8856 ac_cv_func__doprnt=yes
8857 else
8858 $as_echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8860
8861 ac_cv_func__doprnt=no
8862 fi
8863
8864 rm -rf conftest.dSYM
8865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8866 conftest$ac_exeext conftest.$ac_ext
8867 fi
8868 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8869 $as_echo "$ac_cv_func__doprnt" >&6; }
8870 if test "x$ac_cv_func__doprnt" = x""yes; then
8871
8872 cat >>confdefs.h <<\_ACEOF
8873 #define HAVE_DOPRNT 1
8874 _ACEOF
8875
8876 fi
8877
8878 fi
8879 done
8880
8881
8882
8883 ################################################################################
8884 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8885 $as_echo_n "checking whether to use static linking... " >&6; }
8886 # Check whether --enable-static_link was given.
8887 if test "${enable_static_link+set}" = set; then
8888 enableval=$enable_static_link; STATIC_LINK=$enableval
8889 else
8890 STATIC_LINK=no
8891 fi
8892
8893 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8894 $as_echo "$STATIC_LINK" >&6; }
8895
8896 ################################################################################
8897
8898
8899 ################################################################################
8900 { $as_echo "$as_me:$LINENO: checking file owner" >&5
8901 $as_echo_n "checking file owner... " >&6; }
8902 OWNER="root"
8903
8904
8905 # Check whether --with-user was given.
8906 if test "${with_user+set}" = set; then
8907 withval=$with_user; OWNER="$withval"
8908 fi
8909
8910 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8911 $as_echo "$OWNER" >&6; }
8912
8913 if test x$OWNER != x; then
8914 OWNER="-o $OWNER"
8915 fi
8916
8917 ################################################################################
8918 { $as_echo "$as_me:$LINENO: checking group owner" >&5
8919 $as_echo_n "checking group owner... " >&6; }
8920 GROUP="root"
8921
8922 # Check whether --with-group was given.
8923 if test "${with_group+set}" = set; then
8924 withval=$with_group; GROUP="$withval"
8925 fi
8926
8927 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8928 $as_echo "$GROUP" >&6; }
8929
8930 if test x$GROUP != x; then
8931 GROUP="-g $GROUP"
8932 fi
8933
8934 ################################################################################
8935 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
8936 $as_echo_n "checking device node uid... " >&6; }
8937
8938
8939 # Check whether --with-device-uid was given.
8940 if test "${with_device_uid+set}" = set; then
8941 withval=$with_device_uid; DM_DEVICE_UID="$withval"
8942 else
8943 DM_DEVICE_UID="0"
8944 fi
8945
8946 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
8947 $as_echo "$DM_DEVICE_UID" >&6; }
8948
8949 ################################################################################
8950 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
8951 $as_echo_n "checking device node gid... " >&6; }
8952
8953
8954 # Check whether --with-device-gid was given.
8955 if test "${with_device_gid+set}" = set; then
8956 withval=$with_device_gid; DM_DEVICE_GID="$withval"
8957 else
8958 DM_DEVICE_GID="0"
8959 fi
8960
8961 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
8962 $as_echo "$DM_DEVICE_GID" >&6; }
8963
8964 ################################################################################
8965 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
8966 $as_echo_n "checking device node mode... " >&6; }
8967
8968
8969 # Check whether --with-device-mode was given.
8970 if test "${with_device_mode+set}" = set; then
8971 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8972 else
8973 DM_DEVICE_MODE="0600"
8974 fi
8975
8976 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8977 $as_echo "$DM_DEVICE_MODE" >&6; }
8978
8979 ################################################################################
8980 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8981 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
8982 # Check whether --enable-lvm1_fallback was given.
8983 if test "${enable_lvm1_fallback+set}" = set; then
8984 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8985 else
8986 LVM1_FALLBACK=no
8987 fi
8988
8989 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8990 $as_echo "$LVM1_FALLBACK" >&6; }
8991
8992 if test x$LVM1_FALLBACK = xyes; then
8993
8994 cat >>confdefs.h <<\_ACEOF
8995 #define LVM1_FALLBACK 1
8996 _ACEOF
8997
8998 fi
8999
9000 ################################################################################
9001 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9002 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
9003
9004 # Check whether --with-lvm1 was given.
9005 if test "${with_lvm1+set}" = set; then
9006 withval=$with_lvm1; LVM1="$withval"
9007 else
9008 LVM1="internal"
9009 fi
9010
9011 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9012 $as_echo "$LVM1" >&6; }
9013
9014 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
9015 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
9016 " >&5
9017 $as_echo "$as_me: error: --with-lvm1 parameter invalid
9018 " >&2;}
9019 { (exit 1); exit 1; }; }
9020 fi;
9021
9022 if test x$LVM1 = xinternal; then
9023
9024 cat >>confdefs.h <<\_ACEOF
9025 #define LVM1_INTERNAL 1
9026 _ACEOF
9027
9028 fi
9029
9030 ################################################################################
9031 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9032 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
9033
9034 # Check whether --with-pool was given.
9035 if test "${with_pool+set}" = set; then
9036 withval=$with_pool; POOL="$withval"
9037 else
9038 POOL="internal"
9039 fi
9040
9041 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
9042 $as_echo "$POOL" >&6; }
9043
9044 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
9045 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
9046 " >&5
9047 $as_echo "$as_me: error: --with-pool parameter invalid
9048 " >&2;}
9049 { (exit 1); exit 1; }; }
9050 fi;
9051
9052 if test x$POOL = xinternal; then
9053
9054 cat >>confdefs.h <<\_ACEOF
9055 #define POOL_INTERNAL 1
9056 _ACEOF
9057
9058 fi
9059
9060 ################################################################################
9061 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9062 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
9063
9064 # Check whether --with-cluster was given.
9065 if test "${with_cluster+set}" = set; then
9066 withval=$with_cluster; CLUSTER="$withval"
9067 fi
9068
9069 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9070 $as_echo "$CLUSTER" >&6; }
9071
9072 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
9073 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
9074 " >&5
9075 $as_echo "$as_me: error: --with-cluster parameter invalid
9076 " >&2;}
9077 { (exit 1); exit 1; }; }
9078 fi;
9079
9080 if test x$CLUSTER = xinternal; then
9081
9082 cat >>confdefs.h <<\_ACEOF
9083 #define CLUSTER_LOCKING_INTERNAL 1
9084 _ACEOF
9085
9086 fi
9087
9088 ################################################################################
9089 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9090 $as_echo_n "checking whether to include snapshots... " >&6; }
9091
9092 # Check whether --with-snapshots was given.
9093 if test "${with_snapshots+set}" = set; then
9094 withval=$with_snapshots; SNAPSHOTS="$withval"
9095 else
9096 SNAPSHOTS="internal"
9097 fi
9098
9099 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9100 $as_echo "$SNAPSHOTS" >&6; }
9101
9102 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
9103 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
9104 " >&5
9105 $as_echo "$as_me: error: --with-snapshots parameter invalid
9106 " >&2;}
9107 { (exit 1); exit 1; }; }
9108 fi;
9109
9110 if test x$SNAPSHOTS = xinternal; then
9111
9112 cat >>confdefs.h <<\_ACEOF
9113 #define SNAPSHOT_INTERNAL 1
9114 _ACEOF
9115
9116 fi
9117
9118 ################################################################################
9119 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9120 $as_echo_n "checking whether to include mirrors... " >&6; }
9121
9122 # Check whether --with-mirrors was given.
9123 if test "${with_mirrors+set}" = set; then
9124 withval=$with_mirrors; MIRRORS="$withval"
9125 else
9126 MIRRORS="internal"
9127 fi
9128
9129 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9130 $as_echo "$MIRRORS" >&6; }
9131
9132 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
9133 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
9134 " >&5
9135 $as_echo "$as_me: error: --with-mirrors parameter invalid
9136 " >&2;}
9137 { (exit 1); exit 1; }; }
9138 fi;
9139
9140 if test x$MIRRORS = xinternal; then
9141
9142 cat >>confdefs.h <<\_ACEOF
9143 #define MIRRORED_INTERNAL 1
9144 _ACEOF
9145
9146 fi
9147
9148 ################################################################################
9149 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9150 $as_echo_n "checking whether to enable readline... " >&6; }
9151 # Check whether --enable-readline was given.
9152 if test "${enable_readline+set}" = set; then
9153 enableval=$enable_readline; READLINE=$enableval
9154 else
9155 READLINE=maybe
9156 fi
9157
9158 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9159 $as_echo "$READLINE" >&6; }
9160
9161 ################################################################################
9162 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9163 $as_echo_n "checking whether to enable realtime support... " >&6; }
9164 # Check whether --enable-realtime was given.
9165 if test "${enable_realtime+set}" = set; then
9166 enableval=$enable_realtime; REALTIME=$enableval
9167 fi
9168
9169 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9170 $as_echo "$REALTIME" >&6; }
9171
9172 ################################################################################
9173 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9174 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9175
9176 # Check whether --with-clvmd was given.
9177 if test "${with_clvmd+set}" = set; then
9178 withval=$with_clvmd; CLVMD="$withval"
9179 else
9180 CLVMD="none"
9181 fi
9182
9183 if test x$CLVMD = xyes; then
9184 CLVMD=all
9185 fi
9186 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9187 $as_echo "$CLVMD" >&6; }
9188
9189 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9190 CLUSTER=internal
9191 fi
9192
9193 if [ "x$CLVMD" = xall -o `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9194
9195
9196 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9197 if test -n "$ac_tool_prefix"; then
9198 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9199 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9203 $as_echo_n "(cached) " >&6
9204 else
9205 case $PKG_CONFIG in
9206 [\\/]* | ?:[\\/]*)
9207 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9208 ;;
9209 *)
9210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211 for as_dir in $PATH
9212 do
9213 IFS=$as_save_IFS
9214 test -z "$as_dir" && as_dir=.
9215 for ac_exec_ext in '' $ac_executable_extensions; do
9216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9217 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9219 break 2
9220 fi
9221 done
9222 done
9223 IFS=$as_save_IFS
9224
9225 ;;
9226 esac
9227 fi
9228 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9229 if test -n "$PKG_CONFIG"; then
9230 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9231 $as_echo "$PKG_CONFIG" >&6; }
9232 else
9233 { $as_echo "$as_me:$LINENO: result: no" >&5
9234 $as_echo "no" >&6; }
9235 fi
9236
9237
9238 fi
9239 if test -z "$ac_cv_path_PKG_CONFIG"; then
9240 ac_pt_PKG_CONFIG=$PKG_CONFIG
9241 # Extract the first word of "pkg-config", so it can be a program name with args.
9242 set dummy pkg-config; ac_word=$2
9243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9244 $as_echo_n "checking for $ac_word... " >&6; }
9245 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9246 $as_echo_n "(cached) " >&6
9247 else
9248 case $ac_pt_PKG_CONFIG in
9249 [\\/]* | ?:[\\/]*)
9250 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9251 ;;
9252 *)
9253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254 for as_dir in $PATH
9255 do
9256 IFS=$as_save_IFS
9257 test -z "$as_dir" && as_dir=.
9258 for ac_exec_ext in '' $ac_executable_extensions; do
9259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9260 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9262 break 2
9263 fi
9264 done
9265 done
9266 IFS=$as_save_IFS
9267
9268 ;;
9269 esac
9270 fi
9271 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9272 if test -n "$ac_pt_PKG_CONFIG"; then
9273 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9274 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9275 else
9276 { $as_echo "$as_me:$LINENO: result: no" >&5
9277 $as_echo "no" >&6; }
9278 fi
9279
9280 if test "x$ac_pt_PKG_CONFIG" = x; then
9281 PKG_CONFIG=""
9282 else
9283 case $cross_compiling:$ac_tool_warned in
9284 yes:)
9285 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9287 ac_tool_warned=yes ;;
9288 esac
9289 PKG_CONFIG=$ac_pt_PKG_CONFIG
9290 fi
9291 else
9292 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9293 fi
9294
9295 fi
9296 if test -n "$PKG_CONFIG"; then
9297 _pkg_min_version=0.9.0
9298 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9299 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9300 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9301 { $as_echo "$as_me:$LINENO: result: yes" >&5
9302 $as_echo "yes" >&6; }
9303 else
9304 { $as_echo "$as_me:$LINENO: result: no" >&5
9305 $as_echo "no" >&6; }
9306 PKG_CONFIG=""
9307 fi
9308
9309 fi
9310
9311 pkg_failed=no
9312 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
9313 $as_echo_n "checking for QUORUM... " >&6; }
9314
9315 if test -n "$QUORUM_CFLAGS"; then
9316 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
9317 elif test -n "$PKG_CONFIG"; then
9318 if test -n "$PKG_CONFIG" && \
9319 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9320 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9321 ac_status=$?
9322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; then
9324 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
9325 else
9326 pkg_failed=yes
9327 fi
9328 else
9329 pkg_failed=untried
9330 fi
9331 if test -n "$QUORUM_LIBS"; then
9332 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
9333 elif test -n "$PKG_CONFIG"; then
9334 if test -n "$PKG_CONFIG" && \
9335 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9336 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9337 ac_status=$?
9338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; then
9340 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
9341 else
9342 pkg_failed=yes
9343 fi
9344 else
9345 pkg_failed=untried
9346 fi
9347
9348
9349
9350 if test $pkg_failed = yes; then
9351
9352 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9353 _pkg_short_errors_supported=yes
9354 else
9355 _pkg_short_errors_supported=no
9356 fi
9357 if test $_pkg_short_errors_supported = yes; then
9358 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
9359 else
9360 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
9361 fi
9362 # Put the nasty error message in config.log where it belongs
9363 echo "$QUORUM_PKG_ERRORS" >&5
9364
9365 { $as_echo "$as_me:$LINENO: result: no" >&5
9366 $as_echo "no" >&6; }
9367 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9368 $as_echo "no pkg for quorum library, using -lquorum" >&6; };
9369 QUORUM_LIBS="-lquorum"
9370 elif test $pkg_failed = untried; then
9371 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9372 $as_echo "no pkg for quorum library, using -lquorum" >&6; };
9373 QUORUM_LIBS="-lquorum"
9374 else
9375 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
9376 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
9377 { $as_echo "$as_me:$LINENO: result: yes" >&5
9378 $as_echo "yes" >&6; }
9379 :
9380 fi
9381
9382 pkg_failed=no
9383 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
9384 $as_echo_n "checking for CONFDB... " >&6; }
9385
9386 if test -n "$CONFDB_CFLAGS"; then
9387 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
9388 elif test -n "$PKG_CONFIG"; then
9389 if test -n "$PKG_CONFIG" && \
9390 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9391 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9392 ac_status=$?
9393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; then
9395 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
9396 else
9397 pkg_failed=yes
9398 fi
9399 else
9400 pkg_failed=untried
9401 fi
9402 if test -n "$CONFDB_LIBS"; then
9403 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
9404 elif test -n "$PKG_CONFIG"; then
9405 if test -n "$PKG_CONFIG" && \
9406 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9407 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9408 ac_status=$?
9409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; then
9411 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
9412 else
9413 pkg_failed=yes
9414 fi
9415 else
9416 pkg_failed=untried
9417 fi
9418
9419
9420
9421 if test $pkg_failed = yes; then
9422
9423 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9424 _pkg_short_errors_supported=yes
9425 else
9426 _pkg_short_errors_supported=no
9427 fi
9428 if test $_pkg_short_errors_supported = yes; then
9429 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
9430 else
9431 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
9432 fi
9433 # Put the nasty error message in config.log where it belongs
9434 echo "$CONFDB_PKG_ERRORS" >&5
9435
9436 { $as_echo "$as_me:$LINENO: result: no" >&5
9437 $as_echo "no" >&6; }
9438 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9439 $as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9440 CONFDB_LIBS="-lconfdb"
9441 elif test $pkg_failed = untried; then
9442 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9443 $as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9444 CONFDB_LIBS="-lconfdb"
9445 else
9446 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
9447 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
9448 { $as_echo "$as_me:$LINENO: result: yes" >&5
9449 $as_echo "yes" >&6; }
9450 :
9451 fi
9452
9453 pkg_failed=no
9454 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
9455 $as_echo_n "checking for CPG... " >&6; }
9456
9457 if test -n "$CPG_CFLAGS"; then
9458 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
9459 elif test -n "$PKG_CONFIG"; then
9460 if test -n "$PKG_CONFIG" && \
9461 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9462 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9463 ac_status=$?
9464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; then
9466 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
9467 else
9468 pkg_failed=yes
9469 fi
9470 else
9471 pkg_failed=untried
9472 fi
9473 if test -n "$CPG_LIBS"; then
9474 pkg_cv_CPG_LIBS="$CPG_LIBS"
9475 elif test -n "$PKG_CONFIG"; then
9476 if test -n "$PKG_CONFIG" && \
9477 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9478 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9479 ac_status=$?
9480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; then
9482 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
9483 else
9484 pkg_failed=yes
9485 fi
9486 else
9487 pkg_failed=untried
9488 fi
9489
9490
9491
9492 if test $pkg_failed = yes; then
9493
9494 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9495 _pkg_short_errors_supported=yes
9496 else
9497 _pkg_short_errors_supported=no
9498 fi
9499 if test $_pkg_short_errors_supported = yes; then
9500 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
9501 else
9502 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
9503 fi
9504 # Put the nasty error message in config.log where it belongs
9505 echo "$CPG_PKG_ERRORS" >&5
9506
9507 { $as_echo "$as_me:$LINENO: result: no" >&5
9508 $as_echo "no" >&6; }
9509 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9510 $as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9511 CPG_LIBS="-lcpg"
9512 elif test $pkg_failed = untried; then
9513 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9514 $as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9515 CPG_LIBS="-lcpg"
9516 else
9517 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
9518 CPG_LIBS=$pkg_cv_CPG_LIBS
9519 { $as_echo "$as_me:$LINENO: result: yes" >&5
9520 $as_echo "yes" >&6; }
9521 :
9522 fi
9523 fi
9524
9525 ################################################################################
9526 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
9527 $as_echo_n "checking whether to enable debugging... " >&6; }
9528 # Check whether --enable-debug was given.
9529 if test "${enable_debug+set}" = set; then
9530 enableval=$enable_debug; DEBUG=$enableval
9531 else
9532 DEBUG=no
9533 fi
9534
9535 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
9536 $as_echo "$DEBUG" >&6; }
9537
9538 if test x$DEBUG = xyes; then
9539 COPTIMISE_FLAG=
9540 else
9541 CSCOPE_CMD=
9542 fi
9543
9544 ################################################################################
9545 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
9546 $as_echo_n "checking for C optimisation flag... " >&6; }
9547
9548 # Check whether --with-optimisation was given.
9549 if test "${with_optimisation+set}" = set; then
9550 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
9551 fi
9552
9553 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
9554 $as_echo "$COPTIMISE_FLAG" >&6; }
9555
9556 ################################################################################
9557 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
9558 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
9559 # Check whether --enable-profiling was given.
9560 if test "${enable_profiling+set}" = set; then
9561 enableval=$enable_profiling; PROFILING=$enableval
9562 else
9563 PROFILING=no
9564 fi
9565
9566 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
9567 $as_echo "$PROFILING" >&6; }
9568
9569 if test "x$PROFILING" = xyes; then
9570 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
9571 # Extract the first word of "lcov", so it can be a program name with args.
9572 set dummy lcov; ac_word=$2
9573 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9574 $as_echo_n "checking for $ac_word... " >&6; }
9575 if test "${ac_cv_path_LCOV+set}" = set; then
9576 $as_echo_n "(cached) " >&6
9577 else
9578 case $LCOV in
9579 [\\/]* | ?:[\\/]*)
9580 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
9581 ;;
9582 *)
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 for as_dir in $PATH
9585 do
9586 IFS=$as_save_IFS
9587 test -z "$as_dir" && as_dir=.
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9590 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
9591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9592 break 2
9593 fi
9594 done
9595 done
9596 IFS=$as_save_IFS
9597
9598 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
9599 ;;
9600 esac
9601 fi
9602 LCOV=$ac_cv_path_LCOV
9603 if test -n "$LCOV"; then
9604 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
9605 $as_echo "$LCOV" >&6; }
9606 else
9607 { $as_echo "$as_me:$LINENO: result: no" >&5
9608 $as_echo "no" >&6; }
9609 fi
9610
9611
9612 # Extract the first word of "genhtml", so it can be a program name with args.
9613 set dummy genhtml; ac_word=$2
9614 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9615 $as_echo_n "checking for $ac_word... " >&6; }
9616 if test "${ac_cv_path_GENHTML+set}" = set; then
9617 $as_echo_n "(cached) " >&6
9618 else
9619 case $GENHTML in
9620 [\\/]* | ?:[\\/]*)
9621 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
9622 ;;
9623 *)
9624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9625 for as_dir in $PATH
9626 do
9627 IFS=$as_save_IFS
9628 test -z "$as_dir" && as_dir=.
9629 for ac_exec_ext in '' $ac_executable_extensions; do
9630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9631 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
9632 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9633 break 2
9634 fi
9635 done
9636 done
9637 IFS=$as_save_IFS
9638
9639 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
9640 ;;
9641 esac
9642 fi
9643 GENHTML=$ac_cv_path_GENHTML
9644 if test -n "$GENHTML"; then
9645 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
9646 $as_echo "$GENHTML" >&6; }
9647 else
9648 { $as_echo "$as_me:$LINENO: result: no" >&5
9649 $as_echo "no" >&6; }
9650 fi
9651
9652
9653 if test "$LCOV" = no -o "$GENHTML" = no ; then
9654 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
9655 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
9656 { (exit 1); exit 1; }; }
9657 fi
9658 fi
9659
9660 ################################################################################
9661 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
9662 $as_echo_n "checking whether to use device-mapper... " >&6; }
9663 # Check whether --enable-devmapper was given.
9664 if test "${enable_devmapper+set}" = set; then
9665 enableval=$enable_devmapper; DEVMAPPER=$enableval
9666 fi
9667
9668 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
9669 $as_echo "$DEVMAPPER" >&6; }
9670
9671 if test x$DEVMAPPER = xyes; then
9672
9673 cat >>confdefs.h <<\_ACEOF
9674 #define DEVMAPPER_SUPPORT 1
9675 _ACEOF
9676
9677 fi
9678
9679 ################################################################################
9680 # Check whether --enable-compat was given.
9681 if test "${enable_compat+set}" = set; then
9682 enableval=$enable_compat; DM_COMPAT=$enableval
9683 else
9684 DM_COMPAT=no
9685 fi
9686
9687
9688 ################################################################################
9689 # Check whether --enable-ioctl was given.
9690 if test "${enable_ioctl+set}" = set; then
9691 enableval=$enable_ioctl; DM_IOCTLS=$enableval
9692 fi
9693
9694
9695 ################################################################################
9696 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
9697 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
9698 # Check whether --enable-o_direct was given.
9699 if test "${enable_o_direct+set}" = set; then
9700 enableval=$enable_o_direct; ODIRECT=$enableval
9701 fi
9702
9703 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
9704 $as_echo "$ODIRECT" >&6; }
9705
9706 if test x$ODIRECT = xyes; then
9707
9708 cat >>confdefs.h <<\_ACEOF
9709 #define O_DIRECT_SUPPORT 1
9710 _ACEOF
9711
9712 fi
9713
9714 ################################################################################
9715 { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
9716 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
9717 # Check whether --enable-applib was given.
9718 if test "${enable_applib+set}" = set; then
9719 enableval=$enable_applib; APPLIB=$enableval
9720 else
9721 APPLIB=no
9722 fi
9723
9724 { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
9725 $as_echo "$APPLIB" >&6; }
9726
9727 test x$APPLIB = xyes \
9728 && LVM2APP_LIB=-llvm2app \
9729 || LVM2APP_LIB=
9730
9731 ################################################################################
9732 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
9733 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
9734 # Check whether --enable-cmdlib was given.
9735 if test "${enable_cmdlib+set}" = set; then
9736 enableval=$enable_cmdlib; CMDLIB=$enableval
9737 else
9738 CMDLIB=no
9739 fi
9740
9741 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
9742 $as_echo "$CMDLIB" >&6; }
9743
9744 test x$CMDLIB = xyes \
9745 && LVM2CMD_LIB=-llvm2cmd \
9746 || LVM2CMD_LIB=
9747
9748 ################################################################################
9749 # Check whether --enable-pkgconfig was given.
9750 if test "${enable_pkgconfig+set}" = set; then
9751 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
9752 else
9753 PKGCONFIG=no
9754 fi
9755
9756
9757 ################################################################################
9758 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
9759 $as_echo_n "checking whether to install fsadm... " >&6; }
9760 # Check whether --enable-fsadm was given.
9761 if test "${enable_fsadm+set}" = set; then
9762 enableval=$enable_fsadm; FSADM=$enableval
9763 fi
9764
9765 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
9766 $as_echo "$FSADM" >&6; }
9767
9768 ################################################################################
9769 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
9770 $as_echo_n "checking whether to use dmeventd... " >&6; }
9771 # Check whether --enable-dmeventd was given.
9772 if test "${enable_dmeventd+set}" = set; then
9773 enableval=$enable_dmeventd; DMEVENTD=$enableval
9774 fi
9775
9776 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
9777 $as_echo "$DMEVENTD" >&6; }
9778
9779 BUILD_DMEVENTD=$DMEVENTD
9780
9781 if test x$DMEVENTD = xyes; then
9782 if test x$MIRRORS != xinternal; then
9783 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
9784 " >&5
9785 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
9786 " >&2;}
9787 { (exit 1); exit 1; }; }
9788 fi
9789 if test x$CMDLIB = xno; then
9790 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
9791 " >&5
9792 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
9793 " >&2;}
9794 { (exit 1); exit 1; }; }
9795 fi
9796 fi
9797
9798 if test x$DMEVENTD = xyes; then
9799
9800 cat >>confdefs.h <<\_ACEOF
9801 #define DMEVENTD 1
9802 _ACEOF
9803
9804 fi
9805
9806 ################################################################################
9807
9808 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
9809 $as_echo_n "checking for getline in -lc... " >&6; }
9810 if test "${ac_cv_lib_c_getline+set}" = set; then
9811 $as_echo_n "(cached) " >&6
9812 else
9813 ac_check_lib_save_LIBS=$LIBS
9814 LIBS="-lc $LIBS"
9815 cat >conftest.$ac_ext <<_ACEOF
9816 /* confdefs.h. */
9817 _ACEOF
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h. */
9821
9822 /* Override any GCC internal prototype to avoid an error.
9823 Use char because int might match the return type of a GCC
9824 builtin and then its argument prototype would still apply. */
9825 #ifdef __cplusplus
9826 extern "C"
9827 #endif
9828 char getline ();
9829 int
9830 main ()
9831 {
9832 return getline ();
9833 ;
9834 return 0;
9835 }
9836 _ACEOF
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (ac_try="$ac_link"
9839 case "(($ac_try" in
9840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9841 *) ac_try_echo=$ac_try;;
9842 esac
9843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9844 $as_echo "$ac_try_echo") >&5
9845 (eval "$ac_link") 2>conftest.er1
9846 ac_status=$?
9847 grep -v '^ *+' conftest.er1 >conftest.err
9848 rm -f conftest.er1
9849 cat conftest.err >&5
9850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } && {
9852 test -z "$ac_c_werror_flag" ||
9853 test ! -s conftest.err
9854 } && test -s conftest$ac_exeext && {
9855 test "$cross_compiling" = yes ||
9856 $as_test_x conftest$ac_exeext
9857 }; then
9858 ac_cv_lib_c_getline=yes
9859 else
9860 $as_echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9862
9863 ac_cv_lib_c_getline=no
9864 fi
9865
9866 rm -rf conftest.dSYM
9867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9868 conftest$ac_exeext conftest.$ac_ext
9869 LIBS=$ac_check_lib_save_LIBS
9870 fi
9871 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
9872 $as_echo "$ac_cv_lib_c_getline" >&6; }
9873 if test "x$ac_cv_lib_c_getline" = x""yes; then
9874
9875 cat >>confdefs.h <<\_ACEOF
9876 #define HAVE_GETLINE 1
9877 _ACEOF
9878
9879 fi
9880
9881
9882 ################################################################################
9883
9884 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9885 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9886 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
9887 $as_echo_n "(cached) " >&6
9888 else
9889 ac_check_lib_save_LIBS=$LIBS
9890 LIBS="-lc $LIBS"
9891 cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h. */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897
9898 /* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
9901 #ifdef __cplusplus
9902 extern "C"
9903 #endif
9904 char canonicalize_file_name ();
9905 int
9906 main ()
9907 {
9908 return canonicalize_file_name ();
9909 ;
9910 return 0;
9911 }
9912 _ACEOF
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (ac_try="$ac_link"
9915 case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918 esac
9919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9920 $as_echo "$ac_try_echo") >&5
9921 (eval "$ac_link") 2>conftest.er1
9922 ac_status=$?
9923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
9926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } && {
9928 test -z "$ac_c_werror_flag" ||
9929 test ! -s conftest.err
9930 } && test -s conftest$ac_exeext && {
9931 test "$cross_compiling" = yes ||
9932 $as_test_x conftest$ac_exeext
9933 }; then
9934 ac_cv_lib_c_canonicalize_file_name=yes
9935 else
9936 $as_echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 ac_cv_lib_c_canonicalize_file_name=no
9940 fi
9941
9942 rm -rf conftest.dSYM
9943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9944 conftest$ac_exeext conftest.$ac_ext
9945 LIBS=$ac_check_lib_save_LIBS
9946 fi
9947 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9948 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9949 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
9950
9951 cat >>confdefs.h <<\_ACEOF
9952 #define HAVE_CANONICALIZE_FILE_NAME 1
9953 _ACEOF
9954
9955 fi
9956
9957
9958 ################################################################################
9959 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9960 then exec_prefix="";
9961 fi;
9962
9963 ################################################################################
9964 if test x$READLINE != xno; then
9965 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9966 $as_echo_n "checking for library containing tgetent... " >&6; }
9967 if test "${ac_cv_search_tgetent+set}" = set; then
9968 $as_echo_n "(cached) " >&6
9969 else
9970 ac_func_search_save_LIBS=$LIBS
9971 cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h. */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9977
9978 /* Override any GCC internal prototype to avoid an error.
9979 Use char because int might match the return type of a GCC
9980 builtin and then its argument prototype would still apply. */
9981 #ifdef __cplusplus
9982 extern "C"
9983 #endif
9984 char tgetent ();
9985 int
9986 main ()
9987 {
9988 return tgetent ();
9989 ;
9990 return 0;
9991 }
9992 _ACEOF
9993 for ac_lib in '' tinfo ncurses curses termcap termlib; do
9994 if test -z "$ac_lib"; then
9995 ac_res="none required"
9996 else
9997 ac_res=-l$ac_lib
9998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9999 fi
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (ac_try="$ac_link"
10002 case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10005 esac
10006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10007 $as_echo "$ac_try_echo") >&5
10008 (eval "$ac_link") 2>conftest.er1
10009 ac_status=$?
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
10013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && {
10015 test -z "$ac_c_werror_flag" ||
10016 test ! -s conftest.err
10017 } && test -s conftest$ac_exeext && {
10018 test "$cross_compiling" = yes ||
10019 $as_test_x conftest$ac_exeext
10020 }; then
10021 ac_cv_search_tgetent=$ac_res
10022 else
10023 $as_echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10025
10026
10027 fi
10028
10029 rm -rf conftest.dSYM
10030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10031 conftest$ac_exeext
10032 if test "${ac_cv_search_tgetent+set}" = set; then
10033 break
10034 fi
10035 done
10036 if test "${ac_cv_search_tgetent+set}" = set; then
10037 :
10038 else
10039 ac_cv_search_tgetent=no
10040 fi
10041 rm conftest.$ac_ext
10042 LIBS=$ac_func_search_save_LIBS
10043 fi
10044 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10045 $as_echo "$ac_cv_search_tgetent" >&6; }
10046 ac_res=$ac_cv_search_tgetent
10047 if test "$ac_res" != no; then
10048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10049 tg_found=yes
10050 else
10051 tg_found=no
10052 fi
10053
10054 test x$READLINE:$tg_found = xyes:no &&
10055 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
10056 --enable-readline option (which is enabled by default). Either disable readline
10057 support with --disable-readline or download and install termcap from:
10058 ftp.gnu.org/gnu/termcap
10059 Note: if you are using precompiled packages you will also need the development
10060 package as well (which may be called termcap-devel or something similar).
10061 Note: (n)curses also seems to work as a substitute for termcap. This was
10062 not found either - but you could try installing that as well.
10063 " >&5
10064 $as_echo "$as_me: error: termcap could not be found which is required for the
10065 --enable-readline option (which is enabled by default). Either disable readline
10066 support with --disable-readline or download and install termcap from:
10067 ftp.gnu.org/gnu/termcap
10068 Note: if you are using precompiled packages you will also need the development
10069 package as well (which may be called termcap-devel or something similar).
10070 Note: (n)curses also seems to work as a substitute for termcap. This was
10071 not found either - but you could try installing that as well.
10072 " >&2;}
10073 { (exit 1); exit 1; }; }
10074 fi
10075
10076 ################################################################################
10077 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10078 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10079 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10080 $as_echo_n "(cached) " >&6
10081 else
10082 ac_check_lib_save_LIBS=$LIBS
10083 LIBS="-ldl $LIBS"
10084 cat >conftest.$ac_ext <<_ACEOF
10085 /* confdefs.h. */
10086 _ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h. */
10090
10091 /* Override any GCC internal prototype to avoid an error.
10092 Use char because int might match the return type of a GCC
10093 builtin and then its argument prototype would still apply. */
10094 #ifdef __cplusplus
10095 extern "C"
10096 #endif
10097 char dlopen ();
10098 int
10099 main ()
10100 {
10101 return dlopen ();
10102 ;
10103 return 0;
10104 }
10105 _ACEOF
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111 esac
10112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10113 $as_echo "$ac_try_echo") >&5
10114 (eval "$ac_link") 2>conftest.er1
10115 ac_status=$?
10116 grep -v '^ *+' conftest.er1 >conftest.err
10117 rm -f conftest.er1
10118 cat conftest.err >&5
10119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } && {
10121 test -z "$ac_c_werror_flag" ||
10122 test ! -s conftest.err
10123 } && test -s conftest$ac_exeext && {
10124 test "$cross_compiling" = yes ||
10125 $as_test_x conftest$ac_exeext
10126 }; then
10127 ac_cv_lib_dl_dlopen=yes
10128 else
10129 $as_echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10131
10132 ac_cv_lib_dl_dlopen=no
10133 fi
10134
10135 rm -rf conftest.dSYM
10136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10139 fi
10140 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10141 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10142 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10143 HAVE_LIBDL=yes
10144 else
10145 HAVE_LIBDL=no
10146 fi
10147
10148
10149 if [ "x$HAVE_LIBDL" = xyes ]; then
10150
10151 cat >>confdefs.h <<\_ACEOF
10152 #define HAVE_LIBDL 1
10153 _ACEOF
10154
10155 LIBS="-ldl $LIBS"
10156 else
10157 HAVE_LIBDL=no
10158 fi
10159
10160 ################################################################################
10161 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
10162 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
10163 \) -a "x$STATIC_LINK" = xyes ];
10164 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
10165 " >&5
10166 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
10167 " >&2;}
10168 { (exit 1); exit 1; }; }
10169 fi
10170
10171 ################################################################################
10172 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
10173 $as_echo_n "checking whether to enable selinux support... " >&6; }
10174 # Check whether --enable-selinux was given.
10175 if test "${enable_selinux+set}" = set; then
10176 enableval=$enable_selinux; SELINUX=$enableval
10177 fi
10178
10179 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
10180 $as_echo "$SELINUX" >&6; }
10181
10182 ################################################################################
10183 if test x$SELINUX = xyes; then
10184 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
10185 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
10186 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
10187 $as_echo_n "(cached) " >&6
10188 else
10189 ac_check_lib_save_LIBS=$LIBS
10190 LIBS="-lsepol $LIBS"
10191 cat >conftest.$ac_ext <<_ACEOF
10192 /* confdefs.h. */
10193 _ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10197
10198 /* Override any GCC internal prototype to avoid an error.
10199 Use char because int might match the return type of a GCC
10200 builtin and then its argument prototype would still apply. */
10201 #ifdef __cplusplus
10202 extern "C"
10203 #endif
10204 char sepol_check_context ();
10205 int
10206 main ()
10207 {
10208 return sepol_check_context ();
10209 ;
10210 return 0;
10211 }
10212 _ACEOF
10213 rm -f conftest.$ac_objext conftest$ac_exeext
10214 if { (ac_try="$ac_link"
10215 case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10218 esac
10219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10220 $as_echo "$ac_try_echo") >&5
10221 (eval "$ac_link") 2>conftest.er1
10222 ac_status=$?
10223 grep -v '^ *+' conftest.er1 >conftest.err
10224 rm -f conftest.er1
10225 cat conftest.err >&5
10226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } && {
10228 test -z "$ac_c_werror_flag" ||
10229 test ! -s conftest.err
10230 } && test -s conftest$ac_exeext && {
10231 test "$cross_compiling" = yes ||
10232 $as_test_x conftest$ac_exeext
10233 }; then
10234 ac_cv_lib_sepol_sepol_check_context=yes
10235 else
10236 $as_echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10238
10239 ac_cv_lib_sepol_sepol_check_context=no
10240 fi
10241
10242 rm -rf conftest.dSYM
10243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10244 conftest$ac_exeext conftest.$ac_ext
10245 LIBS=$ac_check_lib_save_LIBS
10246 fi
10247 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
10248 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
10249 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
10250 HAVE_SEPOL=yes
10251 else
10252 HAVE_SEPOL=no
10253 fi
10254
10255
10256 if test x$HAVE_SEPOL = xyes; then
10257
10258 cat >>confdefs.h <<\_ACEOF
10259 #define HAVE_SEPOL 1
10260 _ACEOF
10261
10262 LIBS="-lsepol $LIBS"
10263 fi
10264
10265 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
10266 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
10267 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
10268 $as_echo_n "(cached) " >&6
10269 else
10270 ac_check_lib_save_LIBS=$LIBS
10271 LIBS="-lselinux $LIBS"
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h. */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278
10279 /* Override any GCC internal prototype to avoid an error.
10280 Use char because int might match the return type of a GCC
10281 builtin and then its argument prototype would still apply. */
10282 #ifdef __cplusplus
10283 extern "C"
10284 #endif
10285 char is_selinux_enabled ();
10286 int
10287 main ()
10288 {
10289 return is_selinux_enabled ();
10290 ;
10291 return 0;
10292 }
10293 _ACEOF
10294 rm -f conftest.$ac_objext conftest$ac_exeext
10295 if { (ac_try="$ac_link"
10296 case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10299 esac
10300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10301 $as_echo "$ac_try_echo") >&5
10302 (eval "$ac_link") 2>conftest.er1
10303 ac_status=$?
10304 grep -v '^ *+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
10307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } && {
10309 test -z "$ac_c_werror_flag" ||
10310 test ! -s conftest.err
10311 } && test -s conftest$ac_exeext && {
10312 test "$cross_compiling" = yes ||
10313 $as_test_x conftest$ac_exeext
10314 }; then
10315 ac_cv_lib_selinux_is_selinux_enabled=yes
10316 else
10317 $as_echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10319
10320 ac_cv_lib_selinux_is_selinux_enabled=no
10321 fi
10322
10323 rm -rf conftest.dSYM
10324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10325 conftest$ac_exeext conftest.$ac_ext
10326 LIBS=$ac_check_lib_save_LIBS
10327 fi
10328 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
10329 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
10330 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
10331 HAVE_SELINUX=yes
10332 else
10333 HAVE_SELINUX=no
10334 fi
10335
10336
10337 if test x$HAVE_SELINUX = xyes; then
10338
10339 cat >>confdefs.h <<\_ACEOF
10340 #define HAVE_SELINUX 1
10341 _ACEOF
10342
10343 LIBS="-lselinux $LIBS"
10344 else
10345 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
10346 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
10347 fi
10348
10349 # With --enable-static_link and selinux enabled, linking
10350 # fails on at least Debian unstable due to unsatisfied references
10351 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
10352 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
10353 lvm_saved_libs=$LIBS
10354 LIBS="$LIBS -static"
10355 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
10356 $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
10357 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10358 $as_echo_n "(cached) " >&6
10359 else
10360 ac_func_search_save_LIBS=$LIBS
10361 cat >conftest.$ac_ext <<_ACEOF
10362 /* confdefs.h. */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10367
10368 /* Override any GCC internal prototype to avoid an error.
10369 Use char because int might match the return type of a GCC
10370 builtin and then its argument prototype would still apply. */
10371 #ifdef __cplusplus
10372 extern "C"
10373 #endif
10374 char pthread_mutex_lock ();
10375 int
10376 main ()
10377 {
10378 return pthread_mutex_lock ();
10379 ;
10380 return 0;
10381 }
10382 _ACEOF
10383 for ac_lib in '' pthread; do
10384 if test -z "$ac_lib"; then
10385 ac_res="none required"
10386 else
10387 ac_res=-l$ac_lib
10388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10389 fi
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391 if { (ac_try="$ac_link"
10392 case "(($ac_try" in
10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10395 esac
10396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10397 $as_echo "$ac_try_echo") >&5
10398 (eval "$ac_link") 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && {
10405 test -z "$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 } && test -s conftest$ac_exeext && {
10408 test "$cross_compiling" = yes ||
10409 $as_test_x conftest$ac_exeext
10410 }; then
10411 ac_cv_search_pthread_mutex_lock=$ac_res
10412 else
10413 $as_echo "$as_me: failed program was:" >&5
10414 sed 's/^/| /' conftest.$ac_ext >&5
10415
10416
10417 fi
10418
10419 rm -rf conftest.dSYM
10420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10421 conftest$ac_exeext
10422 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10423 break
10424 fi
10425 done
10426 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10427 :
10428 else
10429 ac_cv_search_pthread_mutex_lock=no
10430 fi
10431 rm conftest.$ac_ext
10432 LIBS=$ac_func_search_save_LIBS
10433 fi
10434 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
10435 $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
10436 ac_res=$ac_cv_search_pthread_mutex_lock
10437 if test "$ac_res" != no; then
10438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10439 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
10440 LIB_PTHREAD=-lpthread
10441 fi
10442
10443 LIBS=$lvm_saved_libs
10444 fi
10445 fi
10446
10447 ################################################################################
10448 if test x$REALTIME = xyes; then
10449 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
10450 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
10451 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
10452 $as_echo_n "(cached) " >&6
10453 else
10454 ac_check_lib_save_LIBS=$LIBS
10455 LIBS="-lrt $LIBS"
10456 cat >conftest.$ac_ext <<_ACEOF
10457 /* confdefs.h. */
10458 _ACEOF
10459 cat confdefs.h >>conftest.$ac_ext
10460 cat >>conftest.$ac_ext <<_ACEOF
10461 /* end confdefs.h. */
10462
10463 /* Override any GCC internal prototype to avoid an error.
10464 Use char because int might match the return type of a GCC
10465 builtin and then its argument prototype would still apply. */
10466 #ifdef __cplusplus
10467 extern "C"
10468 #endif
10469 char clock_gettime ();
10470 int
10471 main ()
10472 {
10473 return clock_gettime ();
10474 ;
10475 return 0;
10476 }
10477 _ACEOF
10478 rm -f conftest.$ac_objext conftest$ac_exeext
10479 if { (ac_try="$ac_link"
10480 case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483 esac
10484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10485 $as_echo "$ac_try_echo") >&5
10486 (eval "$ac_link") 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest$ac_exeext && {
10496 test "$cross_compiling" = yes ||
10497 $as_test_x conftest$ac_exeext
10498 }; then
10499 ac_cv_lib_rt_clock_gettime=yes
10500 else
10501 $as_echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10503
10504 ac_cv_lib_rt_clock_gettime=no
10505 fi
10506
10507 rm -rf conftest.dSYM
10508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10509 conftest$ac_exeext conftest.$ac_ext
10510 LIBS=$ac_check_lib_save_LIBS
10511 fi
10512 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
10513 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10514 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
10515 HAVE_REALTIME=yes
10516 else
10517 HAVE_REALTIME=no
10518 fi
10519
10520
10521 if test x$HAVE_REALTIME = xyes; then
10522
10523 cat >>confdefs.h <<\_ACEOF
10524 #define HAVE_REALTIME 1
10525 _ACEOF
10526
10527 LIBS="-lrt $LIBS"
10528 else
10529 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
10530 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
10531 fi
10532 fi
10533
10534 ################################################################################
10535
10536 for ac_header in getopt.h
10537 do
10538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10540 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10541 $as_echo_n "checking for $ac_header... " >&6; }
10542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10543 $as_echo_n "(cached) " >&6
10544 fi
10545 ac_res=`eval 'as_val=${'$as_ac_Header'}
10546 $as_echo "$as_val"'`
10547 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10548 $as_echo "$ac_res" >&6; }
10549 else
10550 # Is the header compilable?
10551 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10552 $as_echo_n "checking $ac_header usability... " >&6; }
10553 cat >conftest.$ac_ext <<_ACEOF
10554 /* confdefs.h. */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10559 $ac_includes_default
10560 #include <$ac_header>
10561 _ACEOF
10562 rm -f conftest.$ac_objext
10563 if { (ac_try="$ac_compile"
10564 case "(($ac_try" in
10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566 *) ac_try_echo=$ac_try;;
10567 esac
10568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10569 $as_echo "$ac_try_echo") >&5
10570 (eval "$ac_compile") 2>conftest.er1
10571 ac_status=$?
10572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
10575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } && {
10577 test -z "$ac_c_werror_flag" ||
10578 test ! -s conftest.err
10579 } && test -s conftest.$ac_objext; then
10580 ac_header_compiler=yes
10581 else
10582 $as_echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10584
10585 ac_header_compiler=no
10586 fi
10587
10588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10589 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10590 $as_echo "$ac_header_compiler" >&6; }
10591
10592 # Is the header present?
10593 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10594 $as_echo_n "checking $ac_header presence... " >&6; }
10595 cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h. */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 #include <$ac_header>
10602 _ACEOF
10603 if { (ac_try="$ac_cpp conftest.$ac_ext"
10604 case "(($ac_try" in
10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10607 esac
10608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10609 $as_echo "$ac_try_echo") >&5
10610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10611 ac_status=$?
10612 grep -v '^ *+' conftest.er1 >conftest.err
10613 rm -f conftest.er1
10614 cat conftest.err >&5
10615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } >/dev/null && {
10617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10618 test ! -s conftest.err
10619 }; then
10620 ac_header_preproc=yes
10621 else
10622 $as_echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10624
10625 ac_header_preproc=no
10626 fi
10627
10628 rm -f conftest.err conftest.$ac_ext
10629 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10630 $as_echo "$ac_header_preproc" >&6; }
10631
10632 # So? What about this header?
10633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10634 yes:no: )
10635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10636 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10638 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10639 ac_header_preproc=yes
10640 ;;
10641 no:yes:* )
10642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10643 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10645 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10647 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10649 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10651 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10653 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10654
10655 ;;
10656 esac
10657 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10658 $as_echo_n "checking for $ac_header... " >&6; }
10659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10660 $as_echo_n "(cached) " >&6
10661 else
10662 eval "$as_ac_Header=\$ac_header_preproc"
10663 fi
10664 ac_res=`eval 'as_val=${'$as_ac_Header'}
10665 $as_echo "$as_val"'`
10666 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10667 $as_echo "$ac_res" >&6; }
10668
10669 fi
10670 as_val=`eval 'as_val=${'$as_ac_Header'}
10671 $as_echo "$as_val"'`
10672 if test "x$as_val" = x""yes; then
10673 cat >>confdefs.h <<_ACEOF
10674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10675 _ACEOF
10676
10677 cat >>confdefs.h <<\_ACEOF
10678 #define HAVE_GETOPTLONG 1
10679 _ACEOF
10680
10681 fi
10682
10683 done
10684
10685
10686 ################################################################################
10687 if test x$READLINE != xno; then
10688 rl_found=yes
10689
10690 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
10691 $as_echo_n "checking for readline in -lreadline... " >&6; }
10692 if test "${ac_cv_lib_readline_readline+set}" = set; then
10693 $as_echo_n "(cached) " >&6
10694 else
10695 ac_check_lib_save_LIBS=$LIBS
10696 LIBS="-lreadline $LIBS"
10697 cat >conftest.$ac_ext <<_ACEOF
10698 /* confdefs.h. */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703
10704 /* Override any GCC internal prototype to avoid an error.
10705 Use char because int might match the return type of a GCC
10706 builtin and then its argument prototype would still apply. */
10707 #ifdef __cplusplus
10708 extern "C"
10709 #endif
10710 char readline ();
10711 int
10712 main ()
10713 {
10714 return readline ();
10715 ;
10716 return 0;
10717 }
10718 _ACEOF
10719 rm -f conftest.$ac_objext conftest$ac_exeext
10720 if { (ac_try="$ac_link"
10721 case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10724 esac
10725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10726 $as_echo "$ac_try_echo") >&5
10727 (eval "$ac_link") 2>conftest.er1
10728 ac_status=$?
10729 grep -v '^ *+' conftest.er1 >conftest.err
10730 rm -f conftest.er1
10731 cat conftest.err >&5
10732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } && {
10734 test -z "$ac_c_werror_flag" ||
10735 test ! -s conftest.err
10736 } && test -s conftest$ac_exeext && {
10737 test "$cross_compiling" = yes ||
10738 $as_test_x conftest$ac_exeext
10739 }; then
10740 ac_cv_lib_readline_readline=yes
10741 else
10742 $as_echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10744
10745 ac_cv_lib_readline_readline=no
10746 fi
10747
10748 rm -rf conftest.dSYM
10749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10750 conftest$ac_exeext conftest.$ac_ext
10751 LIBS=$ac_check_lib_save_LIBS
10752 fi
10753 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
10754 $as_echo "$ac_cv_lib_readline_readline" >&6; }
10755 if test "x$ac_cv_lib_readline_readline" = x""yes; then
10756 cat >>confdefs.h <<_ACEOF
10757 #define HAVE_LIBREADLINE 1
10758 _ACEOF
10759
10760 LIBS="-lreadline $LIBS"
10761
10762 else
10763 rl_found=no
10764 fi
10765
10766 test x$READLINE:$rl_found = xyes:no &&
10767 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
10768 --enable-readline option (which is enabled by default). Either disable readline
10769 support with --disable-readline or download and install readline from:
10770 ftp.gnu.org/gnu/readline
10771 Note: if you are using precompiled packages you will also need the development
10772 package as well (which may be called readline-devel or something similar).
10773 " >&5
10774 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
10775 --enable-readline option (which is enabled by default). Either disable readline
10776 support with --disable-readline or download and install readline from:
10777 ftp.gnu.org/gnu/readline
10778 Note: if you are using precompiled packages you will also need the development
10779 package as well (which may be called readline-devel or something similar).
10780 " >&2;}
10781 { (exit 1); exit 1; }; }
10782 if test $rl_found = yes; then
10783
10784 for ac_func in rl_completion_matches
10785 do
10786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10787 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10788 $as_echo_n "checking for $ac_func... " >&6; }
10789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10790 $as_echo_n "(cached) " >&6
10791 else
10792 cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h. */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10800 #define $ac_func innocuous_$ac_func
10801
10802 /* System header to define __stub macros and hopefully few prototypes,
10803 which can conflict with char $ac_func (); below.
10804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10805 <limits.h> exists even on freestanding compilers. */
10806
10807 #ifdef __STDC__
10808 # include <limits.h>
10809 #else
10810 # include <assert.h>
10811 #endif
10812
10813 #undef $ac_func
10814
10815 /* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
10818 #ifdef __cplusplus
10819 extern "C"
10820 #endif
10821 char $ac_func ();
10822 /* The GNU C library defines this for functions which it implements
10823 to always fail with ENOSYS. Some functions are actually named
10824 something starting with __ and the normal name is an alias. */
10825 #if defined __stub_$ac_func || defined __stub___$ac_func
10826 choke me
10827 #endif
10828
10829 int
10830 main ()
10831 {
10832 return $ac_func ();
10833 ;
10834 return 0;
10835 }
10836 _ACEOF
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (ac_try="$ac_link"
10839 case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10842 esac
10843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10844 $as_echo "$ac_try_echo") >&5
10845 (eval "$ac_link") 2>conftest.er1
10846 ac_status=$?
10847 grep -v '^ *+' conftest.er1 >conftest.err
10848 rm -f conftest.er1
10849 cat conftest.err >&5
10850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } && {
10852 test -z "$ac_c_werror_flag" ||
10853 test ! -s conftest.err
10854 } && test -s conftest$ac_exeext && {
10855 test "$cross_compiling" = yes ||
10856 $as_test_x conftest$ac_exeext
10857 }; then
10858 eval "$as_ac_var=yes"
10859 else
10860 $as_echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10862
10863 eval "$as_ac_var=no"
10864 fi
10865
10866 rm -rf conftest.dSYM
10867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10868 conftest$ac_exeext conftest.$ac_ext
10869 fi
10870 ac_res=`eval 'as_val=${'$as_ac_var'}
10871 $as_echo "$as_val"'`
10872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10873 $as_echo "$ac_res" >&6; }
10874 as_val=`eval 'as_val=${'$as_ac_var'}
10875 $as_echo "$as_val"'`
10876 if test "x$as_val" = x""yes; then
10877 cat >>confdefs.h <<_ACEOF
10878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10879 _ACEOF
10880
10881 fi
10882 done
10883
10884
10885 cat >>confdefs.h <<\_ACEOF
10886 #define READLINE_SUPPORT 1
10887 _ACEOF
10888
10889 fi
10890 fi
10891
10892 ################################################################################
10893 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10894 $as_echo_n "checking whether to enable internationalisation... " >&6; }
10895 # Check whether --enable-nls was given.
10896 if test "${enable_nls+set}" = set; then
10897 enableval=$enable_nls; INTL=$enableval
10898 else
10899 INTL=no
10900 fi
10901
10902 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
10903 $as_echo "$INTL" >&6; }
10904
10905 if test x$INTL = xyes; then
10906 # FIXME - Move this - can be device-mapper too
10907 INTL_PACKAGE="lvm2"
10908 # Extract the first word of "msgfmt", so it can be a program name with args.
10909 set dummy msgfmt; ac_word=$2
10910 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10911 $as_echo_n "checking for $ac_word... " >&6; }
10912 if test "${ac_cv_path_MSGFMT+set}" = set; then
10913 $as_echo_n "(cached) " >&6
10914 else
10915 case $MSGFMT in
10916 [\\/]* | ?:[\\/]*)
10917 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10918 ;;
10919 *)
10920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921 for as_dir in $PATH
10922 do
10923 IFS=$as_save_IFS
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10927 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
10928 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10929 break 2
10930 fi
10931 done
10932 done
10933 IFS=$as_save_IFS
10934
10935 ;;
10936 esac
10937 fi
10938 MSGFMT=$ac_cv_path_MSGFMT
10939 if test -n "$MSGFMT"; then
10940 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10941 $as_echo "$MSGFMT" >&6; }
10942 else
10943 { $as_echo "$as_me:$LINENO: result: no" >&5
10944 $as_echo "no" >&6; }
10945 fi
10946
10947
10948 if [ "x$MSGFMT" == x ];
10949 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
10950 " >&5
10951 $as_echo "$as_me: error: msgfmt not found in path $PATH
10952 " >&2;}
10953 { (exit 1); exit 1; }; }
10954 fi;
10955
10956
10957 # Check whether --with-localedir was given.
10958 if test "${with_localedir+set}" = set; then
10959 withval=$with_localedir; LOCALEDIR="$withval"
10960 else
10961 LOCALEDIR='${prefix}/share/locale'
10962 fi
10963
10964 fi
10965
10966 ################################################################################
10967
10968 # Check whether --with-confdir was given.
10969 if test "${with_confdir+set}" = set; then
10970 withval=$with_confdir; CONFDIR="$withval"
10971 else
10972 CONFDIR='/etc'
10973 fi
10974
10975
10976
10977 # Check whether --with-staticdir was given.
10978 if test "${with_staticdir+set}" = set; then
10979 withval=$with_staticdir; STATICDIR="$withval"
10980 else
10981 STATICDIR='${exec_prefix}/sbin'
10982 fi
10983
10984
10985
10986 # Check whether --with-usrlibdir was given.
10987 if test "${with_usrlibdir+set}" = set; then
10988 withval=$with_usrlibdir; usrlibdir="$withval"
10989 else
10990 usrlibdir='${prefix}/lib'
10991 fi
10992
10993
10994
10995 # Check whether --with-usrsbindir was given.
10996 if test "${with_usrsbindir+set}" = set; then
10997 withval=$with_usrsbindir; usrsbindir="$withval"
10998 else
10999 usrsbindir='${prefix}/sbin'
11000 fi
11001
11002
11003 ################################################################################
11004 if test x$READLINE = xyes; then
11005
11006
11007 for ac_header in readline/readline.h readline/history.h
11008 do
11009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11011 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11012 $as_echo_n "checking for $ac_header... " >&6; }
11013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11014 $as_echo_n "(cached) " >&6
11015 fi
11016 ac_res=`eval 'as_val=${'$as_ac_Header'}
11017 $as_echo "$as_val"'`
11018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11019 $as_echo "$ac_res" >&6; }
11020 else
11021 # Is the header compilable?
11022 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11023 $as_echo_n "checking $ac_header usability... " >&6; }
11024 cat >conftest.$ac_ext <<_ACEOF
11025 /* confdefs.h. */
11026 _ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h. */
11030 $ac_includes_default
11031 #include <$ac_header>
11032 _ACEOF
11033 rm -f conftest.$ac_objext
11034 if { (ac_try="$ac_compile"
11035 case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11038 esac
11039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11040 $as_echo "$ac_try_echo") >&5
11041 (eval "$ac_compile") 2>conftest.er1
11042 ac_status=$?
11043 grep -v '^ *+' conftest.er1 >conftest.err
11044 rm -f conftest.er1
11045 cat conftest.err >&5
11046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } && {
11048 test -z "$ac_c_werror_flag" ||
11049 test ! -s conftest.err
11050 } && test -s conftest.$ac_objext; then
11051 ac_header_compiler=yes
11052 else
11053 $as_echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11055
11056 ac_header_compiler=no
11057 fi
11058
11059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11060 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11061 $as_echo "$ac_header_compiler" >&6; }
11062
11063 # Is the header present?
11064 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11065 $as_echo_n "checking $ac_header presence... " >&6; }
11066 cat >conftest.$ac_ext <<_ACEOF
11067 /* confdefs.h. */
11068 _ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h. */
11072 #include <$ac_header>
11073 _ACEOF
11074 if { (ac_try="$ac_cpp conftest.$ac_ext"
11075 case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11078 esac
11079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11080 $as_echo "$ac_try_echo") >&5
11081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } >/dev/null && {
11088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11089 test ! -s conftest.err
11090 }; then
11091 ac_header_preproc=yes
11092 else
11093 $as_echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11095
11096 ac_header_preproc=no
11097 fi
11098
11099 rm -f conftest.err conftest.$ac_ext
11100 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11101 $as_echo "$ac_header_preproc" >&6; }
11102
11103 # So? What about this header?
11104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11105 yes:no: )
11106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11107 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11110 ac_header_preproc=yes
11111 ;;
11112 no:yes:* )
11113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11114 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11116 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11118 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11120 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11122 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11124 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11125
11126 ;;
11127 esac
11128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11129 $as_echo_n "checking for $ac_header... " >&6; }
11130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11131 $as_echo_n "(cached) " >&6
11132 else
11133 eval "$as_ac_Header=\$ac_header_preproc"
11134 fi
11135 ac_res=`eval 'as_val=${'$as_ac_Header'}
11136 $as_echo "$as_val"'`
11137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11138 $as_echo "$ac_res" >&6; }
11139
11140 fi
11141 as_val=`eval 'as_val=${'$as_ac_Header'}
11142 $as_echo "$as_val"'`
11143 if test "x$as_val" = x""yes; then
11144 cat >>confdefs.h <<_ACEOF
11145 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11146 _ACEOF
11147
11148 else
11149 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11150 $as_echo "$as_me: error: bailing out" >&2;}
11151 { (exit 1); exit 1; }; }
11152 fi
11153
11154 done
11155
11156 fi
11157
11158 if test x$CLVMD != xnone; then
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169 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
11170 do
11171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11173 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11174 $as_echo_n "checking for $ac_header... " >&6; }
11175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11176 $as_echo_n "(cached) " >&6
11177 fi
11178 ac_res=`eval 'as_val=${'$as_ac_Header'}
11179 $as_echo "$as_val"'`
11180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11181 $as_echo "$ac_res" >&6; }
11182 else
11183 # Is the header compilable?
11184 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11185 $as_echo_n "checking $ac_header usability... " >&6; }
11186 cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h. */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 $ac_includes_default
11193 #include <$ac_header>
11194 _ACEOF
11195 rm -f conftest.$ac_objext
11196 if { (ac_try="$ac_compile"
11197 case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11200 esac
11201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11202 $as_echo "$ac_try_echo") >&5
11203 (eval "$ac_compile") 2>conftest.er1
11204 ac_status=$?
11205 grep -v '^ *+' conftest.er1 >conftest.err
11206 rm -f conftest.er1
11207 cat conftest.err >&5
11208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } && {
11210 test -z "$ac_c_werror_flag" ||
11211 test ! -s conftest.err
11212 } && test -s conftest.$ac_objext; then
11213 ac_header_compiler=yes
11214 else
11215 $as_echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11217
11218 ac_header_compiler=no
11219 fi
11220
11221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11222 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11223 $as_echo "$ac_header_compiler" >&6; }
11224
11225 # Is the header present?
11226 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11227 $as_echo_n "checking $ac_header presence... " >&6; }
11228 cat >conftest.$ac_ext <<_ACEOF
11229 /* confdefs.h. */
11230 _ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11234 #include <$ac_header>
11235 _ACEOF
11236 if { (ac_try="$ac_cpp conftest.$ac_ext"
11237 case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11240 esac
11241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11242 $as_echo "$ac_try_echo") >&5
11243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11244 ac_status=$?
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1
11247 cat conftest.err >&5
11248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } >/dev/null && {
11250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11251 test ! -s conftest.err
11252 }; then
11253 ac_header_preproc=yes
11254 else
11255 $as_echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11257
11258 ac_header_preproc=no
11259 fi
11260
11261 rm -f conftest.err conftest.$ac_ext
11262 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11263 $as_echo "$ac_header_preproc" >&6; }
11264
11265 # So? What about this header?
11266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11267 yes:no: )
11268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11269 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11272 ac_header_preproc=yes
11273 ;;
11274 no:yes:* )
11275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11276 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11278 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11280 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11282 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11286 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11287
11288 ;;
11289 esac
11290 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11291 $as_echo_n "checking for $ac_header... " >&6; }
11292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11293 $as_echo_n "(cached) " >&6
11294 else
11295 eval "$as_ac_Header=\$ac_header_preproc"
11296 fi
11297 ac_res=`eval 'as_val=${'$as_ac_Header'}
11298 $as_echo "$as_val"'`
11299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11300 $as_echo "$ac_res" >&6; }
11301
11302 fi
11303 as_val=`eval 'as_val=${'$as_ac_Header'}
11304 $as_echo "$as_val"'`
11305 if test "x$as_val" = x""yes; then
11306 cat >>confdefs.h <<_ACEOF
11307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11308 _ACEOF
11309
11310 else
11311 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11312 $as_echo "$as_me: error: bailing out" >&2;}
11313 { (exit 1); exit 1; }; }
11314 fi
11315
11316 done
11317
11318
11319
11320
11321
11322
11323 for ac_func in dup2 getmntent memmove select socket
11324 do
11325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11326 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11327 $as_echo_n "checking for $ac_func... " >&6; }
11328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11329 $as_echo_n "(cached) " >&6
11330 else
11331 cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h. */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11339 #define $ac_func innocuous_$ac_func
11340
11341 /* System header to define __stub macros and hopefully few prototypes,
11342 which can conflict with char $ac_func (); below.
11343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11344 <limits.h> exists even on freestanding compilers. */
11345
11346 #ifdef __STDC__
11347 # include <limits.h>
11348 #else
11349 # include <assert.h>
11350 #endif
11351
11352 #undef $ac_func
11353
11354 /* Override any GCC internal prototype to avoid an error.
11355 Use char because int might match the return type of a GCC
11356 builtin and then its argument prototype would still apply. */
11357 #ifdef __cplusplus
11358 extern "C"
11359 #endif
11360 char $ac_func ();
11361 /* The GNU C library defines this for functions which it implements
11362 to always fail with ENOSYS. Some functions are actually named
11363 something starting with __ and the normal name is an alias. */
11364 #if defined __stub_$ac_func || defined __stub___$ac_func
11365 choke me
11366 #endif
11367
11368 int
11369 main ()
11370 {
11371 return $ac_func ();
11372 ;
11373 return 0;
11374 }
11375 _ACEOF
11376 rm -f conftest.$ac_objext conftest$ac_exeext
11377 if { (ac_try="$ac_link"
11378 case "(($ac_try" in
11379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380 *) ac_try_echo=$ac_try;;
11381 esac
11382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11383 $as_echo "$ac_try_echo") >&5
11384 (eval "$ac_link") 2>conftest.er1
11385 ac_status=$?
11386 grep -v '^ *+' conftest.er1 >conftest.err
11387 rm -f conftest.er1
11388 cat conftest.err >&5
11389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } && {
11391 test -z "$ac_c_werror_flag" ||
11392 test ! -s conftest.err
11393 } && test -s conftest$ac_exeext && {
11394 test "$cross_compiling" = yes ||
11395 $as_test_x conftest$ac_exeext
11396 }; then
11397 eval "$as_ac_var=yes"
11398 else
11399 $as_echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11401
11402 eval "$as_ac_var=no"
11403 fi
11404
11405 rm -rf conftest.dSYM
11406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11407 conftest$ac_exeext conftest.$ac_ext
11408 fi
11409 ac_res=`eval 'as_val=${'$as_ac_var'}
11410 $as_echo "$as_val"'`
11411 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11412 $as_echo "$ac_res" >&6; }
11413 as_val=`eval 'as_val=${'$as_ac_var'}
11414 $as_echo "$as_val"'`
11415 if test "x$as_val" = x""yes; then
11416 cat >>confdefs.h <<_ACEOF
11417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11418 _ACEOF
11419
11420 else
11421 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11422 $as_echo "$as_me: error: bailing out" >&2;}
11423 { (exit 1); exit 1; }; }
11424 fi
11425 done
11426
11427 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11428 # -lseq on Dynix/PTX, -lgen on Unixware.
11429 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
11430 $as_echo_n "checking for library containing getmntent... " >&6; }
11431 if test "${ac_cv_search_getmntent+set}" = set; then
11432 $as_echo_n "(cached) " >&6
11433 else
11434 ac_func_search_save_LIBS=$LIBS
11435 cat >conftest.$ac_ext <<_ACEOF
11436 /* confdefs.h. */
11437 _ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11441
11442 /* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
11444 builtin and then its argument prototype would still apply. */
11445 #ifdef __cplusplus
11446 extern "C"
11447 #endif
11448 char getmntent ();
11449 int
11450 main ()
11451 {
11452 return getmntent ();
11453 ;
11454 return 0;
11455 }
11456 _ACEOF
11457 for ac_lib in '' sun seq gen; do
11458 if test -z "$ac_lib"; then
11459 ac_res="none required"
11460 else
11461 ac_res=-l$ac_lib
11462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11463 fi
11464 rm -f conftest.$ac_objext conftest$ac_exeext
11465 if { (ac_try="$ac_link"
11466 case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11469 esac
11470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11471 $as_echo "$ac_try_echo") >&5
11472 (eval "$ac_link") 2>conftest.er1
11473 ac_status=$?
11474 grep -v '^ *+' conftest.er1 >conftest.err
11475 rm -f conftest.er1
11476 cat conftest.err >&5
11477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } && {
11479 test -z "$ac_c_werror_flag" ||
11480 test ! -s conftest.err
11481 } && test -s conftest$ac_exeext && {
11482 test "$cross_compiling" = yes ||
11483 $as_test_x conftest$ac_exeext
11484 }; then
11485 ac_cv_search_getmntent=$ac_res
11486 else
11487 $as_echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11489
11490
11491 fi
11492
11493 rm -rf conftest.dSYM
11494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11495 conftest$ac_exeext
11496 if test "${ac_cv_search_getmntent+set}" = set; then
11497 break
11498 fi
11499 done
11500 if test "${ac_cv_search_getmntent+set}" = set; then
11501 :
11502 else
11503 ac_cv_search_getmntent=no
11504 fi
11505 rm conftest.$ac_ext
11506 LIBS=$ac_func_search_save_LIBS
11507 fi
11508 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
11509 $as_echo "$ac_cv_search_getmntent" >&6; }
11510 ac_res=$ac_cv_search_getmntent
11511 if test "$ac_res" != no; then
11512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11513 ac_cv_func_getmntent=yes
11514
11515 cat >>confdefs.h <<\_ACEOF
11516 #define HAVE_GETMNTENT 1
11517 _ACEOF
11518
11519 else
11520 ac_cv_func_getmntent=no
11521 fi
11522
11523
11524 # AC_FUNC_REALLOC
11525
11526
11527 for ac_header in sys/select.h sys/socket.h
11528 do
11529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11531 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11532 $as_echo_n "checking for $ac_header... " >&6; }
11533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11534 $as_echo_n "(cached) " >&6
11535 fi
11536 ac_res=`eval 'as_val=${'$as_ac_Header'}
11537 $as_echo "$as_val"'`
11538 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11539 $as_echo "$ac_res" >&6; }
11540 else
11541 # Is the header compilable?
11542 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11543 $as_echo_n "checking $ac_header usability... " >&6; }
11544 cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h. */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 $ac_includes_default
11551 #include <$ac_header>
11552 _ACEOF
11553 rm -f conftest.$ac_objext
11554 if { (ac_try="$ac_compile"
11555 case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558 esac
11559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11560 $as_echo "$ac_try_echo") >&5
11561 (eval "$ac_compile") 2>conftest.er1
11562 ac_status=$?
11563 grep -v '^ *+' conftest.er1 >conftest.err
11564 rm -f conftest.er1
11565 cat conftest.err >&5
11566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } && {
11568 test -z "$ac_c_werror_flag" ||
11569 test ! -s conftest.err
11570 } && test -s conftest.$ac_objext; then
11571 ac_header_compiler=yes
11572 else
11573 $as_echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11575
11576 ac_header_compiler=no
11577 fi
11578
11579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11580 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11581 $as_echo "$ac_header_compiler" >&6; }
11582
11583 # Is the header present?
11584 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11585 $as_echo_n "checking $ac_header presence... " >&6; }
11586 cat >conftest.$ac_ext <<_ACEOF
11587 /* confdefs.h. */
11588 _ACEOF
11589 cat confdefs.h >>conftest.$ac_ext
11590 cat >>conftest.$ac_ext <<_ACEOF
11591 /* end confdefs.h. */
11592 #include <$ac_header>
11593 _ACEOF
11594 if { (ac_try="$ac_cpp conftest.$ac_ext"
11595 case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11598 esac
11599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11600 $as_echo "$ac_try_echo") >&5
11601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11602 ac_status=$?
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
11606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } >/dev/null && {
11608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11609 test ! -s conftest.err
11610 }; then
11611 ac_header_preproc=yes
11612 else
11613 $as_echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11615
11616 ac_header_preproc=no
11617 fi
11618
11619 rm -f conftest.err conftest.$ac_ext
11620 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11621 $as_echo "$ac_header_preproc" >&6; }
11622
11623 # So? What about this header?
11624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11625 yes:no: )
11626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11627 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11629 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11630 ac_header_preproc=yes
11631 ;;
11632 no:yes:* )
11633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11634 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11636 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11638 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11640 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11644 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11645
11646 ;;
11647 esac
11648 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11649 $as_echo_n "checking for $ac_header... " >&6; }
11650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11651 $as_echo_n "(cached) " >&6
11652 else
11653 eval "$as_ac_Header=\$ac_header_preproc"
11654 fi
11655 ac_res=`eval 'as_val=${'$as_ac_Header'}
11656 $as_echo "$as_val"'`
11657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11658 $as_echo "$ac_res" >&6; }
11659
11660 fi
11661 as_val=`eval 'as_val=${'$as_ac_Header'}
11662 $as_echo "$as_val"'`
11663 if test "x$as_val" = x""yes; then
11664 cat >>confdefs.h <<_ACEOF
11665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11666 _ACEOF
11667
11668 fi
11669
11670 done
11671
11672 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
11673 $as_echo_n "checking types of arguments for select... " >&6; }
11674 if test "${ac_cv_func_select_args+set}" = set; then
11675 $as_echo_n "(cached) " >&6
11676 else
11677 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11678 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11679 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11680 cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h. */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 $ac_includes_default
11687 #ifdef HAVE_SYS_SELECT_H
11688 # include <sys/select.h>
11689 #endif
11690 #ifdef HAVE_SYS_SOCKET_H
11691 # include <sys/socket.h>
11692 #endif
11693
11694 int
11695 main ()
11696 {
11697 extern int select ($ac_arg1,
11698 $ac_arg234, $ac_arg234, $ac_arg234,
11699 $ac_arg5);
11700 ;
11701 return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest.$ac_objext
11705 if { (ac_try="$ac_compile"
11706 case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11709 esac
11710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11711 $as_echo "$ac_try_echo") >&5
11712 (eval "$ac_compile") 2>conftest.er1
11713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } && {
11719 test -z "$ac_c_werror_flag" ||
11720 test ! -s conftest.err
11721 } && test -s conftest.$ac_objext; then
11722 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11723 else
11724 $as_echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11726
11727
11728 fi
11729
11730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11731 done
11732 done
11733 done
11734 # Provide a safe default value.
11735 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11736
11737 fi
11738 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11739 $as_echo "$ac_cv_func_select_args" >&6; }
11740 ac_save_IFS=$IFS; IFS=','
11741 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11742 IFS=$ac_save_IFS
11743 shift
11744
11745 cat >>confdefs.h <<_ACEOF
11746 #define SELECT_TYPE_ARG1 $1
11747 _ACEOF
11748
11749
11750 cat >>confdefs.h <<_ACEOF
11751 #define SELECT_TYPE_ARG234 ($2)
11752 _ACEOF
11753
11754
11755 cat >>confdefs.h <<_ACEOF
11756 #define SELECT_TYPE_ARG5 ($3)
11757 _ACEOF
11758
11759 rm -f conftest*
11760
11761 fi
11762
11763 if test x$CLUSTER != xnone; then
11764
11765
11766 for ac_header in sys/socket.h sys/un.h
11767 do
11768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11771 $as_echo_n "checking for $ac_header... " >&6; }
11772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11773 $as_echo_n "(cached) " >&6
11774 fi
11775 ac_res=`eval 'as_val=${'$as_ac_Header'}
11776 $as_echo "$as_val"'`
11777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11778 $as_echo "$ac_res" >&6; }
11779 else
11780 # Is the header compilable?
11781 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11782 $as_echo_n "checking $ac_header usability... " >&6; }
11783 cat >conftest.$ac_ext <<_ACEOF
11784 /* confdefs.h. */
11785 _ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11789 $ac_includes_default
11790 #include <$ac_header>
11791 _ACEOF
11792 rm -f conftest.$ac_objext
11793 if { (ac_try="$ac_compile"
11794 case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11797 esac
11798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11799 $as_echo "$ac_try_echo") >&5
11800 (eval "$ac_compile") 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } && {
11807 test -z "$ac_c_werror_flag" ||
11808 test ! -s conftest.err
11809 } && test -s conftest.$ac_objext; then
11810 ac_header_compiler=yes
11811 else
11812 $as_echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11814
11815 ac_header_compiler=no
11816 fi
11817
11818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11819 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11820 $as_echo "$ac_header_compiler" >&6; }
11821
11822 # Is the header present?
11823 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11824 $as_echo_n "checking $ac_header presence... " >&6; }
11825 cat >conftest.$ac_ext <<_ACEOF
11826 /* confdefs.h. */
11827 _ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 #include <$ac_header>
11832 _ACEOF
11833 if { (ac_try="$ac_cpp conftest.$ac_ext"
11834 case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11837 esac
11838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11839 $as_echo "$ac_try_echo") >&5
11840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
11845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } >/dev/null && {
11847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11848 test ! -s conftest.err
11849 }; then
11850 ac_header_preproc=yes
11851 else
11852 $as_echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11854
11855 ac_header_preproc=no
11856 fi
11857
11858 rm -f conftest.err conftest.$ac_ext
11859 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11860 $as_echo "$ac_header_preproc" >&6; }
11861
11862 # So? What about this header?
11863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11864 yes:no: )
11865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11866 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11868 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11869 ac_header_preproc=yes
11870 ;;
11871 no:yes:* )
11872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11873 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11875 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11877 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11879 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11881 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11883 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11884
11885 ;;
11886 esac
11887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11888 $as_echo_n "checking for $ac_header... " >&6; }
11889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11890 $as_echo_n "(cached) " >&6
11891 else
11892 eval "$as_ac_Header=\$ac_header_preproc"
11893 fi
11894 ac_res=`eval 'as_val=${'$as_ac_Header'}
11895 $as_echo "$as_val"'`
11896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11897 $as_echo "$ac_res" >&6; }
11898
11899 fi
11900 as_val=`eval 'as_val=${'$as_ac_Header'}
11901 $as_echo "$as_val"'`
11902 if test "x$as_val" = x""yes; then
11903 cat >>confdefs.h <<_ACEOF
11904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11905 _ACEOF
11906
11907 else
11908 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11909 $as_echo "$as_me: error: bailing out" >&2;}
11910 { (exit 1); exit 1; }; }
11911 fi
11912
11913 done
11914
11915
11916 for ac_func in socket
11917 do
11918 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11919 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11920 $as_echo_n "checking for $ac_func... " >&6; }
11921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11922 $as_echo_n "(cached) " >&6
11923 else
11924 cat >conftest.$ac_ext <<_ACEOF
11925 /* confdefs.h. */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11932 #define $ac_func innocuous_$ac_func
11933
11934 /* System header to define __stub macros and hopefully few prototypes,
11935 which can conflict with char $ac_func (); below.
11936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11937 <limits.h> exists even on freestanding compilers. */
11938
11939 #ifdef __STDC__
11940 # include <limits.h>
11941 #else
11942 # include <assert.h>
11943 #endif
11944
11945 #undef $ac_func
11946
11947 /* Override any GCC internal prototype to avoid an error.
11948 Use char because int might match the return type of a GCC
11949 builtin and then its argument prototype would still apply. */
11950 #ifdef __cplusplus
11951 extern "C"
11952 #endif
11953 char $ac_func ();
11954 /* The GNU C library defines this for functions which it implements
11955 to always fail with ENOSYS. Some functions are actually named
11956 something starting with __ and the normal name is an alias. */
11957 #if defined __stub_$ac_func || defined __stub___$ac_func
11958 choke me
11959 #endif
11960
11961 int
11962 main ()
11963 {
11964 return $ac_func ();
11965 ;
11966 return 0;
11967 }
11968 _ACEOF
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (ac_try="$ac_link"
11971 case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11974 esac
11975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11976 $as_echo "$ac_try_echo") >&5
11977 (eval "$ac_link") 2>conftest.er1
11978 ac_status=$?
11979 grep -v '^ *+' conftest.er1 >conftest.err
11980 rm -f conftest.er1
11981 cat conftest.err >&5
11982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } && {
11984 test -z "$ac_c_werror_flag" ||
11985 test ! -s conftest.err
11986 } && test -s conftest$ac_exeext && {
11987 test "$cross_compiling" = yes ||
11988 $as_test_x conftest$ac_exeext
11989 }; then
11990 eval "$as_ac_var=yes"
11991 else
11992 $as_echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11994
11995 eval "$as_ac_var=no"
11996 fi
11997
11998 rm -rf conftest.dSYM
11999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12000 conftest$ac_exeext conftest.$ac_ext
12001 fi
12002 ac_res=`eval 'as_val=${'$as_ac_var'}
12003 $as_echo "$as_val"'`
12004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12005 $as_echo "$ac_res" >&6; }
12006 as_val=`eval 'as_val=${'$as_ac_var'}
12007 $as_echo "$as_val"'`
12008 if test "x$as_val" = x""yes; then
12009 cat >>confdefs.h <<_ACEOF
12010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12011 _ACEOF
12012
12013 else
12014 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12015 $as_echo "$as_me: error: bailing out" >&2;}
12016 { (exit 1); exit 1; }; }
12017 fi
12018 done
12019
12020 fi
12021
12022 if test x$HAVE_LIBDL = xyes; then
12023
12024 for ac_header in dlfcn.h
12025 do
12026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12029 $as_echo_n "checking for $ac_header... " >&6; }
12030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12031 $as_echo_n "(cached) " >&6
12032 fi
12033 ac_res=`eval 'as_val=${'$as_ac_Header'}
12034 $as_echo "$as_val"'`
12035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12036 $as_echo "$ac_res" >&6; }
12037 else
12038 # Is the header compilable?
12039 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12040 $as_echo_n "checking $ac_header usability... " >&6; }
12041 cat >conftest.$ac_ext <<_ACEOF
12042 /* confdefs.h. */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047 $ac_includes_default
12048 #include <$ac_header>
12049 _ACEOF
12050 rm -f conftest.$ac_objext
12051 if { (ac_try="$ac_compile"
12052 case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12055 esac
12056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12057 $as_echo "$ac_try_echo") >&5
12058 (eval "$ac_compile") 2>conftest.er1
12059 ac_status=$?
12060 grep -v '^ *+' conftest.er1 >conftest.err
12061 rm -f conftest.er1
12062 cat conftest.err >&5
12063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } && {
12065 test -z "$ac_c_werror_flag" ||
12066 test ! -s conftest.err
12067 } && test -s conftest.$ac_objext; then
12068 ac_header_compiler=yes
12069 else
12070 $as_echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12072
12073 ac_header_compiler=no
12074 fi
12075
12076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12077 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12078 $as_echo "$ac_header_compiler" >&6; }
12079
12080 # Is the header present?
12081 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12082 $as_echo_n "checking $ac_header presence... " >&6; }
12083 cat >conftest.$ac_ext <<_ACEOF
12084 /* confdefs.h. */
12085 _ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 #include <$ac_header>
12090 _ACEOF
12091 if { (ac_try="$ac_cpp conftest.$ac_ext"
12092 case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095 esac
12096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12097 $as_echo "$ac_try_echo") >&5
12098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
12103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } >/dev/null && {
12105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12106 test ! -s conftest.err
12107 }; then
12108 ac_header_preproc=yes
12109 else
12110 $as_echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12112
12113 ac_header_preproc=no
12114 fi
12115
12116 rm -f conftest.err conftest.$ac_ext
12117 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12118 $as_echo "$ac_header_preproc" >&6; }
12119
12120 # So? What about this header?
12121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12122 yes:no: )
12123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12124 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12127 ac_header_preproc=yes
12128 ;;
12129 no:yes:* )
12130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12131 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12133 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12135 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12137 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12141 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12142
12143 ;;
12144 esac
12145 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12146 $as_echo_n "checking for $ac_header... " >&6; }
12147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12148 $as_echo_n "(cached) " >&6
12149 else
12150 eval "$as_ac_Header=\$ac_header_preproc"
12151 fi
12152 ac_res=`eval 'as_val=${'$as_ac_Header'}
12153 $as_echo "$as_val"'`
12154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12155 $as_echo "$ac_res" >&6; }
12156
12157 fi
12158 as_val=`eval 'as_val=${'$as_ac_Header'}
12159 $as_echo "$as_val"'`
12160 if test "x$as_val" = x""yes; then
12161 cat >>confdefs.h <<_ACEOF
12162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12163 _ACEOF
12164
12165 else
12166 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12167 $as_echo "$as_me: error: bailing out" >&2;}
12168 { (exit 1); exit 1; }; }
12169 fi
12170
12171 done
12172
12173 fi
12174
12175 if test x$INTL = xyes; then
12176
12177 for ac_header in libintl.h
12178 do
12179 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12181 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12182 $as_echo_n "checking for $ac_header... " >&6; }
12183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12184 $as_echo_n "(cached) " >&6
12185 fi
12186 ac_res=`eval 'as_val=${'$as_ac_Header'}
12187 $as_echo "$as_val"'`
12188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12189 $as_echo "$ac_res" >&6; }
12190 else
12191 # Is the header compilable?
12192 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12193 $as_echo_n "checking $ac_header usability... " >&6; }
12194 cat >conftest.$ac_ext <<_ACEOF
12195 /* confdefs.h. */
12196 _ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12200 $ac_includes_default
12201 #include <$ac_header>
12202 _ACEOF
12203 rm -f conftest.$ac_objext
12204 if { (ac_try="$ac_compile"
12205 case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208 esac
12209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12210 $as_echo "$ac_try_echo") >&5
12211 (eval "$ac_compile") 2>conftest.er1
12212 ac_status=$?
12213 grep -v '^ *+' conftest.er1 >conftest.err
12214 rm -f conftest.er1
12215 cat conftest.err >&5
12216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } && {
12218 test -z "$ac_c_werror_flag" ||
12219 test ! -s conftest.err
12220 } && test -s conftest.$ac_objext; then
12221 ac_header_compiler=yes
12222 else
12223 $as_echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226 ac_header_compiler=no
12227 fi
12228
12229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12230 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12231 $as_echo "$ac_header_compiler" >&6; }
12232
12233 # Is the header present?
12234 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12235 $as_echo_n "checking $ac_header presence... " >&6; }
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h. */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 #include <$ac_header>
12243 _ACEOF
12244 if { (ac_try="$ac_cpp conftest.$ac_ext"
12245 case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12248 esac
12249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12250 $as_echo "$ac_try_echo") >&5
12251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12252 ac_status=$?
12253 grep -v '^ *+' conftest.er1 >conftest.err
12254 rm -f conftest.er1
12255 cat conftest.err >&5
12256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } >/dev/null && {
12258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12259 test ! -s conftest.err
12260 }; then
12261 ac_header_preproc=yes
12262 else
12263 $as_echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12265
12266 ac_header_preproc=no
12267 fi
12268
12269 rm -f conftest.err conftest.$ac_ext
12270 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12271 $as_echo "$ac_header_preproc" >&6; }
12272
12273 # So? What about this header?
12274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12275 yes:no: )
12276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12277 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12279 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12280 ac_header_preproc=yes
12281 ;;
12282 no:yes:* )
12283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12284 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12286 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12288 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12290 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12294 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12295
12296 ;;
12297 esac
12298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12299 $as_echo_n "checking for $ac_header... " >&6; }
12300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12301 $as_echo_n "(cached) " >&6
12302 else
12303 eval "$as_ac_Header=\$ac_header_preproc"
12304 fi
12305 ac_res=`eval 'as_val=${'$as_ac_Header'}
12306 $as_echo "$as_val"'`
12307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12308 $as_echo "$ac_res" >&6; }
12309
12310 fi
12311 as_val=`eval 'as_val=${'$as_ac_Header'}
12312 $as_echo "$as_val"'`
12313 if test "x$as_val" = x""yes; then
12314 cat >>confdefs.h <<_ACEOF
12315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12316 _ACEOF
12317
12318 else
12319 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12320 $as_echo "$as_me: error: bailing out" >&2;}
12321 { (exit 1); exit 1; }; }
12322 fi
12323
12324 done
12325
12326 fi
12327
12328 if test x$HAVE_SELINUX = xyes; then
12329
12330 for ac_header in selinux/selinux.h
12331 do
12332 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12335 $as_echo_n "checking for $ac_header... " >&6; }
12336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12337 $as_echo_n "(cached) " >&6
12338 fi
12339 ac_res=`eval 'as_val=${'$as_ac_Header'}
12340 $as_echo "$as_val"'`
12341 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12342 $as_echo "$ac_res" >&6; }
12343 else
12344 # Is the header compilable?
12345 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12346 $as_echo_n "checking $ac_header usability... " >&6; }
12347 cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h. */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12353 $ac_includes_default
12354 #include <$ac_header>
12355 _ACEOF
12356 rm -f conftest.$ac_objext
12357 if { (ac_try="$ac_compile"
12358 case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12361 esac
12362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12363 $as_echo "$ac_try_echo") >&5
12364 (eval "$ac_compile") 2>conftest.er1
12365 ac_status=$?
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
12369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest.$ac_objext; then
12374 ac_header_compiler=yes
12375 else
12376 $as_echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379 ac_header_compiler=no
12380 fi
12381
12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12384 $as_echo "$ac_header_compiler" >&6; }
12385
12386 # Is the header present?
12387 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12388 $as_echo_n "checking $ac_header presence... " >&6; }
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h. */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 #include <$ac_header>
12396 _ACEOF
12397 if { (ac_try="$ac_cpp conftest.$ac_ext"
12398 case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12401 esac
12402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12403 $as_echo "$ac_try_echo") >&5
12404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } >/dev/null && {
12411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12412 test ! -s conftest.err
12413 }; then
12414 ac_header_preproc=yes
12415 else
12416 $as_echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 ac_header_preproc=no
12420 fi
12421
12422 rm -f conftest.err conftest.$ac_ext
12423 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12424 $as_echo "$ac_header_preproc" >&6; }
12425
12426 # So? What about this header?
12427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12428 yes:no: )
12429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12430 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12433 ac_header_preproc=yes
12434 ;;
12435 no:yes:* )
12436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12437 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12439 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12441 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12443 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12447 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12448
12449 ;;
12450 esac
12451 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12452 $as_echo_n "checking for $ac_header... " >&6; }
12453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12454 $as_echo_n "(cached) " >&6
12455 else
12456 eval "$as_ac_Header=\$ac_header_preproc"
12457 fi
12458 ac_res=`eval 'as_val=${'$as_ac_Header'}
12459 $as_echo "$as_val"'`
12460 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12461 $as_echo "$ac_res" >&6; }
12462
12463 fi
12464 as_val=`eval 'as_val=${'$as_ac_Header'}
12465 $as_echo "$as_val"'`
12466 if test "x$as_val" = x""yes; then
12467 cat >>confdefs.h <<_ACEOF
12468 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12469 _ACEOF
12470
12471 else
12472 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12473 $as_echo "$as_me: error: bailing out" >&2;}
12474 { (exit 1); exit 1; }; }
12475 fi
12476
12477 done
12478
12479 fi
12480
12481 ################################################################################
12482 # Extract the first word of "modprobe", so it can be a program name with args.
12483 set dummy modprobe; ac_word=$2
12484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12485 $as_echo_n "checking for $ac_word... " >&6; }
12486 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
12487 $as_echo_n "(cached) " >&6
12488 else
12489 case $MODPROBE_CMD in
12490 [\\/]* | ?:[\\/]*)
12491 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
12492 ;;
12493 *)
12494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495 for as_dir in $PATH
12496 do
12497 IFS=$as_save_IFS
12498 test -z "$as_dir" && as_dir=.
12499 for ac_exec_ext in '' $ac_executable_extensions; do
12500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12501 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
12502 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12503 break 2
12504 fi
12505 done
12506 done
12507 IFS=$as_save_IFS
12508
12509 ;;
12510 esac
12511 fi
12512 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
12513 if test -n "$MODPROBE_CMD"; then
12514 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
12515 $as_echo "$MODPROBE_CMD" >&6; }
12516 else
12517 { $as_echo "$as_me:$LINENO: result: no" >&5
12518 $as_echo "no" >&6; }
12519 fi
12520
12521
12522
12523 if test x$MODPROBE_CMD != x; then
12524
12525 cat >>confdefs.h <<_ACEOF
12526 #define MODPROBE_CMD "$MODPROBE_CMD"
12527 _ACEOF
12528
12529 fi
12530
12531 ################################################################################
12532
12533
12534 if test "$BUILD_DMEVENTD" = yes; then
12535
12536 # Check whether --with-dmeventd-pidfile was given.
12537 if test "${with_dmeventd_pidfile+set}" = set; then
12538 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
12539 #define DMEVENTD_PIDFILE "$withval"
12540 _ACEOF
12541
12542 else
12543 cat >>confdefs.h <<_ACEOF
12544 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
12545 _ACEOF
12546
12547 fi
12548
12549 fi
12550
12551
12552
12553 if test "$BUILD_DMEVENTD" = yes; then
12554 dmeventd_prefix="$exec_prefix"
12555 if test "x$dmeventd_prefix" = "xNONE"; then
12556 dmeventd_prefix="$prefix"
12557 fi
12558 if test "x$dmeventd_prefix" = "xNONE"; then
12559 dmeventd_prefix=""
12560 fi
12561
12562 # Check whether --with-dmeventd-path was given.
12563 if test "${with_dmeventd_path+set}" = set; then
12564 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
12565 #define DMEVENTD_PATH "$withval"
12566 _ACEOF
12567
12568 else
12569 cat >>confdefs.h <<_ACEOF
12570 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
12571 _ACEOF
12572
12573 fi
12574
12575 fi
12576
12577 ################################################################################
12578 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
12579 $as_echo_n "checking for kernel interface choice... " >&6; }
12580
12581 # Check whether --with-interface was given.
12582 if test "${with_interface+set}" = set; then
12583 withval=$with_interface; interface="$withval"
12584 else
12585 interface=ioctl
12586 fi
12587
12588 if [ "x$interface" != xioctl ];
12589 then
12590 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
12591 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
12592 { (exit 1); exit 1; }; }
12593 fi
12594 { $as_echo "$as_me:$LINENO: result: $interface" >&5
12595 $as_echo "$interface" >&6; }
12596
12597 ################################################################################
12598 DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
12599
12600 cat >>confdefs.h <<_ACEOF
12601 #define DM_LIB_VERSION $DM_LIB_VERSION
12602 _ACEOF
12603
12604
12605 DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
12606
12607 LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
12608
12609 VER=`cat VERSION`
12610 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
12611 VER=`echo "$VER" | $AWK '{print $1}'`
12612 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
12613 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
12614 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
12615 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
12616 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
12617 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
12618
12619 ################################################################################
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687 ################################################################################
12688 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile"
12689
12690 cat >confcache <<\_ACEOF
12691 # This file is a shell script that caches the results of configure
12692 # tests run on this system so they can be shared between configure
12693 # scripts and configure runs, see configure's option --config-cache.
12694 # It is not useful on other systems. If it contains results you don't
12695 # want to keep, you may remove or edit it.
12696 #
12697 # config.status only pays attention to the cache file if you give it
12698 # the --recheck option to rerun configure.
12699 #
12700 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12701 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12702 # following values.
12703
12704 _ACEOF
12705
12706 # The following way of writing the cache mishandles newlines in values,
12707 # but we know of no workaround that is simple, portable, and efficient.
12708 # So, we kill variables containing newlines.
12709 # Ultrix sh set writes to stderr and can't be redirected directly,
12710 # and sets the high bit in the cache file unless we assign to the vars.
12711 (
12712 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12713 eval ac_val=\$$ac_var
12714 case $ac_val in #(
12715 *${as_nl}*)
12716 case $ac_var in #(
12717 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12718 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12719 esac
12720 case $ac_var in #(
12721 _ | IFS | as_nl) ;; #(
12722 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12723 *) $as_unset $ac_var ;;
12724 esac ;;
12725 esac
12726 done
12727
12728 (set) 2>&1 |
12729 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12730 *${as_nl}ac_space=\ *)
12731 # `set' does not quote correctly, so add quotes (double-quote
12732 # substitution turns \\\\ into \\, and sed turns \\ into \).
12733 sed -n \
12734 "s/'/'\\\\''/g;
12735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12736 ;; #(
12737 *)
12738 # `set' quotes correctly as required by POSIX, so do not add quotes.
12739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12740 ;;
12741 esac |
12742 sort
12743 ) |
12744 sed '
12745 /^ac_cv_env_/b end
12746 t clear
12747 :clear
12748 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12749 t end
12750 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12751 :end' >>confcache
12752 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12753 if test -w "$cache_file"; then
12754 test "x$cache_file" != "x/dev/null" &&
12755 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12756 $as_echo "$as_me: updating cache $cache_file" >&6;}
12757 cat confcache >$cache_file
12758 else
12759 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12760 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12761 fi
12762 fi
12763 rm -f confcache
12764
12765 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12766 # Let make expand exec_prefix.
12767 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12768
12769 DEFS=-DHAVE_CONFIG_H
12770
12771 ac_libobjs=
12772 ac_ltlibobjs=
12773 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12774 # 1. Remove the extension, and $U if already installed.
12775 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12776 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12778 # will be set to the directory where LIBOBJS objects are built.
12779 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12780 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12781 done
12782 LIBOBJS=$ac_libobjs
12783
12784 LTLIBOBJS=$ac_ltlibobjs
12785
12786
12787
12788 : ${CONFIG_STATUS=./config.status}
12789 ac_write_fail=0
12790 ac_clean_files_save=$ac_clean_files
12791 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12792 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12793 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12794 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12795 #! $SHELL
12796 # Generated by $as_me.
12797 # Run this file to recreate the current configuration.
12798 # Compiler output produced by configure, useful for debugging
12799 # configure, is in config.log if it exists.
12800
12801 debug=false
12802 ac_cs_recheck=false
12803 ac_cs_silent=false
12804 SHELL=\${CONFIG_SHELL-$SHELL}
12805 _ACEOF
12806
12807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12808 ## --------------------- ##
12809 ## M4sh Initialization. ##
12810 ## --------------------- ##
12811
12812 # Be more Bourne compatible
12813 DUALCASE=1; export DUALCASE # for MKS sh
12814 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12815 emulate sh
12816 NULLCMD=:
12817 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12818 # is contrary to our usage. Disable this feature.
12819 alias -g '${1+"$@"}'='"$@"'
12820 setopt NO_GLOB_SUBST
12821 else
12822 case `(set -o) 2>/dev/null` in
12823 *posix*) set -o posix ;;
12824 esac
12825
12826 fi
12827
12828
12829
12830
12831 # PATH needs CR
12832 # Avoid depending upon Character Ranges.
12833 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12834 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12835 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12836 as_cr_digits='0123456789'
12837 as_cr_alnum=$as_cr_Letters$as_cr_digits
12838
12839 as_nl='
12840 '
12841 export as_nl
12842 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12843 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12844 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12845 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12846 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12847 as_echo='printf %s\n'
12848 as_echo_n='printf %s'
12849 else
12850 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12851 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12852 as_echo_n='/usr/ucb/echo -n'
12853 else
12854 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12855 as_echo_n_body='eval
12856 arg=$1;
12857 case $arg in
12858 *"$as_nl"*)
12859 expr "X$arg" : "X\\(.*\\)$as_nl";
12860 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12861 esac;
12862 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12863 '
12864 export as_echo_n_body
12865 as_echo_n='sh -c $as_echo_n_body as_echo'
12866 fi
12867 export as_echo_body
12868 as_echo='sh -c $as_echo_body as_echo'
12869 fi
12870
12871 # The user is always right.
12872 if test "${PATH_SEPARATOR+set}" != set; then
12873 PATH_SEPARATOR=:
12874 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12875 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12876 PATH_SEPARATOR=';'
12877 }
12878 fi
12879
12880 # Support unset when possible.
12881 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12882 as_unset=unset
12883 else
12884 as_unset=false
12885 fi
12886
12887
12888 # IFS
12889 # We need space, tab and new line, in precisely that order. Quoting is
12890 # there to prevent editors from complaining about space-tab.
12891 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12892 # splitting by setting IFS to empty value.)
12893 IFS=" "" $as_nl"
12894
12895 # Find who we are. Look in the path if we contain no directory separator.
12896 case $0 in
12897 *[\\/]* ) as_myself=$0 ;;
12898 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH
12900 do
12901 IFS=$as_save_IFS
12902 test -z "$as_dir" && as_dir=.
12903 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12904 done
12905 IFS=$as_save_IFS
12906
12907 ;;
12908 esac
12909 # We did not find ourselves, most probably we were run as `sh COMMAND'
12910 # in which case we are not to be found in the path.
12911 if test "x$as_myself" = x; then
12912 as_myself=$0
12913 fi
12914 if test ! -f "$as_myself"; then
12915 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12916 { (exit 1); exit 1; }
12917 fi
12918
12919 # Work around bugs in pre-3.0 UWIN ksh.
12920 for as_var in ENV MAIL MAILPATH
12921 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12922 done
12923 PS1='$ '
12924 PS2='> '
12925 PS4='+ '
12926
12927 # NLS nuisances.
12928 LC_ALL=C
12929 export LC_ALL
12930 LANGUAGE=C
12931 export LANGUAGE
12932
12933 # Required to use basename.
12934 if expr a : '\(a\)' >/dev/null 2>&1 &&
12935 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12936 as_expr=expr
12937 else
12938 as_expr=false
12939 fi
12940
12941 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12942 as_basename=basename
12943 else
12944 as_basename=false
12945 fi
12946
12947
12948 # Name of the executable.
12949 as_me=`$as_basename -- "$0" ||
12950 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12951 X"$0" : 'X\(//\)$' \| \
12952 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12953 $as_echo X/"$0" |
12954 sed '/^.*\/\([^/][^/]*\)\/*$/{
12955 s//\1/
12956 q
12957 }
12958 /^X\/\(\/\/\)$/{
12959 s//\1/
12960 q
12961 }
12962 /^X\/\(\/\).*/{
12963 s//\1/
12964 q
12965 }
12966 s/.*/./; q'`
12967
12968 # CDPATH.
12969 $as_unset CDPATH
12970
12971
12972
12973 as_lineno_1=$LINENO
12974 as_lineno_2=$LINENO
12975 test "x$as_lineno_1" != "x$as_lineno_2" &&
12976 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12977
12978 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12979 # uniformly replaced by the line number. The first 'sed' inserts a
12980 # line-number line after each line using $LINENO; the second 'sed'
12981 # does the real work. The second script uses 'N' to pair each
12982 # line-number line with the line containing $LINENO, and appends
12983 # trailing '-' during substitution so that $LINENO is not a special
12984 # case at line end.
12985 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12986 # scripts with optimization help from Paolo Bonzini. Blame Lee
12987 # E. McMahon (1931-1989) for sed's syntax. :-)
12988 sed -n '
12989 p
12990 /[$]LINENO/=
12991 ' <$as_myself |
12992 sed '
12993 s/[$]LINENO.*/&-/
12994 t lineno
12995 b
12996 :lineno
12997 N
12998 :loop
12999 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13000 t loop
13001 s/-\n.*//
13002 ' >$as_me.lineno &&
13003 chmod +x "$as_me.lineno" ||
13004 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13005 { (exit 1); exit 1; }; }
13006
13007 # Don't try to exec as it changes $[0], causing all sort of problems
13008 # (the dirname of $[0] is not the place where we might find the
13009 # original and so on. Autoconf is especially sensitive to this).
13010 . "./$as_me.lineno"
13011 # Exit status is that of the last command.
13012 exit
13013 }
13014
13015
13016 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13017 as_dirname=dirname
13018 else
13019 as_dirname=false
13020 fi
13021
13022 ECHO_C= ECHO_N= ECHO_T=
13023 case `echo -n x` in
13024 -n*)
13025 case `echo 'x\c'` in
13026 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13027 *) ECHO_C='\c';;
13028 esac;;
13029 *)
13030 ECHO_N='-n';;
13031 esac
13032 if expr a : '\(a\)' >/dev/null 2>&1 &&
13033 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13034 as_expr=expr
13035 else
13036 as_expr=false
13037 fi
13038
13039 rm -f conf$$ conf$$.exe conf$$.file
13040 if test -d conf$$.dir; then
13041 rm -f conf$$.dir/conf$$.file
13042 else
13043 rm -f conf$$.dir
13044 mkdir conf$$.dir 2>/dev/null
13045 fi
13046 if (echo >conf$$.file) 2>/dev/null; then
13047 if ln -s conf$$.file conf$$ 2>/dev/null; then
13048 as_ln_s='ln -s'
13049 # ... but there are two gotchas:
13050 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13051 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13052 # In both cases, we have to default to `cp -p'.
13053 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13054 as_ln_s='cp -p'
13055 elif ln conf$$.file conf$$ 2>/dev/null; then
13056 as_ln_s=ln
13057 else
13058 as_ln_s='cp -p'
13059 fi
13060 else
13061 as_ln_s='cp -p'
13062 fi
13063 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13064 rmdir conf$$.dir 2>/dev/null
13065
13066 if mkdir -p . 2>/dev/null; then
13067 as_mkdir_p=:
13068 else
13069 test -d ./-p && rmdir ./-p
13070 as_mkdir_p=false
13071 fi
13072
13073 if test -x / >/dev/null 2>&1; then
13074 as_test_x='test -x'
13075 else
13076 if ls -dL / >/dev/null 2>&1; then
13077 as_ls_L_option=L
13078 else
13079 as_ls_L_option=
13080 fi
13081 as_test_x='
13082 eval sh -c '\''
13083 if test -d "$1"; then
13084 test -d "$1/.";
13085 else
13086 case $1 in
13087 -*)set "./$1";;
13088 esac;
13089 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13090 ???[sx]*):;;*)false;;esac;fi
13091 '\'' sh
13092 '
13093 fi
13094 as_executable_p=$as_test_x
13095
13096 # Sed expression to map a string onto a valid CPP name.
13097 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13098
13099 # Sed expression to map a string onto a valid variable name.
13100 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13101
13102
13103 exec 6>&1
13104
13105 # Save the log message, to keep $[0] and so on meaningful, and to
13106 # report actual input values of CONFIG_FILES etc. instead of their
13107 # values after options handling.
13108 ac_log="
13109 This file was extended by $as_me, which was
13110 generated by GNU Autoconf 2.63. Invocation command line was
13111
13112 CONFIG_FILES = $CONFIG_FILES
13113 CONFIG_HEADERS = $CONFIG_HEADERS
13114 CONFIG_LINKS = $CONFIG_LINKS
13115 CONFIG_COMMANDS = $CONFIG_COMMANDS
13116 $ $0 $@
13117
13118 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13119 "
13120
13121 _ACEOF
13122
13123 case $ac_config_files in *"
13124 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13125 esac
13126
13127 case $ac_config_headers in *"
13128 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13129 esac
13130
13131
13132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13133 # Files that config.status was made for.
13134 config_files="$ac_config_files"
13135 config_headers="$ac_config_headers"
13136
13137 _ACEOF
13138
13139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13140 ac_cs_usage="\
13141 \`$as_me' instantiates files from templates according to the
13142 current configuration.
13143
13144 Usage: $0 [OPTION]... [FILE]...
13145
13146 -h, --help print this help, then exit
13147 -V, --version print version number and configuration settings, then exit
13148 -q, --quiet, --silent
13149 do not print progress messages
13150 -d, --debug don't remove temporary files
13151 --recheck update $as_me by reconfiguring in the same conditions
13152 --file=FILE[:TEMPLATE]
13153 instantiate the configuration file FILE
13154 --header=FILE[:TEMPLATE]
13155 instantiate the configuration header FILE
13156
13157 Configuration files:
13158 $config_files
13159
13160 Configuration headers:
13161 $config_headers
13162
13163 Report bugs to <bug-autoconf@gnu.org>."
13164
13165 _ACEOF
13166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13167 ac_cs_version="\\
13168 config.status
13169 configured by $0, generated by GNU Autoconf 2.63,
13170 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13171
13172 Copyright (C) 2008 Free Software Foundation, Inc.
13173 This config.status script is free software; the Free Software Foundation
13174 gives unlimited permission to copy, distribute and modify it."
13175
13176 ac_pwd='$ac_pwd'
13177 srcdir='$srcdir'
13178 INSTALL='$INSTALL'
13179 MKDIR_P='$MKDIR_P'
13180 AWK='$AWK'
13181 test -n "\$AWK" || AWK=awk
13182 _ACEOF
13183
13184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13185 # The default lists apply if the user does not specify any file.
13186 ac_need_defaults=:
13187 while test $# != 0
13188 do
13189 case $1 in
13190 --*=*)
13191 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13192 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13193 ac_shift=:
13194 ;;
13195 *)
13196 ac_option=$1
13197 ac_optarg=$2
13198 ac_shift=shift
13199 ;;
13200 esac
13201
13202 case $ac_option in
13203 # Handling of the options.
13204 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13205 ac_cs_recheck=: ;;
13206 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13207 $as_echo "$ac_cs_version"; exit ;;
13208 --debug | --debu | --deb | --de | --d | -d )
13209 debug=: ;;
13210 --file | --fil | --fi | --f )
13211 $ac_shift
13212 case $ac_optarg in
13213 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13214 esac
13215 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13216 ac_need_defaults=false;;
13217 --header | --heade | --head | --hea )
13218 $ac_shift
13219 case $ac_optarg in
13220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13221 esac
13222 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13223 ac_need_defaults=false;;
13224 --he | --h)
13225 # Conflict between --help and --header
13226 { $as_echo "$as_me: error: ambiguous option: $1
13227 Try \`$0 --help' for more information." >&2
13228 { (exit 1); exit 1; }; };;
13229 --help | --hel | -h )
13230 $as_echo "$ac_cs_usage"; exit ;;
13231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13232 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13233 ac_cs_silent=: ;;
13234
13235 # This is an error.
13236 -*) { $as_echo "$as_me: error: unrecognized option: $1
13237 Try \`$0 --help' for more information." >&2
13238 { (exit 1); exit 1; }; } ;;
13239
13240 *) ac_config_targets="$ac_config_targets $1"
13241 ac_need_defaults=false ;;
13242
13243 esac
13244 shift
13245 done
13246
13247 ac_configure_extra_args=
13248
13249 if $ac_cs_silent; then
13250 exec 6>/dev/null
13251 ac_configure_extra_args="$ac_configure_extra_args --silent"
13252 fi
13253
13254 _ACEOF
13255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13256 if \$ac_cs_recheck; then
13257 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13258 shift
13259 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13260 CONFIG_SHELL='$SHELL'
13261 export CONFIG_SHELL
13262 exec "\$@"
13263 fi
13264
13265 _ACEOF
13266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13267 exec 5>>config.log
13268 {
13269 echo
13270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13271 ## Running $as_me. ##
13272 _ASBOX
13273 $as_echo "$ac_log"
13274 } >&5
13275
13276 _ACEOF
13277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13278 _ACEOF
13279
13280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13281
13282 # Handling of arguments.
13283 for ac_config_target in $ac_config_targets
13284 do
13285 case $ac_config_target in
13286 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
13287 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13288 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
13289 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
13290 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
13291 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
13292 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
13293 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
13294 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
13295 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
13296 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13297 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13298 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13299 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
13300 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
13301 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
13302 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
13303 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
13304 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
13305 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
13306 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
13307 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
13308 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
13309 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13310 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
13311 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
13312 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
13313 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13314 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
13315 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13316
13317 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13318 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13319 { (exit 1); exit 1; }; };;
13320 esac
13321 done
13322
13323
13324 # If the user did not use the arguments to specify the items to instantiate,
13325 # then the envvar interface is used. Set only those that are not.
13326 # We use the long form for the default assignment because of an extremely
13327 # bizarre bug on SunOS 4.1.3.
13328 if $ac_need_defaults; then
13329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13330 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13331 fi
13332
13333 # Have a temporary directory for convenience. Make it in the build tree
13334 # simply because there is no reason against having it here, and in addition,
13335 # creating and moving files from /tmp can sometimes cause problems.
13336 # Hook for its removal unless debugging.
13337 # Note that there is a small window in which the directory will not be cleaned:
13338 # after its creation but before its name has been assigned to `$tmp'.
13339 $debug ||
13340 {
13341 tmp=
13342 trap 'exit_status=$?
13343 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13344 ' 0
13345 trap '{ (exit 1); exit 1; }' 1 2 13 15
13346 }
13347 # Create a (secure) tmp directory for tmp files.
13348
13349 {
13350 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13351 test -n "$tmp" && test -d "$tmp"
13352 } ||
13353 {
13354 tmp=./conf$$-$RANDOM
13355 (umask 077 && mkdir "$tmp")
13356 } ||
13357 {
13358 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13359 { (exit 1); exit 1; }
13360 }
13361
13362 # Set up the scripts for CONFIG_FILES section.
13363 # No need to generate them if there are no CONFIG_FILES.
13364 # This happens for instance with `./config.status config.h'.
13365 if test -n "$CONFIG_FILES"; then
13366
13367
13368 ac_cr=' '
13369 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13370 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13371 ac_cs_awk_cr='\\r'
13372 else
13373 ac_cs_awk_cr=$ac_cr
13374 fi
13375
13376 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13377 _ACEOF
13378
13379
13380 {
13381 echo "cat >conf$$subs.awk <<_ACEOF" &&
13382 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13383 echo "_ACEOF"
13384 } >conf$$subs.sh ||
13385 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13386 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13387 { (exit 1); exit 1; }; }
13388 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13389 ac_delim='%!_!# '
13390 for ac_last_try in false false false false false :; do
13391 . ./conf$$subs.sh ||
13392 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13393 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13394 { (exit 1); exit 1; }; }
13395
13396 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13397 if test $ac_delim_n = $ac_delim_num; then
13398 break
13399 elif $ac_last_try; then
13400 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13401 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13402 { (exit 1); exit 1; }; }
13403 else
13404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13405 fi
13406 done
13407 rm -f conf$$subs.sh
13408
13409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13410 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13411 _ACEOF
13412 sed -n '
13413 h
13414 s/^/S["/; s/!.*/"]=/
13415 p
13416 g
13417 s/^[^!]*!//
13418 :repl
13419 t repl
13420 s/'"$ac_delim"'$//
13421 t delim
13422 :nl
13423 h
13424 s/\(.\{148\}\).*/\1/
13425 t more1
13426 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13427 p
13428 n
13429 b repl
13430 :more1
13431 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13432 p
13433 g
13434 s/.\{148\}//
13435 t nl
13436 :delim
13437 h
13438 s/\(.\{148\}\).*/\1/
13439 t more2
13440 s/["\\]/\\&/g; s/^/"/; s/$/"/
13441 p
13442 b
13443 :more2
13444 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13445 p
13446 g
13447 s/.\{148\}//
13448 t delim
13449 ' <conf$$subs.awk | sed '
13450 /^[^""]/{
13451 N
13452 s/\n//
13453 }
13454 ' >>$CONFIG_STATUS || ac_write_fail=1
13455 rm -f conf$$subs.awk
13456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13457 _ACAWK
13458 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13459 for (key in S) S_is_set[key] = 1
13460 FS = "\a"
13461
13462 }
13463 {
13464 line = $ 0
13465 nfields = split(line, field, "@")
13466 substed = 0
13467 len = length(field[1])
13468 for (i = 2; i < nfields; i++) {
13469 key = field[i]
13470 keylen = length(key)
13471 if (S_is_set[key]) {
13472 value = S[key]
13473 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13474 len += length(value) + length(field[++i])
13475 substed = 1
13476 } else
13477 len += 1 + keylen
13478 }
13479
13480 print line
13481 }
13482
13483 _ACAWK
13484 _ACEOF
13485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13486 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13487 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13488 else
13489 cat
13490 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13491 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13492 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13493 { (exit 1); exit 1; }; }
13494 _ACEOF
13495
13496 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13497 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13498 # trailing colons and then remove the whole line if VPATH becomes empty
13499 # (actually we leave an empty line to preserve line numbers).
13500 if test "x$srcdir" = x.; then
13501 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13502 s/:*\$(srcdir):*/:/
13503 s/:*\${srcdir}:*/:/
13504 s/:*@srcdir@:*/:/
13505 s/^\([^=]*=[ ]*\):*/\1/
13506 s/:*$//
13507 s/^[^=]*=[ ]*$//
13508 }'
13509 fi
13510
13511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13512 fi # test -n "$CONFIG_FILES"
13513
13514 # Set up the scripts for CONFIG_HEADERS section.
13515 # No need to generate them if there are no CONFIG_HEADERS.
13516 # This happens for instance with `./config.status Makefile'.
13517 if test -n "$CONFIG_HEADERS"; then
13518 cat >"$tmp/defines.awk" <<\_ACAWK ||
13519 BEGIN {
13520 _ACEOF
13521
13522 # Transform confdefs.h into an awk script `defines.awk', embedded as
13523 # here-document in config.status, that substitutes the proper values into
13524 # config.h.in to produce config.h.
13525
13526 # Create a delimiter string that does not exist in confdefs.h, to ease
13527 # handling of long lines.
13528 ac_delim='%!_!# '
13529 for ac_last_try in false false :; do
13530 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13531 if test -z "$ac_t"; then
13532 break
13533 elif $ac_last_try; then
13534 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13535 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13536 { (exit 1); exit 1; }; }
13537 else
13538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13539 fi
13540 done
13541
13542 # For the awk script, D is an array of macro values keyed by name,
13543 # likewise P contains macro parameters if any. Preserve backslash
13544 # newline sequences.
13545
13546 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13547 sed -n '
13548 s/.\{148\}/&'"$ac_delim"'/g
13549 t rset
13550 :rset
13551 s/^[ ]*#[ ]*define[ ][ ]*/ /
13552 t def
13553 d
13554 :def
13555 s/\\$//
13556 t bsnl
13557 s/["\\]/\\&/g
13558 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13559 D["\1"]=" \3"/p
13560 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13561 d
13562 :bsnl
13563 s/["\\]/\\&/g
13564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13565 D["\1"]=" \3\\\\\\n"\\/p
13566 t cont
13567 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13568 t cont
13569 d
13570 :cont
13571 n
13572 s/.\{148\}/&'"$ac_delim"'/g
13573 t clear
13574 :clear
13575 s/\\$//
13576 t bsnlc
13577 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13578 d
13579 :bsnlc
13580 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13581 b cont
13582 ' <confdefs.h | sed '
13583 s/'"$ac_delim"'/"\\\
13584 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13585
13586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13587 for (key in D) D_is_set[key] = 1
13588 FS = "\a"
13589 }
13590 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13591 line = \$ 0
13592 split(line, arg, " ")
13593 if (arg[1] == "#") {
13594 defundef = arg[2]
13595 mac1 = arg[3]
13596 } else {
13597 defundef = substr(arg[1], 2)
13598 mac1 = arg[2]
13599 }
13600 split(mac1, mac2, "(") #)
13601 macro = mac2[1]
13602 prefix = substr(line, 1, index(line, defundef) - 1)
13603 if (D_is_set[macro]) {
13604 # Preserve the white space surrounding the "#".
13605 print prefix "define", macro P[macro] D[macro]
13606 next
13607 } else {
13608 # Replace #undef with comments. This is necessary, for example,
13609 # in the case of _POSIX_SOURCE, which is predefined and required
13610 # on some systems where configure will not decide to define it.
13611 if (defundef == "undef") {
13612 print "/*", prefix defundef, macro, "*/"
13613 next
13614 }
13615 }
13616 }
13617 { print }
13618 _ACAWK
13619 _ACEOF
13620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13621 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13622 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13623 { (exit 1); exit 1; }; }
13624 fi # test -n "$CONFIG_HEADERS"
13625
13626
13627 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
13628 shift
13629 for ac_tag
13630 do
13631 case $ac_tag in
13632 :[FHLC]) ac_mode=$ac_tag; continue;;
13633 esac
13634 case $ac_mode$ac_tag in
13635 :[FHL]*:*);;
13636 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13637 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13638 { (exit 1); exit 1; }; };;
13639 :[FH]-) ac_tag=-:-;;
13640 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13641 esac
13642 ac_save_IFS=$IFS
13643 IFS=:
13644 set x $ac_tag
13645 IFS=$ac_save_IFS
13646 shift
13647 ac_file=$1
13648 shift
13649
13650 case $ac_mode in
13651 :L) ac_source=$1;;
13652 :[FH])
13653 ac_file_inputs=
13654 for ac_f
13655 do
13656 case $ac_f in
13657 -) ac_f="$tmp/stdin";;
13658 *) # Look for the file first in the build tree, then in the source tree
13659 # (if the path is not absolute). The absolute path cannot be DOS-style,
13660 # because $ac_f cannot contain `:'.
13661 test -f "$ac_f" ||
13662 case $ac_f in
13663 [\\/$]*) false;;
13664 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13665 esac ||
13666 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13667 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13668 { (exit 1); exit 1; }; };;
13669 esac
13670 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13671 ac_file_inputs="$ac_file_inputs '$ac_f'"
13672 done
13673
13674 # Let's still pretend it is `configure' which instantiates (i.e., don't
13675 # use $as_me), people would be surprised to read:
13676 # /* config.h. Generated by config.status. */
13677 configure_input='Generated from '`
13678 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13679 `' by configure.'
13680 if test x"$ac_file" != x-; then
13681 configure_input="$ac_file. $configure_input"
13682 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13683 $as_echo "$as_me: creating $ac_file" >&6;}
13684 fi
13685 # Neutralize special characters interpreted by sed in replacement strings.
13686 case $configure_input in #(
13687 *\&* | *\|* | *\\* )
13688 ac_sed_conf_input=`$as_echo "$configure_input" |
13689 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13690 *) ac_sed_conf_input=$configure_input;;
13691 esac
13692
13693 case $ac_tag in
13694 *:-:* | *:-) cat >"$tmp/stdin" \
13695 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13696 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13697 { (exit 1); exit 1; }; } ;;
13698 esac
13699 ;;
13700 esac
13701
13702 ac_dir=`$as_dirname -- "$ac_file" ||
13703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13704 X"$ac_file" : 'X\(//\)[^/]' \| \
13705 X"$ac_file" : 'X\(//\)$' \| \
13706 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13707 $as_echo X"$ac_file" |
13708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13709 s//\1/
13710 q
13711 }
13712 /^X\(\/\/\)[^/].*/{
13713 s//\1/
13714 q
13715 }
13716 /^X\(\/\/\)$/{
13717 s//\1/
13718 q
13719 }
13720 /^X\(\/\).*/{
13721 s//\1/
13722 q
13723 }
13724 s/.*/./; q'`
13725 { as_dir="$ac_dir"
13726 case $as_dir in #(
13727 -*) as_dir=./$as_dir;;
13728 esac
13729 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13730 as_dirs=
13731 while :; do
13732 case $as_dir in #(
13733 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13734 *) as_qdir=$as_dir;;
13735 esac
13736 as_dirs="'$as_qdir' $as_dirs"
13737 as_dir=`$as_dirname -- "$as_dir" ||
13738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13739 X"$as_dir" : 'X\(//\)[^/]' \| \
13740 X"$as_dir" : 'X\(//\)$' \| \
13741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13742 $as_echo X"$as_dir" |
13743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13744 s//\1/
13745 q
13746 }
13747 /^X\(\/\/\)[^/].*/{
13748 s//\1/
13749 q
13750 }
13751 /^X\(\/\/\)$/{
13752 s//\1/
13753 q
13754 }
13755 /^X\(\/\).*/{
13756 s//\1/
13757 q
13758 }
13759 s/.*/./; q'`
13760 test -d "$as_dir" && break
13761 done
13762 test -z "$as_dirs" || eval "mkdir $as_dirs"
13763 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13764 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13765 { (exit 1); exit 1; }; }; }
13766 ac_builddir=.
13767
13768 case "$ac_dir" in
13769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13770 *)
13771 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13772 # A ".." for each directory in $ac_dir_suffix.
13773 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13774 case $ac_top_builddir_sub in
13775 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13776 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13777 esac ;;
13778 esac
13779 ac_abs_top_builddir=$ac_pwd
13780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13781 # for backward compatibility:
13782 ac_top_builddir=$ac_top_build_prefix
13783
13784 case $srcdir in
13785 .) # We are building in place.
13786 ac_srcdir=.
13787 ac_top_srcdir=$ac_top_builddir_sub
13788 ac_abs_top_srcdir=$ac_pwd ;;
13789 [\\/]* | ?:[\\/]* ) # Absolute name.
13790 ac_srcdir=$srcdir$ac_dir_suffix;
13791 ac_top_srcdir=$srcdir
13792 ac_abs_top_srcdir=$srcdir ;;
13793 *) # Relative name.
13794 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13795 ac_top_srcdir=$ac_top_build_prefix$srcdir
13796 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13797 esac
13798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13799
13800
13801 case $ac_mode in
13802 :F)
13803 #
13804 # CONFIG_FILE
13805 #
13806
13807 case $INSTALL in
13808 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13809 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13810 esac
13811 ac_MKDIR_P=$MKDIR_P
13812 case $MKDIR_P in
13813 [\\/$]* | ?:[\\/]* ) ;;
13814 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13815 esac
13816 _ACEOF
13817
13818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13819 # If the template does not know about datarootdir, expand it.
13820 # FIXME: This hack should be removed a few years after 2.60.
13821 ac_datarootdir_hack=; ac_datarootdir_seen=
13822
13823 ac_sed_dataroot='
13824 /datarootdir/ {
13825 p
13826 q
13827 }
13828 /@datadir@/p
13829 /@docdir@/p
13830 /@infodir@/p
13831 /@localedir@/p
13832 /@mandir@/p
13833 '
13834 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13835 *datarootdir*) ac_datarootdir_seen=yes;;
13836 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13837 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13838 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13839 _ACEOF
13840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13841 ac_datarootdir_hack='
13842 s&@datadir@&$datadir&g
13843 s&@docdir@&$docdir&g
13844 s&@infodir@&$infodir&g
13845 s&@localedir@&$localedir&g
13846 s&@mandir@&$mandir&g
13847 s&\\\${datarootdir}&$datarootdir&g' ;;
13848 esac
13849 _ACEOF
13850
13851 # Neutralize VPATH when `$srcdir' = `.'.
13852 # Shell code in configure.ac might set extrasub.
13853 # FIXME: do we really want to maintain this feature?
13854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13855 ac_sed_extra="$ac_vpsub
13856 $extrasub
13857 _ACEOF
13858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13859 :t
13860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13861 s|@configure_input@|$ac_sed_conf_input|;t t
13862 s&@top_builddir@&$ac_top_builddir_sub&;t t
13863 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13864 s&@srcdir@&$ac_srcdir&;t t
13865 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13866 s&@top_srcdir@&$ac_top_srcdir&;t t
13867 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13868 s&@builddir@&$ac_builddir&;t t
13869 s&@abs_builddir@&$ac_abs_builddir&;t t
13870 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13871 s&@INSTALL@&$ac_INSTALL&;t t
13872 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13873 $ac_datarootdir_hack
13874 "
13875 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13876 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13877 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13878 { (exit 1); exit 1; }; }
13879
13880 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13881 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13882 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13883 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13884 which seems to be undefined. Please make sure it is defined." >&5
13885 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13886 which seems to be undefined. Please make sure it is defined." >&2;}
13887
13888 rm -f "$tmp/stdin"
13889 case $ac_file in
13890 -) cat "$tmp/out" && rm -f "$tmp/out";;
13891 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13892 esac \
13893 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13894 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13895 { (exit 1); exit 1; }; }
13896 ;;
13897 :H)
13898 #
13899 # CONFIG_HEADER
13900 #
13901 if test x"$ac_file" != x-; then
13902 {
13903 $as_echo "/* $configure_input */" \
13904 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13905 } >"$tmp/config.h" \
13906 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13907 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13908 { (exit 1); exit 1; }; }
13909 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13910 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13911 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13912 else
13913 rm -f "$ac_file"
13914 mv "$tmp/config.h" "$ac_file" \
13915 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13916 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13917 { (exit 1); exit 1; }; }
13918 fi
13919 else
13920 $as_echo "/* $configure_input */" \
13921 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13922 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13923 $as_echo "$as_me: error: could not create -" >&2;}
13924 { (exit 1); exit 1; }; }
13925 fi
13926 ;;
13927
13928
13929 esac
13930
13931 done # for ac_tag
13932
13933
13934 { (exit 0); exit 0; }
13935 _ACEOF
13936 chmod +x $CONFIG_STATUS
13937 ac_clean_files=$ac_clean_files_save
13938
13939 test $ac_write_fail = 0 ||
13940 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13941 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13942 { (exit 1); exit 1; }; }
13943
13944
13945 # configure is writing to config.log, and then calls config.status.
13946 # config.status does its own redirection, appending to config.log.
13947 # Unfortunately, on DOS this fails, as config.log is still kept open
13948 # by configure, so config.status won't be able to write to it; its
13949 # output is simply discarded. So we exec the FD to /dev/null,
13950 # effectively closing config.log, so it can be properly (re)opened and
13951 # appended to by config.status. When coming back to configure, we
13952 # need to make the FD available again.
13953 if test "$no_create" != yes; then
13954 ac_cs_success=:
13955 ac_config_status_args=
13956 test "$silent" = yes &&
13957 ac_config_status_args="$ac_config_status_args --quiet"
13958 exec 5>/dev/null
13959 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13960 exec 5>>config.log
13961 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13962 # would make configure fail if this is the last instruction.
13963 $ac_cs_success || { (exit 1); exit 1; }
13964 fi
13965 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13966 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13967 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13968 fi
13969
13970
13971 if test x$ODIRECT != xyes; then
13972 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13973 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
13974 fi
This page took 0.748648 seconds and 6 git commands to generate.