]> sourceware.org Git - lvm2.git/blob - configure
autoreconf
[lvm2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="lib/device/dev-cache.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_default_prefix=/usr
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 target
663 target_cpu
664 target_vendor
665 target_os
666 SED
667 AWK
668 CC
669 CFLAGS
670 LDFLAGS
671 CPPFLAGS
672 ac_ct_CC
673 EXEEXT
674 OBJEXT
675 CPP
676 GREP
677 EGREP
678 INSTALL_PROGRAM
679 INSTALL_SCRIPT
680 INSTALL_DATA
681 LN_S
682 SET_MAKE
683 RANLIB
684 CFLOW_CMD
685 CSCOPE_CMD
686 ALLOCA
687 LIBOBJS
688 POW_LIB
689 LCOV
690 GENHTML
691 LVM2CMD_LIB
692 MSGFMT
693 MODPROBE_CMD
694 BUILD_DMEVENTD
695 CLDFLAGS
696 CLDNOWHOLEARCHIVE
697 CLDWHOLEARCHIVE
698 CLUSTER
699 CLVMD
700 CMDLIB
701 COPTIMISE_FLAG
702 DEBUG
703 DEVMAPPER
704 DMDIR
705 DMEVENTD
706 DM_COMPAT
707 DM_DEVICE_GID
708 DM_DEVICE_MODE
709 DM_DEVICE_UID
710 DM_IOCTLS
711 DM_LIB_VERSION
712 FSADM
713 GROUP
714 HAVE_LIBDL
715 HAVE_REALTIME
716 HAVE_SELINUX
717 INTL
718 INTL_PACKAGE
719 JOBS
720 LDDEPS
721 LIB_SUFFIX
722 LOCALEDIR
723 LVM1
724 LVM1_FALLBACK
725 CONFDIR
726 LVM_VERSION
727 MIRRORS
728 OWNER
729 PKGCONFIG
730 POOL
731 SNAPSHOTS
732 STATICDIR
733 STATIC_LINK
734 LIB_PTHREAD
735 interface
736 kerneldir
737 missingkernel
738 kernelvsn
739 tmpdir
740 usrlibdir
741 usrsbindir
742 LTLIBOBJS'
743 ac_subst_files=''
744 ac_precious_vars='build_alias
745 host_alias
746 target_alias
747 CC
748 CFLAGS
749 LDFLAGS
750 LIBS
751 CPPFLAGS
752 CPP'
753
754
755 # Initialize some variables set by options.
756 ac_init_help=
757 ac_init_version=false
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
760 cache_file=/dev/null
761 exec_prefix=NONE
762 no_create=
763 no_recursion=
764 prefix=NONE
765 program_prefix=NONE
766 program_suffix=NONE
767 program_transform_name=s,x,x,
768 silent=
769 site=
770 srcdir=
771 verbose=
772 x_includes=NONE
773 x_libraries=NONE
774
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE}'
792 infodir='${datarootdir}/info'
793 htmldir='${docdir}'
794 dvidir='${docdir}'
795 pdfdir='${docdir}'
796 psdir='${docdir}'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
800
801 ac_prev=
802 ac_dashdash=
803 for ac_option
804 do
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\$ac_option
808 ac_prev=
809 continue
810 fi
811
812 case $ac_option in
813 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 *) ac_optarg=yes ;;
815 esac
816
817 # Accept the important Cygnus configure options, so we can diagnose typos.
818
819 case $ac_dashdash$ac_option in
820 --)
821 ac_dashdash=yes ;;
822
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 bindir=$ac_optarg ;;
827
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
832
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
839
840 --config-cache | -C)
841 cache_file=config.cache ;;
842
843 -datadir | --datadir | --datadi | --datad)
844 ac_prev=datadir ;;
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
847
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
854
855 -disable-* | --disable-*)
856 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_$ac_feature=no ;;
863
864 -docdir | --docdir | --docdi | --doc | --do)
865 ac_prev=docdir ;;
866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867 docdir=$ac_optarg ;;
868
869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870 ac_prev=dvidir ;;
871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872 dvidir=$ac_optarg ;;
873
874 -enable-* | --enable-*)
875 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
879 { (exit 1); exit 1; }; }
880 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
881 eval enable_$ac_feature=\$ac_optarg ;;
882
883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
885 | --exec | --exe | --ex)
886 ac_prev=exec_prefix ;;
887 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
888 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
889 | --exec=* | --exe=* | --ex=*)
890 exec_prefix=$ac_optarg ;;
891
892 -gas | --gas | --ga | --g)
893 # Obsolete; use --with-gas.
894 with_gas=yes ;;
895
896 -help | --help | --hel | --he | -h)
897 ac_init_help=long ;;
898 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
899 ac_init_help=recursive ;;
900 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
901 ac_init_help=short ;;
902
903 -host | --host | --hos | --ho)
904 ac_prev=host_alias ;;
905 -host=* | --host=* | --hos=* | --ho=*)
906 host_alias=$ac_optarg ;;
907
908 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
909 ac_prev=htmldir ;;
910 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
911 | --ht=*)
912 htmldir=$ac_optarg ;;
913
914 -includedir | --includedir | --includedi | --included | --include \
915 | --includ | --inclu | --incl | --inc)
916 ac_prev=includedir ;;
917 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
918 | --includ=* | --inclu=* | --incl=* | --inc=*)
919 includedir=$ac_optarg ;;
920
921 -infodir | --infodir | --infodi | --infod | --info | --inf)
922 ac_prev=infodir ;;
923 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
924 infodir=$ac_optarg ;;
925
926 -libdir | --libdir | --libdi | --libd)
927 ac_prev=libdir ;;
928 -libdir=* | --libdir=* | --libdi=* | --libd=*)
929 libdir=$ac_optarg ;;
930
931 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
932 | --libexe | --libex | --libe)
933 ac_prev=libexecdir ;;
934 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
935 | --libexe=* | --libex=* | --libe=*)
936 libexecdir=$ac_optarg ;;
937
938 -localedir | --localedir | --localedi | --localed | --locale)
939 ac_prev=localedir ;;
940 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941 localedir=$ac_optarg ;;
942
943 -localstatedir | --localstatedir | --localstatedi | --localstated \
944 | --localstate | --localstat | --localsta | --localst | --locals)
945 ac_prev=localstatedir ;;
946 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
947 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
948 localstatedir=$ac_optarg ;;
949
950 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
951 ac_prev=mandir ;;
952 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
953 mandir=$ac_optarg ;;
954
955 -nfp | --nfp | --nf)
956 # Obsolete; use --without-fp.
957 with_fp=no ;;
958
959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
960 | --no-cr | --no-c | -n)
961 no_create=yes ;;
962
963 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
965 no_recursion=yes ;;
966
967 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
968 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
969 | --oldin | --oldi | --old | --ol | --o)
970 ac_prev=oldincludedir ;;
971 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
972 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
973 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
974 oldincludedir=$ac_optarg ;;
975
976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
977 ac_prev=prefix ;;
978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979 prefix=$ac_optarg ;;
980
981 -program-prefix | --program-prefix | --program-prefi | --program-pref \
982 | --program-pre | --program-pr | --program-p)
983 ac_prev=program_prefix ;;
984 -program-prefix=* | --program-prefix=* | --program-prefi=* \
985 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
986 program_prefix=$ac_optarg ;;
987
988 -program-suffix | --program-suffix | --program-suffi | --program-suff \
989 | --program-suf | --program-su | --program-s)
990 ac_prev=program_suffix ;;
991 -program-suffix=* | --program-suffix=* | --program-suffi=* \
992 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
993 program_suffix=$ac_optarg ;;
994
995 -program-transform-name | --program-transform-name \
996 | --program-transform-nam | --program-transform-na \
997 | --program-transform-n | --program-transform- \
998 | --program-transform | --program-transfor \
999 | --program-transfo | --program-transf \
1000 | --program-trans | --program-tran \
1001 | --progr-tra | --program-tr | --program-t)
1002 ac_prev=program_transform_name ;;
1003 -program-transform-name=* | --program-transform-name=* \
1004 | --program-transform-nam=* | --program-transform-na=* \
1005 | --program-transform-n=* | --program-transform-=* \
1006 | --program-transform=* | --program-transfor=* \
1007 | --program-transfo=* | --program-transf=* \
1008 | --program-trans=* | --program-tran=* \
1009 | --progr-tra=* | --program-tr=* | --program-t=*)
1010 program_transform_name=$ac_optarg ;;
1011
1012 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1013 ac_prev=pdfdir ;;
1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015 pdfdir=$ac_optarg ;;
1016
1017 -psdir | --psdir | --psdi | --psd | --ps)
1018 ac_prev=psdir ;;
1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1020 psdir=$ac_optarg ;;
1021
1022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023 | -silent | --silent | --silen | --sile | --sil)
1024 silent=yes ;;
1025
1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027 ac_prev=sbindir ;;
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029 | --sbi=* | --sb=*)
1030 sbindir=$ac_optarg ;;
1031
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1035 | --sha | --sh)
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040 | --sha=* | --sh=*)
1041 sharedstatedir=$ac_optarg ;;
1042
1043 -site | --site | --sit)
1044 ac_prev=site ;;
1045 -site=* | --site=* | --sit=*)
1046 site=$ac_optarg ;;
1047
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049 ac_prev=srcdir ;;
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051 srcdir=$ac_optarg ;;
1052
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058 sysconfdir=$ac_optarg ;;
1059
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
1061 ac_prev=target_alias ;;
1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063 target_alias=$ac_optarg ;;
1064
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066 verbose=yes ;;
1067
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
1070
1071 -with-* | --with-*)
1072 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid package name: $ac_package" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1078 eval with_$ac_package=\$ac_optarg ;;
1079
1080 -without-* | --without-*)
1081 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid package name: $ac_package" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1087 eval with_$ac_package=no ;;
1088
1089 --x)
1090 # Obsolete; use --with-x.
1091 with_x=yes ;;
1092
1093 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1094 | --x-incl | --x-inc | --x-in | --x-i)
1095 ac_prev=x_includes ;;
1096 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1097 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1098 x_includes=$ac_optarg ;;
1099
1100 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1101 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1102 ac_prev=x_libraries ;;
1103 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1104 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1105 x_libraries=$ac_optarg ;;
1106
1107 -*) { echo "$as_me: error: unrecognized option: $ac_option
1108 Try \`$0 --help' for more information." >&2
1109 { (exit 1); exit 1; }; }
1110 ;;
1111
1112 *=*)
1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1116 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1117 { (exit 1); exit 1; }; }
1118 eval $ac_envvar=\$ac_optarg
1119 export $ac_envvar ;;
1120
1121 *)
1122 # FIXME: should be removed in autoconf 3.0.
1123 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1125 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1127 ;;
1128
1129 esac
1130 done
1131
1132 if test -n "$ac_prev"; then
1133 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1134 { echo "$as_me: error: missing argument to $ac_option" >&2
1135 { (exit 1); exit 1; }; }
1136 fi
1137
1138 # Be sure to have absolute directory names.
1139 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
1143 do
1144 eval ac_val=\$$ac_var
1145 case $ac_val in
1146 [\\/$]* | ?:[\\/]* ) continue;;
1147 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1148 esac
1149 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1150 { (exit 1); exit 1; }; }
1151 done
1152
1153 # There might be people who depend on the old broken behavior: `$host'
1154 # used to hold the argument of --host etc.
1155 # FIXME: To remove some day.
1156 build=$build_alias
1157 host=$host_alias
1158 target=$target_alias
1159
1160 # FIXME: To remove some day.
1161 if test "x$host_alias" != x; then
1162 if test "x$build_alias" = x; then
1163 cross_compiling=maybe
1164 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1165 If a cross compiler is detected then cross compile mode will be used." >&2
1166 elif test "x$build_alias" != "x$host_alias"; then
1167 cross_compiling=yes
1168 fi
1169 fi
1170
1171 ac_tool_prefix=
1172 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1173
1174 test "$silent" = yes && exec 6>/dev/null
1175
1176
1177 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1178 ac_ls_di=`ls -di .` &&
1179 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1180 { echo "$as_me: error: Working directory cannot be determined" >&2
1181 { (exit 1); exit 1; }; }
1182 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1183 { echo "$as_me: error: pwd does not report name of working directory" >&2
1184 { (exit 1); exit 1; }; }
1185
1186
1187 # Find the source files, if location was not specified.
1188 if test -z "$srcdir"; then
1189 ac_srcdir_defaulted=yes
1190 # Try the directory containing this script, then the parent directory.
1191 ac_confdir=`$as_dirname -- "$0" ||
1192 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193 X"$0" : 'X\(//\)[^/]' \| \
1194 X"$0" : 'X\(//\)$' \| \
1195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1196 echo X"$0" |
1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 s//\1/
1199 q
1200 }
1201 /^X\(\/\/\)[^/].*/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\/\)$/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\).*/{
1210 s//\1/
1211 q
1212 }
1213 s/.*/./; q'`
1214 srcdir=$ac_confdir
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 srcdir=..
1217 fi
1218 else
1219 ac_srcdir_defaulted=no
1220 fi
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1223 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1224 { (exit 1); exit 1; }; }
1225 fi
1226 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1227 ac_abs_confdir=`(
1228 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1229 { (exit 1); exit 1; }; }
1230 pwd)`
1231 # When building in place, set srcdir=.
1232 if test "$ac_abs_confdir" = "$ac_pwd"; then
1233 srcdir=.
1234 fi
1235 # Remove unnecessary trailing slashes from srcdir.
1236 # Double slashes in file names in object file debugging info
1237 # mess up M-x gdb in Emacs.
1238 case $srcdir in
1239 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1240 esac
1241 for ac_var in $ac_precious_vars; do
1242 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_${ac_var}_value=\$${ac_var}
1244 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1246 done
1247
1248 #
1249 # Report the --help message.
1250 #
1251 if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1254 cat <<_ACEOF
1255 \`configure' configures this package to adapt to many kinds of systems.
1256
1257 Usage: $0 [OPTION]... [VAR=VALUE]...
1258
1259 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260 VAR=VALUE. See below for descriptions of some of the useful variables.
1261
1262 Defaults for the options are specified in brackets.
1263
1264 Configuration:
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
1269 -q, --quiet, --silent do not print \`checking...' messages
1270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1274
1275 Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
1277 [$ac_default_prefix]
1278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1279 [PREFIX]
1280
1281 By default, \`make install' will install all the files in
1282 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284 for instance \`--prefix=\$HOME'.
1285
1286 For better control, use the options below.
1287
1288 Fine tuning of the installation directories:
1289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
1303 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
1308 _ACEOF
1309
1310 cat <<\_ACEOF
1311
1312 System types:
1313 --build=BUILD configure for building on BUILD [guessed]
1314 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1315 --target=TARGET configure for building compilers for TARGET [HOST]
1316 _ACEOF
1317 fi
1318
1319 if test -n "$ac_init_help"; then
1320
1321 cat <<\_ACEOF
1322
1323 Optional Features:
1324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1326 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1327 device-mapper is missing from the kernel
1328 --disable-readline Disable readline support
1329 --disable-realtime Disable realtime clock support
1330 --enable-debug Enable debugging
1331 --enable-profiling Gather gcov profiling data
1332 --disable-devmapper Disable LVM2 device-mapper interaction
1333 --enable-compat Enable support for old device-mapper versions
1334 --disable-driver Disable calls to device-mapper in the kernel
1335 --disable-o_direct Disable O_DIRECT
1336 --enable-cmdlib Build shared command library
1337 --enable-pkgconfig Install pkgconfig support
1338 --enable-fsadm Enable fsadm
1339 --enable-dmeventd Enable the device-mapper event daemon
1340 --enable-static_link Use this to link the tools to their libraries
1341 statically. Default is dynamic linking
1342 --disable-selinux Disable selinux support
1343 --enable-nls Enable Native Language Support
1344
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --with-user=USER Set the owner of installed files [USER=root]
1349 --with-group=GROUP Set the group owner of installed files [GROUP=root]
1350 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1351 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1352 TYPE=internal
1353 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1354 TYPE=internal
1355 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1356 TYPE=internal
1357 --with-snapshots=TYPE Snapshot support: internal/shared/none
1358 TYPE=internal
1359 --with-mirrors=TYPE Mirror support: internal/shared/none
1360 TYPE=internal
1361 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
1362 TYPE=none
1363 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1364 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1365 --with-confdir=DIR Configuration files in DIR /etc
1366 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
1367 --with-dmdir=DIR Build against device-mapper source tree in DIR
1368 --with-usrlibdir=DIR
1369 --with-usrsbindir=DIR
1370 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1371 --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd]
1372 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
1373
1374 Some influential environment variables:
1375 CC C compiler command
1376 CFLAGS C compiler flags
1377 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1378 nonstandard directory <lib dir>
1379 LIBS libraries to pass to the linker, e.g. -l<library>
1380 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1381 you have headers in a nonstandard directory <include dir>
1382 CPP C preprocessor
1383
1384 Use these variables to override the choices made by `configure' or to help
1385 it to find libraries and programs with nonstandard names/locations.
1386
1387 _ACEOF
1388 ac_status=$?
1389 fi
1390
1391 if test "$ac_init_help" = "recursive"; then
1392 # If there are subdirs, report their specific --help.
1393 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1394 test -d "$ac_dir" || continue
1395 ac_builddir=.
1396
1397 case "$ac_dir" in
1398 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 *)
1400 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1401 # A ".." for each directory in $ac_dir_suffix.
1402 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1403 case $ac_top_builddir_sub in
1404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1406 esac ;;
1407 esac
1408 ac_abs_top_builddir=$ac_pwd
1409 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1410 # for backward compatibility:
1411 ac_top_builddir=$ac_top_build_prefix
1412
1413 case $srcdir in
1414 .) # We are building in place.
1415 ac_srcdir=.
1416 ac_top_srcdir=$ac_top_builddir_sub
1417 ac_abs_top_srcdir=$ac_pwd ;;
1418 [\\/]* | ?:[\\/]* ) # Absolute name.
1419 ac_srcdir=$srcdir$ac_dir_suffix;
1420 ac_top_srcdir=$srcdir
1421 ac_abs_top_srcdir=$srcdir ;;
1422 *) # Relative name.
1423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1424 ac_top_srcdir=$ac_top_build_prefix$srcdir
1425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1426 esac
1427 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1428
1429 cd "$ac_dir" || { ac_status=$?; continue; }
1430 # Check for guested configure.
1431 if test -f "$ac_srcdir/configure.gnu"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1434 elif test -f "$ac_srcdir/configure"; then
1435 echo &&
1436 $SHELL "$ac_srcdir/configure" --help=recursive
1437 else
1438 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1439 fi || ac_status=$?
1440 cd "$ac_pwd" || { ac_status=$?; break; }
1441 done
1442 fi
1443
1444 test -n "$ac_init_help" && exit $ac_status
1445 if $ac_init_version; then
1446 cat <<\_ACEOF
1447 configure
1448 generated by GNU Autoconf 2.61
1449
1450 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1451 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1452 This configure script is free software; the Free Software Foundation
1453 gives unlimited permission to copy, distribute and modify it.
1454 _ACEOF
1455 exit
1456 fi
1457 cat >config.log <<_ACEOF
1458 This file contains any messages produced by compilers while
1459 running configure, to aid debugging if configure makes a mistake.
1460
1461 It was created by $as_me, which was
1462 generated by GNU Autoconf 2.61. Invocation command line was
1463
1464 $ $0 $@
1465
1466 _ACEOF
1467 exec 5>>config.log
1468 {
1469 cat <<_ASUNAME
1470 ## --------- ##
1471 ## Platform. ##
1472 ## --------- ##
1473
1474 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1475 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1476 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1477 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1478 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1479
1480 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1481 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1482
1483 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1484 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1485 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1486 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1487 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1488 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1489 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1490
1491 _ASUNAME
1492
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 for as_dir in $PATH
1495 do
1496 IFS=$as_save_IFS
1497 test -z "$as_dir" && as_dir=.
1498 echo "PATH: $as_dir"
1499 done
1500 IFS=$as_save_IFS
1501
1502 } >&5
1503
1504 cat >&5 <<_ACEOF
1505
1506
1507 ## ----------- ##
1508 ## Core tests. ##
1509 ## ----------- ##
1510
1511 _ACEOF
1512
1513
1514 # Keep a trace of the command line.
1515 # Strip out --no-create and --no-recursion so they do not pile up.
1516 # Strip out --silent because we don't want to record it for future runs.
1517 # Also quote any args containing shell meta-characters.
1518 # Make two passes to allow for proper duplicate-argument suppression.
1519 ac_configure_args=
1520 ac_configure_args0=
1521 ac_configure_args1=
1522 ac_must_keep_next=false
1523 for ac_pass in 1 2
1524 do
1525 for ac_arg
1526 do
1527 case $ac_arg in
1528 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1530 | -silent | --silent | --silen | --sile | --sil)
1531 continue ;;
1532 *\'*)
1533 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1534 esac
1535 case $ac_pass in
1536 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1537 2)
1538 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1539 if test $ac_must_keep_next = true; then
1540 ac_must_keep_next=false # Got value, back to normal.
1541 else
1542 case $ac_arg in
1543 *=* | --config-cache | -C | -disable-* | --disable-* \
1544 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1545 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1546 | -with-* | --with-* | -without-* | --without-* | --x)
1547 case "$ac_configure_args0 " in
1548 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1549 esac
1550 ;;
1551 -* ) ac_must_keep_next=true ;;
1552 esac
1553 fi
1554 ac_configure_args="$ac_configure_args '$ac_arg'"
1555 ;;
1556 esac
1557 done
1558 done
1559 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1560 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1561
1562 # When interrupted or exit'd, cleanup temporary files, and complete
1563 # config.log. We remove comments because anyway the quotes in there
1564 # would cause problems or look ugly.
1565 # WARNING: Use '\'' to represent an apostrophe within the trap.
1566 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1567 trap 'exit_status=$?
1568 # Save into config.log some information that might help in debugging.
1569 {
1570 echo
1571
1572 cat <<\_ASBOX
1573 ## ---------------- ##
1574 ## Cache variables. ##
1575 ## ---------------- ##
1576 _ASBOX
1577 echo
1578 # The following way of writing the cache mishandles newlines in values,
1579 (
1580 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1581 eval ac_val=\$$ac_var
1582 case $ac_val in #(
1583 *${as_nl}*)
1584 case $ac_var in #(
1585 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1586 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1587 esac
1588 case $ac_var in #(
1589 _ | IFS | as_nl) ;; #(
1590 *) $as_unset $ac_var ;;
1591 esac ;;
1592 esac
1593 done
1594 (set) 2>&1 |
1595 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1596 *${as_nl}ac_space=\ *)
1597 sed -n \
1598 "s/'\''/'\''\\\\'\'''\''/g;
1599 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1600 ;; #(
1601 *)
1602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1603 ;;
1604 esac |
1605 sort
1606 )
1607 echo
1608
1609 cat <<\_ASBOX
1610 ## ----------------- ##
1611 ## Output variables. ##
1612 ## ----------------- ##
1613 _ASBOX
1614 echo
1615 for ac_var in $ac_subst_vars
1616 do
1617 eval ac_val=\$$ac_var
1618 case $ac_val in
1619 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1620 esac
1621 echo "$ac_var='\''$ac_val'\''"
1622 done | sort
1623 echo
1624
1625 if test -n "$ac_subst_files"; then
1626 cat <<\_ASBOX
1627 ## ------------------- ##
1628 ## File substitutions. ##
1629 ## ------------------- ##
1630 _ASBOX
1631 echo
1632 for ac_var in $ac_subst_files
1633 do
1634 eval ac_val=\$$ac_var
1635 case $ac_val in
1636 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1637 esac
1638 echo "$ac_var='\''$ac_val'\''"
1639 done | sort
1640 echo
1641 fi
1642
1643 if test -s confdefs.h; then
1644 cat <<\_ASBOX
1645 ## ----------- ##
1646 ## confdefs.h. ##
1647 ## ----------- ##
1648 _ASBOX
1649 echo
1650 cat confdefs.h
1651 echo
1652 fi
1653 test "$ac_signal" != 0 &&
1654 echo "$as_me: caught signal $ac_signal"
1655 echo "$as_me: exit $exit_status"
1656 } >&5
1657 rm -f core *.core core.conftest.* &&
1658 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1659 exit $exit_status
1660 ' 0
1661 for ac_signal in 1 2 13 15; do
1662 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1663 done
1664 ac_signal=0
1665
1666 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1667 rm -f -r conftest* confdefs.h
1668
1669 # Predefined preprocessor variables.
1670
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_NAME "$PACKAGE_NAME"
1673 _ACEOF
1674
1675
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1678 _ACEOF
1679
1680
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1683 _ACEOF
1684
1685
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_STRING "$PACKAGE_STRING"
1688 _ACEOF
1689
1690
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1693 _ACEOF
1694
1695
1696 # Let the site file select an alternate cache file if it wants to.
1697 # Prefer explicitly selected file to automatically selected ones.
1698 if test -n "$CONFIG_SITE"; then
1699 set x "$CONFIG_SITE"
1700 elif test "x$prefix" != xNONE; then
1701 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1702 else
1703 set x "$ac_default_prefix/share/config.site" \
1704 "$ac_default_prefix/etc/config.site"
1705 fi
1706 shift
1707 for ac_site_file
1708 do
1709 if test -r "$ac_site_file"; then
1710 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1711 echo "$as_me: loading site script $ac_site_file" >&6;}
1712 sed 's/^/| /' "$ac_site_file" >&5
1713 . "$ac_site_file"
1714 fi
1715 done
1716
1717 if test -r "$cache_file"; then
1718 # Some versions of bash will fail to source /dev/null (special
1719 # files actually), so we avoid doing that.
1720 if test -f "$cache_file"; then
1721 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1722 echo "$as_me: loading cache $cache_file" >&6;}
1723 case $cache_file in
1724 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1725 *) . "./$cache_file";;
1726 esac
1727 fi
1728 else
1729 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1730 echo "$as_me: creating cache $cache_file" >&6;}
1731 >$cache_file
1732 fi
1733
1734 # Check that the precious variables saved in the cache have kept the same
1735 # value.
1736 ac_cache_corrupted=false
1737 for ac_var in $ac_precious_vars; do
1738 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1739 eval ac_new_set=\$ac_env_${ac_var}_set
1740 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1741 eval ac_new_val=\$ac_env_${ac_var}_value
1742 case $ac_old_set,$ac_new_set in
1743 set,)
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1745 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1746 ac_cache_corrupted=: ;;
1747 ,set)
1748 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1749 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1750 ac_cache_corrupted=: ;;
1751 ,);;
1752 *)
1753 if test "x$ac_old_val" != "x$ac_new_val"; then
1754 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1755 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1756 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1757 echo "$as_me: former value: $ac_old_val" >&2;}
1758 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1759 echo "$as_me: current value: $ac_new_val" >&2;}
1760 ac_cache_corrupted=:
1761 fi;;
1762 esac
1763 # Pass precious variables to config.status.
1764 if test "$ac_new_set" = set; then
1765 case $ac_new_val in
1766 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1767 *) ac_arg=$ac_var=$ac_new_val ;;
1768 esac
1769 case " $ac_configure_args " in
1770 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1771 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1772 esac
1773 fi
1774 done
1775 if $ac_cache_corrupted; then
1776 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1777 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1778 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1779 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1780 { (exit 1); exit 1; }; }
1781 fi
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799 ac_ext=c
1800 ac_cpp='$CPP $CPPFLAGS'
1801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1804
1805
1806
1807 ac_config_headers="$ac_config_headers lib/misc/configure.h"
1808
1809
1810 ################################################################################
1811 ac_aux_dir=
1812 for ac_dir in autoconf "$srcdir"/autoconf; do
1813 if test -f "$ac_dir/install-sh"; then
1814 ac_aux_dir=$ac_dir
1815 ac_install_sh="$ac_aux_dir/install-sh -c"
1816 break
1817 elif test -f "$ac_dir/install.sh"; then
1818 ac_aux_dir=$ac_dir
1819 ac_install_sh="$ac_aux_dir/install.sh -c"
1820 break
1821 elif test -f "$ac_dir/shtool"; then
1822 ac_aux_dir=$ac_dir
1823 ac_install_sh="$ac_aux_dir/shtool install -c"
1824 break
1825 fi
1826 done
1827 if test -z "$ac_aux_dir"; then
1828 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1829 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1830 { (exit 1); exit 1; }; }
1831 fi
1832
1833 # These three variables are undocumented and unsupported,
1834 # and are intended to be withdrawn in a future Autoconf release.
1835 # They can cause serious problems if a builder's source tree is in a directory
1836 # whose full name contains unusual characters.
1837 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1838 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1839 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1840
1841
1842
1843 ################################################################################
1844 # Make sure we can run config.sub.
1845 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1846 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1847 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1848 { (exit 1); exit 1; }; }
1849
1850 { echo "$as_me:$LINENO: checking build system type" >&5
1851 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1852 if test "${ac_cv_build+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855 ac_build_alias=$build_alias
1856 test "x$ac_build_alias" = x &&
1857 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1858 test "x$ac_build_alias" = x &&
1859 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1860 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1861 { (exit 1); exit 1; }; }
1862 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1863 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1864 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1865 { (exit 1); exit 1; }; }
1866
1867 fi
1868 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1869 echo "${ECHO_T}$ac_cv_build" >&6; }
1870 case $ac_cv_build in
1871 *-*-*) ;;
1872 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1873 echo "$as_me: error: invalid value of canonical build" >&2;}
1874 { (exit 1); exit 1; }; };;
1875 esac
1876 build=$ac_cv_build
1877 ac_save_IFS=$IFS; IFS='-'
1878 set x $ac_cv_build
1879 shift
1880 build_cpu=$1
1881 build_vendor=$2
1882 shift; shift
1883 # Remember, the first character of IFS is used to create $*,
1884 # except with old shells:
1885 build_os=$*
1886 IFS=$ac_save_IFS
1887 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1888
1889
1890 { echo "$as_me:$LINENO: checking host system type" >&5
1891 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1892 if test "${ac_cv_host+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 else
1895 if test "x$host_alias" = x; then
1896 ac_cv_host=$ac_cv_build
1897 else
1898 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1899 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1900 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1901 { (exit 1); exit 1; }; }
1902 fi
1903
1904 fi
1905 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1906 echo "${ECHO_T}$ac_cv_host" >&6; }
1907 case $ac_cv_host in
1908 *-*-*) ;;
1909 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1910 echo "$as_me: error: invalid value of canonical host" >&2;}
1911 { (exit 1); exit 1; }; };;
1912 esac
1913 host=$ac_cv_host
1914 ac_save_IFS=$IFS; IFS='-'
1915 set x $ac_cv_host
1916 shift
1917 host_cpu=$1
1918 host_vendor=$2
1919 shift; shift
1920 # Remember, the first character of IFS is used to create $*,
1921 # except with old shells:
1922 host_os=$*
1923 IFS=$ac_save_IFS
1924 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1925
1926
1927 { echo "$as_me:$LINENO: checking target system type" >&5
1928 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1929 if test "${ac_cv_target+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 if test "x$target_alias" = x; then
1933 ac_cv_target=$ac_cv_host
1934 else
1935 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1936 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1937 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1938 { (exit 1); exit 1; }; }
1939 fi
1940
1941 fi
1942 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1943 echo "${ECHO_T}$ac_cv_target" >&6; }
1944 case $ac_cv_target in
1945 *-*-*) ;;
1946 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1947 echo "$as_me: error: invalid value of canonical target" >&2;}
1948 { (exit 1); exit 1; }; };;
1949 esac
1950 target=$ac_cv_target
1951 ac_save_IFS=$IFS; IFS='-'
1952 set x $ac_cv_target
1953 shift
1954 target_cpu=$1
1955 target_vendor=$2
1956 shift; shift
1957 # Remember, the first character of IFS is used to create $*,
1958 # except with old shells:
1959 target_os=$*
1960 IFS=$ac_save_IFS
1961 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1962
1963
1964 # The aliases save the names the user supplied, while $host etc.
1965 # will get canonicalized.
1966 test -n "$target_alias" &&
1967 test "$program_prefix$program_suffix$program_transform_name" = \
1968 NONENONEs,x,x, &&
1969 program_prefix=${target_alias}-
1970
1971 case "$host_os" in
1972 linux*)
1973 COPTIMISE_FLAG="-O2"
1974 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1975 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1976 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1977 LDDEPS="$LDDEPS .export.sym"
1978 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
1979 LIB_SUFFIX=so
1980 DEVMAPPER=yes
1981 ODIRECT=yes
1982 DM_IOCTLS=yes
1983 SELINUX=yes
1984 REALTIME=yes
1985 CLUSTER=internal
1986 FSADM=yes
1987 ;;
1988 darwin*)
1989 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1990 COPTIMISE_FLAG="-O2"
1991 CLDFLAGS="$CLDFLAGS"
1992 CLDWHOLEARCHIVE="-all_load"
1993 CLDNOWHOLEARCHIVE=
1994 LIB_SUFFIX=dylib
1995 DEVMAPPER=yes
1996 ODIRECT=no
1997 DM_IOCTLS=no
1998 SELINUX=no
1999 REALTIME=no
2000 CLUSTER=none
2001 FSADM=no
2002 ;;
2003 esac
2004
2005 ################################################################################
2006 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2007 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
2008 if test "${ac_cv_path_SED+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2012 for ac_i in 1 2 3 4 5 6 7; do
2013 ac_script="$ac_script$as_nl$ac_script"
2014 done
2015 echo "$ac_script" | sed 99q >conftest.sed
2016 $as_unset ac_script || ac_script=
2017 # Extract the first word of "sed gsed" to use in msg output
2018 if test -z "$SED"; then
2019 set dummy sed gsed; ac_prog_name=$2
2020 if test "${ac_cv_path_SED+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023 ac_path_SED_found=false
2024 # Loop through the user's path and test for each of PROGNAME-LIST
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
2027 do
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
2030 for ac_prog in sed gsed; do
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2033 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2034 # Check for GNU ac_path_SED and select it if it is found.
2035 # Check for GNU $ac_path_SED
2036 case `"$ac_path_SED" --version 2>&1` in
2037 *GNU*)
2038 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2039 *)
2040 ac_count=0
2041 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2042 while :
2043 do
2044 cat "conftest.in" "conftest.in" >"conftest.tmp"
2045 mv "conftest.tmp" "conftest.in"
2046 cp "conftest.in" "conftest.nl"
2047 echo '' >> "conftest.nl"
2048 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2050 ac_count=`expr $ac_count + 1`
2051 if test $ac_count -gt ${ac_path_SED_max-0}; then
2052 # Best one so far, save it but keep looking for a better one
2053 ac_cv_path_SED="$ac_path_SED"
2054 ac_path_SED_max=$ac_count
2055 fi
2056 # 10*(2^10) chars as input seems more than enough
2057 test $ac_count -gt 10 && break
2058 done
2059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2060 esac
2061
2062
2063 $ac_path_SED_found && break 3
2064 done
2065 done
2066
2067 done
2068 IFS=$as_save_IFS
2069
2070
2071 fi
2072
2073 SED="$ac_cv_path_SED"
2074 if test -z "$SED"; then
2075 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
2076 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
2077 { (exit 1); exit 1; }; }
2078 fi
2079
2080 else
2081 ac_cv_path_SED=$SED
2082 fi
2083
2084 fi
2085 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2086 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
2087 SED="$ac_cv_path_SED"
2088 rm -f conftest.sed
2089
2090 for ac_prog in gawk mawk nawk awk
2091 do
2092 # Extract the first word of "$ac_prog", so it can be a program name with args.
2093 set dummy $ac_prog; ac_word=$2
2094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2096 if test "${ac_cv_prog_AWK+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 if test -n "$AWK"; then
2100 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2101 else
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105 IFS=$as_save_IFS
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
2108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2109 ac_cv_prog_AWK="$ac_prog"
2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 break 2
2112 fi
2113 done
2114 done
2115 IFS=$as_save_IFS
2116
2117 fi
2118 fi
2119 AWK=$ac_cv_prog_AWK
2120 if test -n "$AWK"; then
2121 { echo "$as_me:$LINENO: result: $AWK" >&5
2122 echo "${ECHO_T}$AWK" >&6; }
2123 else
2124 { echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6; }
2126 fi
2127
2128
2129 test -n "$AWK" && break
2130 done
2131
2132 ac_ext=c
2133 ac_cpp='$CPP $CPPFLAGS'
2134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2137 if test -n "$ac_tool_prefix"; then
2138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2142 if test "${ac_cv_prog_CC+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145 if test -n "$CC"; then
2146 ac_cv_prog_CC="$CC" # Let the user override the test.
2147 else
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2150 do
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 break 2
2158 fi
2159 done
2160 done
2161 IFS=$as_save_IFS
2162
2163 fi
2164 fi
2165 CC=$ac_cv_prog_CC
2166 if test -n "$CC"; then
2167 { echo "$as_me:$LINENO: result: $CC" >&5
2168 echo "${ECHO_T}$CC" >&6; }
2169 else
2170 { echo "$as_me:$LINENO: result: no" >&5
2171 echo "${ECHO_T}no" >&6; }
2172 fi
2173
2174
2175 fi
2176 if test -z "$ac_cv_prog_CC"; then
2177 ac_ct_CC=$CC
2178 # Extract the first word of "gcc", so it can be a program name with args.
2179 set dummy gcc; ac_word=$2
2180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185 if test -n "$ac_ct_CC"; then
2186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2187 else
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 for as_dir in $PATH
2190 do
2191 IFS=$as_save_IFS
2192 test -z "$as_dir" && as_dir=.
2193 for ac_exec_ext in '' $ac_executable_extensions; do
2194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2195 ac_cv_prog_ac_ct_CC="gcc"
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 break 2
2198 fi
2199 done
2200 done
2201 IFS=$as_save_IFS
2202
2203 fi
2204 fi
2205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206 if test -n "$ac_ct_CC"; then
2207 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2208 echo "${ECHO_T}$ac_ct_CC" >&6; }
2209 else
2210 { echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6; }
2212 fi
2213
2214 if test "x$ac_ct_CC" = x; then
2215 CC=""
2216 else
2217 case $cross_compiling:$ac_tool_warned in
2218 yes:)
2219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2220 whose name does not start with the host triplet. If you think this
2221 configuration is useful to you, please write to autoconf@gnu.org." >&5
2222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2223 whose name does not start with the host triplet. If you think this
2224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2225 ac_tool_warned=yes ;;
2226 esac
2227 CC=$ac_ct_CC
2228 fi
2229 else
2230 CC="$ac_cv_prog_CC"
2231 fi
2232
2233 if test -z "$CC"; then
2234 if test -n "$ac_tool_prefix"; then
2235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2236 set dummy ${ac_tool_prefix}cc; ac_word=$2
2237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2239 if test "${ac_cv_prog_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$CC" # Let the user override the test.
2244 else
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2247 do
2248 IFS=$as_save_IFS
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252 ac_cv_prog_CC="${ac_tool_prefix}cc"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 break 2
2255 fi
2256 done
2257 done
2258 IFS=$as_save_IFS
2259
2260 fi
2261 fi
2262 CC=$ac_cv_prog_CC
2263 if test -n "$CC"; then
2264 { echo "$as_me:$LINENO: result: $CC" >&5
2265 echo "${ECHO_T}$CC" >&6; }
2266 else
2267 { echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6; }
2269 fi
2270
2271
2272 fi
2273 fi
2274 if test -z "$CC"; then
2275 # Extract the first word of "cc", so it can be a program name with args.
2276 set dummy cc; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_prog_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2284 else
2285 ac_prog_rejected=no
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2288 do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2294 ac_prog_rejected=yes
2295 continue
2296 fi
2297 ac_cv_prog_CC="cc"
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 break 2
2300 fi
2301 done
2302 done
2303 IFS=$as_save_IFS
2304
2305 if test $ac_prog_rejected = yes; then
2306 # We found a bogon in the path, so make sure we never use it.
2307 set dummy $ac_cv_prog_CC
2308 shift
2309 if test $# != 0; then
2310 # We chose a different compiler from the bogus one.
2311 # However, it has the same basename, so the bogon will be chosen
2312 # first if we set CC to just the basename; use the full file name.
2313 shift
2314 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2315 fi
2316 fi
2317 fi
2318 fi
2319 CC=$ac_cv_prog_CC
2320 if test -n "$CC"; then
2321 { echo "$as_me:$LINENO: result: $CC" >&5
2322 echo "${ECHO_T}$CC" >&6; }
2323 else
2324 { echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6; }
2326 fi
2327
2328
2329 fi
2330 if test -z "$CC"; then
2331 if test -n "$ac_tool_prefix"; then
2332 for ac_prog in cl.exe
2333 do
2334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2338 if test "${ac_cv_prog_CC+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 else
2341 if test -n "$CC"; then
2342 ac_cv_prog_CC="$CC" # Let the user override the test.
2343 else
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2346 do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 break 2
2354 fi
2355 done
2356 done
2357 IFS=$as_save_IFS
2358
2359 fi
2360 fi
2361 CC=$ac_cv_prog_CC
2362 if test -n "$CC"; then
2363 { echo "$as_me:$LINENO: result: $CC" >&5
2364 echo "${ECHO_T}$CC" >&6; }
2365 else
2366 { echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6; }
2368 fi
2369
2370
2371 test -n "$CC" && break
2372 done
2373 fi
2374 if test -z "$CC"; then
2375 ac_ct_CC=$CC
2376 for ac_prog in cl.exe
2377 do
2378 # Extract the first word of "$ac_prog", so it can be a program name with args.
2379 set dummy $ac_prog; ac_word=$2
2380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385 if test -n "$ac_ct_CC"; then
2386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2390 do
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2395 ac_cv_prog_ac_ct_CC="$ac_prog"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 break 2
2398 fi
2399 done
2400 done
2401 IFS=$as_save_IFS
2402
2403 fi
2404 fi
2405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2406 if test -n "$ac_ct_CC"; then
2407 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2408 echo "${ECHO_T}$ac_ct_CC" >&6; }
2409 else
2410 { echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6; }
2412 fi
2413
2414
2415 test -n "$ac_ct_CC" && break
2416 done
2417
2418 if test "x$ac_ct_CC" = x; then
2419 CC=""
2420 else
2421 case $cross_compiling:$ac_tool_warned in
2422 yes:)
2423 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2424 whose name does not start with the host triplet. If you think this
2425 configuration is useful to you, please write to autoconf@gnu.org." >&5
2426 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet. If you think this
2428 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2429 ac_tool_warned=yes ;;
2430 esac
2431 CC=$ac_ct_CC
2432 fi
2433 fi
2434
2435 fi
2436
2437
2438 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2439 See \`config.log' for more details." >&5
2440 echo "$as_me: error: no acceptable C compiler found in \$PATH
2441 See \`config.log' for more details." >&2;}
2442 { (exit 1); exit 1; }; }
2443
2444 # Provide some information about the compiler.
2445 echo "$as_me:$LINENO: checking for C compiler version" >&5
2446 ac_compiler=`set X $ac_compile; echo $2`
2447 { (ac_try="$ac_compiler --version >&5"
2448 case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451 esac
2452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_compiler --version >&5") 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }
2457 { (ac_try="$ac_compiler -v >&5"
2458 case "(($ac_try" in
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2461 esac
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463 (eval "$ac_compiler -v >&5") 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }
2467 { (ac_try="$ac_compiler -V >&5"
2468 case "(($ac_try" in
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2471 esac
2472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473 (eval "$ac_compiler -V >&5") 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }
2477
2478 cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h. */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2484
2485 int
2486 main ()
2487 {
2488
2489 ;
2490 return 0;
2491 }
2492 _ACEOF
2493 ac_clean_files_save=$ac_clean_files
2494 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2495 # Try to create an executable without -o first, disregard a.out.
2496 # It will help us diagnose broken compilers, and finding out an intuition
2497 # of exeext.
2498 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2499 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2500 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2501 #
2502 # List of possible output files, starting from the most likely.
2503 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2504 # only as a last resort. b.out is created by i960 compilers.
2505 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2506 #
2507 # The IRIX 6 linker writes into existing files which may not be
2508 # executable, retaining their permissions. Remove them first so a
2509 # subsequent execution test works.
2510 ac_rmfiles=
2511 for ac_file in $ac_files
2512 do
2513 case $ac_file in
2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2515 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2516 esac
2517 done
2518 rm -f $ac_rmfiles
2519
2520 if { (ac_try="$ac_link_default"
2521 case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524 esac
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_link_default") 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; then
2530 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2531 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2532 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2533 # so that the user can short-circuit this test for compilers unknown to
2534 # Autoconf.
2535 for ac_file in $ac_files ''
2536 do
2537 test -f "$ac_file" || continue
2538 case $ac_file in
2539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2540 ;;
2541 [ab].out )
2542 # We found the default executable, but exeext='' is most
2543 # certainly right.
2544 break;;
2545 *.* )
2546 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2547 then :; else
2548 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2549 fi
2550 # We set ac_cv_exeext here because the later test for it is not
2551 # safe: cross compilers may not add the suffix if given an `-o'
2552 # argument, so we may need to know it at that point already.
2553 # Even if this section looks crufty: it has the advantage of
2554 # actually working.
2555 break;;
2556 * )
2557 break;;
2558 esac
2559 done
2560 test "$ac_cv_exeext" = no && ac_cv_exeext=
2561
2562 else
2563 ac_file=''
2564 fi
2565
2566 { echo "$as_me:$LINENO: result: $ac_file" >&5
2567 echo "${ECHO_T}$ac_file" >&6; }
2568 if test -z "$ac_file"; then
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2571
2572 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2573 See \`config.log' for more details." >&5
2574 echo "$as_me: error: C compiler cannot create executables
2575 See \`config.log' for more details." >&2;}
2576 { (exit 77); exit 77; }; }
2577 fi
2578
2579 ac_exeext=$ac_cv_exeext
2580
2581 # Check that the compiler produces executables we can run. If not, either
2582 # the compiler is broken, or we cross compile.
2583 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2584 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2585 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2586 # If not cross compiling, check that we can run a simple program.
2587 if test "$cross_compiling" != yes; then
2588 if { ac_try='./$ac_file'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592 esac
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2598 cross_compiling=no
2599 else
2600 if test "$cross_compiling" = maybe; then
2601 cross_compiling=yes
2602 else
2603 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2604 If you meant to cross compile, use \`--host'.
2605 See \`config.log' for more details." >&5
2606 echo "$as_me: error: cannot run C compiled programs.
2607 If you meant to cross compile, use \`--host'.
2608 See \`config.log' for more details." >&2;}
2609 { (exit 1); exit 1; }; }
2610 fi
2611 fi
2612 fi
2613 { echo "$as_me:$LINENO: result: yes" >&5
2614 echo "${ECHO_T}yes" >&6; }
2615
2616 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2617 ac_clean_files=$ac_clean_files_save
2618 # Check that the compiler produces executables we can run. If not, either
2619 # the compiler is broken, or we cross compile.
2620 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2621 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2622 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2623 echo "${ECHO_T}$cross_compiling" >&6; }
2624
2625 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2626 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2627 if { (ac_try="$ac_link"
2628 case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2631 esac
2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633 (eval "$ac_link") 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; then
2637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2638 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2639 # work properly (i.e., refer to `conftest.exe'), while it won't with
2640 # `rm'.
2641 for ac_file in conftest.exe conftest conftest.*; do
2642 test -f "$ac_file" || continue
2643 case $ac_file in
2644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2646 break;;
2647 * ) break;;
2648 esac
2649 done
2650 else
2651 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2652 See \`config.log' for more details." >&5
2653 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2654 See \`config.log' for more details." >&2;}
2655 { (exit 1); exit 1; }; }
2656 fi
2657
2658 rm -f conftest$ac_cv_exeext
2659 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2660 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2661
2662 rm -f conftest.$ac_ext
2663 EXEEXT=$ac_cv_exeext
2664 ac_exeext=$EXEEXT
2665 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2666 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2667 if test "${ac_cv_objext+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670 cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h. */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2676
2677 int
2678 main ()
2679 {
2680
2681 ;
2682 return 0;
2683 }
2684 _ACEOF
2685 rm -f conftest.o conftest.obj
2686 if { (ac_try="$ac_compile"
2687 case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690 esac
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compile") 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; then
2696 for ac_file in conftest.o conftest.obj conftest.*; do
2697 test -f "$ac_file" || continue;
2698 case $ac_file in
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2700 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2701 break;;
2702 esac
2703 done
2704 else
2705 echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2707
2708 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2709 See \`config.log' for more details." >&5
2710 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details." >&2;}
2712 { (exit 1); exit 1; }; }
2713 fi
2714
2715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2716 fi
2717 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2718 echo "${ECHO_T}$ac_cv_objext" >&6; }
2719 OBJEXT=$ac_cv_objext
2720 ac_objext=$OBJEXT
2721 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2722 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2723 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h. */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2732
2733 int
2734 main ()
2735 {
2736 #ifndef __GNUC__
2737 choke me
2738 #endif
2739
2740 ;
2741 return 0;
2742 }
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (ac_try="$ac_compile"
2746 case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compile") 2>conftest.er1
2752 ac_status=$?
2753 grep -v '^ *+' conftest.er1 >conftest.err
2754 rm -f conftest.er1
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } && {
2758 test -z "$ac_c_werror_flag" ||
2759 test ! -s conftest.err
2760 } && test -s conftest.$ac_objext; then
2761 ac_compiler_gnu=yes
2762 else
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766 ac_compiler_gnu=no
2767 fi
2768
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2771
2772 fi
2773 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2774 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2775 GCC=`test $ac_compiler_gnu = yes && echo yes`
2776 ac_test_CFLAGS=${CFLAGS+set}
2777 ac_save_CFLAGS=$CFLAGS
2778 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2779 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2780 if test "${ac_cv_prog_cc_g+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783 ac_save_c_werror_flag=$ac_c_werror_flag
2784 ac_c_werror_flag=yes
2785 ac_cv_prog_cc_g=no
2786 CFLAGS="-g"
2787 cat >conftest.$ac_ext <<_ACEOF
2788 /* confdefs.h. */
2789 _ACEOF
2790 cat confdefs.h >>conftest.$ac_ext
2791 cat >>conftest.$ac_ext <<_ACEOF
2792 /* end confdefs.h. */
2793
2794 int
2795 main ()
2796 {
2797
2798 ;
2799 return 0;
2800 }
2801 _ACEOF
2802 rm -f conftest.$ac_objext
2803 if { (ac_try="$ac_compile"
2804 case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2807 esac
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809 (eval "$ac_compile") 2>conftest.er1
2810 ac_status=$?
2811 grep -v '^ *+' conftest.er1 >conftest.err
2812 rm -f conftest.er1
2813 cat conftest.err >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); } && {
2816 test -z "$ac_c_werror_flag" ||
2817 test ! -s conftest.err
2818 } && test -s conftest.$ac_objext; then
2819 ac_cv_prog_cc_g=yes
2820 else
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824 CFLAGS=""
2825 cat >conftest.$ac_ext <<_ACEOF
2826 /* confdefs.h. */
2827 _ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2831
2832 int
2833 main ()
2834 {
2835
2836 ;
2837 return 0;
2838 }
2839 _ACEOF
2840 rm -f conftest.$ac_objext
2841 if { (ac_try="$ac_compile"
2842 case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845 esac
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_compile") 2>conftest.er1
2848 ac_status=$?
2849 grep -v '^ *+' conftest.er1 >conftest.err
2850 rm -f conftest.er1
2851 cat conftest.err >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } && {
2854 test -z "$ac_c_werror_flag" ||
2855 test ! -s conftest.err
2856 } && test -s conftest.$ac_objext; then
2857 :
2858 else
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2861
2862 ac_c_werror_flag=$ac_save_c_werror_flag
2863 CFLAGS="-g"
2864 cat >conftest.$ac_ext <<_ACEOF
2865 /* confdefs.h. */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2870
2871 int
2872 main ()
2873 {
2874
2875 ;
2876 return 0;
2877 }
2878 _ACEOF
2879 rm -f conftest.$ac_objext
2880 if { (ac_try="$ac_compile"
2881 case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2884 esac
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_compile") 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } && {
2893 test -z "$ac_c_werror_flag" ||
2894 test ! -s conftest.err
2895 } && test -s conftest.$ac_objext; then
2896 ac_cv_prog_cc_g=yes
2897 else
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2900
2901
2902 fi
2903
2904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905 fi
2906
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 fi
2909
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 ac_c_werror_flag=$ac_save_c_werror_flag
2912 fi
2913 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2914 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2915 if test "$ac_test_CFLAGS" = set; then
2916 CFLAGS=$ac_save_CFLAGS
2917 elif test $ac_cv_prog_cc_g = yes; then
2918 if test "$GCC" = yes; then
2919 CFLAGS="-g -O2"
2920 else
2921 CFLAGS="-g"
2922 fi
2923 else
2924 if test "$GCC" = yes; then
2925 CFLAGS="-O2"
2926 else
2927 CFLAGS=
2928 fi
2929 fi
2930 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2931 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2932 if test "${ac_cv_prog_cc_c89+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 else
2935 ac_cv_prog_cc_c89=no
2936 ac_save_CC=$CC
2937 cat >conftest.$ac_ext <<_ACEOF
2938 /* confdefs.h. */
2939 _ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2943 #include <stdarg.h>
2944 #include <stdio.h>
2945 #include <sys/types.h>
2946 #include <sys/stat.h>
2947 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2948 struct buf { int x; };
2949 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2950 static char *e (p, i)
2951 char **p;
2952 int i;
2953 {
2954 return p[i];
2955 }
2956 static char *f (char * (*g) (char **, int), char **p, ...)
2957 {
2958 char *s;
2959 va_list v;
2960 va_start (v,p);
2961 s = g (p, va_arg (v,int));
2962 va_end (v);
2963 return s;
2964 }
2965
2966 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2967 function prototypes and stuff, but not '\xHH' hex character constants.
2968 These don't provoke an error unfortunately, instead are silently treated
2969 as 'x'. The following induces an error, until -std is added to get
2970 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2971 array size at least. It's necessary to write '\x00'==0 to get something
2972 that's true only with -std. */
2973 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2974
2975 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2976 inside strings and character constants. */
2977 #define FOO(x) 'x'
2978 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2979
2980 int test (int i, double x);
2981 struct s1 {int (*f) (int a);};
2982 struct s2 {int (*f) (double a);};
2983 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2984 int argc;
2985 char **argv;
2986 int
2987 main ()
2988 {
2989 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2990 ;
2991 return 0;
2992 }
2993 _ACEOF
2994 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2995 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2996 do
2997 CC="$ac_save_CC $ac_arg"
2998 rm -f conftest.$ac_objext
2999 if { (ac_try="$ac_compile"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compile") 2>conftest.er1
3006 ac_status=$?
3007 grep -v '^ *+' conftest.er1 >conftest.err
3008 rm -f conftest.er1
3009 cat conftest.err >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.$ac_objext; then
3015 ac_cv_prog_cc_c89=$ac_arg
3016 else
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020
3021 fi
3022
3023 rm -f core conftest.err conftest.$ac_objext
3024 test "x$ac_cv_prog_cc_c89" != "xno" && break
3025 done
3026 rm -f conftest.$ac_ext
3027 CC=$ac_save_CC
3028
3029 fi
3030 # AC_CACHE_VAL
3031 case "x$ac_cv_prog_cc_c89" in
3032 x)
3033 { echo "$as_me:$LINENO: result: none needed" >&5
3034 echo "${ECHO_T}none needed" >&6; } ;;
3035 xno)
3036 { echo "$as_me:$LINENO: result: unsupported" >&5
3037 echo "${ECHO_T}unsupported" >&6; } ;;
3038 *)
3039 CC="$CC $ac_cv_prog_cc_c89"
3040 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3041 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3042 esac
3043
3044
3045 ac_ext=c
3046 ac_cpp='$CPP $CPPFLAGS'
3047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050
3051
3052
3053 ac_ext=c
3054 ac_cpp='$CPP $CPPFLAGS'
3055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3059 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3060 # On Suns, sometimes $CPP names a directory.
3061 if test -n "$CPP" && test -d "$CPP"; then
3062 CPP=
3063 fi
3064 if test -z "$CPP"; then
3065 if test "${ac_cv_prog_CPP+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 # Double quotes because CPP needs to be expanded
3069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3070 do
3071 ac_preproc_ok=false
3072 for ac_c_preproc_warn_flag in '' yes
3073 do
3074 # Use a header file that comes with gcc, so configuring glibc
3075 # with a fresh cross-compiler works.
3076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3077 # <limits.h> exists even on freestanding compilers.
3078 # On the NeXT, cc -E runs the code through the compiler's parser,
3079 # not just through cpp. "Syntax error" is here to catch this case.
3080 cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h. */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3086 #ifdef __STDC__
3087 # include <limits.h>
3088 #else
3089 # include <assert.h>
3090 #endif
3091 Syntax error
3092 _ACEOF
3093 if { (ac_try="$ac_cpp conftest.$ac_ext"
3094 case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev/null && {
3106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3107 test ! -s conftest.err
3108 }; then
3109 :
3110 else
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 # Broken: fails on valid input.
3115 continue
3116 fi
3117
3118 rm -f conftest.err conftest.$ac_ext
3119
3120 # OK, works on sane cases. Now check whether nonexistent headers
3121 # can be detected and how.
3122 cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h. */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128 #include <ac_nonexistent.h>
3129 _ACEOF
3130 if { (ac_try="$ac_cpp conftest.$ac_ext"
3131 case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null && {
3143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 }; then
3146 # Broken: success on invalid input.
3147 continue
3148 else
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 # Passes both tests.
3153 ac_preproc_ok=:
3154 break
3155 fi
3156
3157 rm -f conftest.err conftest.$ac_ext
3158
3159 done
3160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3161 rm -f conftest.err conftest.$ac_ext
3162 if $ac_preproc_ok; then
3163 break
3164 fi
3165
3166 done
3167 ac_cv_prog_CPP=$CPP
3168
3169 fi
3170 CPP=$ac_cv_prog_CPP
3171 else
3172 ac_cv_prog_CPP=$CPP
3173 fi
3174 { echo "$as_me:$LINENO: result: $CPP" >&5
3175 echo "${ECHO_T}$CPP" >&6; }
3176 ac_preproc_ok=false
3177 for ac_c_preproc_warn_flag in '' yes
3178 do
3179 # Use a header file that comes with gcc, so configuring glibc
3180 # with a fresh cross-compiler works.
3181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3182 # <limits.h> exists even on freestanding compilers.
3183 # On the NeXT, cc -E runs the code through the compiler's parser,
3184 # not just through cpp. "Syntax error" is here to catch this case.
3185 cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h. */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3191 #ifdef __STDC__
3192 # include <limits.h>
3193 #else
3194 # include <assert.h>
3195 #endif
3196 Syntax error
3197 _ACEOF
3198 if { (ac_try="$ac_cpp conftest.$ac_ext"
3199 case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } >/dev/null && {
3211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3212 test ! -s conftest.err
3213 }; then
3214 :
3215 else
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3218
3219 # Broken: fails on valid input.
3220 continue
3221 fi
3222
3223 rm -f conftest.err conftest.$ac_ext
3224
3225 # OK, works on sane cases. Now check whether nonexistent headers
3226 # can be detected and how.
3227 cat >conftest.$ac_ext <<_ACEOF
3228 /* confdefs.h. */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3233 #include <ac_nonexistent.h>
3234 _ACEOF
3235 if { (ac_try="$ac_cpp conftest.$ac_ext"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } >/dev/null && {
3248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3249 test ! -s conftest.err
3250 }; then
3251 # Broken: success on invalid input.
3252 continue
3253 else
3254 echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3256
3257 # Passes both tests.
3258 ac_preproc_ok=:
3259 break
3260 fi
3261
3262 rm -f conftest.err conftest.$ac_ext
3263
3264 done
3265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3266 rm -f conftest.err conftest.$ac_ext
3267 if $ac_preproc_ok; then
3268 :
3269 else
3270 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3271 See \`config.log' for more details." >&5
3272 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3273 See \`config.log' for more details." >&2;}
3274 { (exit 1); exit 1; }; }
3275 fi
3276
3277 ac_ext=c
3278 ac_cpp='$CPP $CPPFLAGS'
3279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282
3283
3284 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3285 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3286 if test "${ac_cv_path_GREP+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289 # Extract the first word of "grep ggrep" to use in msg output
3290 if test -z "$GREP"; then
3291 set dummy grep ggrep; ac_prog_name=$2
3292 if test "${ac_cv_path_GREP+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295 ac_path_GREP_found=false
3296 # Loop through the user's path and test for each of PROGNAME-LIST
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3299 do
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_prog in grep ggrep; do
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3305 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3306 # Check for GNU ac_path_GREP and select it if it is found.
3307 # Check for GNU $ac_path_GREP
3308 case `"$ac_path_GREP" --version 2>&1` in
3309 *GNU*)
3310 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3311 *)
3312 ac_count=0
3313 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3314 while :
3315 do
3316 cat "conftest.in" "conftest.in" >"conftest.tmp"
3317 mv "conftest.tmp" "conftest.in"
3318 cp "conftest.in" "conftest.nl"
3319 echo 'GREP' >> "conftest.nl"
3320 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3322 ac_count=`expr $ac_count + 1`
3323 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3324 # Best one so far, save it but keep looking for a better one
3325 ac_cv_path_GREP="$ac_path_GREP"
3326 ac_path_GREP_max=$ac_count
3327 fi
3328 # 10*(2^10) chars as input seems more than enough
3329 test $ac_count -gt 10 && break
3330 done
3331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3332 esac
3333
3334
3335 $ac_path_GREP_found && break 3
3336 done
3337 done
3338
3339 done
3340 IFS=$as_save_IFS
3341
3342
3343 fi
3344
3345 GREP="$ac_cv_path_GREP"
3346 if test -z "$GREP"; then
3347 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3348 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3349 { (exit 1); exit 1; }; }
3350 fi
3351
3352 else
3353 ac_cv_path_GREP=$GREP
3354 fi
3355
3356
3357 fi
3358 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3359 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3360 GREP="$ac_cv_path_GREP"
3361
3362
3363 { echo "$as_me:$LINENO: checking for egrep" >&5
3364 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3365 if test "${ac_cv_path_EGREP+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3369 then ac_cv_path_EGREP="$GREP -E"
3370 else
3371 # Extract the first word of "egrep" to use in msg output
3372 if test -z "$EGREP"; then
3373 set dummy egrep; ac_prog_name=$2
3374 if test "${ac_cv_path_EGREP+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377 ac_path_EGREP_found=false
3378 # Loop through the user's path and test for each of PROGNAME-LIST
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3381 do
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
3384 for ac_prog in egrep; do
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3387 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3388 # Check for GNU ac_path_EGREP and select it if it is found.
3389 # Check for GNU $ac_path_EGREP
3390 case `"$ac_path_EGREP" --version 2>&1` in
3391 *GNU*)
3392 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3393 *)
3394 ac_count=0
3395 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3396 while :
3397 do
3398 cat "conftest.in" "conftest.in" >"conftest.tmp"
3399 mv "conftest.tmp" "conftest.in"
3400 cp "conftest.in" "conftest.nl"
3401 echo 'EGREP' >> "conftest.nl"
3402 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3404 ac_count=`expr $ac_count + 1`
3405 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3406 # Best one so far, save it but keep looking for a better one
3407 ac_cv_path_EGREP="$ac_path_EGREP"
3408 ac_path_EGREP_max=$ac_count
3409 fi
3410 # 10*(2^10) chars as input seems more than enough
3411 test $ac_count -gt 10 && break
3412 done
3413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3414 esac
3415
3416
3417 $ac_path_EGREP_found && break 3
3418 done
3419 done
3420
3421 done
3422 IFS=$as_save_IFS
3423
3424
3425 fi
3426
3427 EGREP="$ac_cv_path_EGREP"
3428 if test -z "$EGREP"; then
3429 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3430 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3431 { (exit 1); exit 1; }; }
3432 fi
3433
3434 else
3435 ac_cv_path_EGREP=$EGREP
3436 fi
3437
3438
3439 fi
3440 fi
3441 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3442 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3443 EGREP="$ac_cv_path_EGREP"
3444
3445
3446 if test $ac_cv_c_compiler_gnu = yes; then
3447 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3448 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3449 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 ac_pattern="Autoconf.*'x'"
3453 cat >conftest.$ac_ext <<_ACEOF
3454 /* confdefs.h. */
3455 _ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3459 #include <sgtty.h>
3460 Autoconf TIOCGETP
3461 _ACEOF
3462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3463 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3464 ac_cv_prog_gcc_traditional=yes
3465 else
3466 ac_cv_prog_gcc_traditional=no
3467 fi
3468 rm -f conftest*
3469
3470
3471 if test $ac_cv_prog_gcc_traditional = no; then
3472 cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 #include <termio.h>
3479 Autoconf TCGETA
3480 _ACEOF
3481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3482 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3483 ac_cv_prog_gcc_traditional=yes
3484 fi
3485 rm -f conftest*
3486
3487 fi
3488 fi
3489 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3490 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3491 if test $ac_cv_prog_gcc_traditional = yes; then
3492 CC="$CC -traditional"
3493 fi
3494 fi
3495
3496 # Find a good install program. We prefer a C program (faster),
3497 # so one script is as good as another. But avoid the broken or
3498 # incompatible versions:
3499 # SysV /etc/install, /usr/sbin/install
3500 # SunOS /usr/etc/install
3501 # IRIX /sbin/install
3502 # AIX /bin/install
3503 # AmigaOS /C/install, which installs bootblocks on floppy discs
3504 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3505 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3506 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3507 # OS/2's system install, which has a completely different semantic
3508 # ./install, which can be erroneously created by make from ./install.sh.
3509 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3510 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3511 if test -z "$INSTALL"; then
3512 if test "${ac_cv_path_install+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 # Account for people who put trailing slashes in PATH elements.
3521 case $as_dir/ in
3522 ./ | .// | /cC/* | \
3523 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3524 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3525 /usr/ucb/* ) ;;
3526 *)
3527 # OSF1 and SCO ODT 3.0 have their own names for install.
3528 # Don't use installbsd from OSF since it installs stuff as root
3529 # by default.
3530 for ac_prog in ginstall scoinst install; do
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3533 if test $ac_prog = install &&
3534 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3535 # AIX install. It has an incompatible calling convention.
3536 :
3537 elif test $ac_prog = install &&
3538 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3539 # program-specific install script used by HP pwplus--don't use.
3540 :
3541 else
3542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3543 break 3
3544 fi
3545 fi
3546 done
3547 done
3548 ;;
3549 esac
3550 done
3551 IFS=$as_save_IFS
3552
3553
3554 fi
3555 if test "${ac_cv_path_install+set}" = set; then
3556 INSTALL=$ac_cv_path_install
3557 else
3558 # As a last resort, use the slow shell script. Don't cache a
3559 # value for INSTALL within a source directory, because that will
3560 # break other packages using the cache if that directory is
3561 # removed, or if the value is a relative name.
3562 INSTALL=$ac_install_sh
3563 fi
3564 fi
3565 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3566 echo "${ECHO_T}$INSTALL" >&6; }
3567
3568 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3569 # It thinks the first close brace ends the variable substitution.
3570 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3571
3572 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3573
3574 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3575
3576 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3577 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3578 LN_S=$as_ln_s
3579 if test "$LN_S" = "ln -s"; then
3580 { echo "$as_me:$LINENO: result: yes" >&5
3581 echo "${ECHO_T}yes" >&6; }
3582 else
3583 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3584 echo "${ECHO_T}no, using $LN_S" >&6; }
3585 fi
3586
3587 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3588 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3589 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3590 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593 cat >conftest.make <<\_ACEOF
3594 SHELL = /bin/sh
3595 all:
3596 @echo '@@@%%%=$(MAKE)=@@@%%%'
3597 _ACEOF
3598 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3599 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3600 *@@@%%%=?*=@@@%%%*)
3601 eval ac_cv_prog_make_${ac_make}_set=yes;;
3602 *)
3603 eval ac_cv_prog_make_${ac_make}_set=no;;
3604 esac
3605 rm -f conftest.make
3606 fi
3607 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3608 { echo "$as_me:$LINENO: result: yes" >&5
3609 echo "${ECHO_T}yes" >&6; }
3610 SET_MAKE=
3611 else
3612 { echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6; }
3614 SET_MAKE="MAKE=${MAKE-make}"
3615 fi
3616
3617 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3618 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
3619 if test -z "$MKDIR_P"; then
3620 if test "${ac_cv_path_mkdir+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3625 do
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_prog in mkdir gmkdir; do
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3631 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3632 'mkdir (GNU coreutils) '* | \
3633 'mkdir (coreutils) '* | \
3634 'mkdir (fileutils) '4.1*)
3635 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3636 break 3;;
3637 esac
3638 done
3639 done
3640 done
3641 IFS=$as_save_IFS
3642
3643 fi
3644
3645 if test "${ac_cv_path_mkdir+set}" = set; then
3646 MKDIR_P="$ac_cv_path_mkdir -p"
3647 else
3648 # As a last resort, use the slow shell script. Don't cache a
3649 # value for MKDIR_P within a source directory, because that will
3650 # break other packages using the cache if that directory is
3651 # removed, or if the value is a relative name.
3652 test -d ./--version && rmdir ./--version
3653 MKDIR_P="$ac_install_sh -d"
3654 fi
3655 fi
3656 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3657 echo "${ECHO_T}$MKDIR_P" >&6; }
3658
3659 if test -n "$ac_tool_prefix"; then
3660 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3661 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3664 if test "${ac_cv_prog_RANLIB+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667 if test -n "$RANLIB"; then
3668 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3677 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 break 2
3680 fi
3681 done
3682 done
3683 IFS=$as_save_IFS
3684
3685 fi
3686 fi
3687 RANLIB=$ac_cv_prog_RANLIB
3688 if test -n "$RANLIB"; then
3689 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3690 echo "${ECHO_T}$RANLIB" >&6; }
3691 else
3692 { echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6; }
3694 fi
3695
3696
3697 fi
3698 if test -z "$ac_cv_prog_RANLIB"; then
3699 ac_ct_RANLIB=$RANLIB
3700 # Extract the first word of "ranlib", so it can be a program name with args.
3701 set dummy ranlib; ac_word=$2
3702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3704 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707 if test -n "$ac_ct_RANLIB"; then
3708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_prog_ac_ct_RANLIB="ranlib"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3720 fi
3721 done
3722 done
3723 IFS=$as_save_IFS
3724
3725 fi
3726 fi
3727 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3728 if test -n "$ac_ct_RANLIB"; then
3729 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3730 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3731 else
3732 { echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6; }
3734 fi
3735
3736 if test "x$ac_ct_RANLIB" = x; then
3737 RANLIB=":"
3738 else
3739 case $cross_compiling:$ac_tool_warned in
3740 yes:)
3741 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3742 whose name does not start with the host triplet. If you think this
3743 configuration is useful to you, please write to autoconf@gnu.org." >&5
3744 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3745 whose name does not start with the host triplet. If you think this
3746 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3747 ac_tool_warned=yes ;;
3748 esac
3749 RANLIB=$ac_ct_RANLIB
3750 fi
3751 else
3752 RANLIB="$ac_cv_prog_RANLIB"
3753 fi
3754
3755 # Extract the first word of "cflow", so it can be a program name with args.
3756 set dummy cflow; ac_word=$2
3757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3759 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762 case $CFLOW_CMD in
3763 [\\/]* | ?:[\\/]*)
3764 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3765 ;;
3766 *)
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
3775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3777 fi
3778 done
3779 done
3780 IFS=$as_save_IFS
3781
3782 ;;
3783 esac
3784 fi
3785 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3786 if test -n "$CFLOW_CMD"; then
3787 { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3788 echo "${ECHO_T}$CFLOW_CMD" >&6; }
3789 else
3790 { echo "$as_me:$LINENO: result: no" >&5
3791 echo "${ECHO_T}no" >&6; }
3792 fi
3793
3794
3795 # Extract the first word of "cscope", so it can be a program name with args.
3796 set dummy cscope; ac_word=$2
3797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3799 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 case $CSCOPE_CMD in
3803 [\\/]* | ?:[\\/]*)
3804 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3805 ;;
3806 *)
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3814 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
3815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3817 fi
3818 done
3819 done
3820 IFS=$as_save_IFS
3821
3822 ;;
3823 esac
3824 fi
3825 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3826 if test -n "$CSCOPE_CMD"; then
3827 { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3828 echo "${ECHO_T}$CSCOPE_CMD" >&6; }
3829 else
3830 { echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6; }
3832 fi
3833
3834
3835
3836 ################################################################################
3837
3838
3839
3840
3841
3842 ac_header_dirent=no
3843 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3844 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3845 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3846 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
3847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 #include <sys/types.h>
3857 #include <$ac_hdr>
3858
3859 int
3860 main ()
3861 {
3862 if ((DIR *) 0)
3863 return 0;
3864 ;
3865 return 0;
3866 }
3867 _ACEOF
3868 rm -f conftest.$ac_objext
3869 if { (ac_try="$ac_compile"
3870 case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873 esac
3874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875 (eval "$ac_compile") 2>conftest.er1
3876 ac_status=$?
3877 grep -v '^ *+' conftest.er1 >conftest.err
3878 rm -f conftest.er1
3879 cat conftest.err >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } && {
3882 test -z "$ac_c_werror_flag" ||
3883 test ! -s conftest.err
3884 } && test -s conftest.$ac_objext; then
3885 eval "$as_ac_Header=yes"
3886 else
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890 eval "$as_ac_Header=no"
3891 fi
3892
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 fi
3895 ac_res=`eval echo '${'$as_ac_Header'}'`
3896 { echo "$as_me:$LINENO: result: $ac_res" >&5
3897 echo "${ECHO_T}$ac_res" >&6; }
3898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3899 cat >>confdefs.h <<_ACEOF
3900 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3901 _ACEOF
3902
3903 ac_header_dirent=$ac_hdr; break
3904 fi
3905
3906 done
3907 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3908 if test $ac_header_dirent = dirent.h; then
3909 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3910 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3911 if test "${ac_cv_search_opendir+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 ac_func_search_save_LIBS=$LIBS
3915 cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h. */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3921
3922 /* Override any GCC internal prototype to avoid an error.
3923 Use char because int might match the return type of a GCC
3924 builtin and then its argument prototype would still apply. */
3925 #ifdef __cplusplus
3926 extern "C"
3927 #endif
3928 char opendir ();
3929 int
3930 main ()
3931 {
3932 return opendir ();
3933 ;
3934 return 0;
3935 }
3936 _ACEOF
3937 for ac_lib in '' dir; do
3938 if test -z "$ac_lib"; then
3939 ac_res="none required"
3940 else
3941 ac_res=-l$ac_lib
3942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3943 fi
3944 rm -f conftest.$ac_objext conftest$ac_exeext
3945 if { (ac_try="$ac_link"
3946 case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949 esac
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_link") 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } && {
3958 test -z "$ac_c_werror_flag" ||
3959 test ! -s conftest.err
3960 } && test -s conftest$ac_exeext &&
3961 $as_test_x conftest$ac_exeext; then
3962 ac_cv_search_opendir=$ac_res
3963 else
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3966
3967
3968 fi
3969
3970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3971 conftest$ac_exeext
3972 if test "${ac_cv_search_opendir+set}" = set; then
3973 break
3974 fi
3975 done
3976 if test "${ac_cv_search_opendir+set}" = set; then
3977 :
3978 else
3979 ac_cv_search_opendir=no
3980 fi
3981 rm conftest.$ac_ext
3982 LIBS=$ac_func_search_save_LIBS
3983 fi
3984 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3985 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3986 ac_res=$ac_cv_search_opendir
3987 if test "$ac_res" != no; then
3988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3989
3990 fi
3991
3992 else
3993 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3994 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3995 if test "${ac_cv_search_opendir+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998 ac_func_search_save_LIBS=$LIBS
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005
4006 /* Override any GCC internal prototype to avoid an error.
4007 Use char because int might match the return type of a GCC
4008 builtin and then its argument prototype would still apply. */
4009 #ifdef __cplusplus
4010 extern "C"
4011 #endif
4012 char opendir ();
4013 int
4014 main ()
4015 {
4016 return opendir ();
4017 ;
4018 return 0;
4019 }
4020 _ACEOF
4021 for ac_lib in '' x; do
4022 if test -z "$ac_lib"; then
4023 ac_res="none required"
4024 else
4025 ac_res=-l$ac_lib
4026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4027 fi
4028 rm -f conftest.$ac_objext conftest$ac_exeext
4029 if { (ac_try="$ac_link"
4030 case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033 esac
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_link") 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } && {
4042 test -z "$ac_c_werror_flag" ||
4043 test ! -s conftest.err
4044 } && test -s conftest$ac_exeext &&
4045 $as_test_x conftest$ac_exeext; then
4046 ac_cv_search_opendir=$ac_res
4047 else
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4050
4051
4052 fi
4053
4054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4055 conftest$ac_exeext
4056 if test "${ac_cv_search_opendir+set}" = set; then
4057 break
4058 fi
4059 done
4060 if test "${ac_cv_search_opendir+set}" = set; then
4061 :
4062 else
4063 ac_cv_search_opendir=no
4064 fi
4065 rm conftest.$ac_ext
4066 LIBS=$ac_func_search_save_LIBS
4067 fi
4068 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4069 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4070 ac_res=$ac_cv_search_opendir
4071 if test "$ac_res" != no; then
4072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4073
4074 fi
4075
4076 fi
4077
4078 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4079 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4080 if test "${ac_cv_header_stdc+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083 cat >conftest.$ac_ext <<_ACEOF
4084 /* confdefs.h. */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4089 #include <stdlib.h>
4090 #include <stdarg.h>
4091 #include <string.h>
4092 #include <float.h>
4093
4094 int
4095 main ()
4096 {
4097
4098 ;
4099 return 0;
4100 }
4101 _ACEOF
4102 rm -f conftest.$ac_objext
4103 if { (ac_try="$ac_compile"
4104 case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_compile") 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } && {
4116 test -z "$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4118 } && test -s conftest.$ac_objext; then
4119 ac_cv_header_stdc=yes
4120 else
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4123
4124 ac_cv_header_stdc=no
4125 fi
4126
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128
4129 if test $ac_cv_header_stdc = yes; then
4130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4131 cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h. */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4137 #include <string.h>
4138
4139 _ACEOF
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "memchr" >/dev/null 2>&1; then
4142 :
4143 else
4144 ac_cv_header_stdc=no
4145 fi
4146 rm -f conftest*
4147
4148 fi
4149
4150 if test $ac_cv_header_stdc = yes; then
4151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h. */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 #include <stdlib.h>
4159
4160 _ACEOF
4161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4162 $EGREP "free" >/dev/null 2>&1; then
4163 :
4164 else
4165 ac_cv_header_stdc=no
4166 fi
4167 rm -f conftest*
4168
4169 fi
4170
4171 if test $ac_cv_header_stdc = yes; then
4172 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4173 if test "$cross_compiling" = yes; then
4174 :
4175 else
4176 cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h. */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4182 #include <ctype.h>
4183 #include <stdlib.h>
4184 #if ((' ' & 0x0FF) == 0x020)
4185 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4186 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4187 #else
4188 # define ISLOWER(c) \
4189 (('a' <= (c) && (c) <= 'i') \
4190 || ('j' <= (c) && (c) <= 'r') \
4191 || ('s' <= (c) && (c) <= 'z'))
4192 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4193 #endif
4194
4195 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4196 int
4197 main ()
4198 {
4199 int i;
4200 for (i = 0; i < 256; i++)
4201 if (XOR (islower (i), ISLOWER (i))
4202 || toupper (i) != TOUPPER (i))
4203 return 2;
4204 return 0;
4205 }
4206 _ACEOF
4207 rm -f conftest$ac_exeext
4208 if { (ac_try="$ac_link"
4209 case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212 esac
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_link") 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4218 { (case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221 esac
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_try") 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; }; then
4227 :
4228 else
4229 echo "$as_me: program exited with status $ac_status" >&5
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4232
4233 ( exit $ac_status )
4234 ac_cv_header_stdc=no
4235 fi
4236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4237 fi
4238
4239
4240 fi
4241 fi
4242 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4243 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4244 if test $ac_cv_header_stdc = yes; then
4245
4246 cat >>confdefs.h <<\_ACEOF
4247 #define STDC_HEADERS 1
4248 _ACEOF
4249
4250 fi
4251
4252 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4253 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
4254 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257 cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h. */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4263 #include <sys/types.h>
4264 #include <sys/wait.h>
4265 #ifndef WEXITSTATUS
4266 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4267 #endif
4268 #ifndef WIFEXITED
4269 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4270 #endif
4271
4272 int
4273 main ()
4274 {
4275 int s;
4276 wait (&s);
4277 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4278 ;
4279 return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest.$ac_objext
4283 if { (ac_try="$ac_compile"
4284 case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287 esac
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_compile") 2>conftest.er1
4290 ac_status=$?
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } && {
4296 test -z "$ac_c_werror_flag" ||
4297 test ! -s conftest.err
4298 } && test -s conftest.$ac_objext; then
4299 ac_cv_header_sys_wait_h=yes
4300 else
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4303
4304 ac_cv_header_sys_wait_h=no
4305 fi
4306
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 fi
4309 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4310 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
4311 if test $ac_cv_header_sys_wait_h = yes; then
4312
4313 cat >>confdefs.h <<\_ACEOF
4314 #define HAVE_SYS_WAIT_H 1
4315 _ACEOF
4316
4317 fi
4318
4319 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4320 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4321 if test "${ac_cv_header_time+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324 cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h. */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 #include <sys/types.h>
4331 #include <sys/time.h>
4332 #include <time.h>
4333
4334 int
4335 main ()
4336 {
4337 if ((struct tm *) 0)
4338 return 0;
4339 ;
4340 return 0;
4341 }
4342 _ACEOF
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
4345 case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348 esac
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_compile") 2>conftest.er1
4351 ac_status=$?
4352 grep -v '^ *+' conftest.er1 >conftest.err
4353 rm -f conftest.er1
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } && {
4357 test -z "$ac_c_werror_flag" ||
4358 test ! -s conftest.err
4359 } && test -s conftest.$ac_objext; then
4360 ac_cv_header_time=yes
4361 else
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4364
4365 ac_cv_header_time=no
4366 fi
4367
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 fi
4370 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4371 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4372 if test $ac_cv_header_time = yes; then
4373
4374 cat >>confdefs.h <<\_ACEOF
4375 #define TIME_WITH_SYS_TIME 1
4376 _ACEOF
4377
4378 fi
4379
4380
4381 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4392 inttypes.h stdint.h unistd.h
4393 do
4394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400 cat >conftest.$ac_ext <<_ACEOF
4401 /* confdefs.h. */
4402 _ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4406 $ac_includes_default
4407
4408 #include <$ac_header>
4409 _ACEOF
4410 rm -f conftest.$ac_objext
4411 if { (ac_try="$ac_compile"
4412 case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4415 esac
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417 (eval "$ac_compile") 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } && {
4424 test -z "$ac_c_werror_flag" ||
4425 test ! -s conftest.err
4426 } && test -s conftest.$ac_objext; then
4427 eval "$as_ac_Header=yes"
4428 else
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4431
4432 eval "$as_ac_Header=no"
4433 fi
4434
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 fi
4437 ac_res=`eval echo '${'$as_ac_Header'}'`
4438 { echo "$as_me:$LINENO: result: $ac_res" >&5
4439 echo "${ECHO_T}$ac_res" >&6; }
4440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4441 cat >>confdefs.h <<_ACEOF
4442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4443 _ACEOF
4444
4445 fi
4446
4447 done
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4464 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4465 do
4466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 fi
4473 ac_res=`eval echo '${'$as_ac_Header'}'`
4474 { echo "$as_me:$LINENO: result: $ac_res" >&5
4475 echo "${ECHO_T}$ac_res" >&6; }
4476 else
4477 # Is the header compilable?
4478 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4480 cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h. */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 $ac_includes_default
4487 #include <$ac_header>
4488 _ACEOF
4489 rm -f conftest.$ac_objext
4490 if { (ac_try="$ac_compile"
4491 case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494 esac
4495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496 (eval "$ac_compile") 2>conftest.er1
4497 ac_status=$?
4498 grep -v '^ *+' conftest.er1 >conftest.err
4499 rm -f conftest.er1
4500 cat conftest.err >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } && {
4503 test -z "$ac_c_werror_flag" ||
4504 test ! -s conftest.err
4505 } && test -s conftest.$ac_objext; then
4506 ac_header_compiler=yes
4507 else
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511 ac_header_compiler=no
4512 fi
4513
4514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4516 echo "${ECHO_T}$ac_header_compiler" >&6; }
4517
4518 # Is the header present?
4519 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 #include <$ac_header>
4528 _ACEOF
4529 if { (ac_try="$ac_cpp conftest.$ac_ext"
4530 case "(($ac_try" in
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4533 esac
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4536 ac_status=$?
4537 grep -v '^ *+' conftest.er1 >conftest.err
4538 rm -f conftest.er1
4539 cat conftest.err >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } >/dev/null && {
4542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4543 test ! -s conftest.err
4544 }; then
4545 ac_header_preproc=yes
4546 else
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4549
4550 ac_header_preproc=no
4551 fi
4552
4553 rm -f conftest.err conftest.$ac_ext
4554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4555 echo "${ECHO_T}$ac_header_preproc" >&6; }
4556
4557 # So? What about this header?
4558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4559 yes:no: )
4560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4564 ac_header_preproc=yes
4565 ;;
4566 no:yes:* )
4567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4579
4580 ;;
4581 esac
4582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 eval "$as_ac_Header=\$ac_header_preproc"
4588 fi
4589 ac_res=`eval echo '${'$as_ac_Header'}'`
4590 { echo "$as_me:$LINENO: result: $ac_res" >&5
4591 echo "${ECHO_T}$ac_res" >&6; }
4592
4593 fi
4594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4595 cat >>confdefs.h <<_ACEOF
4596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4597 _ACEOF
4598
4599 else
4600 { { echo "$as_me:$LINENO: error: bailing out" >&5
4601 echo "$as_me: error: bailing out" >&2;}
4602 { (exit 1); exit 1; }; }
4603 fi
4604
4605 done
4606
4607
4608 case "$host_os" in
4609 linux*)
4610
4611
4612
4613 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4614 do
4615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 fi
4622 ac_res=`eval echo '${'$as_ac_Header'}'`
4623 { echo "$as_me:$LINENO: result: $ac_res" >&5
4624 echo "${ECHO_T}$ac_res" >&6; }
4625 else
4626 # Is the header compilable?
4627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4629 cat >conftest.$ac_ext <<_ACEOF
4630 /* confdefs.h. */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4635 $ac_includes_default
4636 #include <$ac_header>
4637 _ACEOF
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4640 case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4643 esac
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_compile") 2>conftest.er1
4646 ac_status=$?
4647 grep -v '^ *+' conftest.er1 >conftest.err
4648 rm -f conftest.er1
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } && {
4652 test -z "$ac_c_werror_flag" ||
4653 test ! -s conftest.err
4654 } && test -s conftest.$ac_objext; then
4655 ac_header_compiler=yes
4656 else
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4659
4660 ac_header_compiler=no
4661 fi
4662
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4665 echo "${ECHO_T}$ac_header_compiler" >&6; }
4666
4667 # Is the header present?
4668 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4670 cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 #include <$ac_header>
4677 _ACEOF
4678 if { (ac_try="$ac_cpp conftest.$ac_ext"
4679 case "(($ac_try" in
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4682 esac
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4685 ac_status=$?
4686 grep -v '^ *+' conftest.er1 >conftest.err
4687 rm -f conftest.er1
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } >/dev/null && {
4691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4692 test ! -s conftest.err
4693 }; then
4694 ac_header_preproc=yes
4695 else
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4698
4699 ac_header_preproc=no
4700 fi
4701
4702 rm -f conftest.err conftest.$ac_ext
4703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4704 echo "${ECHO_T}$ac_header_preproc" >&6; }
4705
4706 # So? What about this header?
4707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4708 yes:no: )
4709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4713 ac_header_preproc=yes
4714 ;;
4715 no:yes:* )
4716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4728
4729 ;;
4730 esac
4731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736 eval "$as_ac_Header=\$ac_header_preproc"
4737 fi
4738 ac_res=`eval echo '${'$as_ac_Header'}'`
4739 { echo "$as_me:$LINENO: result: $ac_res" >&5
4740 echo "${ECHO_T}$ac_res" >&6; }
4741
4742 fi
4743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4744 cat >>confdefs.h <<_ACEOF
4745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4746 _ACEOF
4747
4748 else
4749 { { echo "$as_me:$LINENO: error: bailing out" >&5
4750 echo "$as_me: error: bailing out" >&2;}
4751 { (exit 1); exit 1; }; }
4752 fi
4753
4754 done
4755 ;;
4756 darwin*)
4757
4758
4759 for ac_header in machine/endian.h sys/disk.h
4760 do
4761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 fi
4768 ac_res=`eval echo '${'$as_ac_Header'}'`
4769 { echo "$as_me:$LINENO: result: $ac_res" >&5
4770 echo "${ECHO_T}$ac_res" >&6; }
4771 else
4772 # Is the header compilable?
4773 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4775 cat >conftest.$ac_ext <<_ACEOF
4776 /* confdefs.h. */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4781 $ac_includes_default
4782 #include <$ac_header>
4783 _ACEOF
4784 rm -f conftest.$ac_objext
4785 if { (ac_try="$ac_compile"
4786 case "(($ac_try" in
4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788 *) ac_try_echo=$ac_try;;
4789 esac
4790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4791 (eval "$ac_compile") 2>conftest.er1
4792 ac_status=$?
4793 grep -v '^ *+' conftest.er1 >conftest.err
4794 rm -f conftest.er1
4795 cat conftest.err >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } && {
4798 test -z "$ac_c_werror_flag" ||
4799 test ! -s conftest.err
4800 } && test -s conftest.$ac_objext; then
4801 ac_header_compiler=yes
4802 else
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4805
4806 ac_header_compiler=no
4807 fi
4808
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4811 echo "${ECHO_T}$ac_header_compiler" >&6; }
4812
4813 # Is the header present?
4814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 #include <$ac_header>
4823 _ACEOF
4824 if { (ac_try="$ac_cpp conftest.$ac_ext"
4825 case "(($ac_try" in
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4828 esac
4829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } >/dev/null && {
4837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4838 test ! -s conftest.err
4839 }; then
4840 ac_header_preproc=yes
4841 else
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4844
4845 ac_header_preproc=no
4846 fi
4847
4848 rm -f conftest.err conftest.$ac_ext
4849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4850 echo "${ECHO_T}$ac_header_preproc" >&6; }
4851
4852 # So? What about this header?
4853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4854 yes:no: )
4855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4859 ac_header_preproc=yes
4860 ;;
4861 no:yes:* )
4862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4869 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4874
4875 ;;
4876 esac
4877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882 eval "$as_ac_Header=\$ac_header_preproc"
4883 fi
4884 ac_res=`eval echo '${'$as_ac_Header'}'`
4885 { echo "$as_me:$LINENO: result: $ac_res" >&5
4886 echo "${ECHO_T}$ac_res" >&6; }
4887
4888 fi
4889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4890 cat >>confdefs.h <<_ACEOF
4891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4892 _ACEOF
4893
4894 else
4895 { { echo "$as_me:$LINENO: error: bailing out" >&5
4896 echo "$as_me: error: bailing out" >&2;}
4897 { (exit 1); exit 1; }; }
4898 fi
4899
4900 done
4901 ;;
4902 esac
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4921 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4922 sys/types.h unistd.h
4923 do
4924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 fi
4931 ac_res=`eval echo '${'$as_ac_Header'}'`
4932 { echo "$as_me:$LINENO: result: $ac_res" >&5
4933 echo "${ECHO_T}$ac_res" >&6; }
4934 else
4935 # Is the header compilable?
4936 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4938 cat >conftest.$ac_ext <<_ACEOF
4939 /* confdefs.h. */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4944 $ac_includes_default
4945 #include <$ac_header>
4946 _ACEOF
4947 rm -f conftest.$ac_objext
4948 if { (ac_try="$ac_compile"
4949 case "(($ac_try" in
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4952 esac
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954 (eval "$ac_compile") 2>conftest.er1
4955 ac_status=$?
4956 grep -v '^ *+' conftest.er1 >conftest.err
4957 rm -f conftest.er1
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } && {
4961 test -z "$ac_c_werror_flag" ||
4962 test ! -s conftest.err
4963 } && test -s conftest.$ac_objext; then
4964 ac_header_compiler=yes
4965 else
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4968
4969 ac_header_compiler=no
4970 fi
4971
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4974 echo "${ECHO_T}$ac_header_compiler" >&6; }
4975
4976 # Is the header present?
4977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4979 cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h. */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985 #include <$ac_header>
4986 _ACEOF
4987 if { (ac_try="$ac_cpp conftest.$ac_ext"
4988 case "(($ac_try" in
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4991 esac
4992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } >/dev/null && {
5000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5001 test ! -s conftest.err
5002 }; then
5003 ac_header_preproc=yes
5004 else
5005 echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5007
5008 ac_header_preproc=no
5009 fi
5010
5011 rm -f conftest.err conftest.$ac_ext
5012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5013 echo "${ECHO_T}$ac_header_preproc" >&6; }
5014
5015 # So? What about this header?
5016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5017 yes:no: )
5018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5022 ac_header_preproc=yes
5023 ;;
5024 no:yes:* )
5025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5037
5038 ;;
5039 esac
5040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 else
5045 eval "$as_ac_Header=\$ac_header_preproc"
5046 fi
5047 ac_res=`eval echo '${'$as_ac_Header'}'`
5048 { echo "$as_me:$LINENO: result: $ac_res" >&5
5049 echo "${ECHO_T}$ac_res" >&6; }
5050
5051 fi
5052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5053 cat >>confdefs.h <<_ACEOF
5054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5055 _ACEOF
5056
5057 else
5058 { { echo "$as_me:$LINENO: error: bailing out" >&5
5059 echo "$as_me: error: bailing out" >&2;}
5060 { (exit 1); exit 1; }; }
5061 fi
5062
5063 done
5064
5065
5066
5067 for ac_header in termios.h sys/statvfs.h
5068 do
5069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 fi
5076 ac_res=`eval echo '${'$as_ac_Header'}'`
5077 { echo "$as_me:$LINENO: result: $ac_res" >&5
5078 echo "${ECHO_T}$ac_res" >&6; }
5079 else
5080 # Is the header compilable?
5081 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5083 cat >conftest.$ac_ext <<_ACEOF
5084 /* confdefs.h. */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089 $ac_includes_default
5090 #include <$ac_header>
5091 _ACEOF
5092 rm -f conftest.$ac_objext
5093 if { (ac_try="$ac_compile"
5094 case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5097 esac
5098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099 (eval "$ac_compile") 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } && {
5106 test -z "$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5108 } && test -s conftest.$ac_objext; then
5109 ac_header_compiler=yes
5110 else
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5113
5114 ac_header_compiler=no
5115 fi
5116
5117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5119 echo "${ECHO_T}$ac_header_compiler" >&6; }
5120
5121 # Is the header present?
5122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5124 cat >conftest.$ac_ext <<_ACEOF
5125 /* confdefs.h. */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5130 #include <$ac_header>
5131 _ACEOF
5132 if { (ac_try="$ac_cpp conftest.$ac_ext"
5133 case "(($ac_try" in
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5136 esac
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5139 ac_status=$?
5140 grep -v '^ *+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } >/dev/null && {
5145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5146 test ! -s conftest.err
5147 }; then
5148 ac_header_preproc=yes
5149 else
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153 ac_header_preproc=no
5154 fi
5155
5156 rm -f conftest.err conftest.$ac_ext
5157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5158 echo "${ECHO_T}$ac_header_preproc" >&6; }
5159
5160 # So? What about this header?
5161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5162 yes:no: )
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5167 ac_header_preproc=yes
5168 ;;
5169 no:yes:* )
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5182
5183 ;;
5184 esac
5185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190 eval "$as_ac_Header=\$ac_header_preproc"
5191 fi
5192 ac_res=`eval echo '${'$as_ac_Header'}'`
5193 { echo "$as_me:$LINENO: result: $ac_res" >&5
5194 echo "${ECHO_T}$ac_res" >&6; }
5195
5196 fi
5197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5198 cat >>confdefs.h <<_ACEOF
5199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5200 _ACEOF
5201
5202 fi
5203
5204 done
5205
5206
5207 ################################################################################
5208 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5209 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5210 if test "${ac_cv_c_const+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213 cat >conftest.$ac_ext <<_ACEOF
5214 /* confdefs.h. */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219
5220 int
5221 main ()
5222 {
5223 /* FIXME: Include the comments suggested by Paul. */
5224 #ifndef __cplusplus
5225 /* Ultrix mips cc rejects this. */
5226 typedef int charset[2];
5227 const charset cs;
5228 /* SunOS 4.1.1 cc rejects this. */
5229 char const *const *pcpcc;
5230 char **ppc;
5231 /* NEC SVR4.0.2 mips cc rejects this. */
5232 struct point {int x, y;};
5233 static struct point const zero = {0,0};
5234 /* AIX XL C 1.02.0.0 rejects this.
5235 It does not let you subtract one const X* pointer from another in
5236 an arm of an if-expression whose if-part is not a constant
5237 expression */
5238 const char *g = "string";
5239 pcpcc = &g + (g ? g-g : 0);
5240 /* HPUX 7.0 cc rejects these. */
5241 ++pcpcc;
5242 ppc = (char**) pcpcc;
5243 pcpcc = (char const *const *) ppc;
5244 { /* SCO 3.2v4 cc rejects this. */
5245 char *t;
5246 char const *s = 0 ? (char *) 0 : (char const *) 0;
5247
5248 *t++ = 0;
5249 if (s) return 0;
5250 }
5251 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5252 int x[] = {25, 17};
5253 const int *foo = &x[0];
5254 ++foo;
5255 }
5256 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5257 typedef const int *iptr;
5258 iptr p = 0;
5259 ++p;
5260 }
5261 { /* AIX XL C 1.02.0.0 rejects this saying
5262 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5263 struct s { int j; const int *ap[3]; };
5264 struct s *b; b->j = 5;
5265 }
5266 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5267 const int foo = 10;
5268 if (!foo) return 0;
5269 }
5270 return !cs[0] && !zero.x;
5271 #endif
5272
5273 ;
5274 return 0;
5275 }
5276 _ACEOF
5277 rm -f conftest.$ac_objext
5278 if { (ac_try="$ac_compile"
5279 case "(($ac_try" in
5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 *) ac_try_echo=$ac_try;;
5282 esac
5283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5284 (eval "$ac_compile") 2>conftest.er1
5285 ac_status=$?
5286 grep -v '^ *+' conftest.er1 >conftest.err
5287 rm -f conftest.er1
5288 cat conftest.err >&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } && {
5291 test -z "$ac_c_werror_flag" ||
5292 test ! -s conftest.err
5293 } && test -s conftest.$ac_objext; then
5294 ac_cv_c_const=yes
5295 else
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5298
5299 ac_cv_c_const=no
5300 fi
5301
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 fi
5304 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5305 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5306 if test $ac_cv_c_const = no; then
5307
5308 cat >>confdefs.h <<\_ACEOF
5309 #define const
5310 _ACEOF
5311
5312 fi
5313
5314 { echo "$as_me:$LINENO: checking for inline" >&5
5315 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5316 if test "${ac_cv_c_inline+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319 ac_cv_c_inline=no
5320 for ac_kw in inline __inline__ __inline; do
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 #ifndef __cplusplus
5328 typedef int foo_t;
5329 static $ac_kw foo_t static_foo () {return 0; }
5330 $ac_kw foo_t foo () {return 0; }
5331 #endif
5332
5333 _ACEOF
5334 rm -f conftest.$ac_objext
5335 if { (ac_try="$ac_compile"
5336 case "(($ac_try" in
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5339 esac
5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341 (eval "$ac_compile") 2>conftest.er1
5342 ac_status=$?
5343 grep -v '^ *+' conftest.er1 >conftest.err
5344 rm -f conftest.er1
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } && {
5348 test -z "$ac_c_werror_flag" ||
5349 test ! -s conftest.err
5350 } && test -s conftest.$ac_objext; then
5351 ac_cv_c_inline=$ac_kw
5352 else
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5355
5356
5357 fi
5358
5359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360 test "$ac_cv_c_inline" != no && break
5361 done
5362
5363 fi
5364 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5365 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5366
5367
5368 case $ac_cv_c_inline in
5369 inline | yes) ;;
5370 *)
5371 case $ac_cv_c_inline in
5372 no) ac_val=;;
5373 *) ac_val=$ac_cv_c_inline;;
5374 esac
5375 cat >>confdefs.h <<_ACEOF
5376 #ifndef __cplusplus
5377 #define inline $ac_val
5378 #endif
5379 _ACEOF
5380 ;;
5381 esac
5382
5383 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5384 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
5385 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388 cat >conftest.$ac_ext <<_ACEOF
5389 /* confdefs.h. */
5390 _ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5394 $ac_includes_default
5395 int
5396 main ()
5397 {
5398 static struct stat ac_aggr;
5399 if (ac_aggr.st_rdev)
5400 return 0;
5401 ;
5402 return 0;
5403 }
5404 _ACEOF
5405 rm -f conftest.$ac_objext
5406 if { (ac_try="$ac_compile"
5407 case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410 esac
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_compile") 2>conftest.er1
5413 ac_status=$?
5414 grep -v '^ *+' conftest.er1 >conftest.err
5415 rm -f conftest.er1
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && {
5419 test -z "$ac_c_werror_flag" ||
5420 test ! -s conftest.err
5421 } && test -s conftest.$ac_objext; then
5422 ac_cv_member_struct_stat_st_rdev=yes
5423 else
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5426
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 $ac_includes_default
5434 int
5435 main ()
5436 {
5437 static struct stat ac_aggr;
5438 if (sizeof ac_aggr.st_rdev)
5439 return 0;
5440 ;
5441 return 0;
5442 }
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (ac_try="$ac_compile"
5446 case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449 esac
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_compile") 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && {
5458 test -z "$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 } && test -s conftest.$ac_objext; then
5461 ac_cv_member_struct_stat_st_rdev=yes
5462 else
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466 ac_cv_member_struct_stat_st_rdev=no
5467 fi
5468
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 fi
5471
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 fi
5474 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5475 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
5476 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5477
5478 cat >>confdefs.h <<_ACEOF
5479 #define HAVE_STRUCT_STAT_ST_RDEV 1
5480 _ACEOF
5481
5482
5483 fi
5484
5485 { echo "$as_me:$LINENO: checking for off_t" >&5
5486 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5487 if test "${ac_cv_type_off_t+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490 cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h. */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 $ac_includes_default
5497 typedef off_t ac__type_new_;
5498 int
5499 main ()
5500 {
5501 if ((ac__type_new_ *) 0)
5502 return 0;
5503 if (sizeof (ac__type_new_))
5504 return 0;
5505 ;
5506 return 0;
5507 }
5508 _ACEOF
5509 rm -f conftest.$ac_objext
5510 if { (ac_try="$ac_compile"
5511 case "(($ac_try" in
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5514 esac
5515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5516 (eval "$ac_compile") 2>conftest.er1
5517 ac_status=$?
5518 grep -v '^ *+' conftest.er1 >conftest.err
5519 rm -f conftest.er1
5520 cat conftest.err >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); } && {
5523 test -z "$ac_c_werror_flag" ||
5524 test ! -s conftest.err
5525 } && test -s conftest.$ac_objext; then
5526 ac_cv_type_off_t=yes
5527 else
5528 echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5530
5531 ac_cv_type_off_t=no
5532 fi
5533
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 fi
5536 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5537 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5538 if test $ac_cv_type_off_t = yes; then
5539 :
5540 else
5541
5542 cat >>confdefs.h <<_ACEOF
5543 #define off_t long int
5544 _ACEOF
5545
5546 fi
5547
5548 { echo "$as_me:$LINENO: checking for pid_t" >&5
5549 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5550 if test "${ac_cv_type_pid_t+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h. */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559 $ac_includes_default
5560 typedef pid_t ac__type_new_;
5561 int
5562 main ()
5563 {
5564 if ((ac__type_new_ *) 0)
5565 return 0;
5566 if (sizeof (ac__type_new_))
5567 return 0;
5568 ;
5569 return 0;
5570 }
5571 _ACEOF
5572 rm -f conftest.$ac_objext
5573 if { (ac_try="$ac_compile"
5574 case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577 esac
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_compile") 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && {
5586 test -z "$ac_c_werror_flag" ||
5587 test ! -s conftest.err
5588 } && test -s conftest.$ac_objext; then
5589 ac_cv_type_pid_t=yes
5590 else
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5593
5594 ac_cv_type_pid_t=no
5595 fi
5596
5597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 fi
5599 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5600 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5601 if test $ac_cv_type_pid_t = yes; then
5602 :
5603 else
5604
5605 cat >>confdefs.h <<_ACEOF
5606 #define pid_t int
5607 _ACEOF
5608
5609 fi
5610
5611 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5612 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
5613 if test "${ac_cv_type_signal+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616 cat >conftest.$ac_ext <<_ACEOF
5617 /* confdefs.h. */
5618 _ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 #include <sys/types.h>
5623 #include <signal.h>
5624
5625 int
5626 main ()
5627 {
5628 return *(signal (0, 0)) (0) == 1;
5629 ;
5630 return 0;
5631 }
5632 _ACEOF
5633 rm -f conftest.$ac_objext
5634 if { (ac_try="$ac_compile"
5635 case "(($ac_try" in
5636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637 *) ac_try_echo=$ac_try;;
5638 esac
5639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5640 (eval "$ac_compile") 2>conftest.er1
5641 ac_status=$?
5642 grep -v '^ *+' conftest.er1 >conftest.err
5643 rm -f conftest.er1
5644 cat conftest.err >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } && {
5647 test -z "$ac_c_werror_flag" ||
5648 test ! -s conftest.err
5649 } && test -s conftest.$ac_objext; then
5650 ac_cv_type_signal=int
5651 else
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5654
5655 ac_cv_type_signal=void
5656 fi
5657
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 fi
5660 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5661 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
5662
5663 cat >>confdefs.h <<_ACEOF
5664 #define RETSIGTYPE $ac_cv_type_signal
5665 _ACEOF
5666
5667
5668 { echo "$as_me:$LINENO: checking for size_t" >&5
5669 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5670 if test "${ac_cv_type_size_t+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h. */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679 $ac_includes_default
5680 typedef size_t ac__type_new_;
5681 int
5682 main ()
5683 {
5684 if ((ac__type_new_ *) 0)
5685 return 0;
5686 if (sizeof (ac__type_new_))
5687 return 0;
5688 ;
5689 return 0;
5690 }
5691 _ACEOF
5692 rm -f conftest.$ac_objext
5693 if { (ac_try="$ac_compile"
5694 case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697 esac
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_compile") 2>conftest.er1
5700 ac_status=$?
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && {
5706 test -z "$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest.$ac_objext; then
5709 ac_cv_type_size_t=yes
5710 else
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5713
5714 ac_cv_type_size_t=no
5715 fi
5716
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718 fi
5719 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5720 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5721 if test $ac_cv_type_size_t = yes; then
5722 :
5723 else
5724
5725 cat >>confdefs.h <<_ACEOF
5726 #define size_t unsigned int
5727 _ACEOF
5728
5729 fi
5730
5731 { echo "$as_me:$LINENO: checking for mode_t" >&5
5732 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
5733 if test "${ac_cv_type_mode_t+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736 cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h. */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 $ac_includes_default
5743 typedef mode_t ac__type_new_;
5744 int
5745 main ()
5746 {
5747 if ((ac__type_new_ *) 0)
5748 return 0;
5749 if (sizeof (ac__type_new_))
5750 return 0;
5751 ;
5752 return 0;
5753 }
5754 _ACEOF
5755 rm -f conftest.$ac_objext
5756 if { (ac_try="$ac_compile"
5757 case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760 esac
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_compile") 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } && {
5769 test -z "$ac_c_werror_flag" ||
5770 test ! -s conftest.err
5771 } && test -s conftest.$ac_objext; then
5772 ac_cv_type_mode_t=yes
5773 else
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5776
5777 ac_cv_type_mode_t=no
5778 fi
5779
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 fi
5782 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5783 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
5784 if test $ac_cv_type_mode_t = yes; then
5785 :
5786 else
5787
5788 cat >>confdefs.h <<_ACEOF
5789 #define mode_t int
5790 _ACEOF
5791
5792 fi
5793
5794 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5795 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
5796 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 $ac_includes_default
5806 int
5807 main ()
5808 {
5809 static struct stat ac_aggr;
5810 if (ac_aggr.st_rdev)
5811 return 0;
5812 ;
5813 return 0;
5814 }
5815 _ACEOF
5816 rm -f conftest.$ac_objext
5817 if { (ac_try="$ac_compile"
5818 case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821 esac
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.$ac_objext; then
5833 ac_cv_member_struct_stat_st_rdev=yes
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5837
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 $ac_includes_default
5845 int
5846 main ()
5847 {
5848 static struct stat ac_aggr;
5849 if (sizeof ac_aggr.st_rdev)
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862 (eval "$ac_compile") 2>conftest.er1
5863 ac_status=$?
5864 grep -v '^ *+' conftest.er1 >conftest.err
5865 rm -f conftest.er1
5866 cat conftest.err >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } && {
5869 test -z "$ac_c_werror_flag" ||
5870 test ! -s conftest.err
5871 } && test -s conftest.$ac_objext; then
5872 ac_cv_member_struct_stat_st_rdev=yes
5873 else
5874 echo "$as_me: failed program was:" >&5
5875 sed 's/^/| /' conftest.$ac_ext >&5
5876
5877 ac_cv_member_struct_stat_st_rdev=no
5878 fi
5879
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881 fi
5882
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 fi
5885 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5886 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
5887 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5888
5889 cat >>confdefs.h <<_ACEOF
5890 #define HAVE_STRUCT_STAT_ST_RDEV 1
5891 _ACEOF
5892
5893
5894 fi
5895
5896 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5897 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5898 if test "${ac_cv_struct_tm+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901 cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h. */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 #include <sys/types.h>
5908 #include <time.h>
5909
5910 int
5911 main ()
5912 {
5913 struct tm tm;
5914 int *p = &tm.tm_sec;
5915 return !p;
5916 ;
5917 return 0;
5918 }
5919 _ACEOF
5920 rm -f conftest.$ac_objext
5921 if { (ac_try="$ac_compile"
5922 case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5925 esac
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_compile") 2>conftest.er1
5928 ac_status=$?
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && {
5934 test -z "$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 } && test -s conftest.$ac_objext; then
5937 ac_cv_struct_tm=time.h
5938 else
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942 ac_cv_struct_tm=sys/time.h
5943 fi
5944
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 fi
5947 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5948 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5949 if test $ac_cv_struct_tm = sys/time.h; then
5950
5951 cat >>confdefs.h <<\_ACEOF
5952 #define TM_IN_SYS_TIME 1
5953 _ACEOF
5954
5955 fi
5956
5957
5958 ################################################################################
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
5977 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
5978 uname
5979 do
5980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986 cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h. */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5994 #define $ac_func innocuous_$ac_func
5995
5996 /* System header to define __stub macros and hopefully few prototypes,
5997 which can conflict with char $ac_func (); below.
5998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5999 <limits.h> exists even on freestanding compilers. */
6000
6001 #ifdef __STDC__
6002 # include <limits.h>
6003 #else
6004 # include <assert.h>
6005 #endif
6006
6007 #undef $ac_func
6008
6009 /* Override any GCC internal prototype to avoid an error.
6010 Use char because int might match the return type of a GCC
6011 builtin and then its argument prototype would still apply. */
6012 #ifdef __cplusplus
6013 extern "C"
6014 #endif
6015 char $ac_func ();
6016 /* The GNU C library defines this for functions which it implements
6017 to always fail with ENOSYS. Some functions are actually named
6018 something starting with __ and the normal name is an alias. */
6019 #if defined __stub_$ac_func || defined __stub___$ac_func
6020 choke me
6021 #endif
6022
6023 int
6024 main ()
6025 {
6026 return $ac_func ();
6027 ;
6028 return 0;
6029 }
6030 _ACEOF
6031 rm -f conftest.$ac_objext conftest$ac_exeext
6032 if { (ac_try="$ac_link"
6033 case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036 esac
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_link") 2>conftest.er1
6039 ac_status=$?
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } && {
6045 test -z "$ac_c_werror_flag" ||
6046 test ! -s conftest.err
6047 } && test -s conftest$ac_exeext &&
6048 $as_test_x conftest$ac_exeext; then
6049 eval "$as_ac_var=yes"
6050 else
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6053
6054 eval "$as_ac_var=no"
6055 fi
6056
6057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6058 conftest$ac_exeext conftest.$ac_ext
6059 fi
6060 ac_res=`eval echo '${'$as_ac_var'}'`
6061 { echo "$as_me:$LINENO: result: $ac_res" >&5
6062 echo "${ECHO_T}$ac_res" >&6; }
6063 if test `eval echo '${'$as_ac_var'}'` = yes; then
6064 cat >>confdefs.h <<_ACEOF
6065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6066 _ACEOF
6067
6068 else
6069 { { echo "$as_me:$LINENO: error: bailing out" >&5
6070 echo "$as_me: error: bailing out" >&2;}
6071 { (exit 1); exit 1; }; }
6072 fi
6073 done
6074
6075 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6076 # for constant arguments. Useless!
6077 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6078 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6079 if test "${ac_cv_working_alloca_h+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082 cat >conftest.$ac_ext <<_ACEOF
6083 /* confdefs.h. */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6088 #include <alloca.h>
6089 int
6090 main ()
6091 {
6092 char *p = (char *) alloca (2 * sizeof (int));
6093 if (p) return 0;
6094 ;
6095 return 0;
6096 }
6097 _ACEOF
6098 rm -f conftest.$ac_objext conftest$ac_exeext
6099 if { (ac_try="$ac_link"
6100 case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103 esac
6104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6105 (eval "$ac_link") 2>conftest.er1
6106 ac_status=$?
6107 grep -v '^ *+' conftest.er1 >conftest.err
6108 rm -f conftest.er1
6109 cat conftest.err >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } && {
6112 test -z "$ac_c_werror_flag" ||
6113 test ! -s conftest.err
6114 } && test -s conftest$ac_exeext &&
6115 $as_test_x conftest$ac_exeext; then
6116 ac_cv_working_alloca_h=yes
6117 else
6118 echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6120
6121 ac_cv_working_alloca_h=no
6122 fi
6123
6124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6125 conftest$ac_exeext conftest.$ac_ext
6126 fi
6127 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6128 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6129 if test $ac_cv_working_alloca_h = yes; then
6130
6131 cat >>confdefs.h <<\_ACEOF
6132 #define HAVE_ALLOCA_H 1
6133 _ACEOF
6134
6135 fi
6136
6137 { echo "$as_me:$LINENO: checking for alloca" >&5
6138 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6139 if test "${ac_cv_func_alloca_works+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142 cat >conftest.$ac_ext <<_ACEOF
6143 /* confdefs.h. */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6148 #ifdef __GNUC__
6149 # define alloca __builtin_alloca
6150 #else
6151 # ifdef _MSC_VER
6152 # include <malloc.h>
6153 # define alloca _alloca
6154 # else
6155 # ifdef HAVE_ALLOCA_H
6156 # include <alloca.h>
6157 # else
6158 # ifdef _AIX
6159 #pragma alloca
6160 # else
6161 # ifndef alloca /* predefined by HP cc +Olibcalls */
6162 char *alloca ();
6163 # endif
6164 # endif
6165 # endif
6166 # endif
6167 #endif
6168
6169 int
6170 main ()
6171 {
6172 char *p = (char *) alloca (1);
6173 if (p) return 0;
6174 ;
6175 return 0;
6176 }
6177 _ACEOF
6178 rm -f conftest.$ac_objext conftest$ac_exeext
6179 if { (ac_try="$ac_link"
6180 case "(($ac_try" in
6181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182 *) ac_try_echo=$ac_try;;
6183 esac
6184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185 (eval "$ac_link") 2>conftest.er1
6186 ac_status=$?
6187 grep -v '^ *+' conftest.er1 >conftest.err
6188 rm -f conftest.er1
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } && {
6192 test -z "$ac_c_werror_flag" ||
6193 test ! -s conftest.err
6194 } && test -s conftest$ac_exeext &&
6195 $as_test_x conftest$ac_exeext; then
6196 ac_cv_func_alloca_works=yes
6197 else
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6200
6201 ac_cv_func_alloca_works=no
6202 fi
6203
6204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6205 conftest$ac_exeext conftest.$ac_ext
6206 fi
6207 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6208 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6209
6210 if test $ac_cv_func_alloca_works = yes; then
6211
6212 cat >>confdefs.h <<\_ACEOF
6213 #define HAVE_ALLOCA 1
6214 _ACEOF
6215
6216 else
6217 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6218 # that cause trouble. Some versions do not even contain alloca or
6219 # contain a buggy version. If you still want to use their alloca,
6220 # use ar to extract alloca.o from them instead of compiling alloca.c.
6221
6222 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6223
6224 cat >>confdefs.h <<\_ACEOF
6225 #define C_ALLOCA 1
6226 _ACEOF
6227
6228
6229 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6230 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6231 if test "${ac_cv_os_cray+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 #if defined CRAY && ! defined CRAY2
6241 webecray
6242 #else
6243 wenotbecray
6244 #endif
6245
6246 _ACEOF
6247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6248 $EGREP "webecray" >/dev/null 2>&1; then
6249 ac_cv_os_cray=yes
6250 else
6251 ac_cv_os_cray=no
6252 fi
6253 rm -f conftest*
6254
6255 fi
6256 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6257 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6258 if test $ac_cv_os_cray = yes; then
6259 for ac_func in _getb67 GETB67 getb67; do
6260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6261 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266 cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h. */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6274 #define $ac_func innocuous_$ac_func
6275
6276 /* System header to define __stub macros and hopefully few prototypes,
6277 which can conflict with char $ac_func (); below.
6278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6279 <limits.h> exists even on freestanding compilers. */
6280
6281 #ifdef __STDC__
6282 # include <limits.h>
6283 #else
6284 # include <assert.h>
6285 #endif
6286
6287 #undef $ac_func
6288
6289 /* Override any GCC internal prototype to avoid an error.
6290 Use char because int might match the return type of a GCC
6291 builtin and then its argument prototype would still apply. */
6292 #ifdef __cplusplus
6293 extern "C"
6294 #endif
6295 char $ac_func ();
6296 /* The GNU C library defines this for functions which it implements
6297 to always fail with ENOSYS. Some functions are actually named
6298 something starting with __ and the normal name is an alias. */
6299 #if defined __stub_$ac_func || defined __stub___$ac_func
6300 choke me
6301 #endif
6302
6303 int
6304 main ()
6305 {
6306 return $ac_func ();
6307 ;
6308 return 0;
6309 }
6310 _ACEOF
6311 rm -f conftest.$ac_objext conftest$ac_exeext
6312 if { (ac_try="$ac_link"
6313 case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316 esac
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_link") 2>conftest.er1
6319 ac_status=$?
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
6327 } && test -s conftest$ac_exeext &&
6328 $as_test_x conftest$ac_exeext; then
6329 eval "$as_ac_var=yes"
6330 else
6331 echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6333
6334 eval "$as_ac_var=no"
6335 fi
6336
6337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6338 conftest$ac_exeext conftest.$ac_ext
6339 fi
6340 ac_res=`eval echo '${'$as_ac_var'}'`
6341 { echo "$as_me:$LINENO: result: $ac_res" >&5
6342 echo "${ECHO_T}$ac_res" >&6; }
6343 if test `eval echo '${'$as_ac_var'}'` = yes; then
6344
6345 cat >>confdefs.h <<_ACEOF
6346 #define CRAY_STACKSEG_END $ac_func
6347 _ACEOF
6348
6349 break
6350 fi
6351
6352 done
6353 fi
6354
6355 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6356 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6357 if test "${ac_cv_c_stack_direction+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360 if test "$cross_compiling" = yes; then
6361 ac_cv_c_stack_direction=0
6362 else
6363 cat >conftest.$ac_ext <<_ACEOF
6364 /* confdefs.h. */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369 $ac_includes_default
6370 int
6371 find_stack_direction ()
6372 {
6373 static char *addr = 0;
6374 auto char dummy;
6375 if (addr == 0)
6376 {
6377 addr = &dummy;
6378 return find_stack_direction ();
6379 }
6380 else
6381 return (&dummy > addr) ? 1 : -1;
6382 }
6383
6384 int
6385 main ()
6386 {
6387 return find_stack_direction () < 0;
6388 }
6389 _ACEOF
6390 rm -f conftest$ac_exeext
6391 if { (ac_try="$ac_link"
6392 case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395 esac
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_link") 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6401 { (case "(($ac_try" in
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6404 esac
6405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$ac_try") 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_cv_c_stack_direction=1
6411 else
6412 echo "$as_me: program exited with status $ac_status" >&5
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416 ( exit $ac_status )
6417 ac_cv_c_stack_direction=-1
6418 fi
6419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6420 fi
6421
6422
6423 fi
6424 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6425 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6426
6427 cat >>confdefs.h <<_ACEOF
6428 #define STACK_DIRECTION $ac_cv_c_stack_direction
6429 _ACEOF
6430
6431
6432 fi
6433
6434 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6435 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
6436 if test "${ac_cv_func_closedir_void+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439 if test "$cross_compiling" = yes; then
6440 ac_cv_func_closedir_void=yes
6441 else
6442 cat >conftest.$ac_ext <<_ACEOF
6443 /* confdefs.h. */
6444 _ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6448 $ac_includes_default
6449 #include <$ac_header_dirent>
6450 #ifndef __cplusplus
6451 int closedir ();
6452 #endif
6453
6454 int
6455 main ()
6456 {
6457 return closedir (opendir (".")) != 0;
6458 ;
6459 return 0;
6460 }
6461 _ACEOF
6462 rm -f conftest$ac_exeext
6463 if { (ac_try="$ac_link"
6464 case "(($ac_try" in
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6467 esac
6468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469 (eval "$ac_link") 2>&5
6470 ac_status=$?
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6473 { (case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476 esac
6477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_try") 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_cv_func_closedir_void=no
6483 else
6484 echo "$as_me: program exited with status $ac_status" >&5
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6487
6488 ( exit $ac_status )
6489 ac_cv_func_closedir_void=yes
6490 fi
6491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6492 fi
6493
6494
6495 fi
6496 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6497 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
6498 if test $ac_cv_func_closedir_void = yes; then
6499
6500 cat >>confdefs.h <<\_ACEOF
6501 #define CLOSEDIR_VOID 1
6502 _ACEOF
6503
6504 fi
6505
6506
6507 for ac_header in vfork.h
6508 do
6509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 fi
6516 ac_res=`eval echo '${'$as_ac_Header'}'`
6517 { echo "$as_me:$LINENO: result: $ac_res" >&5
6518 echo "${ECHO_T}$ac_res" >&6; }
6519 else
6520 # Is the header compilable?
6521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6523 cat >conftest.$ac_ext <<_ACEOF
6524 /* confdefs.h. */
6525 _ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 $ac_includes_default
6530 #include <$ac_header>
6531 _ACEOF
6532 rm -f conftest.$ac_objext
6533 if { (ac_try="$ac_compile"
6534 case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537 esac
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_compile") 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest.$ac_objext; then
6549 ac_header_compiler=yes
6550 else
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6553
6554 ac_header_compiler=no
6555 fi
6556
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6559 echo "${ECHO_T}$ac_header_compiler" >&6; }
6560
6561 # Is the header present?
6562 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 #include <$ac_header>
6571 _ACEOF
6572 if { (ac_try="$ac_cpp conftest.$ac_ext"
6573 case "(($ac_try" in
6574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6575 *) ac_try_echo=$ac_try;;
6576 esac
6577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } >/dev/null && {
6585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6586 test ! -s conftest.err
6587 }; then
6588 ac_header_preproc=yes
6589 else
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_header_preproc=no
6594 fi
6595
6596 rm -f conftest.err conftest.$ac_ext
6597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6598 echo "${ECHO_T}$ac_header_preproc" >&6; }
6599
6600 # So? What about this header?
6601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6602 yes:no: )
6603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6607 ac_header_preproc=yes
6608 ;;
6609 no:yes:* )
6610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6622
6623 ;;
6624 esac
6625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630 eval "$as_ac_Header=\$ac_header_preproc"
6631 fi
6632 ac_res=`eval echo '${'$as_ac_Header'}'`
6633 { echo "$as_me:$LINENO: result: $ac_res" >&5
6634 echo "${ECHO_T}$ac_res" >&6; }
6635
6636 fi
6637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6638 cat >>confdefs.h <<_ACEOF
6639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6640 _ACEOF
6641
6642 fi
6643
6644 done
6645
6646
6647
6648 for ac_func in fork vfork
6649 do
6650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656 cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h. */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6664 #define $ac_func innocuous_$ac_func
6665
6666 /* System header to define __stub macros and hopefully few prototypes,
6667 which can conflict with char $ac_func (); below.
6668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6669 <limits.h> exists even on freestanding compilers. */
6670
6671 #ifdef __STDC__
6672 # include <limits.h>
6673 #else
6674 # include <assert.h>
6675 #endif
6676
6677 #undef $ac_func
6678
6679 /* Override any GCC internal prototype to avoid an error.
6680 Use char because int might match the return type of a GCC
6681 builtin and then its argument prototype would still apply. */
6682 #ifdef __cplusplus
6683 extern "C"
6684 #endif
6685 char $ac_func ();
6686 /* The GNU C library defines this for functions which it implements
6687 to always fail with ENOSYS. Some functions are actually named
6688 something starting with __ and the normal name is an alias. */
6689 #if defined __stub_$ac_func || defined __stub___$ac_func
6690 choke me
6691 #endif
6692
6693 int
6694 main ()
6695 {
6696 return $ac_func ();
6697 ;
6698 return 0;
6699 }
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (ac_try="$ac_link"
6703 case "(($ac_try" in
6704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6705 *) ac_try_echo=$ac_try;;
6706 esac
6707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6708 (eval "$ac_link") 2>conftest.er1
6709 ac_status=$?
6710 grep -v '^ *+' conftest.er1 >conftest.err
6711 rm -f conftest.er1
6712 cat conftest.err >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } && {
6715 test -z "$ac_c_werror_flag" ||
6716 test ! -s conftest.err
6717 } && test -s conftest$ac_exeext &&
6718 $as_test_x conftest$ac_exeext; then
6719 eval "$as_ac_var=yes"
6720 else
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6723
6724 eval "$as_ac_var=no"
6725 fi
6726
6727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6728 conftest$ac_exeext conftest.$ac_ext
6729 fi
6730 ac_res=`eval echo '${'$as_ac_var'}'`
6731 { echo "$as_me:$LINENO: result: $ac_res" >&5
6732 echo "${ECHO_T}$ac_res" >&6; }
6733 if test `eval echo '${'$as_ac_var'}'` = yes; then
6734 cat >>confdefs.h <<_ACEOF
6735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6736 _ACEOF
6737
6738 fi
6739 done
6740
6741 if test "x$ac_cv_func_fork" = xyes; then
6742 { echo "$as_me:$LINENO: checking for working fork" >&5
6743 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
6744 if test "${ac_cv_func_fork_works+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 if test "$cross_compiling" = yes; then
6748 ac_cv_func_fork_works=cross
6749 else
6750 cat >conftest.$ac_ext <<_ACEOF
6751 /* confdefs.h. */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 $ac_includes_default
6757 int
6758 main ()
6759 {
6760
6761 /* By Ruediger Kuhlmann. */
6762 return fork () < 0;
6763
6764 ;
6765 return 0;
6766 }
6767 _ACEOF
6768 rm -f conftest$ac_exeext
6769 if { (ac_try="$ac_link"
6770 case "(($ac_try" in
6771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6772 *) ac_try_echo=$ac_try;;
6773 esac
6774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6775 (eval "$ac_link") 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6779 { (case "(($ac_try" in
6780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6782 esac
6783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6784 (eval "$ac_try") 2>&5
6785 ac_status=$?
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); }; }; then
6788 ac_cv_func_fork_works=yes
6789 else
6790 echo "$as_me: program exited with status $ac_status" >&5
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6793
6794 ( exit $ac_status )
6795 ac_cv_func_fork_works=no
6796 fi
6797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6798 fi
6799
6800
6801 fi
6802 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6803 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
6804
6805 else
6806 ac_cv_func_fork_works=$ac_cv_func_fork
6807 fi
6808 if test "x$ac_cv_func_fork_works" = xcross; then
6809 case $host in
6810 *-*-amigaos* | *-*-msdosdjgpp*)
6811 # Override, as these systems have only a dummy fork() stub
6812 ac_cv_func_fork_works=no
6813 ;;
6814 *)
6815 ac_cv_func_fork_works=yes
6816 ;;
6817 esac
6818 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6819 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6820 fi
6821 ac_cv_func_vfork_works=$ac_cv_func_vfork
6822 if test "x$ac_cv_func_vfork" = xyes; then
6823 { echo "$as_me:$LINENO: checking for working vfork" >&5
6824 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
6825 if test "${ac_cv_func_vfork_works+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828 if test "$cross_compiling" = yes; then
6829 ac_cv_func_vfork_works=cross
6830 else
6831 cat >conftest.$ac_ext <<_ACEOF
6832 /* confdefs.h. */
6833 _ACEOF
6834 cat confdefs.h >>conftest.$ac_ext
6835 cat >>conftest.$ac_ext <<_ACEOF
6836 /* end confdefs.h. */
6837 /* Thanks to Paul Eggert for this test. */
6838 $ac_includes_default
6839 #include <sys/wait.h>
6840 #ifdef HAVE_VFORK_H
6841 # include <vfork.h>
6842 #endif
6843 /* On some sparc systems, changes by the child to local and incoming
6844 argument registers are propagated back to the parent. The compiler
6845 is told about this with #include <vfork.h>, but some compilers
6846 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6847 static variable whose address is put into a register that is
6848 clobbered by the vfork. */
6849 static void
6850 #ifdef __cplusplus
6851 sparc_address_test (int arg)
6852 # else
6853 sparc_address_test (arg) int arg;
6854 #endif
6855 {
6856 static pid_t child;
6857 if (!child) {
6858 child = vfork ();
6859 if (child < 0) {
6860 perror ("vfork");
6861 _exit(2);
6862 }
6863 if (!child) {
6864 arg = getpid();
6865 write(-1, "", 0);
6866 _exit (arg);
6867 }
6868 }
6869 }
6870
6871 int
6872 main ()
6873 {
6874 pid_t parent = getpid ();
6875 pid_t child;
6876
6877 sparc_address_test (0);
6878
6879 child = vfork ();
6880
6881 if (child == 0) {
6882 /* Here is another test for sparc vfork register problems. This
6883 test uses lots of local variables, at least as many local
6884 variables as main has allocated so far including compiler
6885 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6886 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6887 reuse the register of parent for one of the local variables,
6888 since it will think that parent can't possibly be used any more
6889 in this routine. Assigning to the local variable will thus
6890 munge parent in the parent process. */
6891 pid_t
6892 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6893 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6894 /* Convince the compiler that p..p7 are live; otherwise, it might
6895 use the same hardware register for all 8 local variables. */
6896 if (p != p1 || p != p2 || p != p3 || p != p4
6897 || p != p5 || p != p6 || p != p7)
6898 _exit(1);
6899
6900 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6901 from child file descriptors. If the child closes a descriptor
6902 before it execs or exits, this munges the parent's descriptor
6903 as well. Test for this by closing stdout in the child. */
6904 _exit(close(fileno(stdout)) != 0);
6905 } else {
6906 int status;
6907 struct stat st;
6908
6909 while (wait(&status) != child)
6910 ;
6911 return (
6912 /* Was there some problem with vforking? */
6913 child < 0
6914
6915 /* Did the child fail? (This shouldn't happen.) */
6916 || status
6917
6918 /* Did the vfork/compiler bug occur? */
6919 || parent != getpid()
6920
6921 /* Did the file descriptor bug occur? */
6922 || fstat(fileno(stdout), &st) != 0
6923 );
6924 }
6925 }
6926 _ACEOF
6927 rm -f conftest$ac_exeext
6928 if { (ac_try="$ac_link"
6929 case "(($ac_try" in
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6932 esac
6933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_link") 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6938 { (case "(($ac_try" in
6939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6940 *) ac_try_echo=$ac_try;;
6941 esac
6942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6943 (eval "$ac_try") 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 ac_cv_func_vfork_works=yes
6948 else
6949 echo "$as_me: program exited with status $ac_status" >&5
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6952
6953 ( exit $ac_status )
6954 ac_cv_func_vfork_works=no
6955 fi
6956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6957 fi
6958
6959
6960 fi
6961 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6962 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
6963
6964 fi;
6965 if test "x$ac_cv_func_fork_works" = xcross; then
6966 ac_cv_func_vfork_works=$ac_cv_func_vfork
6967 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6968 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6969 fi
6970
6971 if test "x$ac_cv_func_vfork_works" = xyes; then
6972
6973 cat >>confdefs.h <<\_ACEOF
6974 #define HAVE_WORKING_VFORK 1
6975 _ACEOF
6976
6977 else
6978
6979 cat >>confdefs.h <<\_ACEOF
6980 #define vfork fork
6981 _ACEOF
6982
6983 fi
6984 if test "x$ac_cv_func_fork_works" = xyes; then
6985
6986 cat >>confdefs.h <<\_ACEOF
6987 #define HAVE_WORKING_FORK 1
6988 _ACEOF
6989
6990 fi
6991
6992 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6993 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
6994 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997 rm -f conftest.sym conftest.file
6998 echo >conftest.file
6999 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7000 if test "$cross_compiling" = yes; then
7001 ac_cv_func_lstat_dereferences_slashed_symlink=no
7002 else
7003 cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h. */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009 $ac_includes_default
7010 int
7011 main ()
7012 {
7013 struct stat sbuf;
7014 /* Linux will dereference the symlink and fail.
7015 That is better in the sense that it means we will not
7016 have to compile and use the lstat wrapper. */
7017 return lstat ("conftest.sym/", &sbuf) == 0;
7018 ;
7019 return 0;
7020 }
7021 _ACEOF
7022 rm -f conftest$ac_exeext
7023 if { (ac_try="$ac_link"
7024 case "(($ac_try" in
7025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7026 *) ac_try_echo=$ac_try;;
7027 esac
7028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7029 (eval "$ac_link") 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7033 { (case "(($ac_try" in
7034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035 *) ac_try_echo=$ac_try;;
7036 esac
7037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7038 (eval "$ac_try") 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; }; then
7042 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7043 else
7044 echo "$as_me: program exited with status $ac_status" >&5
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7047
7048 ( exit $ac_status )
7049 ac_cv_func_lstat_dereferences_slashed_symlink=no
7050 fi
7051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7052 fi
7053
7054
7055 else
7056 # If the `ln -s' command failed, then we probably don't even
7057 # have an lstat function.
7058 ac_cv_func_lstat_dereferences_slashed_symlink=no
7059 fi
7060 rm -f conftest.sym conftest.file
7061
7062 fi
7063 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7064 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7065
7066 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7067
7068 cat >>confdefs.h <<_ACEOF
7069 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7070 _ACEOF
7071
7072
7073 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7074 case " $LIBOBJS " in
7075 *" lstat.$ac_objext "* ) ;;
7076 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7077 ;;
7078 esac
7079
7080 fi
7081
7082 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7083 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
7084 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087 if test "$cross_compiling" = yes; then
7088 ac_cv_func_lstat_empty_string_bug=yes
7089 else
7090 cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h. */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 $ac_includes_default
7097 int
7098 main ()
7099 {
7100 struct stat sbuf;
7101 return lstat ("", &sbuf) == 0;
7102 ;
7103 return 0;
7104 }
7105 _ACEOF
7106 rm -f conftest$ac_exeext
7107 if { (ac_try="$ac_link"
7108 case "(($ac_try" in
7109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7110 *) ac_try_echo=$ac_try;;
7111 esac
7112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7113 (eval "$ac_link") 2>&5
7114 ac_status=$?
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7117 { (case "(($ac_try" in
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7120 esac
7121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7122 (eval "$ac_try") 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 ac_cv_func_lstat_empty_string_bug=no
7127 else
7128 echo "$as_me: program exited with status $ac_status" >&5
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7131
7132 ( exit $ac_status )
7133 ac_cv_func_lstat_empty_string_bug=yes
7134 fi
7135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7136 fi
7137
7138
7139 fi
7140 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7141 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
7142 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7143 case " $LIBOBJS " in
7144 *" lstat.$ac_objext "* ) ;;
7145 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7146 ;;
7147 esac
7148
7149
7150 cat >>confdefs.h <<_ACEOF
7151 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7152 _ACEOF
7153
7154 fi
7155
7156
7157 for ac_header in stdlib.h
7158 do
7159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 fi
7166 ac_res=`eval echo '${'$as_ac_Header'}'`
7167 { echo "$as_me:$LINENO: result: $ac_res" >&5
7168 echo "${ECHO_T}$ac_res" >&6; }
7169 else
7170 # Is the header compilable?
7171 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7172 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7173 cat >conftest.$ac_ext <<_ACEOF
7174 /* confdefs.h. */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7179 $ac_includes_default
7180 #include <$ac_header>
7181 _ACEOF
7182 rm -f conftest.$ac_objext
7183 if { (ac_try="$ac_compile"
7184 case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187 esac
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_compile") 2>conftest.er1
7190 ac_status=$?
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } && {
7196 test -z "$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 } && test -s conftest.$ac_objext; then
7199 ac_header_compiler=yes
7200 else
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7203
7204 ac_header_compiler=no
7205 fi
7206
7207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7209 echo "${ECHO_T}$ac_header_compiler" >&6; }
7210
7211 # Is the header present?
7212 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7214 cat >conftest.$ac_ext <<_ACEOF
7215 /* confdefs.h. */
7216 _ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7220 #include <$ac_header>
7221 _ACEOF
7222 if { (ac_try="$ac_cpp conftest.$ac_ext"
7223 case "(($ac_try" in
7224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225 *) ac_try_echo=$ac_try;;
7226 esac
7227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7229 ac_status=$?
7230 grep -v '^ *+' conftest.er1 >conftest.err
7231 rm -f conftest.er1
7232 cat conftest.err >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } >/dev/null && {
7235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7236 test ! -s conftest.err
7237 }; then
7238 ac_header_preproc=yes
7239 else
7240 echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7242
7243 ac_header_preproc=no
7244 fi
7245
7246 rm -f conftest.err conftest.$ac_ext
7247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7248 echo "${ECHO_T}$ac_header_preproc" >&6; }
7249
7250 # So? What about this header?
7251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7252 yes:no: )
7253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7257 ac_header_preproc=yes
7258 ;;
7259 no:yes:* )
7260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7267 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7272
7273 ;;
7274 esac
7275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 else
7280 eval "$as_ac_Header=\$ac_header_preproc"
7281 fi
7282 ac_res=`eval echo '${'$as_ac_Header'}'`
7283 { echo "$as_me:$LINENO: result: $ac_res" >&5
7284 echo "${ECHO_T}$ac_res" >&6; }
7285
7286 fi
7287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7288 cat >>confdefs.h <<_ACEOF
7289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7290 _ACEOF
7291
7292 fi
7293
7294 done
7295
7296 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7297 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
7298 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301 if test "$cross_compiling" = yes; then
7302 ac_cv_func_malloc_0_nonnull=no
7303 else
7304 cat >conftest.$ac_ext <<_ACEOF
7305 /* confdefs.h. */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7311 # include <stdlib.h>
7312 #else
7313 char *malloc ();
7314 #endif
7315
7316 int
7317 main ()
7318 {
7319 return ! malloc (0);
7320 ;
7321 return 0;
7322 }
7323 _ACEOF
7324 rm -f conftest$ac_exeext
7325 if { (ac_try="$ac_link"
7326 case "(($ac_try" in
7327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7328 *) ac_try_echo=$ac_try;;
7329 esac
7330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7331 (eval "$ac_link") 2>&5
7332 ac_status=$?
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7335 { (case "(($ac_try" in
7336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7337 *) ac_try_echo=$ac_try;;
7338 esac
7339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7340 (eval "$ac_try") 2>&5
7341 ac_status=$?
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; }; then
7344 ac_cv_func_malloc_0_nonnull=yes
7345 else
7346 echo "$as_me: program exited with status $ac_status" >&5
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7349
7350 ( exit $ac_status )
7351 ac_cv_func_malloc_0_nonnull=no
7352 fi
7353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7354 fi
7355
7356
7357 fi
7358 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7359 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
7360 if test $ac_cv_func_malloc_0_nonnull = yes; then
7361
7362 cat >>confdefs.h <<\_ACEOF
7363 #define HAVE_MALLOC 1
7364 _ACEOF
7365
7366 else
7367 cat >>confdefs.h <<\_ACEOF
7368 #define HAVE_MALLOC 0
7369 _ACEOF
7370
7371 case " $LIBOBJS " in
7372 *" malloc.$ac_objext "* ) ;;
7373 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7374 ;;
7375 esac
7376
7377
7378 cat >>confdefs.h <<\_ACEOF
7379 #define malloc rpl_malloc
7380 _ACEOF
7381
7382 fi
7383
7384
7385
7386 { echo "$as_me:$LINENO: checking for working memcmp" >&5
7387 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
7388 if test "${ac_cv_func_memcmp_working+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391 if test "$cross_compiling" = yes; then
7392 ac_cv_func_memcmp_working=no
7393 else
7394 cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h. */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 $ac_includes_default
7401 int
7402 main ()
7403 {
7404
7405 /* Some versions of memcmp are not 8-bit clean. */
7406 char c0 = '\100', c1 = '\200', c2 = '\201';
7407 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7408 return 1;
7409
7410 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7411 or more and with at least one buffer not starting on a 4-byte boundary.
7412 William Lewis provided this test program. */
7413 {
7414 char foo[21];
7415 char bar[21];
7416 int i;
7417 for (i = 0; i < 4; i++)
7418 {
7419 char *a = foo + i;
7420 char *b = bar + i;
7421 strcpy (a, "--------01111111");
7422 strcpy (b, "--------10000000");
7423 if (memcmp (a, b, 16) >= 0)
7424 return 1;
7425 }
7426 return 0;
7427 }
7428
7429 ;
7430 return 0;
7431 }
7432 _ACEOF
7433 rm -f conftest$ac_exeext
7434 if { (ac_try="$ac_link"
7435 case "(($ac_try" in
7436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7437 *) ac_try_echo=$ac_try;;
7438 esac
7439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7440 (eval "$ac_link") 2>&5
7441 ac_status=$?
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7444 { (case "(($ac_try" in
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7447 esac
7448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7449 (eval "$ac_try") 2>&5
7450 ac_status=$?
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; }; then
7453 ac_cv_func_memcmp_working=yes
7454 else
7455 echo "$as_me: program exited with status $ac_status" >&5
7456 echo "$as_me: failed program was:" >&5
7457 sed 's/^/| /' conftest.$ac_ext >&5
7458
7459 ( exit $ac_status )
7460 ac_cv_func_memcmp_working=no
7461 fi
7462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7463 fi
7464
7465
7466 fi
7467 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7468 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
7469 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7470 *" memcmp.$ac_objext "* ) ;;
7471 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7472 ;;
7473 esac
7474
7475
7476
7477
7478 for ac_header in stdlib.h unistd.h
7479 do
7480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7482 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 fi
7487 ac_res=`eval echo '${'$as_ac_Header'}'`
7488 { echo "$as_me:$LINENO: result: $ac_res" >&5
7489 echo "${ECHO_T}$ac_res" >&6; }
7490 else
7491 # Is the header compilable?
7492 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7494 cat >conftest.$ac_ext <<_ACEOF
7495 /* confdefs.h. */
7496 _ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7500 $ac_includes_default
7501 #include <$ac_header>
7502 _ACEOF
7503 rm -f conftest.$ac_objext
7504 if { (ac_try="$ac_compile"
7505 case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508 esac
7509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510 (eval "$ac_compile") 2>conftest.er1
7511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } && {
7517 test -z "$ac_c_werror_flag" ||
7518 test ! -s conftest.err
7519 } && test -s conftest.$ac_objext; then
7520 ac_header_compiler=yes
7521 else
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7524
7525 ac_header_compiler=no
7526 fi
7527
7528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7530 echo "${ECHO_T}$ac_header_compiler" >&6; }
7531
7532 # Is the header present?
7533 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7535 cat >conftest.$ac_ext <<_ACEOF
7536 /* confdefs.h. */
7537 _ACEOF
7538 cat confdefs.h >>conftest.$ac_ext
7539 cat >>conftest.$ac_ext <<_ACEOF
7540 /* end confdefs.h. */
7541 #include <$ac_header>
7542 _ACEOF
7543 if { (ac_try="$ac_cpp conftest.$ac_ext"
7544 case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7547 esac
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7550 ac_status=$?
7551 grep -v '^ *+' conftest.er1 >conftest.err
7552 rm -f conftest.er1
7553 cat conftest.err >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } >/dev/null && {
7556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7557 test ! -s conftest.err
7558 }; then
7559 ac_header_preproc=yes
7560 else
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7563
7564 ac_header_preproc=no
7565 fi
7566
7567 rm -f conftest.err conftest.$ac_ext
7568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7569 echo "${ECHO_T}$ac_header_preproc" >&6; }
7570
7571 # So? What about this header?
7572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7573 yes:no: )
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7578 ac_header_preproc=yes
7579 ;;
7580 no:yes:* )
7581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7588 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7593
7594 ;;
7595 esac
7596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601 eval "$as_ac_Header=\$ac_header_preproc"
7602 fi
7603 ac_res=`eval echo '${'$as_ac_Header'}'`
7604 { echo "$as_me:$LINENO: result: $ac_res" >&5
7605 echo "${ECHO_T}$ac_res" >&6; }
7606
7607 fi
7608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7609 cat >>confdefs.h <<_ACEOF
7610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7611 _ACEOF
7612
7613 fi
7614
7615 done
7616
7617
7618 for ac_func in getpagesize
7619 do
7620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 else
7626 cat >conftest.$ac_ext <<_ACEOF
7627 /* confdefs.h. */
7628 _ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7634 #define $ac_func innocuous_$ac_func
7635
7636 /* System header to define __stub macros and hopefully few prototypes,
7637 which can conflict with char $ac_func (); below.
7638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7639 <limits.h> exists even on freestanding compilers. */
7640
7641 #ifdef __STDC__
7642 # include <limits.h>
7643 #else
7644 # include <assert.h>
7645 #endif
7646
7647 #undef $ac_func
7648
7649 /* Override any GCC internal prototype to avoid an error.
7650 Use char because int might match the return type of a GCC
7651 builtin and then its argument prototype would still apply. */
7652 #ifdef __cplusplus
7653 extern "C"
7654 #endif
7655 char $ac_func ();
7656 /* The GNU C library defines this for functions which it implements
7657 to always fail with ENOSYS. Some functions are actually named
7658 something starting with __ and the normal name is an alias. */
7659 #if defined __stub_$ac_func || defined __stub___$ac_func
7660 choke me
7661 #endif
7662
7663 int
7664 main ()
7665 {
7666 return $ac_func ();
7667 ;
7668 return 0;
7669 }
7670 _ACEOF
7671 rm -f conftest.$ac_objext conftest$ac_exeext
7672 if { (ac_try="$ac_link"
7673 case "(($ac_try" in
7674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675 *) ac_try_echo=$ac_try;;
7676 esac
7677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7678 (eval "$ac_link") 2>conftest.er1
7679 ac_status=$?
7680 grep -v '^ *+' conftest.er1 >conftest.err
7681 rm -f conftest.er1
7682 cat conftest.err >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } && {
7685 test -z "$ac_c_werror_flag" ||
7686 test ! -s conftest.err
7687 } && test -s conftest$ac_exeext &&
7688 $as_test_x conftest$ac_exeext; then
7689 eval "$as_ac_var=yes"
7690 else
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7693
7694 eval "$as_ac_var=no"
7695 fi
7696
7697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7698 conftest$ac_exeext conftest.$ac_ext
7699 fi
7700 ac_res=`eval echo '${'$as_ac_var'}'`
7701 { echo "$as_me:$LINENO: result: $ac_res" >&5
7702 echo "${ECHO_T}$ac_res" >&6; }
7703 if test `eval echo '${'$as_ac_var'}'` = yes; then
7704 cat >>confdefs.h <<_ACEOF
7705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7706 _ACEOF
7707
7708 fi
7709 done
7710
7711 { echo "$as_me:$LINENO: checking for working mmap" >&5
7712 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7713 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716 if test "$cross_compiling" = yes; then
7717 ac_cv_func_mmap_fixed_mapped=no
7718 else
7719 cat >conftest.$ac_ext <<_ACEOF
7720 /* confdefs.h. */
7721 _ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7725 $ac_includes_default
7726 /* malloc might have been renamed as rpl_malloc. */
7727 #undef malloc
7728
7729 /* Thanks to Mike Haertel and Jim Avera for this test.
7730 Here is a matrix of mmap possibilities:
7731 mmap private not fixed
7732 mmap private fixed at somewhere currently unmapped
7733 mmap private fixed at somewhere already mapped
7734 mmap shared not fixed
7735 mmap shared fixed at somewhere currently unmapped
7736 mmap shared fixed at somewhere already mapped
7737 For private mappings, we should verify that changes cannot be read()
7738 back from the file, nor mmap's back from the file at a different
7739 address. (There have been systems where private was not correctly
7740 implemented like the infamous i386 svr4.0, and systems where the
7741 VM page cache was not coherent with the file system buffer cache
7742 like early versions of FreeBSD and possibly contemporary NetBSD.)
7743 For shared mappings, we should conversely verify that changes get
7744 propagated back to all the places they're supposed to be.
7745
7746 Grep wants private fixed already mapped.
7747 The main things grep needs to know about mmap are:
7748 * does it exist and is it safe to write into the mmap'd area
7749 * how to use it (BSD variants) */
7750
7751 #include <fcntl.h>
7752 #include <sys/mman.h>
7753
7754 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7755 char *malloc ();
7756 #endif
7757
7758 /* This mess was copied from the GNU getpagesize.h. */
7759 #ifndef HAVE_GETPAGESIZE
7760 /* Assume that all systems that can run configure have sys/param.h. */
7761 # ifndef HAVE_SYS_PARAM_H
7762 # define HAVE_SYS_PARAM_H 1
7763 # endif
7764
7765 # ifdef _SC_PAGESIZE
7766 # define getpagesize() sysconf(_SC_PAGESIZE)
7767 # else /* no _SC_PAGESIZE */
7768 # ifdef HAVE_SYS_PARAM_H
7769 # include <sys/param.h>
7770 # ifdef EXEC_PAGESIZE
7771 # define getpagesize() EXEC_PAGESIZE
7772 # else /* no EXEC_PAGESIZE */
7773 # ifdef NBPG
7774 # define getpagesize() NBPG * CLSIZE
7775 # ifndef CLSIZE
7776 # define CLSIZE 1
7777 # endif /* no CLSIZE */
7778 # else /* no NBPG */
7779 # ifdef NBPC
7780 # define getpagesize() NBPC
7781 # else /* no NBPC */
7782 # ifdef PAGESIZE
7783 # define getpagesize() PAGESIZE
7784 # endif /* PAGESIZE */
7785 # endif /* no NBPC */
7786 # endif /* no NBPG */
7787 # endif /* no EXEC_PAGESIZE */
7788 # else /* no HAVE_SYS_PARAM_H */
7789 # define getpagesize() 8192 /* punt totally */
7790 # endif /* no HAVE_SYS_PARAM_H */
7791 # endif /* no _SC_PAGESIZE */
7792
7793 #endif /* no HAVE_GETPAGESIZE */
7794
7795 int
7796 main ()
7797 {
7798 char *data, *data2, *data3;
7799 int i, pagesize;
7800 int fd;
7801
7802 pagesize = getpagesize ();
7803
7804 /* First, make a file with some known garbage in it. */
7805 data = (char *) malloc (pagesize);
7806 if (!data)
7807 return 1;
7808 for (i = 0; i < pagesize; ++i)
7809 *(data + i) = rand ();
7810 umask (0);
7811 fd = creat ("conftest.mmap", 0600);
7812 if (fd < 0)
7813 return 1;
7814 if (write (fd, data, pagesize) != pagesize)
7815 return 1;
7816 close (fd);
7817
7818 /* Next, try to mmap the file at a fixed address which already has
7819 something else allocated at it. If we can, also make sure that
7820 we see the same garbage. */
7821 fd = open ("conftest.mmap", O_RDWR);
7822 if (fd < 0)
7823 return 1;
7824 data2 = (char *) malloc (2 * pagesize);
7825 if (!data2)
7826 return 1;
7827 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7828 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7829 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7830 return 1;
7831 for (i = 0; i < pagesize; ++i)
7832 if (*(data + i) != *(data2 + i))
7833 return 1;
7834
7835 /* Finally, make sure that changes to the mapped area do not
7836 percolate back to the file as seen by read(). (This is a bug on
7837 some variants of i386 svr4.0.) */
7838 for (i = 0; i < pagesize; ++i)
7839 *(data2 + i) = *(data2 + i) + 1;
7840 data3 = (char *) malloc (pagesize);
7841 if (!data3)
7842 return 1;
7843 if (read (fd, data3, pagesize) != pagesize)
7844 return 1;
7845 for (i = 0; i < pagesize; ++i)
7846 if (*(data + i) != *(data3 + i))
7847 return 1;
7848 close (fd);
7849 return 0;
7850 }
7851 _ACEOF
7852 rm -f conftest$ac_exeext
7853 if { (ac_try="$ac_link"
7854 case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7857 esac
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_link") 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7863 { (case "(($ac_try" in
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7866 esac
7867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868 (eval "$ac_try") 2>&5
7869 ac_status=$?
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; }; then
7872 ac_cv_func_mmap_fixed_mapped=yes
7873 else
7874 echo "$as_me: program exited with status $ac_status" >&5
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7877
7878 ( exit $ac_status )
7879 ac_cv_func_mmap_fixed_mapped=no
7880 fi
7881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7882 fi
7883
7884
7885 fi
7886 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7887 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7888 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7889
7890 cat >>confdefs.h <<\_ACEOF
7891 #define HAVE_MMAP 1
7892 _ACEOF
7893
7894 fi
7895 rm -f conftest.mmap
7896
7897 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7898 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
7899 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902 if test "$cross_compiling" = yes; then
7903 ac_cv_func_stat_empty_string_bug=yes
7904 else
7905 cat >conftest.$ac_ext <<_ACEOF
7906 /* confdefs.h. */
7907 _ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 $ac_includes_default
7912 int
7913 main ()
7914 {
7915 struct stat sbuf;
7916 return stat ("", &sbuf) == 0;
7917 ;
7918 return 0;
7919 }
7920 _ACEOF
7921 rm -f conftest$ac_exeext
7922 if { (ac_try="$ac_link"
7923 case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926 esac
7927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_link") 2>&5
7929 ac_status=$?
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7932 { (case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935 esac
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_try") 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; }; then
7941 ac_cv_func_stat_empty_string_bug=no
7942 else
7943 echo "$as_me: program exited with status $ac_status" >&5
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7946
7947 ( exit $ac_status )
7948 ac_cv_func_stat_empty_string_bug=yes
7949 fi
7950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7951 fi
7952
7953
7954 fi
7955 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7956 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
7957 if test $ac_cv_func_stat_empty_string_bug = yes; then
7958 case " $LIBOBJS " in
7959 *" stat.$ac_objext "* ) ;;
7960 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7961 ;;
7962 esac
7963
7964
7965 cat >>confdefs.h <<_ACEOF
7966 #define HAVE_STAT_EMPTY_STRING_BUG 1
7967 _ACEOF
7968
7969 fi
7970
7971 { echo "$as_me:$LINENO: checking for working strtod" >&5
7972 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
7973 if test "${ac_cv_func_strtod+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976 if test "$cross_compiling" = yes; then
7977 ac_cv_func_strtod=no
7978 else
7979 cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h. */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7985
7986 $ac_includes_default
7987 #ifndef strtod
7988 double strtod ();
7989 #endif
7990 int
7991 main()
7992 {
7993 {
7994 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7995 char *string = " +69";
7996 char *term;
7997 double value;
7998 value = strtod (string, &term);
7999 if (value != 69 || term != (string + 4))
8000 return 1;
8001 }
8002
8003 {
8004 /* Under Solaris 2.4, strtod returns the wrong value for the
8005 terminating character under some conditions. */
8006 char *string = "NaN";
8007 char *term;
8008 strtod (string, &term);
8009 if (term != string && *(term - 1) == 0)
8010 return 1;
8011 }
8012 return 0;
8013 }
8014
8015 _ACEOF
8016 rm -f conftest$ac_exeext
8017 if { (ac_try="$ac_link"
8018 case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8021 esac
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023 (eval "$ac_link") 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8027 { (case "(($ac_try" in
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8030 esac
8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032 (eval "$ac_try") 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 ac_cv_func_strtod=yes
8037 else
8038 echo "$as_me: program exited with status $ac_status" >&5
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8041
8042 ( exit $ac_status )
8043 ac_cv_func_strtod=no
8044 fi
8045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8046 fi
8047
8048
8049 fi
8050 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8051 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
8052 if test $ac_cv_func_strtod = no; then
8053 case " $LIBOBJS " in
8054 *" strtod.$ac_objext "* ) ;;
8055 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8056 ;;
8057 esac
8058
8059 { echo "$as_me:$LINENO: checking for pow" >&5
8060 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
8061 if test "${ac_cv_func_pow+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064 cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h. */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8070 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8072 #define pow innocuous_pow
8073
8074 /* System header to define __stub macros and hopefully few prototypes,
8075 which can conflict with char pow (); below.
8076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8077 <limits.h> exists even on freestanding compilers. */
8078
8079 #ifdef __STDC__
8080 # include <limits.h>
8081 #else
8082 # include <assert.h>
8083 #endif
8084
8085 #undef pow
8086
8087 /* Override any GCC internal prototype to avoid an error.
8088 Use char because int might match the return type of a GCC
8089 builtin and then its argument prototype would still apply. */
8090 #ifdef __cplusplus
8091 extern "C"
8092 #endif
8093 char pow ();
8094 /* The GNU C library defines this for functions which it implements
8095 to always fail with ENOSYS. Some functions are actually named
8096 something starting with __ and the normal name is an alias. */
8097 #if defined __stub_pow || defined __stub___pow
8098 choke me
8099 #endif
8100
8101 int
8102 main ()
8103 {
8104 return pow ();
8105 ;
8106 return 0;
8107 }
8108 _ACEOF
8109 rm -f conftest.$ac_objext conftest$ac_exeext
8110 if { (ac_try="$ac_link"
8111 case "(($ac_try" in
8112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8113 *) ac_try_echo=$ac_try;;
8114 esac
8115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8116 (eval "$ac_link") 2>conftest.er1
8117 ac_status=$?
8118 grep -v '^ *+' conftest.er1 >conftest.err
8119 rm -f conftest.er1
8120 cat conftest.err >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } && {
8123 test -z "$ac_c_werror_flag" ||
8124 test ! -s conftest.err
8125 } && test -s conftest$ac_exeext &&
8126 $as_test_x conftest$ac_exeext; then
8127 ac_cv_func_pow=yes
8128 else
8129 echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8131
8132 ac_cv_func_pow=no
8133 fi
8134
8135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8136 conftest$ac_exeext conftest.$ac_ext
8137 fi
8138 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8139 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
8140
8141 if test $ac_cv_func_pow = no; then
8142 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
8143 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
8144 if test "${ac_cv_lib_m_pow+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147 ac_check_lib_save_LIBS=$LIBS
8148 LIBS="-lm $LIBS"
8149 cat >conftest.$ac_ext <<_ACEOF
8150 /* confdefs.h. */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8155
8156 /* Override any GCC internal prototype to avoid an error.
8157 Use char because int might match the return type of a GCC
8158 builtin and then its argument prototype would still apply. */
8159 #ifdef __cplusplus
8160 extern "C"
8161 #endif
8162 char pow ();
8163 int
8164 main ()
8165 {
8166 return pow ();
8167 ;
8168 return 0;
8169 }
8170 _ACEOF
8171 rm -f conftest.$ac_objext conftest$ac_exeext
8172 if { (ac_try="$ac_link"
8173 case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8176 esac
8177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178 (eval "$ac_link") 2>conftest.er1
8179 ac_status=$?
8180 grep -v '^ *+' conftest.er1 >conftest.err
8181 rm -f conftest.er1
8182 cat conftest.err >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } && {
8185 test -z "$ac_c_werror_flag" ||
8186 test ! -s conftest.err
8187 } && test -s conftest$ac_exeext &&
8188 $as_test_x conftest$ac_exeext; then
8189 ac_cv_lib_m_pow=yes
8190 else
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 ac_cv_lib_m_pow=no
8195 fi
8196
8197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8198 conftest$ac_exeext conftest.$ac_ext
8199 LIBS=$ac_check_lib_save_LIBS
8200 fi
8201 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8202 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
8203 if test $ac_cv_lib_m_pow = yes; then
8204 POW_LIB=-lm
8205 else
8206 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8207 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8208 fi
8209
8210 fi
8211
8212 fi
8213
8214
8215 for ac_func in vprintf
8216 do
8217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223 cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h. */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8231 #define $ac_func innocuous_$ac_func
8232
8233 /* System header to define __stub macros and hopefully few prototypes,
8234 which can conflict with char $ac_func (); below.
8235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8236 <limits.h> exists even on freestanding compilers. */
8237
8238 #ifdef __STDC__
8239 # include <limits.h>
8240 #else
8241 # include <assert.h>
8242 #endif
8243
8244 #undef $ac_func
8245
8246 /* Override any GCC internal prototype to avoid an error.
8247 Use char because int might match the return type of a GCC
8248 builtin and then its argument prototype would still apply. */
8249 #ifdef __cplusplus
8250 extern "C"
8251 #endif
8252 char $ac_func ();
8253 /* The GNU C library defines this for functions which it implements
8254 to always fail with ENOSYS. Some functions are actually named
8255 something starting with __ and the normal name is an alias. */
8256 #if defined __stub_$ac_func || defined __stub___$ac_func
8257 choke me
8258 #endif
8259
8260 int
8261 main ()
8262 {
8263 return $ac_func ();
8264 ;
8265 return 0;
8266 }
8267 _ACEOF
8268 rm -f conftest.$ac_objext conftest$ac_exeext
8269 if { (ac_try="$ac_link"
8270 case "(($ac_try" in
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8273 esac
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_link") 2>conftest.er1
8276 ac_status=$?
8277 grep -v '^ *+' conftest.er1 >conftest.err
8278 rm -f conftest.er1
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } && {
8282 test -z "$ac_c_werror_flag" ||
8283 test ! -s conftest.err
8284 } && test -s conftest$ac_exeext &&
8285 $as_test_x conftest$ac_exeext; then
8286 eval "$as_ac_var=yes"
8287 else
8288 echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8290
8291 eval "$as_ac_var=no"
8292 fi
8293
8294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8295 conftest$ac_exeext conftest.$ac_ext
8296 fi
8297 ac_res=`eval echo '${'$as_ac_var'}'`
8298 { echo "$as_me:$LINENO: result: $ac_res" >&5
8299 echo "${ECHO_T}$ac_res" >&6; }
8300 if test `eval echo '${'$as_ac_var'}'` = yes; then
8301 cat >>confdefs.h <<_ACEOF
8302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8303 _ACEOF
8304
8305 { echo "$as_me:$LINENO: checking for _doprnt" >&5
8306 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
8307 if test "${ac_cv_func__doprnt+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310 cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h. */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8316 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8318 #define _doprnt innocuous__doprnt
8319
8320 /* System header to define __stub macros and hopefully few prototypes,
8321 which can conflict with char _doprnt (); below.
8322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8323 <limits.h> exists even on freestanding compilers. */
8324
8325 #ifdef __STDC__
8326 # include <limits.h>
8327 #else
8328 # include <assert.h>
8329 #endif
8330
8331 #undef _doprnt
8332
8333 /* Override any GCC internal prototype to avoid an error.
8334 Use char because int might match the return type of a GCC
8335 builtin and then its argument prototype would still apply. */
8336 #ifdef __cplusplus
8337 extern "C"
8338 #endif
8339 char _doprnt ();
8340 /* The GNU C library defines this for functions which it implements
8341 to always fail with ENOSYS. Some functions are actually named
8342 something starting with __ and the normal name is an alias. */
8343 #if defined __stub__doprnt || defined __stub____doprnt
8344 choke me
8345 #endif
8346
8347 int
8348 main ()
8349 {
8350 return _doprnt ();
8351 ;
8352 return 0;
8353 }
8354 _ACEOF
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (ac_try="$ac_link"
8357 case "(($ac_try" in
8358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8360 esac
8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362 (eval "$ac_link") 2>conftest.er1
8363 ac_status=$?
8364 grep -v '^ *+' conftest.er1 >conftest.err
8365 rm -f conftest.er1
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } && {
8369 test -z "$ac_c_werror_flag" ||
8370 test ! -s conftest.err
8371 } && test -s conftest$ac_exeext &&
8372 $as_test_x conftest$ac_exeext; then
8373 ac_cv_func__doprnt=yes
8374 else
8375 echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8377
8378 ac_cv_func__doprnt=no
8379 fi
8380
8381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8382 conftest$ac_exeext conftest.$ac_ext
8383 fi
8384 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8385 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
8386 if test $ac_cv_func__doprnt = yes; then
8387
8388 cat >>confdefs.h <<\_ACEOF
8389 #define HAVE_DOPRNT 1
8390 _ACEOF
8391
8392 fi
8393
8394 fi
8395 done
8396
8397
8398
8399 ################################################################################
8400
8401
8402 ################################################################################
8403 { echo "$as_me:$LINENO: checking file owner" >&5
8404 echo $ECHO_N "checking file owner... $ECHO_C" >&6; }
8405 OWNER="root"
8406
8407
8408 # Check whether --with-user was given.
8409 if test "${with_user+set}" = set; then
8410 withval=$with_user; OWNER="$withval"
8411 fi
8412
8413 { echo "$as_me:$LINENO: result: $OWNER" >&5
8414 echo "${ECHO_T}$OWNER" >&6; }
8415
8416 if test x$OWNER != x; then
8417 OWNER="-o $OWNER"
8418 fi
8419
8420 ################################################################################
8421 { echo "$as_me:$LINENO: checking group owner" >&5
8422 echo $ECHO_N "checking group owner... $ECHO_C" >&6; }
8423 GROUP="root"
8424
8425 # Check whether --with-group was given.
8426 if test "${with_group+set}" = set; then
8427 withval=$with_group; GROUP="$withval"
8428 fi
8429
8430 { echo "$as_me:$LINENO: result: $GROUP" >&5
8431 echo "${ECHO_T}$GROUP" >&6; }
8432
8433 if test x$GROUP != x; then
8434 GROUP="-g $GROUP"
8435 fi
8436
8437 ################################################################################
8438 { echo "$as_me:$LINENO: checking device node mode" >&5
8439 echo $ECHO_N "checking device node mode... $ECHO_C" >&6; }
8440
8441
8442 # Check whether --with-device-mode was given.
8443 if test "${with_device_mode+set}" = set; then
8444 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8445 else
8446 DM_DEVICE_MODE="0600"
8447 fi
8448
8449 { echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8450 echo "${ECHO_T}$DM_DEVICE_MODE" >&6; }
8451
8452 ################################################################################
8453 { echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8454 echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; }
8455 # Check whether --enable-lvm1_fallback was given.
8456 if test "${enable_lvm1_fallback+set}" = set; then
8457 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8458 else
8459 LVM1_FALLBACK=no
8460 fi
8461
8462 { echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8463 echo "${ECHO_T}$LVM1_FALLBACK" >&6; }
8464
8465 if test x$LVM1_FALLBACK = xyes; then
8466
8467 cat >>confdefs.h <<\_ACEOF
8468 #define LVM1_FALLBACK 1
8469 _ACEOF
8470
8471 fi
8472
8473 ################################################################################
8474 { echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8475 echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; }
8476
8477 # Check whether --with-lvm1 was given.
8478 if test "${with_lvm1+set}" = set; then
8479 withval=$with_lvm1; LVM1="$withval"
8480 else
8481 LVM1="internal"
8482 fi
8483
8484 { echo "$as_me:$LINENO: result: $LVM1" >&5
8485 echo "${ECHO_T}$LVM1" >&6; }
8486
8487 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
8488 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
8489 " >&5
8490 echo "$as_me: error: --with-lvm1 parameter invalid
8491 " >&2;}
8492 { (exit 1); exit 1; }; }
8493 fi;
8494
8495 if test x$LVM1 = xinternal; then
8496
8497 cat >>confdefs.h <<\_ACEOF
8498 #define LVM1_INTERNAL 1
8499 _ACEOF
8500
8501 fi
8502
8503 ################################################################################
8504 { echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
8505 echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; }
8506
8507 # Check whether --with-pool was given.
8508 if test "${with_pool+set}" = set; then
8509 withval=$with_pool; POOL="$withval"
8510 else
8511 POOL="internal"
8512 fi
8513
8514 { echo "$as_me:$LINENO: result: $POOL" >&5
8515 echo "${ECHO_T}$POOL" >&6; }
8516
8517 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
8518 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
8519 " >&5
8520 echo "$as_me: error: --with-pool parameter invalid
8521 " >&2;}
8522 { (exit 1); exit 1; }; }
8523 fi;
8524
8525 if test x$POOL = xinternal; then
8526
8527 cat >>confdefs.h <<\_ACEOF
8528 #define POOL_INTERNAL 1
8529 _ACEOF
8530
8531 fi
8532
8533 ################################################################################
8534 { echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
8535 echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; }
8536
8537 # Check whether --with-cluster was given.
8538 if test "${with_cluster+set}" = set; then
8539 withval=$with_cluster; CLUSTER="$withval"
8540 fi
8541
8542 { echo "$as_me:$LINENO: result: $CLUSTER" >&5
8543 echo "${ECHO_T}$CLUSTER" >&6; }
8544
8545 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
8546 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
8547 " >&5
8548 echo "$as_me: error: --with-cluster parameter invalid
8549 " >&2;}
8550 { (exit 1); exit 1; }; }
8551 fi;
8552
8553 if test x$CLUSTER = xinternal; then
8554
8555 cat >>confdefs.h <<\_ACEOF
8556 #define CLUSTER_LOCKING_INTERNAL 1
8557 _ACEOF
8558
8559 fi
8560
8561 ################################################################################
8562 { echo "$as_me:$LINENO: checking whether to include snapshots" >&5
8563 echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; }
8564
8565 # Check whether --with-snapshots was given.
8566 if test "${with_snapshots+set}" = set; then
8567 withval=$with_snapshots; SNAPSHOTS="$withval"
8568 else
8569 SNAPSHOTS="internal"
8570 fi
8571
8572 { echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
8573 echo "${ECHO_T}$SNAPSHOTS" >&6; }
8574
8575 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
8576 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
8577 " >&5
8578 echo "$as_me: error: --with-snapshots parameter invalid
8579 " >&2;}
8580 { (exit 1); exit 1; }; }
8581 fi;
8582
8583 if test x$SNAPSHOTS = xinternal; then
8584
8585 cat >>confdefs.h <<\_ACEOF
8586 #define SNAPSHOT_INTERNAL 1
8587 _ACEOF
8588
8589 fi
8590
8591 ################################################################################
8592 { echo "$as_me:$LINENO: checking whether to include mirrors" >&5
8593 echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; }
8594
8595 # Check whether --with-mirrors was given.
8596 if test "${with_mirrors+set}" = set; then
8597 withval=$with_mirrors; MIRRORS="$withval"
8598 else
8599 MIRRORS="internal"
8600 fi
8601
8602 { echo "$as_me:$LINENO: result: $MIRRORS" >&5
8603 echo "${ECHO_T}$MIRRORS" >&6; }
8604
8605 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
8606 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
8607 " >&5
8608 echo "$as_me: error: --with-mirrors parameter invalid
8609 " >&2;}
8610 { (exit 1); exit 1; }; }
8611 fi;
8612
8613 if test x$MIRRORS = xinternal; then
8614
8615 cat >>confdefs.h <<\_ACEOF
8616 #define MIRRORED_INTERNAL 1
8617 _ACEOF
8618
8619 fi
8620
8621 ################################################################################
8622 { echo "$as_me:$LINENO: checking whether to enable readline" >&5
8623 echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; }
8624 # Check whether --enable-readline was given.
8625 if test "${enable_readline+set}" = set; then
8626 enableval=$enable_readline; READLINE=$enableval
8627 else
8628 READLINE=maybe
8629 fi
8630
8631 { echo "$as_me:$LINENO: result: $READLINE" >&5
8632 echo "${ECHO_T}$READLINE" >&6; }
8633
8634 ################################################################################
8635 { echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
8636 echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; }
8637 # Check whether --enable-realtime was given.
8638 if test "${enable_realtime+set}" = set; then
8639 enableval=$enable_realtime; REALTIME=$enableval
8640 fi
8641
8642 { echo "$as_me:$LINENO: result: $REALTIME" >&5
8643 echo "${ECHO_T}$REALTIME" >&6; }
8644
8645 ################################################################################
8646 { echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
8647 echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; }
8648
8649 # Check whether --with-clvmd was given.
8650 if test "${with_clvmd+set}" = set; then
8651 withval=$with_clvmd; CLVMD="$withval"
8652 else
8653 CLVMD="none"
8654 fi
8655
8656 if test x$CLVMD = xyes; then
8657 CLVMD=all
8658 fi
8659 { echo "$as_me:$LINENO: result: $CLVMD" >&5
8660 echo "${ECHO_T}$CLVMD" >&6; }
8661
8662 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
8663 CLUSTER=internal
8664 fi
8665
8666 ################################################################################
8667 { echo "$as_me:$LINENO: checking whether to enable debugging" >&5
8668 echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
8669 # Check whether --enable-debug was given.
8670 if test "${enable_debug+set}" = set; then
8671 enableval=$enable_debug; DEBUG=$enableval
8672 else
8673 DEBUG=no
8674 fi
8675
8676 { echo "$as_me:$LINENO: result: $DEBUG" >&5
8677 echo "${ECHO_T}$DEBUG" >&6; }
8678
8679 if test x$DEBUG = xyes; then
8680 COPTIMISE_FLAG=
8681 else
8682 CSCOPE_CMD=
8683 fi
8684
8685 ################################################################################
8686 { echo "$as_me:$LINENO: checking for C optimisation flag" >&5
8687 echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; }
8688
8689 # Check whether --with-optimisation was given.
8690 if test "${with_optimisation+set}" = set; then
8691 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
8692 fi
8693
8694 { echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
8695 echo "${ECHO_T}$COPTIMISE_FLAG" >&6; }
8696
8697 ################################################################################
8698 { echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
8699 echo $ECHO_N "checking whether to gather gcov profiling data... $ECHO_C" >&6; }
8700 # Check whether --enable-profiling was given.
8701 if test "${enable_profiling+set}" = set; then
8702 enableval=$enable_profiling; PROFILING=$enableval
8703 else
8704 PROFILING=no
8705 fi
8706
8707 { echo "$as_me:$LINENO: result: $PROFILING" >&5
8708 echo "${ECHO_T}$PROFILING" >&6; }
8709
8710 if test "x$PROFILING" = xyes; then
8711 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8712 # Extract the first word of "lcov", so it can be a program name with args.
8713 set dummy lcov; ac_word=$2
8714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8716 if test "${ac_cv_path_LCOV+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719 case $LCOV in
8720 [\\/]* | ?:[\\/]*)
8721 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8722 ;;
8723 *)
8724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725 for as_dir in $PATH
8726 do
8727 IFS=$as_save_IFS
8728 test -z "$as_dir" && as_dir=.
8729 for ac_exec_ext in '' $ac_executable_extensions; do
8730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8731 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8733 break 2
8734 fi
8735 done
8736 done
8737 IFS=$as_save_IFS
8738
8739 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
8740 ;;
8741 esac
8742 fi
8743 LCOV=$ac_cv_path_LCOV
8744 if test -n "$LCOV"; then
8745 { echo "$as_me:$LINENO: result: $LCOV" >&5
8746 echo "${ECHO_T}$LCOV" >&6; }
8747 else
8748 { echo "$as_me:$LINENO: result: no" >&5
8749 echo "${ECHO_T}no" >&6; }
8750 fi
8751
8752
8753 # Extract the first word of "genhtml", so it can be a program name with args.
8754 set dummy genhtml; ac_word=$2
8755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8757 if test "${ac_cv_path_GENHTML+set}" = set; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 else
8760 case $GENHTML in
8761 [\\/]* | ?:[\\/]*)
8762 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8763 ;;
8764 *)
8765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766 for as_dir in $PATH
8767 do
8768 IFS=$as_save_IFS
8769 test -z "$as_dir" && as_dir=.
8770 for ac_exec_ext in '' $ac_executable_extensions; do
8771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8772 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8774 break 2
8775 fi
8776 done
8777 done
8778 IFS=$as_save_IFS
8779
8780 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
8781 ;;
8782 esac
8783 fi
8784 GENHTML=$ac_cv_path_GENHTML
8785 if test -n "$GENHTML"; then
8786 { echo "$as_me:$LINENO: result: $GENHTML" >&5
8787 echo "${ECHO_T}$GENHTML" >&6; }
8788 else
8789 { echo "$as_me:$LINENO: result: no" >&5
8790 echo "${ECHO_T}no" >&6; }
8791 fi
8792
8793
8794 if test "$LCOV" = no -o "$GENHTML" = no ; then
8795 { { echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
8796 echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
8797 { (exit 1); exit 1; }; }
8798 fi
8799 fi
8800
8801 ################################################################################
8802 { echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
8803 echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; }
8804 # Check whether --enable-devmapper was given.
8805 if test "${enable_devmapper+set}" = set; then
8806 enableval=$enable_devmapper; DEVMAPPER=$enableval
8807 fi
8808
8809 { echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
8810 echo "${ECHO_T}$DEVMAPPER" >&6; }
8811
8812 if test x$DEVMAPPER = xyes; then
8813
8814 cat >>confdefs.h <<\_ACEOF
8815 #define DEVMAPPER_SUPPORT 1
8816 _ACEOF
8817
8818 fi
8819
8820 ################################################################################
8821 # Check whether --enable-compat was given.
8822 if test "${enable_compat+set}" = set; then
8823 enableval=$enable_compat; DM_COMPAT=$enableval
8824 else
8825 DM_COMPAT=no
8826 fi
8827
8828
8829 ################################################################################
8830 # Check whether --enable-ioctl was given.
8831 if test "${enable_ioctl+set}" = set; then
8832 enableval=$enable_ioctl; DM_IOCTLS=$enableval
8833 fi
8834
8835
8836 ################################################################################
8837 { echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
8838 echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; }
8839 # Check whether --enable-o_direct was given.
8840 if test "${enable_o_direct+set}" = set; then
8841 enableval=$enable_o_direct; ODIRECT=$enableval
8842 fi
8843
8844 { echo "$as_me:$LINENO: result: $ODIRECT" >&5
8845 echo "${ECHO_T}$ODIRECT" >&6; }
8846
8847 if test x$ODIRECT = xyes; then
8848
8849 cat >>confdefs.h <<\_ACEOF
8850 #define O_DIRECT_SUPPORT 1
8851 _ACEOF
8852
8853 fi
8854
8855 ################################################################################
8856 { echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
8857 echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; }
8858 # Check whether --enable-cmdlib was given.
8859 if test "${enable_cmdlib+set}" = set; then
8860 enableval=$enable_cmdlib; CMDLIB=$enableval
8861 else
8862 CMDLIB=no
8863 fi
8864
8865 { echo "$as_me:$LINENO: result: $CMDLIB" >&5
8866 echo "${ECHO_T}$CMDLIB" >&6; }
8867
8868 test x$CMDLIB = xyes \
8869 && LVM2CMD_LIB=-llvm2cmd \
8870 || LVM2CMD_LIB=
8871
8872 ################################################################################
8873 # Check whether --enable-pkgconfig was given.
8874 if test "${enable_pkgconfig+set}" = set; then
8875 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
8876 else
8877 PKGCONFIG=no
8878 fi
8879
8880
8881 ################################################################################
8882 { echo "$as_me:$LINENO: checking whether to install fsadm" >&5
8883 echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; }
8884 # Check whether --enable-fsadm was given.
8885 if test "${enable_fsadm+set}" = set; then
8886 enableval=$enable_fsadm; FSADM=$enableval
8887 fi
8888
8889 { echo "$as_me:$LINENO: result: $FSADM" >&5
8890 echo "${ECHO_T}$FSADM" >&6; }
8891
8892 ################################################################################
8893 { echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
8894 echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; }
8895 # Check whether --enable-dmeventd was given.
8896 if test "${enable_dmeventd+set}" = set; then
8897 enableval=$enable_dmeventd; DMEVENTD=$enableval
8898 fi
8899
8900 { echo "$as_me:$LINENO: result: $DMEVENTD" >&5
8901 echo "${ECHO_T}$DMEVENTD" >&6; }
8902
8903 BUILD_DMEVENTD=$DMEVENTD
8904
8905 if test x$DMEVENTD = xyes; then
8906 if test x$MIRRORS != xinternal; then
8907 { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
8908 " >&5
8909 echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
8910 " >&2;}
8911 { (exit 1); exit 1; }; }
8912 fi
8913 if test x$CMDLIB = xno; then
8914 { { echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
8915 " >&5
8916 echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
8917 " >&2;}
8918 { (exit 1); exit 1; }; }
8919 fi
8920 fi
8921
8922 if test x$DMEVENTD = xyes; then
8923
8924 cat >>confdefs.h <<\_ACEOF
8925 #define DMEVENTD 1
8926 _ACEOF
8927
8928 fi
8929
8930 ################################################################################
8931
8932 { echo "$as_me:$LINENO: checking for getline in -lc" >&5
8933 echo $ECHO_N "checking for getline in -lc... $ECHO_C" >&6; }
8934 if test "${ac_cv_lib_c_getline+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 else
8937 ac_check_lib_save_LIBS=$LIBS
8938 LIBS="-lc $LIBS"
8939 cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h. */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945
8946 /* Override any GCC internal prototype to avoid an error.
8947 Use char because int might match the return type of a GCC
8948 builtin and then its argument prototype would still apply. */
8949 #ifdef __cplusplus
8950 extern "C"
8951 #endif
8952 char getline ();
8953 int
8954 main ()
8955 {
8956 return getline ();
8957 ;
8958 return 0;
8959 }
8960 _ACEOF
8961 rm -f conftest.$ac_objext conftest$ac_exeext
8962 if { (ac_try="$ac_link"
8963 case "(($ac_try" in
8964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965 *) ac_try_echo=$ac_try;;
8966 esac
8967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968 (eval "$ac_link") 2>conftest.er1
8969 ac_status=$?
8970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } && {
8975 test -z "$ac_c_werror_flag" ||
8976 test ! -s conftest.err
8977 } && test -s conftest$ac_exeext &&
8978 $as_test_x conftest$ac_exeext; then
8979 ac_cv_lib_c_getline=yes
8980 else
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8983
8984 ac_cv_lib_c_getline=no
8985 fi
8986
8987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8988 conftest$ac_exeext conftest.$ac_ext
8989 LIBS=$ac_check_lib_save_LIBS
8990 fi
8991 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
8992 echo "${ECHO_T}$ac_cv_lib_c_getline" >&6; }
8993 if test $ac_cv_lib_c_getline = yes; then
8994
8995 cat >>confdefs.h <<\_ACEOF
8996 #define HAVE_GETLINE 1
8997 _ACEOF
8998
8999 fi
9000
9001
9002 ################################################################################
9003
9004 { echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9005 echo $ECHO_N "checking for canonicalize_file_name in -lc... $ECHO_C" >&6; }
9006 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
9008 else
9009 ac_check_lib_save_LIBS=$LIBS
9010 LIBS="-lc $LIBS"
9011 cat >conftest.$ac_ext <<_ACEOF
9012 /* confdefs.h. */
9013 _ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9017
9018 /* Override any GCC internal prototype to avoid an error.
9019 Use char because int might match the return type of a GCC
9020 builtin and then its argument prototype would still apply. */
9021 #ifdef __cplusplus
9022 extern "C"
9023 #endif
9024 char canonicalize_file_name ();
9025 int
9026 main ()
9027 {
9028 return canonicalize_file_name ();
9029 ;
9030 return 0;
9031 }
9032 _ACEOF
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (ac_try="$ac_link"
9035 case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9038 esac
9039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9040 (eval "$ac_link") 2>conftest.er1
9041 ac_status=$?
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } && {
9047 test -z "$ac_c_werror_flag" ||
9048 test ! -s conftest.err
9049 } && test -s conftest$ac_exeext &&
9050 $as_test_x conftest$ac_exeext; then
9051 ac_cv_lib_c_canonicalize_file_name=yes
9052 else
9053 echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.$ac_ext >&5
9055
9056 ac_cv_lib_c_canonicalize_file_name=no
9057 fi
9058
9059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9060 conftest$ac_exeext conftest.$ac_ext
9061 LIBS=$ac_check_lib_save_LIBS
9062 fi
9063 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9064 echo "${ECHO_T}$ac_cv_lib_c_canonicalize_file_name" >&6; }
9065 if test $ac_cv_lib_c_canonicalize_file_name = yes; then
9066
9067 cat >>confdefs.h <<\_ACEOF
9068 #define HAVE_CANONICALIZE_FILE_NAME 1
9069 _ACEOF
9070
9071 fi
9072
9073
9074 ################################################################################
9075 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9076 then exec_prefix="";
9077 fi;
9078
9079 ################################################################################
9080 if test x$READLINE != xno; then
9081 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9082 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
9083 if test "${ac_cv_search_tgetent+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 else
9086 ac_func_search_save_LIBS=$LIBS
9087 cat >conftest.$ac_ext <<_ACEOF
9088 /* confdefs.h. */
9089 _ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h. */
9093
9094 /* Override any GCC internal prototype to avoid an error.
9095 Use char because int might match the return type of a GCC
9096 builtin and then its argument prototype would still apply. */
9097 #ifdef __cplusplus
9098 extern "C"
9099 #endif
9100 char tgetent ();
9101 int
9102 main ()
9103 {
9104 return tgetent ();
9105 ;
9106 return 0;
9107 }
9108 _ACEOF
9109 for ac_lib in '' ncurses curses termcap termlib; do
9110 if test -z "$ac_lib"; then
9111 ac_res="none required"
9112 else
9113 ac_res=-l$ac_lib
9114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9115 fi
9116 rm -f conftest.$ac_objext conftest$ac_exeext
9117 if { (ac_try="$ac_link"
9118 case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9121 esac
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_link") 2>conftest.er1
9124 ac_status=$?
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest$ac_exeext &&
9133 $as_test_x conftest$ac_exeext; then
9134 ac_cv_search_tgetent=$ac_res
9135 else
9136 echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9138
9139
9140 fi
9141
9142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9143 conftest$ac_exeext
9144 if test "${ac_cv_search_tgetent+set}" = set; then
9145 break
9146 fi
9147 done
9148 if test "${ac_cv_search_tgetent+set}" = set; then
9149 :
9150 else
9151 ac_cv_search_tgetent=no
9152 fi
9153 rm conftest.$ac_ext
9154 LIBS=$ac_func_search_save_LIBS
9155 fi
9156 { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
9157 echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
9158 ac_res=$ac_cv_search_tgetent
9159 if test "$ac_res" != no; then
9160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9161 tg_found=yes
9162 else
9163 tg_found=no
9164 fi
9165
9166 test x$READLINE:$tg_found = xyes:no &&
9167 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
9168 --enable-readline option (which is enabled by default). Either disable readline
9169 support with --disable-readline or download and install termcap from:
9170 ftp.gnu.org/gnu/termcap
9171 Note: if you are using precompiled packages you will also need the development
9172 package as well (which may be called termcap-devel or something similar).
9173 Note: (n)curses also seems to work as a substitute for termcap. This was
9174 not found either - but you could try installing that as well.
9175 " >&5
9176 echo "$as_me: error: termcap could not be found which is required for the
9177 --enable-readline option (which is enabled by default). Either disable readline
9178 support with --disable-readline or download and install termcap from:
9179 ftp.gnu.org/gnu/termcap
9180 Note: if you are using precompiled packages you will also need the development
9181 package as well (which may be called termcap-devel or something similar).
9182 Note: (n)curses also seems to work as a substitute for termcap. This was
9183 not found either - but you could try installing that as well.
9184 " >&2;}
9185 { (exit 1); exit 1; }; }
9186 fi
9187
9188 ################################################################################
9189 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9190 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194 ac_check_lib_save_LIBS=$LIBS
9195 LIBS="-ldl $LIBS"
9196 cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h. */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202
9203 /* Override any GCC internal prototype to avoid an error.
9204 Use char because int might match the return type of a GCC
9205 builtin and then its argument prototype would still apply. */
9206 #ifdef __cplusplus
9207 extern "C"
9208 #endif
9209 char dlopen ();
9210 int
9211 main ()
9212 {
9213 return dlopen ();
9214 ;
9215 return 0;
9216 }
9217 _ACEOF
9218 rm -f conftest.$ac_objext conftest$ac_exeext
9219 if { (ac_try="$ac_link"
9220 case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223 esac
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_link") 2>conftest.er1
9226 ac_status=$?
9227 grep -v '^ *+' conftest.er1 >conftest.err
9228 rm -f conftest.er1
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } && {
9232 test -z "$ac_c_werror_flag" ||
9233 test ! -s conftest.err
9234 } && test -s conftest$ac_exeext &&
9235 $as_test_x conftest$ac_exeext; then
9236 ac_cv_lib_dl_dlopen=yes
9237 else
9238 echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9240
9241 ac_cv_lib_dl_dlopen=no
9242 fi
9243
9244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9245 conftest$ac_exeext conftest.$ac_ext
9246 LIBS=$ac_check_lib_save_LIBS
9247 fi
9248 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9249 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9250 if test $ac_cv_lib_dl_dlopen = yes; then
9251 HAVE_LIBDL=yes
9252 else
9253 HAVE_LIBDL=no
9254 fi
9255
9256
9257 if [ "x$HAVE_LIBDL" = xyes ]; then
9258
9259 cat >>confdefs.h <<\_ACEOF
9260 #define HAVE_LIBDL 1
9261 _ACEOF
9262
9263 LIBS="-ldl $LIBS"
9264 else
9265 HAVE_LIBDL=no
9266 fi
9267
9268 ################################################################################
9269 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9270 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9271 \) -a "x$STATIC_LINK" = xyes ];
9272 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
9273 " >&5
9274 echo "$as_me: error: Features cannot be 'shared' when building statically
9275 " >&2;}
9276 { (exit 1); exit 1; }; }
9277 fi
9278
9279 ################################################################################
9280 { echo "$as_me:$LINENO: checking whether to use static linking" >&5
9281 echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; }
9282 # Check whether --enable-static_link was given.
9283 if test "${enable_static_link+set}" = set; then
9284 enableval=$enable_static_link; STATIC_LINK=$enableval
9285 else
9286 STATIC_LINK=no
9287 fi
9288
9289 { echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9290 echo "${ECHO_T}$STATIC_LINK" >&6; }
9291
9292 ################################################################################
9293 { echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
9294 echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; }
9295 # Check whether --enable-selinux was given.
9296 if test "${enable_selinux+set}" = set; then
9297 enableval=$enable_selinux; SELINUX=$enableval
9298 fi
9299
9300 { echo "$as_me:$LINENO: result: $SELINUX" >&5
9301 echo "${ECHO_T}$SELINUX" >&6; }
9302
9303 ################################################################################
9304 if test x$SELINUX = xyes; then
9305 { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
9306 echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; }
9307 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310 ac_check_lib_save_LIBS=$LIBS
9311 LIBS="-lsepol $LIBS"
9312 cat >conftest.$ac_ext <<_ACEOF
9313 /* confdefs.h. */
9314 _ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9318
9319 /* Override any GCC internal prototype to avoid an error.
9320 Use char because int might match the return type of a GCC
9321 builtin and then its argument prototype would still apply. */
9322 #ifdef __cplusplus
9323 extern "C"
9324 #endif
9325 char sepol_check_context ();
9326 int
9327 main ()
9328 {
9329 return sepol_check_context ();
9330 ;
9331 return 0;
9332 }
9333 _ACEOF
9334 rm -f conftest.$ac_objext conftest$ac_exeext
9335 if { (ac_try="$ac_link"
9336 case "(($ac_try" in
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9339 esac
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_link") 2>conftest.er1
9342 ac_status=$?
9343 grep -v '^ *+' conftest.er1 >conftest.err
9344 rm -f conftest.er1
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && {
9348 test -z "$ac_c_werror_flag" ||
9349 test ! -s conftest.err
9350 } && test -s conftest$ac_exeext &&
9351 $as_test_x conftest$ac_exeext; then
9352 ac_cv_lib_sepol_sepol_check_context=yes
9353 else
9354 echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9356
9357 ac_cv_lib_sepol_sepol_check_context=no
9358 fi
9359
9360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9361 conftest$ac_exeext conftest.$ac_ext
9362 LIBS=$ac_check_lib_save_LIBS
9363 fi
9364 { echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9365 echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; }
9366 if test $ac_cv_lib_sepol_sepol_check_context = yes; then
9367 HAVE_SEPOL=yes
9368 else
9369 HAVE_SEPOL=no
9370 fi
9371
9372
9373 if test x$HAVE_SEPOL = xyes; then
9374
9375 cat >>confdefs.h <<\_ACEOF
9376 #define HAVE_SEPOL 1
9377 _ACEOF
9378
9379 LIBS="-lsepol $LIBS"
9380 fi
9381
9382 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
9383 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
9384 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387 ac_check_lib_save_LIBS=$LIBS
9388 LIBS="-lselinux $LIBS"
9389 cat >conftest.$ac_ext <<_ACEOF
9390 /* confdefs.h. */
9391 _ACEOF
9392 cat confdefs.h >>conftest.$ac_ext
9393 cat >>conftest.$ac_ext <<_ACEOF
9394 /* end confdefs.h. */
9395
9396 /* Override any GCC internal prototype to avoid an error.
9397 Use char because int might match the return type of a GCC
9398 builtin and then its argument prototype would still apply. */
9399 #ifdef __cplusplus
9400 extern "C"
9401 #endif
9402 char is_selinux_enabled ();
9403 int
9404 main ()
9405 {
9406 return is_selinux_enabled ();
9407 ;
9408 return 0;
9409 }
9410 _ACEOF
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (ac_try="$ac_link"
9413 case "(($ac_try" in
9414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9415 *) ac_try_echo=$ac_try;;
9416 esac
9417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9418 (eval "$ac_link") 2>conftest.er1
9419 ac_status=$?
9420 grep -v '^ *+' conftest.er1 >conftest.err
9421 rm -f conftest.er1
9422 cat conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } && {
9425 test -z "$ac_c_werror_flag" ||
9426 test ! -s conftest.err
9427 } && test -s conftest$ac_exeext &&
9428 $as_test_x conftest$ac_exeext; then
9429 ac_cv_lib_selinux_is_selinux_enabled=yes
9430 else
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9433
9434 ac_cv_lib_selinux_is_selinux_enabled=no
9435 fi
9436
9437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9438 conftest$ac_exeext conftest.$ac_ext
9439 LIBS=$ac_check_lib_save_LIBS
9440 fi
9441 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9442 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9443 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
9444 HAVE_SELINUX=yes
9445 else
9446 HAVE_SELINUX=no
9447 fi
9448
9449
9450 if test x$HAVE_SELINUX = xyes; then
9451
9452 cat >>confdefs.h <<\_ACEOF
9453 #define HAVE_SELINUX 1
9454 _ACEOF
9455
9456 LIBS="-lselinux $LIBS"
9457 else
9458 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9459 echo "$as_me: WARNING: Disabling selinux" >&2;}
9460 fi
9461
9462 # With --enable-static_link and selinux enabled, linking
9463 # fails on at least Debian unstable due to unsatisfied references
9464 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9465 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9466 lvm_saved_libs=$LIBS
9467 LIBS="$LIBS -static"
9468 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9469 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9470 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473 ac_func_search_save_LIBS=$LIBS
9474 cat >conftest.$ac_ext <<_ACEOF
9475 /* confdefs.h. */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9480
9481 /* Override any GCC internal prototype to avoid an error.
9482 Use char because int might match the return type of a GCC
9483 builtin and then its argument prototype would still apply. */
9484 #ifdef __cplusplus
9485 extern "C"
9486 #endif
9487 char pthread_mutex_lock ();
9488 int
9489 main ()
9490 {
9491 return pthread_mutex_lock ();
9492 ;
9493 return 0;
9494 }
9495 _ACEOF
9496 for ac_lib in '' pthread; do
9497 if test -z "$ac_lib"; then
9498 ac_res="none required"
9499 else
9500 ac_res=-l$ac_lib
9501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9502 fi
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (ac_try="$ac_link"
9505 case "(($ac_try" in
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9508 esac
9509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510 (eval "$ac_link") 2>conftest.er1
9511 ac_status=$?
9512 grep -v '^ *+' conftest.er1 >conftest.err
9513 rm -f conftest.er1
9514 cat conftest.err >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } && {
9517 test -z "$ac_c_werror_flag" ||
9518 test ! -s conftest.err
9519 } && test -s conftest$ac_exeext &&
9520 $as_test_x conftest$ac_exeext; then
9521 ac_cv_search_pthread_mutex_lock=$ac_res
9522 else
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526
9527 fi
9528
9529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9530 conftest$ac_exeext
9531 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9532 break
9533 fi
9534 done
9535 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9536 :
9537 else
9538 ac_cv_search_pthread_mutex_lock=no
9539 fi
9540 rm conftest.$ac_ext
9541 LIBS=$ac_func_search_save_LIBS
9542 fi
9543 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9544 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9545 ac_res=$ac_cv_search_pthread_mutex_lock
9546 if test "$ac_res" != no; then
9547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9548 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
9549 LIB_PTHREAD=-lpthread
9550 fi
9551
9552 LIBS=$lvm_saved_libs
9553 fi
9554 fi
9555
9556 ################################################################################
9557 if test x$REALTIME = xyes; then
9558 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9559 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
9560 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563 ac_check_lib_save_LIBS=$LIBS
9564 LIBS="-lrt $LIBS"
9565 cat >conftest.$ac_ext <<_ACEOF
9566 /* confdefs.h. */
9567 _ACEOF
9568 cat confdefs.h >>conftest.$ac_ext
9569 cat >>conftest.$ac_ext <<_ACEOF
9570 /* end confdefs.h. */
9571
9572 /* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
9575 #ifdef __cplusplus
9576 extern "C"
9577 #endif
9578 char clock_gettime ();
9579 int
9580 main ()
9581 {
9582 return clock_gettime ();
9583 ;
9584 return 0;
9585 }
9586 _ACEOF
9587 rm -f conftest.$ac_objext conftest$ac_exeext
9588 if { (ac_try="$ac_link"
9589 case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9592 esac
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_link") 2>conftest.er1
9595 ac_status=$?
9596 grep -v '^ *+' conftest.er1 >conftest.err
9597 rm -f conftest.er1
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } && {
9601 test -z "$ac_c_werror_flag" ||
9602 test ! -s conftest.err
9603 } && test -s conftest$ac_exeext &&
9604 $as_test_x conftest$ac_exeext; then
9605 ac_cv_lib_rt_clock_gettime=yes
9606 else
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9609
9610 ac_cv_lib_rt_clock_gettime=no
9611 fi
9612
9613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9614 conftest$ac_exeext conftest.$ac_ext
9615 LIBS=$ac_check_lib_save_LIBS
9616 fi
9617 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9618 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
9619 if test $ac_cv_lib_rt_clock_gettime = yes; then
9620 HAVE_REALTIME=yes
9621 else
9622 HAVE_REALTIME=no
9623 fi
9624
9625
9626 if test x$HAVE_REALTIME = xyes; then
9627
9628 cat >>confdefs.h <<\_ACEOF
9629 #define HAVE_REALTIME 1
9630 _ACEOF
9631
9632 LIBS="-lrt $LIBS"
9633 else
9634 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9635 echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9636 fi
9637 fi
9638
9639 ################################################################################
9640
9641 for ac_header in getopt.h
9642 do
9643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 fi
9650 ac_res=`eval echo '${'$as_ac_Header'}'`
9651 { echo "$as_me:$LINENO: result: $ac_res" >&5
9652 echo "${ECHO_T}$ac_res" >&6; }
9653 else
9654 # Is the header compilable?
9655 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9657 cat >conftest.$ac_ext <<_ACEOF
9658 /* confdefs.h. */
9659 _ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h. */
9663 $ac_includes_default
9664 #include <$ac_header>
9665 _ACEOF
9666 rm -f conftest.$ac_objext
9667 if { (ac_try="$ac_compile"
9668 case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9671 esac
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_compile") 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest.$ac_objext; then
9683 ac_header_compiler=yes
9684 else
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688 ac_header_compiler=no
9689 fi
9690
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9693 echo "${ECHO_T}$ac_header_compiler" >&6; }
9694
9695 # Is the header present?
9696 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9698 cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h. */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 #include <$ac_header>
9705 _ACEOF
9706 if { (ac_try="$ac_cpp conftest.$ac_ext"
9707 case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710 esac
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } >/dev/null && {
9719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 }; then
9722 ac_header_preproc=yes
9723 else
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9726
9727 ac_header_preproc=no
9728 fi
9729
9730 rm -f conftest.err conftest.$ac_ext
9731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9732 echo "${ECHO_T}$ac_header_preproc" >&6; }
9733
9734 # So? What about this header?
9735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9736 yes:no: )
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9741 ac_header_preproc=yes
9742 ;;
9743 no:yes:* )
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9756
9757 ;;
9758 esac
9759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 else
9764 eval "$as_ac_Header=\$ac_header_preproc"
9765 fi
9766 ac_res=`eval echo '${'$as_ac_Header'}'`
9767 { echo "$as_me:$LINENO: result: $ac_res" >&5
9768 echo "${ECHO_T}$ac_res" >&6; }
9769
9770 fi
9771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9772 cat >>confdefs.h <<_ACEOF
9773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9774 _ACEOF
9775
9776 cat >>confdefs.h <<\_ACEOF
9777 #define HAVE_GETOPTLONG 1
9778 _ACEOF
9779
9780 fi
9781
9782 done
9783
9784
9785 ################################################################################
9786 if test x$READLINE != xno; then
9787 rl_found=yes
9788
9789 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9790 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
9791 if test "${ac_cv_lib_readline_readline+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794 ac_check_lib_save_LIBS=$LIBS
9795 LIBS="-lreadline $LIBS"
9796 cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h. */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9802
9803 /* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
9806 #ifdef __cplusplus
9807 extern "C"
9808 #endif
9809 char readline ();
9810 int
9811 main ()
9812 {
9813 return readline ();
9814 ;
9815 return 0;
9816 }
9817 _ACEOF
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (ac_try="$ac_link"
9820 case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823 esac
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_link") 2>conftest.er1
9826 ac_status=$?
9827 grep -v '^ *+' conftest.er1 >conftest.err
9828 rm -f conftest.er1
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } && {
9832 test -z "$ac_c_werror_flag" ||
9833 test ! -s conftest.err
9834 } && test -s conftest$ac_exeext &&
9835 $as_test_x conftest$ac_exeext; then
9836 ac_cv_lib_readline_readline=yes
9837 else
9838 echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9840
9841 ac_cv_lib_readline_readline=no
9842 fi
9843
9844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9845 conftest$ac_exeext conftest.$ac_ext
9846 LIBS=$ac_check_lib_save_LIBS
9847 fi
9848 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
9849 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
9850 if test $ac_cv_lib_readline_readline = yes; then
9851 cat >>confdefs.h <<_ACEOF
9852 #define HAVE_LIBREADLINE 1
9853 _ACEOF
9854
9855 LIBS="-lreadline $LIBS"
9856
9857 else
9858 rl_found=no
9859 fi
9860
9861 test x$READLINE:$rl_found = xyes:no &&
9862 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
9863 --enable-readline option (which is enabled by default). Either disable readline
9864 support with --disable-readline or download and install readline from:
9865 ftp.gnu.org/gnu/readline
9866 Note: if you are using precompiled packages you will also need the development
9867 package as well (which may be called readline-devel or something similar).
9868 " >&5
9869 echo "$as_me: error: GNU Readline could not be found which is required for the
9870 --enable-readline option (which is enabled by default). Either disable readline
9871 support with --disable-readline or download and install readline from:
9872 ftp.gnu.org/gnu/readline
9873 Note: if you are using precompiled packages you will also need the development
9874 package as well (which may be called readline-devel or something similar).
9875 " >&2;}
9876 { (exit 1); exit 1; }; }
9877 if test $rl_found = yes; then
9878
9879 for ac_func in rl_completion_matches
9880 do
9881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9882 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9884 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887 cat >conftest.$ac_ext <<_ACEOF
9888 /* confdefs.h. */
9889 _ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9895 #define $ac_func innocuous_$ac_func
9896
9897 /* System header to define __stub macros and hopefully few prototypes,
9898 which can conflict with char $ac_func (); below.
9899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9900 <limits.h> exists even on freestanding compilers. */
9901
9902 #ifdef __STDC__
9903 # include <limits.h>
9904 #else
9905 # include <assert.h>
9906 #endif
9907
9908 #undef $ac_func
9909
9910 /* Override any GCC internal prototype to avoid an error.
9911 Use char because int might match the return type of a GCC
9912 builtin and then its argument prototype would still apply. */
9913 #ifdef __cplusplus
9914 extern "C"
9915 #endif
9916 char $ac_func ();
9917 /* The GNU C library defines this for functions which it implements
9918 to always fail with ENOSYS. Some functions are actually named
9919 something starting with __ and the normal name is an alias. */
9920 #if defined __stub_$ac_func || defined __stub___$ac_func
9921 choke me
9922 #endif
9923
9924 int
9925 main ()
9926 {
9927 return $ac_func ();
9928 ;
9929 return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9934 case "(($ac_try" in
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9937 esac
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_link") 2>conftest.er1
9940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 } && test -s conftest$ac_exeext &&
9949 $as_test_x conftest$ac_exeext; then
9950 eval "$as_ac_var=yes"
9951 else
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9954
9955 eval "$as_ac_var=no"
9956 fi
9957
9958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9959 conftest$ac_exeext conftest.$ac_ext
9960 fi
9961 ac_res=`eval echo '${'$as_ac_var'}'`
9962 { echo "$as_me:$LINENO: result: $ac_res" >&5
9963 echo "${ECHO_T}$ac_res" >&6; }
9964 if test `eval echo '${'$as_ac_var'}'` = yes; then
9965 cat >>confdefs.h <<_ACEOF
9966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9967 _ACEOF
9968
9969 fi
9970 done
9971
9972
9973 cat >>confdefs.h <<\_ACEOF
9974 #define READLINE_SUPPORT 1
9975 _ACEOF
9976
9977 fi
9978 fi
9979
9980 ################################################################################
9981 { echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
9982 echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; }
9983 # Check whether --enable-nls was given.
9984 if test "${enable_nls+set}" = set; then
9985 enableval=$enable_nls; INTL=$enableval
9986 else
9987 INTL=no
9988 fi
9989
9990 { echo "$as_me:$LINENO: result: $INTL" >&5
9991 echo "${ECHO_T}$INTL" >&6; }
9992
9993 if test x$INTL = xyes; then
9994 # FIXME - Move this - can be device-mapper too
9995 INTL_PACKAGE="lvm2"
9996 # Extract the first word of "msgfmt", so it can be a program name with args.
9997 set dummy msgfmt; ac_word=$2
9998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10000 if test "${ac_cv_path_MSGFMT+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003 case $MSGFMT in
10004 [\\/]* | ?:[\\/]*)
10005 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10006 ;;
10007 *)
10008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009 for as_dir in $PATH
10010 do
10011 IFS=$as_save_IFS
10012 test -z "$as_dir" && as_dir=.
10013 for ac_exec_ext in '' $ac_executable_extensions; do
10014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10015 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
10016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10017 break 2
10018 fi
10019 done
10020 done
10021 IFS=$as_save_IFS
10022
10023 ;;
10024 esac
10025 fi
10026 MSGFMT=$ac_cv_path_MSGFMT
10027 if test -n "$MSGFMT"; then
10028 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
10029 echo "${ECHO_T}$MSGFMT" >&6; }
10030 else
10031 { echo "$as_me:$LINENO: result: no" >&5
10032 echo "${ECHO_T}no" >&6; }
10033 fi
10034
10035
10036 if [ "x$MSGFMT" == x ];
10037 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
10038 " >&5
10039 echo "$as_me: error: msgfmt not found in path $PATH
10040 " >&2;}
10041 { (exit 1); exit 1; }; }
10042 fi;
10043
10044
10045 # Check whether --with-localedir was given.
10046 if test "${with_localedir+set}" = set; then
10047 withval=$with_localedir; LOCALEDIR="$withval"
10048 else
10049 LOCALEDIR='${prefix}/share/locale'
10050 fi
10051
10052 fi
10053
10054 ################################################################################
10055
10056 # Check whether --with-confdir was given.
10057 if test "${with_confdir+set}" = set; then
10058 withval=$with_confdir; CONFDIR="$withval"
10059 else
10060 CONFDIR='/etc'
10061 fi
10062
10063
10064
10065 # Check whether --with-staticdir was given.
10066 if test "${with_staticdir+set}" = set; then
10067 withval=$with_staticdir; STATICDIR="$withval"
10068 else
10069 STATICDIR='${exec_prefix}/sbin'
10070 fi
10071
10072
10073
10074 # Check whether --with-dmdir was given.
10075 if test "${with_dmdir+set}" = set; then
10076 withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include"
10077 else
10078 DMDIR=
10079 fi
10080
10081
10082 # Convert a relative dir name to absolute.
10083 case $DMDIR in
10084 /*) ;;
10085 *) DMDIR="`pwd`/$DMDIR" ;;
10086 esac
10087
10088
10089 # Check whether --with-usrlibdir was given.
10090 if test "${with_usrlibdir+set}" = set; then
10091 withval=$with_usrlibdir; usrlibdir="$withval"
10092 else
10093 usrlibdir='${prefix}/lib'
10094 fi
10095
10096
10097
10098 # Check whether --with-usrsbindir was given.
10099 if test "${with_usrsbindir+set}" = set; then
10100 withval=$with_usrsbindir; usrsbindir="$withval"
10101 else
10102 usrsbindir='${prefix}/sbin'
10103 fi
10104
10105
10106 ################################################################################
10107 if test x$READLINE = xyes; then
10108
10109
10110 for ac_header in readline/readline.h readline/history.h
10111 do
10112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 fi
10119 ac_res=`eval echo '${'$as_ac_Header'}'`
10120 { echo "$as_me:$LINENO: result: $ac_res" >&5
10121 echo "${ECHO_T}$ac_res" >&6; }
10122 else
10123 # Is the header compilable?
10124 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h. */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132 $ac_includes_default
10133 #include <$ac_header>
10134 _ACEOF
10135 rm -f conftest.$ac_objext
10136 if { (ac_try="$ac_compile"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140 esac
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_compile") 2>conftest.er1
10143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest.$ac_objext; then
10152 ac_header_compiler=yes
10153 else
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10156
10157 ac_header_compiler=no
10158 fi
10159
10160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10162 echo "${ECHO_T}$ac_header_compiler" >&6; }
10163
10164 # Is the header present?
10165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10167 cat >conftest.$ac_ext <<_ACEOF
10168 /* confdefs.h. */
10169 _ACEOF
10170 cat confdefs.h >>conftest.$ac_ext
10171 cat >>conftest.$ac_ext <<_ACEOF
10172 /* end confdefs.h. */
10173 #include <$ac_header>
10174 _ACEOF
10175 if { (ac_try="$ac_cpp conftest.$ac_ext"
10176 case "(($ac_try" in
10177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10179 esac
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10182 ac_status=$?
10183 grep -v '^ *+' conftest.er1 >conftest.err
10184 rm -f conftest.er1
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } >/dev/null && {
10188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10189 test ! -s conftest.err
10190 }; then
10191 ac_header_preproc=yes
10192 else
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10195
10196 ac_header_preproc=no
10197 fi
10198
10199 rm -f conftest.err conftest.$ac_ext
10200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10201 echo "${ECHO_T}$ac_header_preproc" >&6; }
10202
10203 # So? What about this header?
10204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10205 yes:no: )
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10210 ac_header_preproc=yes
10211 ;;
10212 no:yes:* )
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10225
10226 ;;
10227 esac
10228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233 eval "$as_ac_Header=\$ac_header_preproc"
10234 fi
10235 ac_res=`eval echo '${'$as_ac_Header'}'`
10236 { echo "$as_me:$LINENO: result: $ac_res" >&5
10237 echo "${ECHO_T}$ac_res" >&6; }
10238
10239 fi
10240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10241 cat >>confdefs.h <<_ACEOF
10242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10243 _ACEOF
10244
10245 else
10246 { { echo "$as_me:$LINENO: error: bailing out" >&5
10247 echo "$as_me: error: bailing out" >&2;}
10248 { (exit 1); exit 1; }; }
10249 fi
10250
10251 done
10252
10253 fi
10254
10255 if test x$CLVMD != xnone; then
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266 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
10267 do
10268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 fi
10275 ac_res=`eval echo '${'$as_ac_Header'}'`
10276 { echo "$as_me:$LINENO: result: $ac_res" >&5
10277 echo "${ECHO_T}$ac_res" >&6; }
10278 else
10279 # Is the header compilable?
10280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10282 cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h. */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 $ac_includes_default
10289 #include <$ac_header>
10290 _ACEOF
10291 rm -f conftest.$ac_objext
10292 if { (ac_try="$ac_compile"
10293 case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10296 esac
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_compile") 2>conftest.er1
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && {
10305 test -z "$ac_c_werror_flag" ||
10306 test ! -s conftest.err
10307 } && test -s conftest.$ac_objext; then
10308 ac_header_compiler=yes
10309 else
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10312
10313 ac_header_compiler=no
10314 fi
10315
10316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10318 echo "${ECHO_T}$ac_header_compiler" >&6; }
10319
10320 # Is the header present?
10321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10323 cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h. */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 #include <$ac_header>
10330 _ACEOF
10331 if { (ac_try="$ac_cpp conftest.$ac_ext"
10332 case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10335 esac
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } >/dev/null && {
10344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 }; then
10347 ac_header_preproc=yes
10348 else
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10351
10352 ac_header_preproc=no
10353 fi
10354
10355 rm -f conftest.err conftest.$ac_ext
10356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10357 echo "${ECHO_T}$ac_header_preproc" >&6; }
10358
10359 # So? What about this header?
10360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10361 yes:no: )
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10363 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10366 ac_header_preproc=yes
10367 ;;
10368 no:yes:* )
10369 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10370 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10371 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10372 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10373 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10374 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10375 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10376 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10379 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10380 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10381
10382 ;;
10383 esac
10384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 else
10389 eval "$as_ac_Header=\$ac_header_preproc"
10390 fi
10391 ac_res=`eval echo '${'$as_ac_Header'}'`
10392 { echo "$as_me:$LINENO: result: $ac_res" >&5
10393 echo "${ECHO_T}$ac_res" >&6; }
10394
10395 fi
10396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10397 cat >>confdefs.h <<_ACEOF
10398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10399 _ACEOF
10400
10401 else
10402 { { echo "$as_me:$LINENO: error: bailing out" >&5
10403 echo "$as_me: error: bailing out" >&2;}
10404 { (exit 1); exit 1; }; }
10405 fi
10406
10407 done
10408
10409
10410
10411
10412
10413
10414 for ac_func in dup2 getmntent memmove select socket
10415 do
10416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 else
10422 cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10430 #define $ac_func innocuous_$ac_func
10431
10432 /* System header to define __stub macros and hopefully few prototypes,
10433 which can conflict with char $ac_func (); below.
10434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10435 <limits.h> exists even on freestanding compilers. */
10436
10437 #ifdef __STDC__
10438 # include <limits.h>
10439 #else
10440 # include <assert.h>
10441 #endif
10442
10443 #undef $ac_func
10444
10445 /* Override any GCC internal prototype to avoid an error.
10446 Use char because int might match the return type of a GCC
10447 builtin and then its argument prototype would still apply. */
10448 #ifdef __cplusplus
10449 extern "C"
10450 #endif
10451 char $ac_func ();
10452 /* The GNU C library defines this for functions which it implements
10453 to always fail with ENOSYS. Some functions are actually named
10454 something starting with __ and the normal name is an alias. */
10455 #if defined __stub_$ac_func || defined __stub___$ac_func
10456 choke me
10457 #endif
10458
10459 int
10460 main ()
10461 {
10462 return $ac_func ();
10463 ;
10464 return 0;
10465 }
10466 _ACEOF
10467 rm -f conftest.$ac_objext conftest$ac_exeext
10468 if { (ac_try="$ac_link"
10469 case "(($ac_try" in
10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471 *) ac_try_echo=$ac_try;;
10472 esac
10473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_link") 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 } && test -s conftest$ac_exeext &&
10484 $as_test_x conftest$ac_exeext; then
10485 eval "$as_ac_var=yes"
10486 else
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10489
10490 eval "$as_ac_var=no"
10491 fi
10492
10493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10494 conftest$ac_exeext conftest.$ac_ext
10495 fi
10496 ac_res=`eval echo '${'$as_ac_var'}'`
10497 { echo "$as_me:$LINENO: result: $ac_res" >&5
10498 echo "${ECHO_T}$ac_res" >&6; }
10499 if test `eval echo '${'$as_ac_var'}'` = yes; then
10500 cat >>confdefs.h <<_ACEOF
10501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10502 _ACEOF
10503
10504 else
10505 { { echo "$as_me:$LINENO: error: bailing out" >&5
10506 echo "$as_me: error: bailing out" >&2;}
10507 { (exit 1); exit 1; }; }
10508 fi
10509 done
10510
10511 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10512 # -lseq on Dynix/PTX, -lgen on Unixware.
10513 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
10514 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
10515 if test "${ac_cv_search_getmntent+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518 ac_func_search_save_LIBS=$LIBS
10519 cat >conftest.$ac_ext <<_ACEOF
10520 /* confdefs.h. */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10525
10526 /* Override any GCC internal prototype to avoid an error.
10527 Use char because int might match the return type of a GCC
10528 builtin and then its argument prototype would still apply. */
10529 #ifdef __cplusplus
10530 extern "C"
10531 #endif
10532 char getmntent ();
10533 int
10534 main ()
10535 {
10536 return getmntent ();
10537 ;
10538 return 0;
10539 }
10540 _ACEOF
10541 for ac_lib in '' sun seq gen; do
10542 if test -z "$ac_lib"; then
10543 ac_res="none required"
10544 else
10545 ac_res=-l$ac_lib
10546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10547 fi
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (ac_try="$ac_link"
10550 case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10553 esac
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_link") 2>conftest.er1
10556 ac_status=$?
10557 grep -v '^ *+' conftest.er1 >conftest.err
10558 rm -f conftest.er1
10559 cat conftest.err >&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } && {
10562 test -z "$ac_c_werror_flag" ||
10563 test ! -s conftest.err
10564 } && test -s conftest$ac_exeext &&
10565 $as_test_x conftest$ac_exeext; then
10566 ac_cv_search_getmntent=$ac_res
10567 else
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571
10572 fi
10573
10574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10575 conftest$ac_exeext
10576 if test "${ac_cv_search_getmntent+set}" = set; then
10577 break
10578 fi
10579 done
10580 if test "${ac_cv_search_getmntent+set}" = set; then
10581 :
10582 else
10583 ac_cv_search_getmntent=no
10584 fi
10585 rm conftest.$ac_ext
10586 LIBS=$ac_func_search_save_LIBS
10587 fi
10588 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
10589 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
10590 ac_res=$ac_cv_search_getmntent
10591 if test "$ac_res" != no; then
10592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10593 ac_cv_func_getmntent=yes
10594
10595 cat >>confdefs.h <<\_ACEOF
10596 #define HAVE_GETMNTENT
10597 _ACEOF
10598
10599 else
10600 ac_cv_func_getmntent=no
10601 fi
10602
10603
10604 # AC_FUNC_REALLOC
10605
10606
10607 for ac_header in sys/select.h sys/socket.h
10608 do
10609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 fi
10616 ac_res=`eval echo '${'$as_ac_Header'}'`
10617 { echo "$as_me:$LINENO: result: $ac_res" >&5
10618 echo "${ECHO_T}$ac_res" >&6; }
10619 else
10620 # Is the header compilable?
10621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10623 cat >conftest.$ac_ext <<_ACEOF
10624 /* confdefs.h. */
10625 _ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h. */
10629 $ac_includes_default
10630 #include <$ac_header>
10631 _ACEOF
10632 rm -f conftest.$ac_objext
10633 if { (ac_try="$ac_compile"
10634 case "(($ac_try" in
10635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636 *) ac_try_echo=$ac_try;;
10637 esac
10638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639 (eval "$ac_compile") 2>conftest.er1
10640 ac_status=$?
10641 grep -v '^ *+' conftest.er1 >conftest.err
10642 rm -f conftest.er1
10643 cat conftest.err >&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } && {
10646 test -z "$ac_c_werror_flag" ||
10647 test ! -s conftest.err
10648 } && test -s conftest.$ac_objext; then
10649 ac_header_compiler=yes
10650 else
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10653
10654 ac_header_compiler=no
10655 fi
10656
10657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10659 echo "${ECHO_T}$ac_header_compiler" >&6; }
10660
10661 # Is the header present?
10662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10664 cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h. */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10670 #include <$ac_header>
10671 _ACEOF
10672 if { (ac_try="$ac_cpp conftest.$ac_ext"
10673 case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10676 esac
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10679 ac_status=$?
10680 grep -v '^ *+' conftest.er1 >conftest.err
10681 rm -f conftest.er1
10682 cat conftest.err >&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } >/dev/null && {
10685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10686 test ! -s conftest.err
10687 }; then
10688 ac_header_preproc=yes
10689 else
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10692
10693 ac_header_preproc=no
10694 fi
10695
10696 rm -f conftest.err conftest.$ac_ext
10697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10698 echo "${ECHO_T}$ac_header_preproc" >&6; }
10699
10700 # So? What about this header?
10701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10702 yes:no: )
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10707 ac_header_preproc=yes
10708 ;;
10709 no:yes:* )
10710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10722
10723 ;;
10724 esac
10725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730 eval "$as_ac_Header=\$ac_header_preproc"
10731 fi
10732 ac_res=`eval echo '${'$as_ac_Header'}'`
10733 { echo "$as_me:$LINENO: result: $ac_res" >&5
10734 echo "${ECHO_T}$ac_res" >&6; }
10735
10736 fi
10737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10738 cat >>confdefs.h <<_ACEOF
10739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10740 _ACEOF
10741
10742 fi
10743
10744 done
10745
10746 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
10747 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
10748 if test "${ac_cv_func_select_args+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10752 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10753 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10754 cat >conftest.$ac_ext <<_ACEOF
10755 /* confdefs.h. */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 $ac_includes_default
10761 #ifdef HAVE_SYS_SELECT_H
10762 # include <sys/select.h>
10763 #endif
10764 #ifdef HAVE_SYS_SOCKET_H
10765 # include <sys/socket.h>
10766 #endif
10767
10768 int
10769 main ()
10770 {
10771 extern int select ($ac_arg1,
10772 $ac_arg234, $ac_arg234, $ac_arg234,
10773 $ac_arg5);
10774 ;
10775 return 0;
10776 }
10777 _ACEOF
10778 rm -f conftest.$ac_objext
10779 if { (ac_try="$ac_compile"
10780 case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10783 esac
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_compile") 2>conftest.er1
10786 ac_status=$?
10787 grep -v '^ *+' conftest.er1 >conftest.err
10788 rm -f conftest.er1
10789 cat conftest.err >&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } && {
10792 test -z "$ac_c_werror_flag" ||
10793 test ! -s conftest.err
10794 } && test -s conftest.$ac_objext; then
10795 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10796 else
10797 echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10799
10800
10801 fi
10802
10803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 done
10805 done
10806 done
10807 # Provide a safe default value.
10808 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10809
10810 fi
10811 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10812 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
10813 ac_save_IFS=$IFS; IFS=','
10814 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10815 IFS=$ac_save_IFS
10816 shift
10817
10818 cat >>confdefs.h <<_ACEOF
10819 #define SELECT_TYPE_ARG1 $1
10820 _ACEOF
10821
10822
10823 cat >>confdefs.h <<_ACEOF
10824 #define SELECT_TYPE_ARG234 ($2)
10825 _ACEOF
10826
10827
10828 cat >>confdefs.h <<_ACEOF
10829 #define SELECT_TYPE_ARG5 ($3)
10830 _ACEOF
10831
10832 rm -f conftest*
10833
10834 fi
10835
10836 if test x$CLUSTER != xnone; then
10837
10838
10839 for ac_header in sys/socket.h sys/un.h
10840 do
10841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 fi
10848 ac_res=`eval echo '${'$as_ac_Header'}'`
10849 { echo "$as_me:$LINENO: result: $ac_res" >&5
10850 echo "${ECHO_T}$ac_res" >&6; }
10851 else
10852 # Is the header compilable?
10853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10855 cat >conftest.$ac_ext <<_ACEOF
10856 /* confdefs.h. */
10857 _ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10861 $ac_includes_default
10862 #include <$ac_header>
10863 _ACEOF
10864 rm -f conftest.$ac_objext
10865 if { (ac_try="$ac_compile"
10866 case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869 esac
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_compile") 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } && {
10878 test -z "$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10880 } && test -s conftest.$ac_objext; then
10881 ac_header_compiler=yes
10882 else
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10885
10886 ac_header_compiler=no
10887 fi
10888
10889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10891 echo "${ECHO_T}$ac_header_compiler" >&6; }
10892
10893 # Is the header present?
10894 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10896 cat >conftest.$ac_ext <<_ACEOF
10897 /* confdefs.h. */
10898 _ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10902 #include <$ac_header>
10903 _ACEOF
10904 if { (ac_try="$ac_cpp conftest.$ac_ext"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908 esac
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } >/dev/null && {
10917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 }; then
10920 ac_header_preproc=yes
10921 else
10922 echo "$as_me: failed program was:" >&5
10923 sed 's/^/| /' conftest.$ac_ext >&5
10924
10925 ac_header_preproc=no
10926 fi
10927
10928 rm -f conftest.err conftest.$ac_ext
10929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10930 echo "${ECHO_T}$ac_header_preproc" >&6; }
10931
10932 # So? What about this header?
10933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10934 yes:no: )
10935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10939 ac_header_preproc=yes
10940 ;;
10941 no:yes:* )
10942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10949 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10954
10955 ;;
10956 esac
10957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
10962 eval "$as_ac_Header=\$ac_header_preproc"
10963 fi
10964 ac_res=`eval echo '${'$as_ac_Header'}'`
10965 { echo "$as_me:$LINENO: result: $ac_res" >&5
10966 echo "${ECHO_T}$ac_res" >&6; }
10967
10968 fi
10969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10970 cat >>confdefs.h <<_ACEOF
10971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10972 _ACEOF
10973
10974 else
10975 { { echo "$as_me:$LINENO: error: bailing out" >&5
10976 echo "$as_me: error: bailing out" >&2;}
10977 { (exit 1); exit 1; }; }
10978 fi
10979
10980 done
10981
10982
10983 for ac_func in socket
10984 do
10985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991 cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h. */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10999 #define $ac_func innocuous_$ac_func
11000
11001 /* System header to define __stub macros and hopefully few prototypes,
11002 which can conflict with char $ac_func (); below.
11003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11004 <limits.h> exists even on freestanding compilers. */
11005
11006 #ifdef __STDC__
11007 # include <limits.h>
11008 #else
11009 # include <assert.h>
11010 #endif
11011
11012 #undef $ac_func
11013
11014 /* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11017 #ifdef __cplusplus
11018 extern "C"
11019 #endif
11020 char $ac_func ();
11021 /* The GNU C library defines this for functions which it implements
11022 to always fail with ENOSYS. Some functions are actually named
11023 something starting with __ and the normal name is an alias. */
11024 #if defined __stub_$ac_func || defined __stub___$ac_func
11025 choke me
11026 #endif
11027
11028 int
11029 main ()
11030 {
11031 return $ac_func ();
11032 ;
11033 return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041 esac
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_link") 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } && {
11050 test -z "$ac_c_werror_flag" ||
11051 test ! -s conftest.err
11052 } && test -s conftest$ac_exeext &&
11053 $as_test_x conftest$ac_exeext; then
11054 eval "$as_ac_var=yes"
11055 else
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11058
11059 eval "$as_ac_var=no"
11060 fi
11061
11062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11063 conftest$ac_exeext conftest.$ac_ext
11064 fi
11065 ac_res=`eval echo '${'$as_ac_var'}'`
11066 { echo "$as_me:$LINENO: result: $ac_res" >&5
11067 echo "${ECHO_T}$ac_res" >&6; }
11068 if test `eval echo '${'$as_ac_var'}'` = yes; then
11069 cat >>confdefs.h <<_ACEOF
11070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11071 _ACEOF
11072
11073 else
11074 { { echo "$as_me:$LINENO: error: bailing out" >&5
11075 echo "$as_me: error: bailing out" >&2;}
11076 { (exit 1); exit 1; }; }
11077 fi
11078 done
11079
11080 fi
11081
11082 if test x$HAVE_LIBDL = xyes; then
11083
11084 for ac_header in dlfcn.h
11085 do
11086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 fi
11093 ac_res=`eval echo '${'$as_ac_Header'}'`
11094 { echo "$as_me:$LINENO: result: $ac_res" >&5
11095 echo "${ECHO_T}$ac_res" >&6; }
11096 else
11097 # Is the header compilable?
11098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11100 cat >conftest.$ac_ext <<_ACEOF
11101 /* confdefs.h. */
11102 _ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106 $ac_includes_default
11107 #include <$ac_header>
11108 _ACEOF
11109 rm -f conftest.$ac_objext
11110 if { (ac_try="$ac_compile"
11111 case "(($ac_try" in
11112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113 *) ac_try_echo=$ac_try;;
11114 esac
11115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11116 (eval "$ac_compile") 2>conftest.er1
11117 ac_status=$?
11118 grep -v '^ *+' conftest.er1 >conftest.err
11119 rm -f conftest.er1
11120 cat conftest.err >&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } && {
11123 test -z "$ac_c_werror_flag" ||
11124 test ! -s conftest.err
11125 } && test -s conftest.$ac_objext; then
11126 ac_header_compiler=yes
11127 else
11128 echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11130
11131 ac_header_compiler=no
11132 fi
11133
11134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11136 echo "${ECHO_T}$ac_header_compiler" >&6; }
11137
11138 # Is the header present?
11139 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11141 cat >conftest.$ac_ext <<_ACEOF
11142 /* confdefs.h. */
11143 _ACEOF
11144 cat confdefs.h >>conftest.$ac_ext
11145 cat >>conftest.$ac_ext <<_ACEOF
11146 /* end confdefs.h. */
11147 #include <$ac_header>
11148 _ACEOF
11149 if { (ac_try="$ac_cpp conftest.$ac_ext"
11150 case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153 esac
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11156 ac_status=$?
11157 grep -v '^ *+' conftest.er1 >conftest.err
11158 rm -f conftest.er1
11159 cat conftest.err >&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } >/dev/null && {
11162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11163 test ! -s conftest.err
11164 }; then
11165 ac_header_preproc=yes
11166 else
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11169
11170 ac_header_preproc=no
11171 fi
11172
11173 rm -f conftest.err conftest.$ac_ext
11174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11175 echo "${ECHO_T}$ac_header_preproc" >&6; }
11176
11177 # So? What about this header?
11178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11179 yes:no: )
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11184 ac_header_preproc=yes
11185 ;;
11186 no:yes:* )
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11199
11200 ;;
11201 esac
11202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 eval "$as_ac_Header=\$ac_header_preproc"
11208 fi
11209 ac_res=`eval echo '${'$as_ac_Header'}'`
11210 { echo "$as_me:$LINENO: result: $ac_res" >&5
11211 echo "${ECHO_T}$ac_res" >&6; }
11212
11213 fi
11214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11215 cat >>confdefs.h <<_ACEOF
11216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11217 _ACEOF
11218
11219 else
11220 { { echo "$as_me:$LINENO: error: bailing out" >&5
11221 echo "$as_me: error: bailing out" >&2;}
11222 { (exit 1); exit 1; }; }
11223 fi
11224
11225 done
11226
11227 fi
11228
11229 if test x$INTL = xyes; then
11230
11231 for ac_header in libintl.h
11232 do
11233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 fi
11240 ac_res=`eval echo '${'$as_ac_Header'}'`
11241 { echo "$as_me:$LINENO: result: $ac_res" >&5
11242 echo "${ECHO_T}$ac_res" >&6; }
11243 else
11244 # Is the header compilable?
11245 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11247 cat >conftest.$ac_ext <<_ACEOF
11248 /* confdefs.h. */
11249 _ACEOF
11250 cat confdefs.h >>conftest.$ac_ext
11251 cat >>conftest.$ac_ext <<_ACEOF
11252 /* end confdefs.h. */
11253 $ac_includes_default
11254 #include <$ac_header>
11255 _ACEOF
11256 rm -f conftest.$ac_objext
11257 if { (ac_try="$ac_compile"
11258 case "(($ac_try" in
11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260 *) ac_try_echo=$ac_try;;
11261 esac
11262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263 (eval "$ac_compile") 2>conftest.er1
11264 ac_status=$?
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } && {
11270 test -z "$ac_c_werror_flag" ||
11271 test ! -s conftest.err
11272 } && test -s conftest.$ac_objext; then
11273 ac_header_compiler=yes
11274 else
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11277
11278 ac_header_compiler=no
11279 fi
11280
11281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11283 echo "${ECHO_T}$ac_header_compiler" >&6; }
11284
11285 # Is the header present?
11286 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11288 cat >conftest.$ac_ext <<_ACEOF
11289 /* confdefs.h. */
11290 _ACEOF
11291 cat confdefs.h >>conftest.$ac_ext
11292 cat >>conftest.$ac_ext <<_ACEOF
11293 /* end confdefs.h. */
11294 #include <$ac_header>
11295 _ACEOF
11296 if { (ac_try="$ac_cpp conftest.$ac_ext"
11297 case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11300 esac
11301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11303 ac_status=$?
11304 grep -v '^ *+' conftest.er1 >conftest.err
11305 rm -f conftest.er1
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } >/dev/null && {
11309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11310 test ! -s conftest.err
11311 }; then
11312 ac_header_preproc=yes
11313 else
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11316
11317 ac_header_preproc=no
11318 fi
11319
11320 rm -f conftest.err conftest.$ac_ext
11321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11322 echo "${ECHO_T}$ac_header_preproc" >&6; }
11323
11324 # So? What about this header?
11325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11326 yes:no: )
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11331 ac_header_preproc=yes
11332 ;;
11333 no:yes:* )
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11346
11347 ;;
11348 esac
11349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11353 else
11354 eval "$as_ac_Header=\$ac_header_preproc"
11355 fi
11356 ac_res=`eval echo '${'$as_ac_Header'}'`
11357 { echo "$as_me:$LINENO: result: $ac_res" >&5
11358 echo "${ECHO_T}$ac_res" >&6; }
11359
11360 fi
11361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11362 cat >>confdefs.h <<_ACEOF
11363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11364 _ACEOF
11365
11366 else
11367 { { echo "$as_me:$LINENO: error: bailing out" >&5
11368 echo "$as_me: error: bailing out" >&2;}
11369 { (exit 1); exit 1; }; }
11370 fi
11371
11372 done
11373
11374 fi
11375
11376
11377 for ac_header in libdevmapper.h
11378 do
11379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 fi
11386 ac_res=`eval echo '${'$as_ac_Header'}'`
11387 { echo "$as_me:$LINENO: result: $ac_res" >&5
11388 echo "${ECHO_T}$ac_res" >&6; }
11389 else
11390 # Is the header compilable?
11391 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11393 cat >conftest.$ac_ext <<_ACEOF
11394 /* confdefs.h. */
11395 _ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11399 $ac_includes_default
11400 #include <$ac_header>
11401 _ACEOF
11402 rm -f conftest.$ac_objext
11403 if { (ac_try="$ac_compile"
11404 case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11407 esac
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409 (eval "$ac_compile") 2>conftest.er1
11410 ac_status=$?
11411 grep -v '^ *+' conftest.er1 >conftest.err
11412 rm -f conftest.er1
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } && {
11416 test -z "$ac_c_werror_flag" ||
11417 test ! -s conftest.err
11418 } && test -s conftest.$ac_objext; then
11419 ac_header_compiler=yes
11420 else
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11423
11424 ac_header_compiler=no
11425 fi
11426
11427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11429 echo "${ECHO_T}$ac_header_compiler" >&6; }
11430
11431 # Is the header present?
11432 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11434 cat >conftest.$ac_ext <<_ACEOF
11435 /* confdefs.h. */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11440 #include <$ac_header>
11441 _ACEOF
11442 if { (ac_try="$ac_cpp conftest.$ac_ext"
11443 case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446 esac
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11449 ac_status=$?
11450 grep -v '^ *+' conftest.er1 >conftest.err
11451 rm -f conftest.er1
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } >/dev/null && {
11455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11456 test ! -s conftest.err
11457 }; then
11458 ac_header_preproc=yes
11459 else
11460 echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11462
11463 ac_header_preproc=no
11464 fi
11465
11466 rm -f conftest.err conftest.$ac_ext
11467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11468 echo "${ECHO_T}$ac_header_preproc" >&6; }
11469
11470 # So? What about this header?
11471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11472 yes:no: )
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11477 ac_header_preproc=yes
11478 ;;
11479 no:yes:* )
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11487 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11492
11493 ;;
11494 esac
11495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 else
11500 eval "$as_ac_Header=\$ac_header_preproc"
11501 fi
11502 ac_res=`eval echo '${'$as_ac_Header'}'`
11503 { echo "$as_me:$LINENO: result: $ac_res" >&5
11504 echo "${ECHO_T}$ac_res" >&6; }
11505
11506 fi
11507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11508 cat >>confdefs.h <<_ACEOF
11509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11510 _ACEOF
11511
11512 else
11513 { { echo "$as_me:$LINENO: error: bailing out" >&5
11514 echo "$as_me: error: bailing out" >&2;}
11515 { (exit 1); exit 1; }; }
11516 fi
11517
11518 done
11519
11520
11521 if test x$HAVE_SELINUX = xyes; then
11522
11523 for ac_header in selinux/selinux.h
11524 do
11525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
11531 fi
11532 ac_res=`eval echo '${'$as_ac_Header'}'`
11533 { echo "$as_me:$LINENO: result: $ac_res" >&5
11534 echo "${ECHO_T}$ac_res" >&6; }
11535 else
11536 # Is the header compilable?
11537 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11539 cat >conftest.$ac_ext <<_ACEOF
11540 /* confdefs.h. */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 $ac_includes_default
11546 #include <$ac_header>
11547 _ACEOF
11548 rm -f conftest.$ac_objext
11549 if { (ac_try="$ac_compile"
11550 case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11553 esac
11554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555 (eval "$ac_compile") 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } && {
11562 test -z "$ac_c_werror_flag" ||
11563 test ! -s conftest.err
11564 } && test -s conftest.$ac_objext; then
11565 ac_header_compiler=yes
11566 else
11567 echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11569
11570 ac_header_compiler=no
11571 fi
11572
11573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11575 echo "${ECHO_T}$ac_header_compiler" >&6; }
11576
11577 # Is the header present?
11578 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11580 cat >conftest.$ac_ext <<_ACEOF
11581 /* confdefs.h. */
11582 _ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h. */
11586 #include <$ac_header>
11587 _ACEOF
11588 if { (ac_try="$ac_cpp conftest.$ac_ext"
11589 case "(($ac_try" in
11590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591 *) ac_try_echo=$ac_try;;
11592 esac
11593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11595 ac_status=$?
11596 grep -v '^ *+' conftest.er1 >conftest.err
11597 rm -f conftest.er1
11598 cat conftest.err >&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } >/dev/null && {
11601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11602 test ! -s conftest.err
11603 }; then
11604 ac_header_preproc=yes
11605 else
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11608
11609 ac_header_preproc=no
11610 fi
11611
11612 rm -f conftest.err conftest.$ac_ext
11613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11614 echo "${ECHO_T}$ac_header_preproc" >&6; }
11615
11616 # So? What about this header?
11617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11618 yes:no: )
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11623 ac_header_preproc=yes
11624 ;;
11625 no:yes:* )
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11638
11639 ;;
11640 esac
11641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 else
11646 eval "$as_ac_Header=\$ac_header_preproc"
11647 fi
11648 ac_res=`eval echo '${'$as_ac_Header'}'`
11649 { echo "$as_me:$LINENO: result: $ac_res" >&5
11650 echo "${ECHO_T}$ac_res" >&6; }
11651
11652 fi
11653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11654 cat >>confdefs.h <<_ACEOF
11655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11656 _ACEOF
11657
11658 else
11659 { { echo "$as_me:$LINENO: error: bailing out" >&5
11660 echo "$as_me: error: bailing out" >&2;}
11661 { (exit 1); exit 1; }; }
11662 fi
11663
11664 done
11665
11666 fi
11667
11668 ################################################################################
11669 # Extract the first word of "modprobe", so it can be a program name with args.
11670 set dummy modprobe; ac_word=$2
11671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11673 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 else
11676 case $MODPROBE_CMD in
11677 [\\/]* | ?:[\\/]*)
11678 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11679 ;;
11680 *)
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11683 do
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
11687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11688 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
11689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 break 2
11691 fi
11692 done
11693 done
11694 IFS=$as_save_IFS
11695
11696 ;;
11697 esac
11698 fi
11699 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
11700 if test -n "$MODPROBE_CMD"; then
11701 { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11702 echo "${ECHO_T}$MODPROBE_CMD" >&6; }
11703 else
11704 { echo "$as_me:$LINENO: result: no" >&5
11705 echo "${ECHO_T}no" >&6; }
11706 fi
11707
11708
11709
11710 if test x$MODPROBE_CMD != x; then
11711
11712 cat >>confdefs.h <<_ACEOF
11713 #define MODPROBE_CMD "$MODPROBE_CMD"
11714 _ACEOF
11715
11716 fi
11717
11718 ################################################################################
11719
11720
11721 if test "$BUILD_DMEVENTD" = yes; then
11722
11723 # Check whether --with-dmeventd-pidfile was given.
11724 if test "${with_dmeventd_pidfile+set}" = set; then
11725 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
11726 #define DMEVENTD_PIDFILE "$withval"
11727 _ACEOF
11728
11729 else
11730 cat >>confdefs.h <<_ACEOF
11731 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
11732 _ACEOF
11733
11734 fi
11735
11736 fi
11737
11738
11739
11740 if test "$BUILD_DMEVENTD" = yes; then
11741 dmeventd_prefix="$exec_prefix"
11742 if test "x$dmeventd_prefix" = "xNONE"; then
11743 dmeventd_prefix="$prefix"
11744 fi
11745 if test "x$dmeventd_prefix" = "xNONE"; then
11746 dmeventd_prefix=""
11747 fi
11748
11749 # Check whether --with-dmeventd-path was given.
11750 if test "${with_dmeventd_path+set}" = set; then
11751 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
11752 #define DMEVENTD_PATH "$withval"
11753 _ACEOF
11754
11755 else
11756 cat >>confdefs.h <<_ACEOF
11757 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
11758 _ACEOF
11759
11760 fi
11761
11762 fi
11763
11764 ################################################################################
11765 { echo "$as_me:$LINENO: checking for kernel interface choice" >&5
11766 echo $ECHO_N "checking for kernel interface choice... $ECHO_C" >&6; }
11767
11768 # Check whether --with-interface was given.
11769 if test "${with_interface+set}" = set; then
11770 withval=$with_interface; interface="$withval"
11771 else
11772 interface=ioctl
11773 fi
11774
11775 if [ "x$interface" != xioctl ];
11776 then
11777 { { echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
11778 echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
11779 { (exit 1); exit 1; }; }
11780 fi
11781 { echo "$as_me:$LINENO: result: $interface" >&5
11782 echo "${ECHO_T}$interface" >&6; }
11783
11784 ################################################################################
11785 DM_LIB_VERSION="\"`cat VERSION_LIB 2>/dev/null || echo Unknown`\""
11786 LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
11787
11788 ################################################################################
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843 ################################################################################
11844 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/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/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc man/Makefile po/Makefile scripts/Makefile test/Makefile tools/Makefile tools/version.h"
11845
11846 cat >confcache <<\_ACEOF
11847 # This file is a shell script that caches the results of configure
11848 # tests run on this system so they can be shared between configure
11849 # scripts and configure runs, see configure's option --config-cache.
11850 # It is not useful on other systems. If it contains results you don't
11851 # want to keep, you may remove or edit it.
11852 #
11853 # config.status only pays attention to the cache file if you give it
11854 # the --recheck option to rerun configure.
11855 #
11856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11858 # following values.
11859
11860 _ACEOF
11861
11862 # The following way of writing the cache mishandles newlines in values,
11863 # but we know of no workaround that is simple, portable, and efficient.
11864 # So, we kill variables containing newlines.
11865 # Ultrix sh set writes to stderr and can't be redirected directly,
11866 # and sets the high bit in the cache file unless we assign to the vars.
11867 (
11868 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11869 eval ac_val=\$$ac_var
11870 case $ac_val in #(
11871 *${as_nl}*)
11872 case $ac_var in #(
11873 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11874 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11875 esac
11876 case $ac_var in #(
11877 _ | IFS | as_nl) ;; #(
11878 *) $as_unset $ac_var ;;
11879 esac ;;
11880 esac
11881 done
11882
11883 (set) 2>&1 |
11884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11885 *${as_nl}ac_space=\ *)
11886 # `set' does not quote correctly, so add quotes (double-quote
11887 # substitution turns \\\\ into \\, and sed turns \\ into \).
11888 sed -n \
11889 "s/'/'\\\\''/g;
11890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11891 ;; #(
11892 *)
11893 # `set' quotes correctly as required by POSIX, so do not add quotes.
11894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11895 ;;
11896 esac |
11897 sort
11898 ) |
11899 sed '
11900 /^ac_cv_env_/b end
11901 t clear
11902 :clear
11903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11904 t end
11905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11906 :end' >>confcache
11907 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11908 if test -w "$cache_file"; then
11909 test "x$cache_file" != "x/dev/null" &&
11910 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11911 echo "$as_me: updating cache $cache_file" >&6;}
11912 cat confcache >$cache_file
11913 else
11914 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11915 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11916 fi
11917 fi
11918 rm -f confcache
11919
11920 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11921 # Let make expand exec_prefix.
11922 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11923
11924 DEFS=-DHAVE_CONFIG_H
11925
11926 ac_libobjs=
11927 ac_ltlibobjs=
11928 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11929 # 1. Remove the extension, and $U if already installed.
11930 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11931 ac_i=`echo "$ac_i" | sed "$ac_script"`
11932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11933 # will be set to the directory where LIBOBJS objects are built.
11934 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11935 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11936 done
11937 LIBOBJS=$ac_libobjs
11938
11939 LTLIBOBJS=$ac_ltlibobjs
11940
11941
11942
11943 : ${CONFIG_STATUS=./config.status}
11944 ac_clean_files_save=$ac_clean_files
11945 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11946 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11947 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11948 cat >$CONFIG_STATUS <<_ACEOF
11949 #! $SHELL
11950 # Generated by $as_me.
11951 # Run this file to recreate the current configuration.
11952 # Compiler output produced by configure, useful for debugging
11953 # configure, is in config.log if it exists.
11954
11955 debug=false
11956 ac_cs_recheck=false
11957 ac_cs_silent=false
11958 SHELL=\${CONFIG_SHELL-$SHELL}
11959 _ACEOF
11960
11961 cat >>$CONFIG_STATUS <<\_ACEOF
11962 ## --------------------- ##
11963 ## M4sh Initialization. ##
11964 ## --------------------- ##
11965
11966 # Be more Bourne compatible
11967 DUALCASE=1; export DUALCASE # for MKS sh
11968 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11969 emulate sh
11970 NULLCMD=:
11971 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11972 # is contrary to our usage. Disable this feature.
11973 alias -g '${1+"$@"}'='"$@"'
11974 setopt NO_GLOB_SUBST
11975 else
11976 case `(set -o) 2>/dev/null` in
11977 *posix*) set -o posix ;;
11978 esac
11979
11980 fi
11981
11982
11983
11984
11985 # PATH needs CR
11986 # Avoid depending upon Character Ranges.
11987 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11988 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11989 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11990 as_cr_digits='0123456789'
11991 as_cr_alnum=$as_cr_Letters$as_cr_digits
11992
11993 # The user is always right.
11994 if test "${PATH_SEPARATOR+set}" != set; then
11995 echo "#! /bin/sh" >conf$$.sh
11996 echo "exit 0" >>conf$$.sh
11997 chmod +x conf$$.sh
11998 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11999 PATH_SEPARATOR=';'
12000 else
12001 PATH_SEPARATOR=:
12002 fi
12003 rm -f conf$$.sh
12004 fi
12005
12006 # Support unset when possible.
12007 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12008 as_unset=unset
12009 else
12010 as_unset=false
12011 fi
12012
12013
12014 # IFS
12015 # We need space, tab and new line, in precisely that order. Quoting is
12016 # there to prevent editors from complaining about space-tab.
12017 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12018 # splitting by setting IFS to empty value.)
12019 as_nl='
12020 '
12021 IFS=" "" $as_nl"
12022
12023 # Find who we are. Look in the path if we contain no directory separator.
12024 case $0 in
12025 *[\\/]* ) as_myself=$0 ;;
12026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027 for as_dir in $PATH
12028 do
12029 IFS=$as_save_IFS
12030 test -z "$as_dir" && as_dir=.
12031 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12032 done
12033 IFS=$as_save_IFS
12034
12035 ;;
12036 esac
12037 # We did not find ourselves, most probably we were run as `sh COMMAND'
12038 # in which case we are not to be found in the path.
12039 if test "x$as_myself" = x; then
12040 as_myself=$0
12041 fi
12042 if test ! -f "$as_myself"; then
12043 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12044 { (exit 1); exit 1; }
12045 fi
12046
12047 # Work around bugs in pre-3.0 UWIN ksh.
12048 for as_var in ENV MAIL MAILPATH
12049 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12050 done
12051 PS1='$ '
12052 PS2='> '
12053 PS4='+ '
12054
12055 # NLS nuisances.
12056 for as_var in \
12057 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12058 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12059 LC_TELEPHONE LC_TIME
12060 do
12061 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12062 eval $as_var=C; export $as_var
12063 else
12064 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12065 fi
12066 done
12067
12068 # Required to use basename.
12069 if expr a : '\(a\)' >/dev/null 2>&1 &&
12070 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12071 as_expr=expr
12072 else
12073 as_expr=false
12074 fi
12075
12076 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12077 as_basename=basename
12078 else
12079 as_basename=false
12080 fi
12081
12082
12083 # Name of the executable.
12084 as_me=`$as_basename -- "$0" ||
12085 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12086 X"$0" : 'X\(//\)$' \| \
12087 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12088 echo X/"$0" |
12089 sed '/^.*\/\([^/][^/]*\)\/*$/{
12090 s//\1/
12091 q
12092 }
12093 /^X\/\(\/\/\)$/{
12094 s//\1/
12095 q
12096 }
12097 /^X\/\(\/\).*/{
12098 s//\1/
12099 q
12100 }
12101 s/.*/./; q'`
12102
12103 # CDPATH.
12104 $as_unset CDPATH
12105
12106
12107
12108 as_lineno_1=$LINENO
12109 as_lineno_2=$LINENO
12110 test "x$as_lineno_1" != "x$as_lineno_2" &&
12111 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12112
12113 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12114 # uniformly replaced by the line number. The first 'sed' inserts a
12115 # line-number line after each line using $LINENO; the second 'sed'
12116 # does the real work. The second script uses 'N' to pair each
12117 # line-number line with the line containing $LINENO, and appends
12118 # trailing '-' during substitution so that $LINENO is not a special
12119 # case at line end.
12120 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12121 # scripts with optimization help from Paolo Bonzini. Blame Lee
12122 # E. McMahon (1931-1989) for sed's syntax. :-)
12123 sed -n '
12124 p
12125 /[$]LINENO/=
12126 ' <$as_myself |
12127 sed '
12128 s/[$]LINENO.*/&-/
12129 t lineno
12130 b
12131 :lineno
12132 N
12133 :loop
12134 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12135 t loop
12136 s/-\n.*//
12137 ' >$as_me.lineno &&
12138 chmod +x "$as_me.lineno" ||
12139 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12140 { (exit 1); exit 1; }; }
12141
12142 # Don't try to exec as it changes $[0], causing all sort of problems
12143 # (the dirname of $[0] is not the place where we might find the
12144 # original and so on. Autoconf is especially sensitive to this).
12145 . "./$as_me.lineno"
12146 # Exit status is that of the last command.
12147 exit
12148 }
12149
12150
12151 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12152 as_dirname=dirname
12153 else
12154 as_dirname=false
12155 fi
12156
12157 ECHO_C= ECHO_N= ECHO_T=
12158 case `echo -n x` in
12159 -n*)
12160 case `echo 'x\c'` in
12161 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12162 *) ECHO_C='\c';;
12163 esac;;
12164 *)
12165 ECHO_N='-n';;
12166 esac
12167
12168 if expr a : '\(a\)' >/dev/null 2>&1 &&
12169 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12170 as_expr=expr
12171 else
12172 as_expr=false
12173 fi
12174
12175 rm -f conf$$ conf$$.exe conf$$.file
12176 if test -d conf$$.dir; then
12177 rm -f conf$$.dir/conf$$.file
12178 else
12179 rm -f conf$$.dir
12180 mkdir conf$$.dir
12181 fi
12182 echo >conf$$.file
12183 if ln -s conf$$.file conf$$ 2>/dev/null; then
12184 as_ln_s='ln -s'
12185 # ... but there are two gotchas:
12186 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12187 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12188 # In both cases, we have to default to `cp -p'.
12189 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12190 as_ln_s='cp -p'
12191 elif ln conf$$.file conf$$ 2>/dev/null; then
12192 as_ln_s=ln
12193 else
12194 as_ln_s='cp -p'
12195 fi
12196 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12197 rmdir conf$$.dir 2>/dev/null
12198
12199 if mkdir -p . 2>/dev/null; then
12200 as_mkdir_p=:
12201 else
12202 test -d ./-p && rmdir ./-p
12203 as_mkdir_p=false
12204 fi
12205
12206 if test -x / >/dev/null 2>&1; then
12207 as_test_x='test -x'
12208 else
12209 if ls -dL / >/dev/null 2>&1; then
12210 as_ls_L_option=L
12211 else
12212 as_ls_L_option=
12213 fi
12214 as_test_x='
12215 eval sh -c '\''
12216 if test -d "$1"; then
12217 test -d "$1/.";
12218 else
12219 case $1 in
12220 -*)set "./$1";;
12221 esac;
12222 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12223 ???[sx]*):;;*)false;;esac;fi
12224 '\'' sh
12225 '
12226 fi
12227 as_executable_p=$as_test_x
12228
12229 # Sed expression to map a string onto a valid CPP name.
12230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12231
12232 # Sed expression to map a string onto a valid variable name.
12233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12234
12235
12236 exec 6>&1
12237
12238 # Save the log message, to keep $[0] and so on meaningful, and to
12239 # report actual input values of CONFIG_FILES etc. instead of their
12240 # values after options handling.
12241 ac_log="
12242 This file was extended by $as_me, which was
12243 generated by GNU Autoconf 2.61. Invocation command line was
12244
12245 CONFIG_FILES = $CONFIG_FILES
12246 CONFIG_HEADERS = $CONFIG_HEADERS
12247 CONFIG_LINKS = $CONFIG_LINKS
12248 CONFIG_COMMANDS = $CONFIG_COMMANDS
12249 $ $0 $@
12250
12251 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12252 "
12253
12254 _ACEOF
12255
12256 cat >>$CONFIG_STATUS <<_ACEOF
12257 # Files that config.status was made for.
12258 config_files="$ac_config_files"
12259 config_headers="$ac_config_headers"
12260
12261 _ACEOF
12262
12263 cat >>$CONFIG_STATUS <<\_ACEOF
12264 ac_cs_usage="\
12265 \`$as_me' instantiates files from templates according to the
12266 current configuration.
12267
12268 Usage: $0 [OPTIONS] [FILE]...
12269
12270 -h, --help print this help, then exit
12271 -V, --version print version number and configuration settings, then exit
12272 -q, --quiet do not print progress messages
12273 -d, --debug don't remove temporary files
12274 --recheck update $as_me by reconfiguring in the same conditions
12275 --file=FILE[:TEMPLATE]
12276 instantiate the configuration file FILE
12277 --header=FILE[:TEMPLATE]
12278 instantiate the configuration header FILE
12279
12280 Configuration files:
12281 $config_files
12282
12283 Configuration headers:
12284 $config_headers
12285
12286 Report bugs to <bug-autoconf@gnu.org>."
12287
12288 _ACEOF
12289 cat >>$CONFIG_STATUS <<_ACEOF
12290 ac_cs_version="\\
12291 config.status
12292 configured by $0, generated by GNU Autoconf 2.61,
12293 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12294
12295 Copyright (C) 2006 Free Software Foundation, Inc.
12296 This config.status script is free software; the Free Software Foundation
12297 gives unlimited permission to copy, distribute and modify it."
12298
12299 ac_pwd='$ac_pwd'
12300 srcdir='$srcdir'
12301 INSTALL='$INSTALL'
12302 MKDIR_P='$MKDIR_P'
12303 _ACEOF
12304
12305 cat >>$CONFIG_STATUS <<\_ACEOF
12306 # If no file are specified by the user, then we need to provide default
12307 # value. By we need to know if files were specified by the user.
12308 ac_need_defaults=:
12309 while test $# != 0
12310 do
12311 case $1 in
12312 --*=*)
12313 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12314 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12315 ac_shift=:
12316 ;;
12317 *)
12318 ac_option=$1
12319 ac_optarg=$2
12320 ac_shift=shift
12321 ;;
12322 esac
12323
12324 case $ac_option in
12325 # Handling of the options.
12326 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12327 ac_cs_recheck=: ;;
12328 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12329 echo "$ac_cs_version"; exit ;;
12330 --debug | --debu | --deb | --de | --d | -d )
12331 debug=: ;;
12332 --file | --fil | --fi | --f )
12333 $ac_shift
12334 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12335 ac_need_defaults=false;;
12336 --header | --heade | --head | --hea )
12337 $ac_shift
12338 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12339 ac_need_defaults=false;;
12340 --he | --h)
12341 # Conflict between --help and --header
12342 { echo "$as_me: error: ambiguous option: $1
12343 Try \`$0 --help' for more information." >&2
12344 { (exit 1); exit 1; }; };;
12345 --help | --hel | -h )
12346 echo "$ac_cs_usage"; exit ;;
12347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12348 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12349 ac_cs_silent=: ;;
12350
12351 # This is an error.
12352 -*) { echo "$as_me: error: unrecognized option: $1
12353 Try \`$0 --help' for more information." >&2
12354 { (exit 1); exit 1; }; } ;;
12355
12356 *) ac_config_targets="$ac_config_targets $1"
12357 ac_need_defaults=false ;;
12358
12359 esac
12360 shift
12361 done
12362
12363 ac_configure_extra_args=
12364
12365 if $ac_cs_silent; then
12366 exec 6>/dev/null
12367 ac_configure_extra_args="$ac_configure_extra_args --silent"
12368 fi
12369
12370 _ACEOF
12371 cat >>$CONFIG_STATUS <<_ACEOF
12372 if \$ac_cs_recheck; then
12373 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12374 CONFIG_SHELL=$SHELL
12375 export CONFIG_SHELL
12376 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12377 fi
12378
12379 _ACEOF
12380 cat >>$CONFIG_STATUS <<\_ACEOF
12381 exec 5>>config.log
12382 {
12383 echo
12384 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12385 ## Running $as_me. ##
12386 _ASBOX
12387 echo "$ac_log"
12388 } >&5
12389
12390 _ACEOF
12391 cat >>$CONFIG_STATUS <<_ACEOF
12392 _ACEOF
12393
12394 cat >>$CONFIG_STATUS <<\_ACEOF
12395
12396 # Handling of arguments.
12397 for ac_config_target in $ac_config_targets
12398 do
12399 case $ac_config_target in
12400 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12401 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12402 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
12403 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12404 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
12405 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
12406 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
12407 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
12408 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
12409 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12410 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12411 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12412 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12413 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12414 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12415 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
12416 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
12417 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
12418 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
12419 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12420 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
12421 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
12422 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
12423 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12424 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
12425
12426 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12427 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12428 { (exit 1); exit 1; }; };;
12429 esac
12430 done
12431
12432
12433 # If the user did not use the arguments to specify the items to instantiate,
12434 # then the envvar interface is used. Set only those that are not.
12435 # We use the long form for the default assignment because of an extremely
12436 # bizarre bug on SunOS 4.1.3.
12437 if $ac_need_defaults; then
12438 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12439 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12440 fi
12441
12442 # Have a temporary directory for convenience. Make it in the build tree
12443 # simply because there is no reason against having it here, and in addition,
12444 # creating and moving files from /tmp can sometimes cause problems.
12445 # Hook for its removal unless debugging.
12446 # Note that there is a small window in which the directory will not be cleaned:
12447 # after its creation but before its name has been assigned to `$tmp'.
12448 $debug ||
12449 {
12450 tmp=
12451 trap 'exit_status=$?
12452 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12453 ' 0
12454 trap '{ (exit 1); exit 1; }' 1 2 13 15
12455 }
12456 # Create a (secure) tmp directory for tmp files.
12457
12458 {
12459 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12460 test -n "$tmp" && test -d "$tmp"
12461 } ||
12462 {
12463 tmp=./conf$$-$RANDOM
12464 (umask 077 && mkdir "$tmp")
12465 } ||
12466 {
12467 echo "$me: cannot create a temporary directory in ." >&2
12468 { (exit 1); exit 1; }
12469 }
12470
12471 #
12472 # Set up the sed scripts for CONFIG_FILES section.
12473 #
12474
12475 # No need to generate the scripts if there are no CONFIG_FILES.
12476 # This happens for instance when ./config.status config.h
12477 if test -n "$CONFIG_FILES"; then
12478
12479 _ACEOF
12480
12481
12482
12483 ac_delim='%!_!# '
12484 for ac_last_try in false false false false false :; do
12485 cat >conf$$subs.sed <<_ACEOF
12486 SHELL!$SHELL$ac_delim
12487 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12488 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12489 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12490 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12491 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12492 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12493 exec_prefix!$exec_prefix$ac_delim
12494 prefix!$prefix$ac_delim
12495 program_transform_name!$program_transform_name$ac_delim
12496 bindir!$bindir$ac_delim
12497 sbindir!$sbindir$ac_delim
12498 libexecdir!$libexecdir$ac_delim
12499 datarootdir!$datarootdir$ac_delim
12500 datadir!$datadir$ac_delim
12501 sysconfdir!$sysconfdir$ac_delim
12502 sharedstatedir!$sharedstatedir$ac_delim
12503 localstatedir!$localstatedir$ac_delim
12504 includedir!$includedir$ac_delim
12505 oldincludedir!$oldincludedir$ac_delim
12506 docdir!$docdir$ac_delim
12507 infodir!$infodir$ac_delim
12508 htmldir!$htmldir$ac_delim
12509 dvidir!$dvidir$ac_delim
12510 pdfdir!$pdfdir$ac_delim
12511 psdir!$psdir$ac_delim
12512 libdir!$libdir$ac_delim
12513 localedir!$localedir$ac_delim
12514 mandir!$mandir$ac_delim
12515 DEFS!$DEFS$ac_delim
12516 ECHO_C!$ECHO_C$ac_delim
12517 ECHO_N!$ECHO_N$ac_delim
12518 ECHO_T!$ECHO_T$ac_delim
12519 LIBS!$LIBS$ac_delim
12520 build_alias!$build_alias$ac_delim
12521 host_alias!$host_alias$ac_delim
12522 target_alias!$target_alias$ac_delim
12523 build!$build$ac_delim
12524 build_cpu!$build_cpu$ac_delim
12525 build_vendor!$build_vendor$ac_delim
12526 build_os!$build_os$ac_delim
12527 host!$host$ac_delim
12528 host_cpu!$host_cpu$ac_delim
12529 host_vendor!$host_vendor$ac_delim
12530 host_os!$host_os$ac_delim
12531 target!$target$ac_delim
12532 target_cpu!$target_cpu$ac_delim
12533 target_vendor!$target_vendor$ac_delim
12534 target_os!$target_os$ac_delim
12535 SED!$SED$ac_delim
12536 AWK!$AWK$ac_delim
12537 CC!$CC$ac_delim
12538 CFLAGS!$CFLAGS$ac_delim
12539 LDFLAGS!$LDFLAGS$ac_delim
12540 CPPFLAGS!$CPPFLAGS$ac_delim
12541 ac_ct_CC!$ac_ct_CC$ac_delim
12542 EXEEXT!$EXEEXT$ac_delim
12543 OBJEXT!$OBJEXT$ac_delim
12544 CPP!$CPP$ac_delim
12545 GREP!$GREP$ac_delim
12546 EGREP!$EGREP$ac_delim
12547 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12548 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12549 INSTALL_DATA!$INSTALL_DATA$ac_delim
12550 LN_S!$LN_S$ac_delim
12551 SET_MAKE!$SET_MAKE$ac_delim
12552 RANLIB!$RANLIB$ac_delim
12553 CFLOW_CMD!$CFLOW_CMD$ac_delim
12554 CSCOPE_CMD!$CSCOPE_CMD$ac_delim
12555 ALLOCA!$ALLOCA$ac_delim
12556 LIBOBJS!$LIBOBJS$ac_delim
12557 POW_LIB!$POW_LIB$ac_delim
12558 LCOV!$LCOV$ac_delim
12559 GENHTML!$GENHTML$ac_delim
12560 LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim
12561 MSGFMT!$MSGFMT$ac_delim
12562 MODPROBE_CMD!$MODPROBE_CMD$ac_delim
12563 BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim
12564 CLDFLAGS!$CLDFLAGS$ac_delim
12565 CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim
12566 CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim
12567 CLUSTER!$CLUSTER$ac_delim
12568 CLVMD!$CLVMD$ac_delim
12569 CMDLIB!$CMDLIB$ac_delim
12570 COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim
12571 DEBUG!$DEBUG$ac_delim
12572 DEVMAPPER!$DEVMAPPER$ac_delim
12573 DMDIR!$DMDIR$ac_delim
12574 DMEVENTD!$DMEVENTD$ac_delim
12575 DM_COMPAT!$DM_COMPAT$ac_delim
12576 DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim
12577 DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim
12578 DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim
12579 DM_IOCTLS!$DM_IOCTLS$ac_delim
12580 DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim
12581 FSADM!$FSADM$ac_delim
12582 GROUP!$GROUP$ac_delim
12583 _ACEOF
12584
12585 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12586 break
12587 elif $ac_last_try; then
12588 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12589 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12590 { (exit 1); exit 1; }; }
12591 else
12592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12593 fi
12594 done
12595
12596 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12597 if test -n "$ac_eof"; then
12598 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12599 ac_eof=`expr $ac_eof + 1`
12600 fi
12601
12602 cat >>$CONFIG_STATUS <<_ACEOF
12603 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12604 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12605 _ACEOF
12606 sed '
12607 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12608 s/^/s,@/; s/!/@,|#_!!_#|/
12609 :n
12610 t n
12611 s/'"$ac_delim"'$/,g/; t
12612 s/$/\\/; p
12613 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12614 ' >>$CONFIG_STATUS <conf$$subs.sed
12615 rm -f conf$$subs.sed
12616 cat >>$CONFIG_STATUS <<_ACEOF
12617 CEOF$ac_eof
12618 _ACEOF
12619
12620
12621 ac_delim='%!_!# '
12622 for ac_last_try in false false false false false :; do
12623 cat >conf$$subs.sed <<_ACEOF
12624 HAVE_LIBDL!$HAVE_LIBDL$ac_delim
12625 HAVE_REALTIME!$HAVE_REALTIME$ac_delim
12626 HAVE_SELINUX!$HAVE_SELINUX$ac_delim
12627 INTL!$INTL$ac_delim
12628 INTL_PACKAGE!$INTL_PACKAGE$ac_delim
12629 JOBS!$JOBS$ac_delim
12630 LDDEPS!$LDDEPS$ac_delim
12631 LIB_SUFFIX!$LIB_SUFFIX$ac_delim
12632 LOCALEDIR!$LOCALEDIR$ac_delim
12633 LVM1!$LVM1$ac_delim
12634 LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim
12635 CONFDIR!$CONFDIR$ac_delim
12636 LVM_VERSION!$LVM_VERSION$ac_delim
12637 MIRRORS!$MIRRORS$ac_delim
12638 OWNER!$OWNER$ac_delim
12639 PKGCONFIG!$PKGCONFIG$ac_delim
12640 POOL!$POOL$ac_delim
12641 SNAPSHOTS!$SNAPSHOTS$ac_delim
12642 STATICDIR!$STATICDIR$ac_delim
12643 STATIC_LINK!$STATIC_LINK$ac_delim
12644 LIB_PTHREAD!$LIB_PTHREAD$ac_delim
12645 interface!$interface$ac_delim
12646 kerneldir!$kerneldir$ac_delim
12647 missingkernel!$missingkernel$ac_delim
12648 kernelvsn!$kernelvsn$ac_delim
12649 tmpdir!$tmpdir$ac_delim
12650 usrlibdir!$usrlibdir$ac_delim
12651 usrsbindir!$usrsbindir$ac_delim
12652 LTLIBOBJS!$LTLIBOBJS$ac_delim
12653 _ACEOF
12654
12655 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
12656 break
12657 elif $ac_last_try; then
12658 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12659 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12660 { (exit 1); exit 1; }; }
12661 else
12662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12663 fi
12664 done
12665
12666 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12667 if test -n "$ac_eof"; then
12668 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12669 ac_eof=`expr $ac_eof + 1`
12670 fi
12671
12672 cat >>$CONFIG_STATUS <<_ACEOF
12673 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12675 _ACEOF
12676 sed '
12677 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12678 s/^/s,@/; s/!/@,|#_!!_#|/
12679 :n
12680 t n
12681 s/'"$ac_delim"'$/,g/; t
12682 s/$/\\/; p
12683 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12684 ' >>$CONFIG_STATUS <conf$$subs.sed
12685 rm -f conf$$subs.sed
12686 cat >>$CONFIG_STATUS <<_ACEOF
12687 :end
12688 s/|#_!!_#|//g
12689 CEOF$ac_eof
12690 _ACEOF
12691
12692
12693 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12694 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12695 # trailing colons and then remove the whole line if VPATH becomes empty
12696 # (actually we leave an empty line to preserve line numbers).
12697 if test "x$srcdir" = x.; then
12698 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12699 s/:*\$(srcdir):*/:/
12700 s/:*\${srcdir}:*/:/
12701 s/:*@srcdir@:*/:/
12702 s/^\([^=]*=[ ]*\):*/\1/
12703 s/:*$//
12704 s/^[^=]*=[ ]*$//
12705 }'
12706 fi
12707
12708 cat >>$CONFIG_STATUS <<\_ACEOF
12709 fi # test -n "$CONFIG_FILES"
12710
12711
12712 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
12713 do
12714 case $ac_tag in
12715 :[FHLC]) ac_mode=$ac_tag; continue;;
12716 esac
12717 case $ac_mode$ac_tag in
12718 :[FHL]*:*);;
12719 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12720 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12721 { (exit 1); exit 1; }; };;
12722 :[FH]-) ac_tag=-:-;;
12723 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12724 esac
12725 ac_save_IFS=$IFS
12726 IFS=:
12727 set x $ac_tag
12728 IFS=$ac_save_IFS
12729 shift
12730 ac_file=$1
12731 shift
12732
12733 case $ac_mode in
12734 :L) ac_source=$1;;
12735 :[FH])
12736 ac_file_inputs=
12737 for ac_f
12738 do
12739 case $ac_f in
12740 -) ac_f="$tmp/stdin";;
12741 *) # Look for the file first in the build tree, then in the source tree
12742 # (if the path is not absolute). The absolute path cannot be DOS-style,
12743 # because $ac_f cannot contain `:'.
12744 test -f "$ac_f" ||
12745 case $ac_f in
12746 [\\/$]*) false;;
12747 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12748 esac ||
12749 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12750 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12751 { (exit 1); exit 1; }; };;
12752 esac
12753 ac_file_inputs="$ac_file_inputs $ac_f"
12754 done
12755
12756 # Let's still pretend it is `configure' which instantiates (i.e., don't
12757 # use $as_me), people would be surprised to read:
12758 # /* config.h. Generated by config.status. */
12759 configure_input="Generated from "`IFS=:
12760 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12761 if test x"$ac_file" != x-; then
12762 configure_input="$ac_file. $configure_input"
12763 { echo "$as_me:$LINENO: creating $ac_file" >&5
12764 echo "$as_me: creating $ac_file" >&6;}
12765 fi
12766
12767 case $ac_tag in
12768 *:-:* | *:-) cat >"$tmp/stdin";;
12769 esac
12770 ;;
12771 esac
12772
12773 ac_dir=`$as_dirname -- "$ac_file" ||
12774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12775 X"$ac_file" : 'X\(//\)[^/]' \| \
12776 X"$ac_file" : 'X\(//\)$' \| \
12777 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12778 echo X"$ac_file" |
12779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12780 s//\1/
12781 q
12782 }
12783 /^X\(\/\/\)[^/].*/{
12784 s//\1/
12785 q
12786 }
12787 /^X\(\/\/\)$/{
12788 s//\1/
12789 q
12790 }
12791 /^X\(\/\).*/{
12792 s//\1/
12793 q
12794 }
12795 s/.*/./; q'`
12796 { as_dir="$ac_dir"
12797 case $as_dir in #(
12798 -*) as_dir=./$as_dir;;
12799 esac
12800 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12801 as_dirs=
12802 while :; do
12803 case $as_dir in #(
12804 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12805 *) as_qdir=$as_dir;;
12806 esac
12807 as_dirs="'$as_qdir' $as_dirs"
12808 as_dir=`$as_dirname -- "$as_dir" ||
12809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12810 X"$as_dir" : 'X\(//\)[^/]' \| \
12811 X"$as_dir" : 'X\(//\)$' \| \
12812 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12813 echo X"$as_dir" |
12814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12815 s//\1/
12816 q
12817 }
12818 /^X\(\/\/\)[^/].*/{
12819 s//\1/
12820 q
12821 }
12822 /^X\(\/\/\)$/{
12823 s//\1/
12824 q
12825 }
12826 /^X\(\/\).*/{
12827 s//\1/
12828 q
12829 }
12830 s/.*/./; q'`
12831 test -d "$as_dir" && break
12832 done
12833 test -z "$as_dirs" || eval "mkdir $as_dirs"
12834 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12835 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12836 { (exit 1); exit 1; }; }; }
12837 ac_builddir=.
12838
12839 case "$ac_dir" in
12840 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12841 *)
12842 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12843 # A ".." for each directory in $ac_dir_suffix.
12844 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12845 case $ac_top_builddir_sub in
12846 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12847 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12848 esac ;;
12849 esac
12850 ac_abs_top_builddir=$ac_pwd
12851 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12852 # for backward compatibility:
12853 ac_top_builddir=$ac_top_build_prefix
12854
12855 case $srcdir in
12856 .) # We are building in place.
12857 ac_srcdir=.
12858 ac_top_srcdir=$ac_top_builddir_sub
12859 ac_abs_top_srcdir=$ac_pwd ;;
12860 [\\/]* | ?:[\\/]* ) # Absolute name.
12861 ac_srcdir=$srcdir$ac_dir_suffix;
12862 ac_top_srcdir=$srcdir
12863 ac_abs_top_srcdir=$srcdir ;;
12864 *) # Relative name.
12865 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12866 ac_top_srcdir=$ac_top_build_prefix$srcdir
12867 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12868 esac
12869 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12870
12871
12872 case $ac_mode in
12873 :F)
12874 #
12875 # CONFIG_FILE
12876 #
12877
12878 case $INSTALL in
12879 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12880 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12881 esac
12882 ac_MKDIR_P=$MKDIR_P
12883 case $MKDIR_P in
12884 [\\/$]* | ?:[\\/]* ) ;;
12885 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12886 esac
12887 _ACEOF
12888
12889 cat >>$CONFIG_STATUS <<\_ACEOF
12890 # If the template does not know about datarootdir, expand it.
12891 # FIXME: This hack should be removed a few years after 2.60.
12892 ac_datarootdir_hack=; ac_datarootdir_seen=
12893
12894 case `sed -n '/datarootdir/ {
12895 p
12896 q
12897 }
12898 /@datadir@/p
12899 /@docdir@/p
12900 /@infodir@/p
12901 /@localedir@/p
12902 /@mandir@/p
12903 ' $ac_file_inputs` in
12904 *datarootdir*) ac_datarootdir_seen=yes;;
12905 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12906 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12907 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12908 _ACEOF
12909 cat >>$CONFIG_STATUS <<_ACEOF
12910 ac_datarootdir_hack='
12911 s&@datadir@&$datadir&g
12912 s&@docdir@&$docdir&g
12913 s&@infodir@&$infodir&g
12914 s&@localedir@&$localedir&g
12915 s&@mandir@&$mandir&g
12916 s&\\\${datarootdir}&$datarootdir&g' ;;
12917 esac
12918 _ACEOF
12919
12920 # Neutralize VPATH when `$srcdir' = `.'.
12921 # Shell code in configure.ac might set extrasub.
12922 # FIXME: do we really want to maintain this feature?
12923 cat >>$CONFIG_STATUS <<_ACEOF
12924 sed "$ac_vpsub
12925 $extrasub
12926 _ACEOF
12927 cat >>$CONFIG_STATUS <<\_ACEOF
12928 :t
12929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12930 s&@configure_input@&$configure_input&;t t
12931 s&@top_builddir@&$ac_top_builddir_sub&;t t
12932 s&@srcdir@&$ac_srcdir&;t t
12933 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12934 s&@top_srcdir@&$ac_top_srcdir&;t t
12935 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12936 s&@builddir@&$ac_builddir&;t t
12937 s&@abs_builddir@&$ac_abs_builddir&;t t
12938 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12939 s&@INSTALL@&$ac_INSTALL&;t t
12940 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12941 $ac_datarootdir_hack
12942 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12943
12944 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12945 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12946 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12947 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12948 which seems to be undefined. Please make sure it is defined." >&5
12949 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12950 which seems to be undefined. Please make sure it is defined." >&2;}
12951
12952 rm -f "$tmp/stdin"
12953 case $ac_file in
12954 -) cat "$tmp/out"; rm -f "$tmp/out";;
12955 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12956 esac
12957 ;;
12958 :H)
12959 #
12960 # CONFIG_HEADER
12961 #
12962 _ACEOF
12963
12964 # Transform confdefs.h into a sed script `conftest.defines', that
12965 # substitutes the proper values into config.h.in to produce config.h.
12966 rm -f conftest.defines conftest.tail
12967 # First, append a space to every undef/define line, to ease matching.
12968 echo 's/$/ /' >conftest.defines
12969 # Then, protect against being on the right side of a sed subst, or in
12970 # an unquoted here document, in config.status. If some macros were
12971 # called several times there might be several #defines for the same
12972 # symbol, which is useless. But do not sort them, since the last
12973 # AC_DEFINE must be honored.
12974 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12975 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12976 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12977 # PARAMS is the parameter list in the macro definition--in most cases, it's
12978 # just an empty string.
12979 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12980 ac_dB='\\)[ (].*,\\1define\\2'
12981 ac_dC=' '
12982 ac_dD=' ,'
12983
12984 uniq confdefs.h |
12985 sed -n '
12986 t rset
12987 :rset
12988 s/^[ ]*#[ ]*define[ ][ ]*//
12989 t ok
12990 d
12991 :ok
12992 s/[\\&,]/\\&/g
12993 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12994 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12995 ' >>conftest.defines
12996
12997 # Remove the space that was appended to ease matching.
12998 # Then replace #undef with comments. This is necessary, for
12999 # example, in the case of _POSIX_SOURCE, which is predefined and required
13000 # on some systems where configure will not decide to define it.
13001 # (The regexp can be short, since the line contains either #define or #undef.)
13002 echo 's/ $//
13003 s,^[ #]*u.*,/* & */,' >>conftest.defines
13004
13005 # Break up conftest.defines:
13006 ac_max_sed_lines=50
13007
13008 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13009 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13010 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13011 # et cetera.
13012 ac_in='$ac_file_inputs'
13013 ac_out='"$tmp/out1"'
13014 ac_nxt='"$tmp/out2"'
13015
13016 while :
13017 do
13018 # Write a here document:
13019 cat >>$CONFIG_STATUS <<_ACEOF
13020 # First, check the format of the line:
13021 cat >"\$tmp/defines.sed" <<\\CEOF
13022 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13023 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13024 b
13025 :def
13026 _ACEOF
13027 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13028 echo 'CEOF
13029 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13030 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13031 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13032 grep . conftest.tail >/dev/null || break
13033 rm -f conftest.defines
13034 mv conftest.tail conftest.defines
13035 done
13036 rm -f conftest.defines conftest.tail
13037
13038 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13039 cat >>$CONFIG_STATUS <<\_ACEOF
13040 if test x"$ac_file" != x-; then
13041 echo "/* $configure_input */" >"$tmp/config.h"
13042 cat "$ac_result" >>"$tmp/config.h"
13043 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13044 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13045 echo "$as_me: $ac_file is unchanged" >&6;}
13046 else
13047 rm -f $ac_file
13048 mv "$tmp/config.h" $ac_file
13049 fi
13050 else
13051 echo "/* $configure_input */"
13052 cat "$ac_result"
13053 fi
13054 rm -f "$tmp/out12"
13055 ;;
13056
13057
13058 esac
13059
13060 done # for ac_tag
13061
13062
13063 { (exit 0); exit 0; }
13064 _ACEOF
13065 chmod +x $CONFIG_STATUS
13066 ac_clean_files=$ac_clean_files_save
13067
13068
13069 # configure is writing to config.log, and then calls config.status.
13070 # config.status does its own redirection, appending to config.log.
13071 # Unfortunately, on DOS this fails, as config.log is still kept open
13072 # by configure, so config.status won't be able to write to it; its
13073 # output is simply discarded. So we exec the FD to /dev/null,
13074 # effectively closing config.log, so it can be properly (re)opened and
13075 # appended to by config.status. When coming back to configure, we
13076 # need to make the FD available again.
13077 if test "$no_create" != yes; then
13078 ac_cs_success=:
13079 ac_config_status_args=
13080 test "$silent" = yes &&
13081 ac_config_status_args="$ac_config_status_args --quiet"
13082 exec 5>/dev/null
13083 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13084 exec 5>>config.log
13085 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13086 # would make configure fail if this is the last instruction.
13087 $ac_cs_success || { (exit 1); exit 1; }
13088 fi
13089
13090
13091 if test x$ODIRECT != xyes; then
13092 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13093 echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
13094 fi
This page took 0.803168 seconds and 6 git commands to generate.